/** * @param input the input * @return true, if the input is considered as changed * @noreference This method is not intended to be referenced by clients. * @nooverride This method is not intended to be re-implemented or extended * by clients. */ protected boolean inputChanged(Object input) { return getInput() != input; }
public void run() { if (selection.isEmpty()) internalSetContentPaneInput(fStructurePane2.getInput()); else internalSetContentPaneInput(getElement(selection)); } }
private void internalSetContentPaneInput(Object input) { Object oldInput = fContentInputPane.getInput(); fContentInputPane.setInput(input); if (fOutlineView != null) fOutlineView.fireInputChange(oldInput, input); }
private void internalSetContentPaneInput(Object input) { Object oldInput = fContentInputPane.getInput(); fContentInputPane.setInput(input); if (fOutlineView != null) fOutlineView.fireInputChange(oldInput, input); }
/* package */ void internalCompareAsText(Object input) { Set set = (Set)getCompareConfiguration().getProperty(ICompareAsText.PROP_TEXT_INPUTS); if (set == null) { set = new HashSet(); getCompareConfiguration().setProperty(ICompareAsText.PROP_TEXT_INPUTS, set); } set.add(input); if (fContentInputPane.getInput().equals(input)) { // We need to null the input and then reset it so we get the text merge viewer fContentInputPane.setInput(null); fContentInputPane.setInput(input); } }
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 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); } } ); }
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); } } }
if (getInput() == input) return;
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); } } ); }