private void feed1(CompareEditorInputNavigator cein) { if (getCompareInput() instanceof PatchFileDiffNode) { Object pane = cein.getPanes()[1]; // the top middle pane if (pane instanceof CompareViewerPane) { CompareViewerPane cvp = (CompareViewerPane) pane; cvp.setInput(getCompareInput()); } pane = cein.getPanes()[2]; // the top right pane if (pane instanceof CompareViewerPane) { CompareViewerPane cvp = (CompareViewerPane) pane; cvp.setInput(null); // clear downstream pane } } } }
public void setInput(Object input) { super.setInput(input); Composite c = getParent(); if (c instanceof Splitter) ((Splitter)c).setVisible(this, true); layout(true); } };
@Override public void setInput(Object input) { super.setInput(input); Composite c = getParent(); if (c instanceof Splitter) ((Splitter)c).setVisible(this, true); layout(true); } };
private void feedInput() { if (fStructureInputPane != null && (fInput instanceof ICompareInput || isCustomStructureInputPane())) { if (hasChildren(fInput) || isCustomStructureInputPane()) { // The input has multiple entries so set the input of the structure input pane fStructureInputPane.setInput(fInput); } else if (!structureCompareOnSingleClick() || isShowStructureInOutlineView()) { // We want to avoid showing the structure in the editor if we can so first // we'll set the content pane to see if we need to provide a structure internalSetContentPaneInput(fInput); // If the content viewer is unusable if (hasUnusableContentViewer() || (structureCompareOnSingleClick() && isShowStructureInOutlineView() && !hasOutlineViewer(fInput))) { fStructureInputPane.setInput(fInput); } } else { fStructureInputPane.setInput(fInput); } ISelection sel= fStructureInputPane.getSelection(); if (sel == null || sel.isEmpty()) feed1(sel); // we only feed downstream viewers if the top left pane is empty } }
private void feedInput() { if (fStructureInputPane != null && (fInput instanceof ICompareInput || isCustomStructureInputPane())) { if (hasChildren(fInput) || isCustomStructureInputPane()) { // The input has multiple entries so set the input of the structure input pane fStructureInputPane.setInput(fInput); } else if (!structureCompareOnSingleClick() || isShowStructureInOutlineView()) { // We want to avoid showing the structure in the editor if we can so first // we'll set the content pane to see if we need to provide a structure internalSetContentPaneInput(fInput); // If the content viewer is unusable if (hasUnusableContentViewer() || (structureCompareOnSingleClick() && isShowStructureInOutlineView() && !hasOutlineViewer(fInput))) { fStructureInputPane.setInput(fInput); } } else { fStructureInputPane.setInput(fInput); } ISelection sel= fStructureInputPane.getSelection(); if (sel == null || sel.isEmpty()) feed1(sel); // we only feed downstream viewers if the top left pane is empty } }
super.setInput(input);
super.setInput(input);