diff options
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/model/provisional/TreeModelViewer.java')
-rw-r--r-- | org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/model/provisional/TreeModelViewer.java | 84 |
1 files changed, 42 insertions, 42 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/model/provisional/TreeModelViewer.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/model/provisional/TreeModelViewer.java index 5e3d35722..15bdacacf 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/model/provisional/TreeModelViewer.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/model/provisional/TreeModelViewer.java @@ -20,17 +20,17 @@ import org.eclipse.ui.IMemento; /** * A tree viewer for a model. * <p> - * Style flags supported by this viewer are the same as for {@link org.eclipse.jface.viewers.TreeViewer}, + * Style flags supported by this viewer are the same as for {@link org.eclipse.jface.viewers.TreeViewer}, * except: * <ul> - * <li>SWT.VIRTUAL - Indicates that the viewer should be in lazy mode. This + * <li>SWT.VIRTUAL - Indicates that the viewer should be in lazy mode. This * flag is required when creating this viewer. * <li>SWT.POP_UP - Indicates that the viewer is used in a popup window, and it - * should ignore requests from the model to select, expand, or collapse tree + * should ignore requests from the model to select, expand, or collapse tree * elements.</li> * </ul> * </p> - * @since 3.3 + * @since 3.3 * @noextend Clients may instantiate this class. Clients may not subclass this class. */ public class TreeModelViewer extends InternalTreeModelViewer { @@ -38,152 +38,152 @@ public class TreeModelViewer extends InternalTreeModelViewer { public TreeModelViewer(Composite parent, int style, IPresentationContext context) { super(parent, style, context); } - + /** * Returns this viewer's presentation context. - * + * * @return presentation context */ @Override public IPresentationContext getPresentationContext() { return super.getPresentationContext(); - } + } /** * Registers the given listener for model delta notification. - * + * * @param listener model delta listener */ @Override public void addModelChangedListener(IModelChangedListener listener) { - super.addModelChangedListener(listener); + super.addModelChangedListener(listener); } - + /** * Unregisters the given listener from model delta notification. - * + * * @param listener model delta listener */ @Override public void removeModelChangedListener(IModelChangedListener listener) { super.removeModelChangedListener(listener); - } - + } + /** * Registers the specified listener for view update notifications. - * + * * @param listener listener */ @Override public void addViewerUpdateListener(IViewerUpdateListener listener) { super.addViewerUpdateListener(listener); } - + /** * Removes the specified listener from update notifications. - * + * * @param listener listener */ @Override public void removeViewerUpdateListener(IViewerUpdateListener listener) { super.removeViewerUpdateListener(listener); } - + /** * Returns whether columns can be toggled on/off for this viewer's current * input element. - * + * * @return whether columns can be toggled on/off */ @Override public boolean canToggleColumns() { return super.canToggleColumns(); - } - + } + /** * Returns the current column presentation for this viewer, or <code>null</code> * if none. - * + * * @return column presentation or <code>null</code> */ @Override public IColumnPresentation getColumnPresentation() { return super.getColumnPresentation(); - } - + } + /** * Returns identifiers of the visible columns in this viewer, or <code>null</code> * if there are currently no columns. - * + * * @return visible columns identifiers or <code>null</code> */ @Override public String[] getVisibleColumns() { return super.getVisibleColumns(); - } - + } + /** * Initializes viewer state from the memento - * + * * @param memento the {@link IMemento} to read from */ @Override public void initState(IMemento memento) { super.initState(memento); } - + /** * Save viewer state into the given memento. - * + * * @param memento the {@link IMemento} to save to */ @Override public void saveState(IMemento memento) { super.saveState(memento); } - + /** - * @return Returns true if columns are being displayed currently. + * @return Returns true if columns are being displayed currently. */ @Override public boolean isShowColumns() { return super.isShowColumns(); - } - + } + /** * Resets any persisted column size for the given columns - * + * * @param columnIds array of column identifiers */ @Override public void resetColumnSizes(String[] columnIds) { super.resetColumnSizes(columnIds); } - + /** * Toggles columns on/off for the current column presentation, if any. - * + * * @param show whether to show columns if the current input supports * columns */ @Override public void setShowColumns(boolean show) { super.setShowColumns(show); - } - + } + /** - * Sets the visible columns for this viewer. Id's correspond to + * Sets the visible columns for this viewer. Id's correspond to * column identifiers from a column presentation. Use <code>null</code> * or an empty collection to display default columns for the current * column presentation. Only affects the current column presentation. - * + * * @param ids column identifiers or <code>null</code> */ @Override public void setVisibleColumns(String[] ids) { super.setVisibleColumns(ids); - } - + } + @Override public ViewerLabel getElementLabel(TreePath path, String columnId) { return super.getElementLabel(path, columnId); |