diff options
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/provisional')
9 files changed, 105 insertions, 105 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/provisional/AbstractColumnPresentation.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/provisional/AbstractColumnPresentation.java index 4abe81e6b..87ffbd592 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/provisional/AbstractColumnPresentation.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/provisional/AbstractColumnPresentation.java @@ -4,7 +4,7 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * IBM Corporation - initial API and implementation *******************************************************************************/ @@ -22,9 +22,9 @@ import org.eclipse.jface.resource.ImageDescriptor; * @since 3.2 */ public abstract class AbstractColumnPresentation implements IColumnPresentation2 { - + private IPresentationContext fContext; - + /** * Empty array of strings */ @@ -45,7 +45,7 @@ public abstract class AbstractColumnPresentation implements IColumnPresentation2 public void dispose() { fContext = null; } - + /* (non-Javadoc) * @see org.eclipse.debug.internal.ui.viewers.provisional.IColumnPresentation#getImageDescriptor(java.lang.String) */ @@ -56,13 +56,13 @@ public abstract class AbstractColumnPresentation implements IColumnPresentation2 /** * Returns the context this column presentation is installed in. - * + * * @return presentation context */ protected IPresentationContext getPresentationContext() { return fContext; } - + /* (non-Javadoc) * @see org.eclipse.debug.internal.ui.viewers.model.provisional.IColumnPresentation2#getInitialColumnWidth(java.lang.String, int, java.lang.String[]) */ diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/provisional/AbstractModelProxy.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/provisional/AbstractModelProxy.java index 6c1e961c9..e70f23d9c 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/provisional/AbstractModelProxy.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/provisional/AbstractModelProxy.java @@ -33,16 +33,16 @@ import org.eclipse.jface.viewers.Viewer; * @since 3.2 */ public abstract class AbstractModelProxy implements IModelProxy2 { - + private IPresentationContext fContext; private boolean fInstalled = false; private ITreeModelViewer fViewer; private boolean fDisposed = false; private Job fInstallJob; - - + + private ListenerList<IModelChangedListener> fListeners = new ListenerList<>(); - + protected ListenerList<IModelChangedListener> getListeners() { synchronized (fListeners) { return fListeners; @@ -71,14 +71,14 @@ public abstract class AbstractModelProxy implements IModelProxy2 { /** * Notifies registered listeners of the given delta. - * + * * @param delta model delta to broadcast */ public void fireModelChanged(IModelDelta delta) { synchronized(this) { if (!fInstalled || fDisposed) return; } - + final IModelDelta root = getRootDelta(delta); for (IModelChangedListener iModelChangedListener : getListeners()) { final IModelChangedListener listener = iModelChangedListener; @@ -97,10 +97,10 @@ public abstract class AbstractModelProxy implements IModelProxy2 { SafeRunner.run(safeRunnable); } } - + /** * Returns the root node of the given delta. - * + * * @param delta delta node * @return returns the root of the given delta */ @@ -130,19 +130,19 @@ public abstract class AbstractModelProxy implements IModelProxy2 { protected synchronized void setInstalled(boolean installed) { fInstalled = installed; } - + protected synchronized boolean isInstalled() { return fInstalled; } - + protected synchronized void setDisposed(boolean disposed) { fDisposed = disposed; } - + @Override public void initialize(ITreeModelViewer viewer) { setDisposed(false); - + synchronized(this) { fViewer = viewer; fContext = viewer.getPresentationContext(); @@ -159,10 +159,10 @@ public abstract class AbstractModelProxy implements IModelProxy2 { } return Status.OK_STATUS; } - + /* * (non-Javadoc) - * + * * @see org.eclipse.core.runtime.jobs.Job#shouldRun() */ @Override @@ -174,10 +174,10 @@ public abstract class AbstractModelProxy implements IModelProxy2 { } fInstallJob.schedule(); } - + /** * Returns the context this model proxy is installed in. - * + * * @return presentation context, or <code>null</code> if this * model proxy has been disposed */ @@ -193,18 +193,18 @@ public abstract class AbstractModelProxy implements IModelProxy2 { } /* (non-Javadoc) - * + * * Subclasses should override as required. - * + * * @see org.eclipse.debug.internal.ui.viewers.provisional.IModelProxy#installed(org.eclipse.jface.viewers.Viewer) */ @Override - public void installed(Viewer viewer) { + public void installed(Viewer viewer) { } - + /** * Returns the viewer this proxy is installed in. - * + * * @return viewer or <code>null</code> if not installed */ protected Viewer getViewer() { @@ -213,19 +213,19 @@ public abstract class AbstractModelProxy implements IModelProxy2 { /** * Returns the viewer this proxy is installed in. - * + * * @return viewer or <code>null</code> if not installed */ protected ITreeModelViewer getTreeModelViewer() { return fViewer; } - + /* (non-Javadoc) * @see org.eclipse.debug.internal.ui.viewers.model.provisional.IModelProxy#isDisposed() */ @Override public synchronized boolean isDisposed() { return fDisposed; - } + } } diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/provisional/AsynchronousContentAdapter.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/provisional/AsynchronousContentAdapter.java index 16124acde..bc9b9810c 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/provisional/AsynchronousContentAdapter.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/provisional/AsynchronousContentAdapter.java @@ -4,7 +4,7 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * IBM Corporation - initial API and implementation *******************************************************************************/ @@ -28,9 +28,9 @@ import org.eclipse.debug.internal.ui.viewers.model.provisional.IPresentationCont * @since 3.2 */ public abstract class AsynchronousContentAdapter implements IAsynchronousContentAdapter { - + protected static final Object[] EMPTY = new Object[0]; - + /* * (non-Javadoc) * @see org.eclipse.debug.internal.ui.viewers.provisional.IAsynchronousContentAdapter#retrieveChildren(java.lang.Object, org.eclipse.debug.internal.ui.viewers.provisional.IPresentationContext, org.eclipse.debug.internal.ui.viewers.provisional.IChildrenRequestMonitor) @@ -50,10 +50,10 @@ public abstract class AsynchronousContentAdapter implements IAsynchronousContent job.setRule(getRetrieveChildrenRule(parent, context)); job.schedule(); } - + /** * Returns the scheduling rule for jobs retrieving children. - * + * * @param parent the parent * @param context the presentation context * @return scheduling rule or <code>null</code> @@ -61,7 +61,7 @@ public abstract class AsynchronousContentAdapter implements IAsynchronousContent protected ISchedulingRule getRetrieveChildrenRule(Object parent, IPresentationContext context) { return AsynchronousSchedulingRuleFactory.getDefault().newSerialPerObjectRule(context); } - + /* * (non-Javadoc) @@ -82,10 +82,10 @@ public abstract class AsynchronousContentAdapter implements IAsynchronousContent job.setRule(getIsContainerRule(element, context)); job.schedule(); } - + /** * Returns the scheduling rule for jobs determining if an element is a container. - * + * * @param parent the parent * @param context the presentation context * @return scheduling rule or <code>null</code> @@ -93,10 +93,10 @@ public abstract class AsynchronousContentAdapter implements IAsynchronousContent protected ISchedulingRule getIsContainerRule(Object parent, IPresentationContext context) { return AsynchronousSchedulingRuleFactory.getDefault().newSerialPerObjectRule(context); } - + /** * Computes the children for the given parent in the specified context. - * + * * @param parent parent to retrieve children for * @param context presentation context * @param monitor result to report to @@ -113,12 +113,12 @@ public abstract class AsynchronousContentAdapter implements IAsynchronousContent } monitor.setStatus(status); monitor.done(); - } + } } - + /** * Computes whether the given element is a container. - * + * * @param parent potential parent * @param context presentation context * @param monitor result to report to @@ -133,43 +133,43 @@ public abstract class AsynchronousContentAdapter implements IAsynchronousContent } monitor.setStatus(status); monitor.done(); - } - } - + } + } + /** * Returns the children for the given parent in the specified context. - * + * * @param parent element to retrieve children for * @param context context children will be presented in * @return children * @throws CoreException if an exception occurs retrieving children */ protected abstract Object[] getChildren(Object parent, IPresentationContext context) throws CoreException; - + /** * Returns whether the given element has children in the specified context. - * + * * @param element element that may have children * @param context context element will be presented in * @return whether the given element has children in the specified context * @throws CoreException if an exception occurs determining whether the * element has children */ - protected abstract boolean hasChildren(Object element, IPresentationContext context) throws CoreException; + protected abstract boolean hasChildren(Object element, IPresentationContext context) throws CoreException; /** * Returns whether this adapter supports the given context. - * + * * @param context the presentation context * @return whether this adapter supports the given context */ protected boolean supportsContext(IPresentationContext context) { return supportsPartId(context.getId()); } - + /** * Returns whether this adapter provides content in the specified part. - * + * * @param id part id * @return whether this adapter provides content in the specified part */ diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/provisional/AsynchronousLabelAdapter.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/provisional/AsynchronousLabelAdapter.java index dae6eb4eb..99cf6a033 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/provisional/AsynchronousLabelAdapter.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/provisional/AsynchronousLabelAdapter.java @@ -4,7 +4,7 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * IBM Corporation - initial API and implementation *******************************************************************************/ @@ -33,7 +33,7 @@ import org.eclipse.ui.progress.UIJob; * @since 3.2 */ public abstract class AsynchronousLabelAdapter implements IAsynchronousLabelAdapter { - + /* (non-Javadoc) * @see org.eclipse.debug.ui.viewers.IAsynchronousLabelAdapter#retrieveLabel(java.lang.Object, org.eclipse.debug.ui.viewers.IPresentationContext, org.eclipse.debug.ui.viewers.ILabelRequestMonitor) */ @@ -61,10 +61,10 @@ public abstract class AsynchronousLabelAdapter implements IAsynchronousLabelAdap job.setRule(getLabelRule(element, context)); job.schedule(); } - + /** * Returns the scheduling rule for label jobs. - * + * * @param element the element context * @param context the presentation context * @return scheduling rule or <code>null</code> @@ -72,22 +72,22 @@ public abstract class AsynchronousLabelAdapter implements IAsynchronousLabelAdap protected ISchedulingRule getLabelRule(Object element, IPresentationContext context) { return AsynchronousSchedulingRuleFactory.getDefault().newSerialPerObjectRule(context); } - + /** * Returns whether this label adapter requires to be run in the UI thread. * By default, label jobs are not run in the UI thread. Subclasses should * override if required. * @param object the object context - * + * * @return whether this label adapter requires to be run in the UI thread. */ protected boolean requiresUIJob(Object object) { return !DebugElementHelper.requiresUIThread(object); } - + /** * Computes label attributes for the given element in the specified context. - * + * * @param element element to compute label for * @param context presentation context * @param monitor monitor to report results to @@ -117,55 +117,55 @@ public abstract class AsynchronousLabelAdapter implements IAsynchronousLabelAdap monitor.done(); } } - } - + } + /** * Returns a label for the give element in the specified context. - * + * * @param element element to compute label for * @param context presentation context * @return label * @exception CoreException if an exception occurs computing label */ protected abstract String[] getLabels(Object element, IPresentationContext context) throws CoreException; - + /** * Returns an image descriptor for the given element in the specified context * or <code>null</code>. - * + * * @param element element to compute image descriptor for * @param context presentation context * @return image descriptor or <code>null</code> * @throws CoreException if an exception occurs computing image descriptor */ protected abstract ImageDescriptor[] getImageDescriptors(Object element, IPresentationContext context) throws CoreException; - + /** * Returns font data for the given element in the specified context or <code>null</code> * to use the default font. - * + * * @param element element to compute font data for * @param context presentation context * @return font data or <code>null</code> * @throws CoreException if an exception occurs computing font data */ protected abstract FontData[] getFontDatas(Object element, IPresentationContext context) throws CoreException; - + /** * Returns a foreground color for the given element in the specified context or <code>null</code> * to use the default color. - * + * * @param element element to compute color for * @param context presentation context * @return color or <code>null</code> * @throws CoreException if an exception occurs computing color */ protected abstract RGB[] getForegrounds(Object element, IPresentationContext context) throws CoreException; - + /** * Returns a background color for the given element in the specified context or <code>null</code> * to use the default color. - * + * * @param element element to compute color for * @param context presentation context * @return color or <code>null</code> diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/provisional/IAsynchronousContentAdapter.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/provisional/IAsynchronousContentAdapter.java index faf3f89b9..68d47a7d2 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/provisional/IAsynchronousContentAdapter.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/provisional/IAsynchronousContentAdapter.java @@ -1,10 +1,10 @@ /******************************************************************************* * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials + * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * IBM Corporation - initial API and implementation *******************************************************************************/ @@ -14,7 +14,7 @@ import org.eclipse.debug.internal.ui.viewers.model.provisional.IPresentationCont /** * Provides content for elements in an asynchronous viewer. Note that implementations - * must provide content asynchronously. + * must provide content asynchronously. * <p> * Clients may implement this interface. * </p> @@ -26,20 +26,20 @@ public interface IAsynchronousContentAdapter { * Asynchronously retrieves the children of the given parent reporting to the * given monitor. If unable to retrieve children, an exception should be reported * to the monitor with an appropriate status. - * + * * @param parent the element to retrieve children for * @param context the context in which children have been requested * @param monitor request monitor to report children to */ public void retrieveChildren(Object parent, IPresentationContext context, IChildrenRequestMonitor result); - + /** * Asynchronously determines whether the given element contains children in the specified * context reporting the result to the given monitor. If unable to determine * whether the element has children, an exception should be reported to the monitor * with an appropriate status. - * - * @param element the element on which children may exist + * + * @param element the element on which children may exist * @param context the context in which children may exist * @param monitor request monitor to report the result to */ diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/provisional/IAsynchronousLabelAdapter.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/provisional/IAsynchronousLabelAdapter.java index d17025d38..518be81dc 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/provisional/IAsynchronousLabelAdapter.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/provisional/IAsynchronousLabelAdapter.java @@ -1,10 +1,10 @@ /******************************************************************************* * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials + * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * IBM Corporation - initial API and implementation *******************************************************************************/ @@ -14,24 +14,24 @@ import org.eclipse.debug.internal.ui.viewers.model.provisional.IPresentationCont /** * Provides labels for elements. Note that implementations - * are must provide labels asynchronously. + * are must provide labels asynchronously. * <p> * Clients may implement this interface. * </p> * @since 3.2 */ public interface IAsynchronousLabelAdapter { - + /** * Asynchronously retrieves the label of the given object reporting to * the given monitor. If unable to retrieve label information, an exception should be * reported to the monitor with an appropriate status. - * + * * @param object the element for which a label is requested * @param context the context in which the label has been requested * @param monitor request monitor to report the result to */ public void retrieveLabel(Object object, IPresentationContext context, ILabelRequestMonitor result); - + } diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/provisional/IChildrenRequestMonitor.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/provisional/IChildrenRequestMonitor.java index 7b41a6ca4..3f5646c0e 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/provisional/IChildrenRequestMonitor.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/provisional/IChildrenRequestMonitor.java @@ -1,10 +1,10 @@ /******************************************************************************* * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials + * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * IBM Corporation - initial API and implementation *******************************************************************************/ @@ -23,14 +23,14 @@ public interface IChildrenRequestMonitor extends IStatusMonitor { /** * Adds the given child to this request. - * + * * @param child child to add */ public void addChild(Object child); - + /** * Adds the given children to this request. - * + * * @param children children to add */ public void addChildren(Object[] children); diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/provisional/IContainerRequestMonitor.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/provisional/IContainerRequestMonitor.java index a73b6bfa2..be1f3b36c 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/provisional/IContainerRequestMonitor.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/provisional/IContainerRequestMonitor.java @@ -1,10 +1,10 @@ /******************************************************************************* * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials + * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * IBM Corporation - initial API and implementation *******************************************************************************/ @@ -24,9 +24,9 @@ public interface IContainerRequestMonitor extends IStatusMonitor { /** * Sets whether an element contains children. - * + * * @param container whether an element contains children */ public void setIsContainer(boolean container); - + } diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/provisional/ILabelRequestMonitor.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/provisional/ILabelRequestMonitor.java index eb8a93f51..967d5ac5f 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/provisional/ILabelRequestMonitor.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/provisional/ILabelRequestMonitor.java @@ -1,10 +1,10 @@ /******************************************************************************* * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials + * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * IBM Corporation - initial API and implementation *******************************************************************************/ @@ -27,35 +27,35 @@ public interface ILabelRequestMonitor extends IStatusMonitor { /** * Sets the text of the label. Cannot be <code>null</code>. - * + * * @param text */ public void setLabels(String[] text); - + /** * Sets the font of the label. - * + * * @param fontData */ public void setFontDatas(FontData[] fontData); - + /** * Sets the image of the label. - * + * * @param image */ public void setImageDescriptors(ImageDescriptor[] image); - + /** * Sets the foreground color of the label. - * + * * @param foreground */ public void setForegrounds(RGB[] foreground); - + /** * Sets the background color of the label. - * + * * @param background */ public void setBackgrounds(RGB[] background); |