public void run() { if (selection == null || selection.isEmpty()) { Object input= fStructureInputPane.getInput(); if (input != null) internalSetContentPaneInput(input); fStructurePane2.setInput(null); // clear downstream pane fStructurePane1.setInput(null); } else { Object input= getElement(selection); internalSetContentPaneInput(input); if (structureCompareOnSingleClick() || hasUnusableContentViewer()) fStructurePane1.setInput(input); fStructurePane2.setInput(null); // clear downstream pane if (fStructurePane1.getInput() != input) fStructurePane1.setInput(null); } } }
private void feed1(final ISelection selection) { BusyIndicator.showWhile(fComposite.getDisplay(), () -> { if (selection == null || selection.isEmpty()) { Object input1= fStructureInputPane.getInput(); if (input1 != null) internalSetContentPaneInput(input1); if (!Utilities.okToUse(fStructurePane1) || !Utilities.okToUse(fStructurePane2)) return; fStructurePane2.setInput(null); // clear downstream pane fStructurePane1.setInput(null); } else { Object input2= getElement(selection); internalSetContentPaneInput(input2); if (!Utilities.okToUse(fStructurePane1) || !Utilities.okToUse(fStructurePane2)) return; if (structureCompareOnSingleClick() || hasUnusableContentViewer()) fStructurePane1.setInput(input2); fStructurePane2.setInput(null); // clear downstream pane if (fStructurePane1.getInput() != input2) fStructurePane1.setInput(null); } } ); }