/** * @param monitor * @noreference This method is not intended to be referenced by clients. */ @Override public void flushLeft(IProgressMonitor monitor) { flushLeftSide(getInput(), monitor); }
/** * @param monitor * @noreference This method is not intended to be referenced by clients. */ @Override public void flushRight(IProgressMonitor monitor) { flushRightSide(getInput(), monitor); }
/** * Flush any modifications made in the viewer into the compare input. This method * calls {@link #flushContent(Object, IProgressMonitor)} with the compare input * of the viewer as the first parameter. * @param monitor a progress monitor * @see org.eclipse.compare.contentmergeviewer.IFlushable#flush(org.eclipse.core.runtime.IProgressMonitor) * @since 3.3 */ public final void flush(IProgressMonitor monitor) { flushContent(getInput(), monitor); }
@Override public void refresh() { internalRefresh(getInput()); }
/** * Flush any modifications made in the viewer into the compare input. This method * calls {@link #flushContent(Object, IProgressMonitor)} with the compare input * of the viewer as the first parameter. * * @param monitor a progress monitor * @see org.eclipse.compare.contentmergeviewer.IFlushable#flush(org.eclipse.core.runtime.IProgressMonitor) * @since 3.3 */ @Override public final void flush(IProgressMonitor monitor) { flushContent(getInput(), monitor); }
public void refresh() { internalRefresh(getInput()); }
public void labelProviderChanged(LabelProviderChangedEvent event) { Object[] elements = event.getElements(); for (int i = 0; i < elements.length; i++) { Object object = elements[i]; if (object == getInput()) updateHeader(); } } };
private double getHorizontalSplitRatio() { if (fHSplit < 0) { Object input = getInput(); if (input instanceof ICompareInput) { ICompareInput ci = (ICompareInput) input; if (ci.getLeft() == null) return 0.1; if (ci.getRight() == null) return 0.9; } return HSPLIT; } return fHSplit; } }
private double getHorizontalSplitRatio() { if (fHSplit < 0) { Object input = getInput(); if (input instanceof ICompareInput) { ICompareInput ci = (ICompareInput) input; if (ci.getLeft() == null) return 0.1; if (ci.getRight() == null) return 0.9; } return HSPLIT; } return fHSplit; } }
Object input= getInput();
/** * Updates the enabled state of the toolbar items. * <p> * This method is called whenever the state of the items needs updating. * <p> * Subclasses may extend this method, although this is generally not required. */ protected void updateToolItems() { IMergeViewerContentProvider content= getMergeContentProvider(); Object input= getInput(); if (copyLeftToRightItem != null) { boolean rightEditable = content.isRightEditable(input); copyLeftToRightItem.setVisible(rightEditable); copyLeftToRightItem.getAction().setEnabled(rightEditable); } if (copyRightToLeftItem != null) { boolean leftEditable = content.isLeftEditable(input); copyRightToLeftItem.setVisible(leftEditable); copyRightToLeftItem.getAction().setEnabled(leftEditable); } if (fSwitchLeftAndRight != null) { fSwitchLeftAndRight.setChecked(getCompareConfiguration().isMirrored()); } }
Object input = getInput(); if (isLeftDirty() || isRightDirty()) {
fHandlerService.dispose(); Object input= getInput(); if (input instanceof ICompareInput) { ICompareContainer container = getCompareConfiguration().getContainer();
fConfirmSave= Utilities.getBoolean(cc, CompareEditor.CONFIRM_SAVE_PROPERTY, fConfirmSave); fCompareInputChangeListener = (input) -> { if (input == getInput()) handleCompareInputChange(); };
Object input = getInput(); if (!isSaving() && (isLeftDirty() || isRightDirty())) {
Object input= getInput();
Object input= getInput();
fHandlerService.dispose(); Object input= getInput(); if (input instanceof ICompareInput) { ICompareContainer container = getCompareConfiguration().getContainer();