private void feedDefault1(final ISelection selection) { BusyIndicator.showWhile(fComposite.getDisplay(), new Runnable() { public void run() { if (!selection.isEmpty()) fStructurePane1.setInput(getElement(selection)); } } ); }
private void feed3(final ISelection selection) { BusyIndicator.showWhile(fComposite.getDisplay(), new Runnable() { public void run() { if (selection.isEmpty()) internalSetContentPaneInput(fStructurePane2.getInput()); else internalSetContentPaneInput(getElement(selection)); } } ); }
private void feed2(final ISelection selection) { BusyIndicator.showWhile(fComposite.getDisplay(), new Runnable() { public void run() { if (selection.isEmpty()) { Object input= fStructurePane1.getInput(); internalSetContentPaneInput(input); fStructurePane2.setInput(null); } else { Object input= getElement(selection); internalSetContentPaneInput(input); fStructurePane2.setInput(input); } } } ); }
private void feed1(final ISelection selection) { BusyIndicator.showWhile(fComposite.getDisplay(), new Runnable() { 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 feedDefault1(final ISelection selection) { BusyIndicator.showWhile(fComposite.getDisplay(), () -> { if (!selection.isEmpty()) fStructurePane1.setInput(getElement(selection)); } ); }
private void feed3(final ISelection selection) { BusyIndicator.showWhile(fComposite.getDisplay(), () -> { if (selection.isEmpty()) internalSetContentPaneInput(fStructurePane2.getInput()); else internalSetContentPaneInput(getElement(selection)); } ); }
private void feed2(final ISelection selection) { BusyIndicator.showWhile(fComposite.getDisplay(), () -> { if (selection.isEmpty()) { Object input1= fStructurePane1.getInput(); internalSetContentPaneInput(input1); fStructurePane2.setInput(null); } else { Object input2= getElement(selection); internalSetContentPaneInput(input2); fStructurePane2.setInput(input2); } } ); }
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); } } ); }