diff options
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/breadcrumb/AbstractBreadcrumb.java')
-rw-r--r-- | org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/breadcrumb/AbstractBreadcrumb.java | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/breadcrumb/AbstractBreadcrumb.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/breadcrumb/AbstractBreadcrumb.java index 07a0a3b7c..0a0641f9b 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/breadcrumb/AbstractBreadcrumb.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/breadcrumb/AbstractBreadcrumb.java @@ -93,27 +93,27 @@ public abstract class AbstractBreadcrumb { */ protected abstract void deactivateBreadcrumb(); - /** - * Returns the selection provider for this breadcrumb. - * - * @return the selection provider for this breadcrumb - */ + /** + * Returns the selection provider for this breadcrumb. + * + * @return the selection provider for this breadcrumb + */ public ISelectionProvider getSelectionProvider() { return fBreadcrumbViewer; } - /** - * Set the input of the breadcrumb to the given element - * - * @param element the input element can be <code>null</code> - */ + /** + * Set the input of the breadcrumb to the given element + * + * @param element the input element can be <code>null</code> + */ public void setInput(Object element) { if (element == null || fBreadcrumbViewer == null || fBreadcrumbViewer.getControl().isDisposed()) return; Object input= fBreadcrumbViewer.getInput(); if (input == element || element.equals(input)) { - refresh(); + refresh(); return; } @@ -121,38 +121,38 @@ public abstract class AbstractBreadcrumb { } protected void refresh() { - if (!fBreadcrumbViewer.getControl().isDisposed()) { - fBreadcrumbViewer.refresh(); - } + if (!fBreadcrumbViewer.getControl().isDisposed()) { + fBreadcrumbViewer.refresh(); + } } - /** - * Activates the breadcrumb. This sets the keyboard focus - * inside this breadcrumb and retargets the editor - * actions. - */ + /** + * Activates the breadcrumb. This sets the keyboard focus + * inside this breadcrumb and retargets the editor + * actions. + */ public void activate() { if (fBreadcrumbViewer.getSelection().isEmpty()) fBreadcrumbViewer.setSelection(new StructuredSelection(fBreadcrumbViewer.getInput())); fBreadcrumbViewer.setFocus(); } - /** - * A breadcrumb is active if it either has the focus or another workbench part has the focus and - * the breadcrumb had the focus before the other workbench part was made active. - * - * @return <code>true</code> if this breadcrumb is active - */ + /** + * A breadcrumb is active if it either has the focus or another workbench part has the focus and + * the breadcrumb had the focus before the other workbench part was made active. + * + * @return <code>true</code> if this breadcrumb is active + */ public boolean isActive() { return true; } - /** - * Create breadcrumb content. - * - * @param parent the parent of the content - * @return the control containing the created content - */ + /** + * Create breadcrumb content. + * + * @param parent the parent of the content + * @return the control containing the created content + */ public Control createContent(Composite parent) { Assert.isTrue(fComposite == null, "Content must only be created once."); //$NON-NLS-1$ @@ -172,7 +172,7 @@ public abstract class AbstractBreadcrumb { fDisplayFocusListener= new Listener() { @Override public void handleEvent(Event event) { - if (fComposite.isDisposed()) return; + if (fComposite.isDisposed()) return; if (isBreadcrumbEvent(event)) { if (fHasFocus) @@ -215,9 +215,9 @@ public abstract class AbstractBreadcrumb { return fComposite; } - /** - * Dispose all resources hold by this breadcrumb. - */ + /** + * Dispose all resources hold by this breadcrumb. + */ public void dispose() { if (fDisplayFocusListener != null) { Display.getDefault().removeFilter(SWT.FocusIn, fDisplayFocusListener); @@ -233,7 +233,7 @@ public abstract class AbstractBreadcrumb { */ private void doOpen(ISelection selection) { if (open(selection)) { - fBreadcrumbViewer.setInput(getCurrentInput()); + fBreadcrumbViewer.setInput(getCurrentInput()); } } |