/** * Performs the comparison described by the given input and opens a * compare dialog on the result. * * @param input the input on which to open the compare editor * @see CompareEditorInput */ public void openCompareDialog(final CompareEditorInput input) { // We don't ever open dialogs in the background if (compareResultOK(input, null)) { internalOpenDialog(input); } }
/** * Performs the comparison described by the given input and opens a * compare dialog on the result. * * @param input the input on which to open the compare editor * @see CompareEditorInput */ public void openCompareDialog(final CompareEditorInput input) { // We don't ever open dialogs in the background if (compareResultOK(input, null)) { internalOpenDialog(input); } }
/** * Performs the comparison described by the given input and opens a * compare editor on the result. * * @param input the input on which to open the compare editor * @param page the workbench page on which to create a new compare editor * @param editor if not null the input is opened in this editor * @see CompareEditorInput */ public void openCompareEditor(final CompareEditorInput input, final IWorkbenchPage page, final IReusableEditor editor) { CompareConfiguration configuration = input.getCompareConfiguration(); if (configuration != null) { IPreferenceStore ps= configuration.getPreferenceStore(); if (ps != null) configuration.setProperty( CompareConfiguration.USE_OUTLINE_VIEW, Boolean.valueOf(ps.getBoolean(ComparePreferencePage.USE_OUTLINE_VIEW))); } if (input.canRunAsJob()) { openEditorInBackground(input, page, editor); } else { if (compareResultOK(input, null)) { internalOpenEditor(input, page, editor); } } }
openEditorInBackground(input, page, editor, activate); } else { if (compareResultOK(input, null)) { internalOpenEditor(input, page, editor, activate);