/** * Synchronizes the outliner selection with the actual cursor * position in the editor. */ public void synchronizeOutlinePageSelection() { synchronizeOutlinePage(computeHighlightRangeSourceReference()); }
/** * Synchronizes the outliner selection with the actual cursor * position in the editor. */ public void synchronizeOutlinePageSelection() { synchronizeOutlinePage(computeHighlightRangeSourceReference()); }
/** * Synchronizes the outliner selection with the actual cursor * position in the editor. */ public void synchronizeOutlinePageSelection() { synchronizeOutlinePage(computeHighlightRangeSourceReference()); }
/** * Runs the action. */ @Override public void run() { final boolean isChecked= isChecked(); PreferenceConstants.getPreferenceStore().setValue(PreferenceConstants.EDITOR_SYNC_OUTLINE_ON_CURSOR_MOVE, isChecked); if (isChecked && fEditor != null) fEditor.synchronizeOutlinePage(fEditor.computeHighlightRangeSourceReference(), false); fOpenAndLinkWithEditorHelper.setLinkWithEditor(isChecked); }
/** * Runs the action. */ public void run() { PreferenceConstants.getPreferenceStore().setValue(PreferenceConstants.EDITOR_SYNC_OUTLINE_ON_CURSOR_MOVE, isChecked()); if (isChecked() && fEditor != null) fEditor.synchronizeOutlinePage(fEditor.computeHighlightRangeSourceReference(), false); }
/** * Runs the action. */ @Override public void run() { final boolean isChecked= isChecked(); PreferenceConstants.getPreferenceStore().setValue(PreferenceConstants.EDITOR_SYNC_OUTLINE_ON_CURSOR_MOVE, isChecked); if (isChecked && fEditor != null) fEditor.synchronizeOutlinePage(fEditor.computeHighlightRangeSourceReference(), false); fOpenAndLinkWithEditorHelper.setLinkWithEditor(isChecked); }
/** * React to changed selection. * * @since 3.0 */ protected void selectionChanged() { if (getSelectionProvider() == null) return; ISourceReference element= computeHighlightRangeSourceReference(); if (getPreferenceStore().getBoolean(PreferenceConstants.EDITOR_SYNC_OUTLINE_ON_CURSOR_MOVE)) synchronizeOutlinePage(element); setSelection(element, false); if (!fSelectionChangedViaGotoAnnotation) updateStatusLine(); fSelectionChangedViaGotoAnnotation= false; }
/** * React to changed selection. * * @since 3.0 */ protected void selectionChanged() { if (getSelectionProvider() == null) return; ISourceReference element= computeHighlightRangeSourceReference(); if (getPreferenceStore().getBoolean(PreferenceConstants.EDITOR_SYNC_OUTLINE_ON_CURSOR_MOVE)) synchronizeOutlinePage(element); if (fIsBreadcrumbVisible && fBreadcrumb != null && !fBreadcrumb.isActive()) setBreadcrumbInput(element); setSelection(element, false); if (!fSelectionChangedViaGotoAnnotation) updateStatusLine(); fSelectionChangedViaGotoAnnotation= false; }
/** * React to changed selection. * * @since 3.0 */ protected void selectionChanged() { if (getSelectionProvider() == null) return; ISourceReference element= computeHighlightRangeSourceReference(); if (getPreferenceStore().getBoolean(PreferenceConstants.EDITOR_SYNC_OUTLINE_ON_CURSOR_MOVE)) synchronizeOutlinePage(element); if (fIsBreadcrumbVisible && fBreadcrumb != null && !fBreadcrumb.isActive()) setBreadcrumbInput(element); setSelection(element, false); if (!fSelectionChangedViaGotoAnnotation) updateStatusLine(); fSelectionChangedViaGotoAnnotation= false; }
/** * Makes the breadcrumb visible. Creates its content * if this is the first time it is made visible. * * @since 3.4 */ private void showBreadcrumb() { if (fBreadcrumb == null) return; if (fBreadcrumbComposite.isDisposed()) { // not expected SWT.error(SWT.ERROR_WIDGET_DISPOSED, null, ". Editor not properly disposed; please report scenario to <https://bugs.eclipse.org/446203>. Editor input: " //$NON-NLS-1$ + getInputJavaElement()); } if (fBreadcrumbComposite.getChildren().length == 0) { fBreadcrumb.createContent(fBreadcrumbComposite); } ((GridData) fBreadcrumbComposite.getLayoutData()).exclude= false; fBreadcrumbComposite.setVisible(true); ISourceReference selection= computeHighlightRangeSourceReference(); if (selection == null) selection= getInputJavaElement(); setBreadcrumbInput(selection); fBreadcrumbComposite.getParent().layout(true, true); }
/** * Makes the breadcrumb visible. Creates its content * if this is the first time it is made visible. * * @since 3.4 */ private void showBreadcrumb() { if (fBreadcrumb == null) return; if (fBreadcrumbComposite.isDisposed()) { // not expected SWT.error(SWT.ERROR_WIDGET_DISPOSED, null, ". Editor not properly disposed; please report scenario to <https://bugs.eclipse.org/446203>. Editor input: " //$NON-NLS-1$ + getInputJavaElement()); } if (fBreadcrumbComposite.getChildren().length == 0) { fBreadcrumb.createContent(fBreadcrumbComposite); } ((GridData) fBreadcrumbComposite.getLayoutData()).exclude= false; fBreadcrumbComposite.setVisible(true); ISourceReference selection= computeHighlightRangeSourceReference(); if (selection == null) selection= getInputJavaElement(); setBreadcrumbInput(selection); fBreadcrumbComposite.getParent().layout(true, true); }