diff options
| author | Lars Vogel | 2015-02-24 05:34:43 +0000 |
|---|---|---|
| committer | Lars Vogel | 2015-02-24 12:49:42 +0000 |
| commit | 4093122862f312f2705e216d79a6556782bfc2d0 (patch) | |
| tree | 38488ce16c0b2746ed493a03f294d224e1836dc1 | |
| parent | 68f396e4785acb2204043351dc12fe3d2526c201 (diff) | |
| download | eclipse.platform.ui-4093122862f312f2705e216d79a6556782bfc2d0.tar.gz eclipse.platform.ui-4093122862f312f2705e216d79a6556782bfc2d0.tar.xz eclipse.platform.ui-4093122862f312f2705e216d79a6556782bfc2d0.zip | |
Bug 460652 - Fix trailing whitespaces in org.eclipse.ui.ide I20150224-0800
Change-Id: I1a45af35900fb47c413b794948d6c526fb2b1056
Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
503 files changed, 4918 insertions, 4919 deletions
diff --git a/bundles/org.eclipse.ui.ide/.settings/org.eclipse.jdt.ui.prefs b/bundles/org.eclipse.ui.ide/.settings/org.eclipse.jdt.ui.prefs index 6afdc4e2369..550a72ca950 100644 --- a/bundles/org.eclipse.ui.ide/.settings/org.eclipse.jdt.ui.prefs +++ b/bundles/org.eclipse.ui.ide/.settings/org.eclipse.jdt.ui.prefs @@ -44,7 +44,7 @@ sp_cleanup.qualify_static_member_accesses_with_declaring_class=false sp_cleanup.qualify_static_method_accesses_with_declaring_class=false sp_cleanup.remove_private_constructors=true sp_cleanup.remove_redundant_type_arguments=true -sp_cleanup.remove_trailing_whitespaces=false +sp_cleanup.remove_trailing_whitespaces=true sp_cleanup.remove_trailing_whitespaces_all=true sp_cleanup.remove_trailing_whitespaces_ignore_empty=false sp_cleanup.remove_unnecessary_casts=true diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/IContributorResourceAdapter.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/IContributorResourceAdapter.java index 5f3cd99a416..d536408d7fc 100644 --- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/IContributorResourceAdapter.java +++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/IContributorResourceAdapter.java @@ -24,11 +24,11 @@ import org.eclipse.core.runtime.IAdaptable; public interface IContributorResourceAdapter { /** - * Return the resource that the supplied adaptable + * Return the resource that the supplied adaptable * adapts to. An IContributorResourceAdapter assumes * that any object passed to it adapts to one equivalent * resource. - * + * * @param adaptable the adaptable being queried * @return a resource, or <code>null</code> if there * is no adapted resource for this type diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/IFileEditorInput.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/IFileEditorInput.java index e6fb501723a..6301c5f0edf 100644 --- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/IFileEditorInput.java +++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/IFileEditorInput.java @@ -23,8 +23,8 @@ import org.eclipse.core.resources.IFile; * File-oriented editors should support this as a valid input type, and allow * full read-write editing of its content. * </p><p> - * A default implementation of this interface is provided by - * org.eclipse.ui.part.FileEditorInput. + * A default implementation of this interface is provided by + * org.eclipse.ui.part.FileEditorInput. * </p><p> * All editor inputs must implement the <code>IAdaptable</code> interface; * extensions are managed by the platform's adapter manager. diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/IMarkerActionFilter.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/IMarkerActionFilter.java index 4f374b619a2..1aa49c4e718 100644 --- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/IMarkerActionFilter.java +++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/IMarkerActionFilter.java @@ -13,10 +13,10 @@ package org.eclipse.ui; /** * Describes the public attributes for a marker and the acceptable values - * each may have. + * each may have. * <p> - * A popup menu extension may use these constants to describe its object target. - * Each identifies an attribute name or possible value. + * A popup menu extension may use these constants to describe its object target. + * Each identifies an attribute name or possible value. * <p> * Clients are not expected to implement this interface. * </p> @@ -25,37 +25,37 @@ package org.eclipse.ui; */ public interface IMarkerActionFilter extends IActionFilter { /** - * An attribute indicating the marker type (value <code>"type"</code>). - * The attribute value in xml should match one of the marker types defined in - * the workbench's marker extension point. Common examples are + * An attribute indicating the marker type (value <code>"type"</code>). + * The attribute value in xml should match one of the marker types defined in + * the workbench's marker extension point. Common examples are * <code>IMarker.TASK, IMarker.BOOKMARK, and IMarker.MARKER</code>. */ public static final String TYPE = "type"; //$NON-NLS-1$ /** - * An attribute indicating the marker super type (value <code>"superType"</code>). - * The attribute value in xml should match one of the marker types defined in - * the workbench's marker extension point. Common examples are + * An attribute indicating the marker super type (value <code>"superType"</code>). + * The attribute value in xml should match one of the marker types defined in + * the workbench's marker extension point. Common examples are * <code>IMarker.TASK, IMarker.BOOKMARK, and IMarker.MARKER</code>. */ public static final String SUPER_TYPE = "superType"; //$NON-NLS-1$ /** * An attribute indicating the marker priority (value <code>"priority"</code>). - * The attribute value in xml must be one of <code>IMarker.PRIORITY_LOW, - * IMarker.PRIORITY_NORMAL, or IMarker.PRIORITY_HIGH</code> + * The attribute value in xml must be one of <code>IMarker.PRIORITY_LOW, + * IMarker.PRIORITY_NORMAL, or IMarker.PRIORITY_HIGH</code> */ public static final String PRIORITY = "priority"; //$NON-NLS-1$ /** - * An attribute indicating the marker severity (value <code>"severity"</code>). - * The attribute value in xml in xml must be one of <code>IMarker.SEVERITY_ERROR, - * IMarker.SEVERITY_WARNING, or IMarker.SEVERITY_INFO</code> + * An attribute indicating the marker severity (value <code>"severity"</code>). + * The attribute value in xml in xml must be one of <code>IMarker.SEVERITY_ERROR, + * IMarker.SEVERITY_WARNING, or IMarker.SEVERITY_INFO</code> */ public static final String SEVERITY = "severity"; //$NON-NLS-1$ /** - * An attribute indicating whether the marker is considered done (value + * An attribute indicating whether the marker is considered done (value * <code>"done"</code>). * The attribute value in xml must be one of <code>"true" or "false"</code>. */ diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/IMarkerHelpRegistry.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/IMarkerHelpRegistry.java index 63f36d82ab0..060d13ca640 100644 --- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/IMarkerHelpRegistry.java +++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/IMarkerHelpRegistry.java @@ -12,22 +12,22 @@ package org.eclipse.ui; import org.eclipse.core.resources.IMarker; -/** +/** * Registry of F1 help contexts and resolutions for markers. * <p> - * The information contained in the registry is read from the + * The information contained in the registry is read from the * org.eclipse.ui.markerhelp and org.eclipse.ui.markerresolution * extension points. * </p> - * + * * @since 2.0 */ public interface IMarkerHelpRegistry { /** * Returns a help context id for the given marker or - * <code>null</code> if no help has been registered + * <code>null</code> if no help has been registered * for the marker. - * + * * @param marker the marker for which to obtain help * @return the help context id * @since 2.0 @@ -35,13 +35,13 @@ public interface IMarkerHelpRegistry { public String getHelp(IMarker marker); /** - * Returns <code>false</code> if there are no resolutions for + * Returns <code>false</code> if there are no resolutions for * the given marker. Returns <code>true</code> if their may - * be resolutions. In most cases a <code>true</code> value - * means there are resolutions but due to plugin loading + * be resolutions. In most cases a <code>true</code> value + * means there are resolutions but due to plugin loading * issues getResolutions may sometimes return an empty array - * after this method returns <code>true</code>. - * + * after this method returns <code>true</code>. + * * @param marker the marker for which to determine if there * are resolutions * @return <code>true</code> if there may be resolutions @@ -50,10 +50,10 @@ public interface IMarkerHelpRegistry { public boolean hasResolutions(IMarker marker); /** - * Returns an array of resolutions for the given marker. + * Returns an array of resolutions for the given marker. * The returned array will be empty if there are no resolutions * for the marker. - * + * * @param marker the marker for which to obtain resolutions * @return an array with the marker resolutions * @since 2.0 diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/IMarkerResolution.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/IMarkerResolution.java index 8c70bbd1fca..5372853f610 100644 --- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/IMarkerResolution.java +++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/IMarkerResolution.java @@ -12,23 +12,23 @@ package org.eclipse.ui; import org.eclipse.core.resources.IMarker; -/** - * Resolution for a marker. When run, a resolution would +/** + * Resolution for a marker. When run, a resolution would * typically eliminate the need for the marker. - * + * * @since 2.0 */ public interface IMarkerResolution { - /** - * Returns a short label indicating what the resolution will do. - * + /** + * Returns a short label indicating what the resolution will do. + * * @return a short label for this resolution */ public String getLabel(); /** * Runs this resolution. - * + * * @param marker the marker to resolve */ public void run(IMarker marker); diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/IMarkerResolution2.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/IMarkerResolution2.java index a6045a6ff6c..90727c1ffcc 100644 --- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/IMarkerResolution2.java +++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/IMarkerResolution2.java @@ -12,11 +12,11 @@ package org.eclipse.ui; import org.eclipse.swt.graphics.Image; -/** - * Extends <code>IMarkerResolution</code>. This interface should be used - * in place of <code>IMarkerResolution</code> if a description and/or image +/** + * Extends <code>IMarkerResolution</code>. This interface should be used + * in place of <code>IMarkerResolution</code> if a description and/or image * are desired. - * + * * @since 3.0 */ public interface IMarkerResolution2 extends IMarkerResolution { diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/IMarkerResolutionGenerator.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/IMarkerResolutionGenerator.java index 5511eacb276..655d8d4bf58 100644 --- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/IMarkerResolutionGenerator.java +++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/IMarkerResolutionGenerator.java @@ -12,11 +12,11 @@ package org.eclipse.ui; import org.eclipse.core.resources.IMarker; -/** - * Creates resolutions for a given marker. - * When run, a resolution would typically eliminate +/** + * Creates resolutions for a given marker. + * When run, a resolution would typically eliminate * the need for the marker. - * + * * @since 2.0 */ public interface IMarkerResolutionGenerator { diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/IMarkerResolutionGenerator2.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/IMarkerResolutionGenerator2.java index e50ad558603..311bc185dbd 100644 --- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/IMarkerResolutionGenerator2.java +++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/IMarkerResolutionGenerator2.java @@ -13,11 +13,11 @@ package org.eclipse.ui; import org.eclipse.core.resources.IMarker; -/** - * A marker resolution generator should implement this interface rather than - * <code>IMarkerResolutionGenerator</code> if it can determine whether a particular marker +/** + * A marker resolution generator should implement this interface rather than + * <code>IMarkerResolutionGenerator</code> if it can determine whether a particular marker * has any resolutions more efficiently than computing all the resolutions. - * + * * @since 2.1 */ public interface IMarkerResolutionGenerator2 extends IMarkerResolutionGenerator { diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/IProjectActionFilter.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/IProjectActionFilter.java index 90411f9e21f..f35dc2e6e98 100644 --- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/IProjectActionFilter.java +++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/IProjectActionFilter.java @@ -13,10 +13,10 @@ package org.eclipse.ui; /** * Describes the public attributes for a project and the acceptable values - * each may have. + * each may have. * <p> - * A popup menu extension may use these constants to describe its object target. - * Each identifies an attribute name or possible value. + * A popup menu extension may use these constants to describe its object target. + * Each identifies an attribute name or possible value. * <p> * Clients are not expected to implement this interface. * </p> diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/IResourceActionFilter.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/IResourceActionFilter.java index 58214dd03a0..5a9ed66660a 100644 --- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/IResourceActionFilter.java +++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/IResourceActionFilter.java @@ -12,10 +12,10 @@ package org.eclipse.ui; /** * Describes the public attributes for a resource and the acceptable values - * each may have. + * each may have. * <p> - * A popup menu extension may use these constants to describe its object target. - * Each identifies an attribute name or possible value. + * A popup menu extension may use these constants to describe its object target. + * Each identifies an attribute name or possible value. * <p> * Clients are not expected to implement this interface. * </p> @@ -24,7 +24,7 @@ package org.eclipse.ui; */ public interface IResourceActionFilter extends IActionFilter { /** - * An attribute indicating the file name (value <code>"name"</code>). + * An attribute indicating the file name (value <code>"name"</code>). * The attribute value in xml is unconstrained. "*" may be used at the start or * the end to represent "one or more characters". */ @@ -56,7 +56,7 @@ public interface IResourceActionFilter extends IActionFilter { public static final String PROJECT_NATURE = "projectNature"; //$NON-NLS-1$ /** - * An attribute indicating a persistent property on the selected resource + * An attribute indicating a persistent property on the selected resource * (value <code>"persistentProperty"</code>). * If the value is a simple string, then this simply tests for existence of the property on the resource. * If it has the format <code>"propertyName=propertyValue" this obtains the value of the property @@ -65,7 +65,7 @@ public interface IResourceActionFilter extends IActionFilter { public static final String PERSISTENT_PROPERTY = "persistentProperty"; //$NON-NLS-1$ /** - * An attribute indicating a persistent property on the selected resource's project. + * An attribute indicating a persistent property on the selected resource's project. * (value <code>"projectPersistentProperty"</code>). * If the value is a simple string, then this simply tests for existence of the property on the resource. * If it has the format <code>"propertyName=propertyValue" this obtains the value of the property @@ -74,7 +74,7 @@ public interface IResourceActionFilter extends IActionFilter { public static final String PROJECT_PERSISTENT_PROPERTY = "projectPersistentProperty"; //$NON-NLS-1$ /** - * An attribute indicating a session property on the selected resource + * An attribute indicating a session property on the selected resource * (value <code>"sessionProperty"</code>). * If the value is a simple string, then this simply tests for existence of the property on the resource. * If it has the format <code>"propertyName=propertyValue" this obtains the value of the property @@ -83,7 +83,7 @@ public interface IResourceActionFilter extends IActionFilter { public static final String SESSION_PROPERTY = "sessionProperty"; //$NON-NLS-1$ /** - * An attribute indicating a session property on the selected resource's project. + * An attribute indicating a session property on the selected resource's project. * (value <code>"projectSessionProperty"</code>). * If the value is a simple string, then this simply tests for existence of the property on the resource. * If it has the format <code>"propertyName=propertyValue" this obtains the value of the property diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/IStorageEditorInput.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/IStorageEditorInput.java index 5b87227b8b9..7b7a6b1979c 100644 --- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/IStorageEditorInput.java +++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/IStorageEditorInput.java @@ -21,12 +21,12 @@ import org.eclipse.core.runtime.CoreException; * that are the same. The <code>IWorbenchPage.openEditor</code> APIs * are dependent on this to find an editor with the same input. * </p><p> - * Clients should implement this interface to declare new types of + * Clients should implement this interface to declare new types of * <code>IStorage</code> editor inputs. * </p><p> * File-oriented editors should support this as a valid input type, and display * its content for viewing (but not allow modification). - * Within the editor, the "save" and "save as" operations should create a new + * Within the editor, the "save" and "save as" operations should create a new * file resource within the workspace. * </p><p> * All editor inputs must implement the <code>IAdaptable</code> interface; diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/ResourceWorkingSetFilter.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/ResourceWorkingSetFilter.java index 92a5ce6bf57..60a58a193a1 100644 --- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/ResourceWorkingSetFilter.java +++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/ResourceWorkingSetFilter.java @@ -17,9 +17,9 @@ import org.eclipse.jface.viewers.Viewer; import org.eclipse.jface.viewers.ViewerFilter; /** - * A resource working set filter filters resources from a view that + * A resource working set filter filters resources from a view that * are neither a parent nor children of a working set element. - * + * * @since 2.0 */ public class ResourceWorkingSetFilter extends ViewerFilter { @@ -29,8 +29,8 @@ public class ResourceWorkingSetFilter extends ViewerFilter { /** * Returns the active working set the filter is working with. - * - * @return the active working set + * + * @return the active working set */ public IWorkingSet getWorkingSet() { return workingSet; @@ -38,7 +38,7 @@ public class ResourceWorkingSetFilter extends ViewerFilter { /** * Sets the active working set. - * + * * @param workingSet the working set the filter should work with */ public void setWorkingSet(IWorkingSet workingSet) { @@ -47,7 +47,7 @@ public class ResourceWorkingSetFilter extends ViewerFilter { /** * Determines if an element should be filtered out. - * + * * @see ViewerFilter#select(Viewer, Object, Object) */ @Override @@ -73,13 +73,13 @@ public class ResourceWorkingSetFilter extends ViewerFilter { /** * Returns if the given resource is enclosed by a working set element. * The IContainmentAdapter of each working set element is used for the - * containment test. If there is no IContainmentAdapter for a working - * set element, a simple resource based test is used. - * + * containment test. If there is no IContainmentAdapter for a working + * set element, a simple resource based test is used. + * * @param element resource to test for enclosure by a working set - * element - * @return true if element is enclosed by a working set element and - * false otherwise. + * element + * @return true if element is enclosed by a working set element and + * false otherwise. */ private boolean isEnclosed(IResource element) { IPath elementPath = element.getFullPath(); @@ -96,9 +96,9 @@ public class ResourceWorkingSetFilter extends ViewerFilter { IContainmentAdapter containmentAdapter = (IContainmentAdapter) workingSetElement .getAdapter(IContainmentAdapter.class); - // if there is no IContainmentAdapter defined for the working - // set element type fall back to using resource based - // containment check + // if there is no IContainmentAdapter defined for the working + // set element type fall back to using resource based + // containment check if (containmentAdapter != null) { if (containmentAdapter.contains(workingSetElement, element, IContainmentAdapter.CHECK_CONTEXT @@ -117,17 +117,17 @@ public class ResourceWorkingSetFilter extends ViewerFilter { /** * Returns if the given resource is enclosed by a working set element. - * A resource is enclosed if it is either a parent of a working set + * A resource is enclosed if it is either a parent of a working set * element, a child of a working set element or a working set element * itself. * Simple path comparison is used. This is only guaranteed to return - * correct results for resource working set elements. - * + * correct results for resource working set elements. + * * @param element resource to test for enclosure by a working set * element - * @param elementPath full, absolute path of the element to test - * @return true if element is enclosed by a working set element and - * false otherwise. + * @param elementPath full, absolute path of the element to test + * @return true if element is enclosed by a working set element and + * false otherwise. */ private boolean isEnclosedResource(IResource element, IPath elementPath, IAdaptable workingSetElement) { @@ -155,9 +155,9 @@ public class ResourceWorkingSetFilter extends ViewerFilter { } /** - * Filters out elements that are neither a parent nor a child of + * Filters out elements that are neither a parent nor a child of * a working set element. - * + * * @see ViewerFilter#filter(Viewer, Object, Object[]) */ @Override diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/AddBookmarkAction.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/AddBookmarkAction.java index 27ec4e6937e..ee927a73159 100644 --- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/AddBookmarkAction.java +++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/AddBookmarkAction.java @@ -6,7 +6,7 @@ * http://www.eclipse.org/legal/epl-v10.html * * Contributors: - * IBM Corporation - initial API and implementation + * IBM Corporation - initial API and implementation * Sebastian Davids <sdavids@gmx.de> * - Fix for bug 20510 - Add Bookmark action has wrong label in navigator or * packages view @@ -60,10 +60,10 @@ public class AddBookmarkAction extends SelectionListenerAction { /** * Creates a new bookmark action. By default, prompts the user for the * bookmark name. - * + * * @param shell * the shell for any dialogs - * @deprecated see {@link #AddBookmarkAction(IShellProvider, boolean)} + * @deprecated see {@link #AddBookmarkAction(IShellProvider, boolean)} */ @Deprecated public AddBookmarkAction(Shell shell) { @@ -72,12 +72,12 @@ public class AddBookmarkAction extends SelectionListenerAction { /** * Creates a new bookmark action. - * + * * @param shell * the shell for any dialogs * @param promptForName * whether to ask the user for the bookmark name - * @deprecated see {@link #AddBookmarkAction(IShellProvider, boolean)} + * @deprecated see {@link #AddBookmarkAction(IShellProvider, boolean)} */ @Deprecated public AddBookmarkAction(final Shell shell, boolean promptForName) { @@ -88,13 +88,13 @@ public class AddBookmarkAction extends SelectionListenerAction { public Shell getShell() { return shell; } }; - + initAction(promptForName); } - + /** * Creates a new bookmark action. - * + * * @param provider * the shell provider for any dialogs. Must not be * <code>null</code> diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/AddTaskAction.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/AddTaskAction.java index 20526af44fd..3d1471b99c6 100644 --- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/AddTaskAction.java +++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/AddTaskAction.java @@ -44,7 +44,7 @@ public class AddTaskAction extends SelectionListenerAction { /** * Creates a new instance of the receiver. - * + * * @param shell shell to use to show any dialogs * @deprecated See {@link #AddTaskAction(IShellProvider)} */ @@ -59,10 +59,10 @@ public class AddTaskAction extends SelectionListenerAction { } }; initAction(); } - + /** * Creates a new instance of the receiver. - * + * * @param provider * the IShellProvider to show any dialogs * @since 3.4 @@ -124,7 +124,7 @@ public class AddTaskAction extends SelectionListenerAction { * <code>SelectionListenerAction</code> method enables the action only * if the selection contains a single resource and the resource is * not a closed project. - * + * * @param selection the selection to update the enabled state for */ @Override diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/BuildAction.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/BuildAction.java index 18d4f4c38fc..55a8af087e2 100644 --- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/BuildAction.java +++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/BuildAction.java @@ -82,13 +82,13 @@ public class BuildAction extends WorkspaceAction { private List/*<IBuildConfiguration>*/ projectConfigsToBuild = null; /** - * Creates a new action of the appropriate type. The action id is + * Creates a new action of the appropriate type. The action id is * <code>ID_BUILD</code> for incremental builds and <code>ID_REBUILD_ALL</code> * for full builds. * * @param shell the shell for any dialogs * @param type the type of build; one of - * <code>IncrementalProjectBuilder.INCREMENTAL_BUILD</code> or + * <code>IncrementalProjectBuilder.INCREMENTAL_BUILD</code> or * <code>IncrementalProjectBuilder.FULL_BUILD</code> * @deprecated See {@link #BuildAction(IShellProvider, int)} */ @@ -97,12 +97,12 @@ public class BuildAction extends WorkspaceAction { super(shell, "");//$NON-NLS-1$ initAction(type); } - + /** * Creates a new action of the appropriate type. The action id is * <code>ID_BUILD</code> for incremental builds and * <code>ID_REBUILD_ALL</code> for full builds. - * + * * @param provider * the shell provider for any dialogs * @param type @@ -186,7 +186,7 @@ public class BuildAction extends WorkspaceAction { } /** - * This collection of project build configs, derived from the selected + * This collection of project build configs, derived from the selected * resources, is passed to the workspace for building. The Workspace * is responsible for resolving references. * @return List of project build configurations to build. @@ -246,7 +246,7 @@ public class BuildAction extends WorkspaceAction { } return super.isEnabled(); } - + /** * Returns whether the user's preference is set to automatically save modified * resources before a manual build is done. @@ -310,7 +310,7 @@ public class BuildAction extends WorkspaceAction { monitor.beginTask("", 10000); //$NON-NLS-1$ monitor.setTaskName(getOperationMessage()); try { - // Backwards compatibility: check shouldPerformResourcePruning(). + // Backwards compatibility: check shouldPerformResourcePruning(). // Previously if this returned true, the full reference graph is built, otherwise just build the selected configurations ResourcesPlugin.getWorkspace().build(configs, kind, shouldPerformResourcePruning(), new SubProgressMonitor(monitor, 10000)); } catch (CoreException e) { diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/CloseResourceAction.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/CloseResourceAction.java index 85d9aa6e73e..50386d1fd4f 100644 --- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/CloseResourceAction.java +++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/CloseResourceAction.java @@ -64,7 +64,7 @@ public class CloseResourceAction extends WorkspaceAction implements } /** - * Override super constructor to allow subclass to + * Override super constructor to allow subclass to * override with unique text. * @deprecated See {@link #CloseResourceAction(IShellProvider, String)} */ @@ -72,10 +72,10 @@ public class CloseResourceAction extends WorkspaceAction implements protected CloseResourceAction(Shell shell, String text) { super(shell, text); } - + /** * Create the new action. - * + * * @param provider * the shell provider for any dialogs * @since 3.4 @@ -84,10 +84,10 @@ public class CloseResourceAction extends WorkspaceAction implements super(provider, IDEWorkbenchMessages.CloseResourceAction_text); initAction(); } - + /** * Provide text to the action. - * + * * @param provider * the shell provider for any dialogs * @param text @@ -104,7 +104,7 @@ public class CloseResourceAction extends WorkspaceAction implements PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IIDEHelpContextIds.CLOSE_RESOURCE_ACTION); } - + @Override protected String getOperationMessage() { return IDEWorkbenchMessages.CloseResourceAction_operationMessage; @@ -126,9 +126,9 @@ public class CloseResourceAction extends WorkspaceAction implements ((IProject) resource).close(monitor); } - /** + /** * The implementation of this <code>WorkspaceAction</code> method - * method saves and closes the resource's dirty editors before closing + * method saves and closes the resource's dirty editors before closing * it. */ @Override @@ -214,22 +214,22 @@ public class CloseResourceAction extends WorkspaceAction implements } } } - - + + @Override protected synchronized List getSelectedResources() { return super.getSelectedResources(); } - + @Override protected synchronized List getSelectedNonResources() { return super.getSelectedNonResources(); } - + /** * Returns the model provider ids that are known to the client * that instantiated this operation. - * + * * @return the model provider ids that are known to the client * that instantiated this operation. * @since 3.2 @@ -242,7 +242,7 @@ public class CloseResourceAction extends WorkspaceAction implements * Sets the model provider ids that are known to the client * that instantiated this operation. Any potential side effects * reported by these models during validation will be ignored. - * + * * @param modelProviderIds the model providers known to the client * who is using this operation. * @since 3.2 @@ -250,10 +250,10 @@ public class CloseResourceAction extends WorkspaceAction implements public void setModelProviderIds(String[] modelProviderIds) { this.modelProviderIds = modelProviderIds; } - + /** * Validates the operation against the model providers. - * + * * @return whether the operation should proceed */ private boolean validateClose() { diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/CloseUnrelatedProjectsAction.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/CloseUnrelatedProjectsAction.java index a03b81871de..fb739f3b7a0 100644 --- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/CloseUnrelatedProjectsAction.java +++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/CloseUnrelatedProjectsAction.java @@ -38,13 +38,13 @@ import org.eclipse.ui.internal.ide.misc.DisjointSet; /** * This action closes all projects that are unrelated to the selected projects. A - * project is unrelated if it is not directly or transitively referenced by one + * project is unrelated if it is not directly or transitively referenced by one * of the selected projects, and does not directly or transitively reference * one of the selected projects. * <p> * This class may be instantiated; it is not intended to be subclassed. * </p> - * + * * @see IDEActionFactory#CLOSE_UNRELATED_PROJECTS * @since 3.3 */ @@ -60,7 +60,7 @@ public class CloseUnrelatedProjectsAction extends CloseResourceAction { private List oldSelection = Collections.EMPTY_LIST; - + /** * Builds the connected component set for the input projects. * The result is a DisjointSet where all related projects belong @@ -94,11 +94,11 @@ public class CloseUnrelatedProjectsAction extends CloseResourceAction { /** * Creates this action. - * + * * @param shell * The shell to use for parenting any dialogs created by this * action. - * + * * @deprecated {@link #CloseUnrelatedProjectsAction(IShellProvider)} */ @Deprecated @@ -106,10 +106,10 @@ public class CloseUnrelatedProjectsAction extends CloseResourceAction { super(shell, IDEWorkbenchMessages.CloseUnrelatedProjectsAction_text); initAction(); } - + /** * Creates this action. - * + * * @param provider * The shell to use for parenting any dialogs created by this * action. @@ -119,17 +119,17 @@ public class CloseUnrelatedProjectsAction extends CloseResourceAction { super(provider, IDEWorkbenchMessages.CloseUnrelatedProjectsAction_text); initAction(); } - + @Override public void run() { if(promptForConfirmation()) super.run(); } - + /** * Returns whether to close unrelated projects. * Consults the preference and prompts the user if necessary. - * + * * @return <code>true</code> if unrelated projects should be closed, and * <code>false</code> otherwise. */ diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/CopyFilesAndFoldersOperation.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/CopyFilesAndFoldersOperation.java index 9ff0196c2fb..ffec24e6a1c 100644 --- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/CopyFilesAndFoldersOperation.java +++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/CopyFilesAndFoldersOperation.java @@ -125,7 +125,7 @@ public class CopyFilesAndFoldersOperation { /** * Returns a new name for a copy of the resource at the given path in the * given workspace. This name is determined automatically. - * + * * @param originalName * the full path of the resource * @param workspace @@ -168,7 +168,7 @@ public class CopyFilesAndFoldersOperation { /** * Creates a new operation initialized with a shell. - * + * * @param shell * parent shell for error dialogs */ @@ -179,7 +179,7 @@ public class CopyFilesAndFoldersOperation { /** * Returns whether this operation is able to perform on-the-fly * auto-renaming of resources with name collisions. - * + * * @return <code>true</code> if auto-rename is supported, and * <code>false</code> otherwise */ @@ -189,7 +189,7 @@ public class CopyFilesAndFoldersOperation { /** * Returns the message for querying deep copy/move of a linked resource. - * + * * @param source * resource the query is made for * @return the deep query message @@ -203,7 +203,7 @@ public class CopyFilesAndFoldersOperation { /** * Checks whether the infos exist. - * + * * @param stores * the file infos to test * @return Multi status with one error message for each missing file. @@ -228,7 +228,7 @@ public class CopyFilesAndFoldersOperation { /** * Checks whether the resources with the given names exist. - * + * * @param resources * IResources to checl * @return Multi status with one error message for each missing file. @@ -271,7 +271,7 @@ public class CopyFilesAndFoldersOperation { /** * Check if the user wishes to overwrite the supplied resource or all * resources. - * + * * @param source * the source resource * @param destination @@ -363,7 +363,7 @@ public class CopyFilesAndFoldersOperation { /** * Recursively collects existing files in the specified destination path. - * + * * @param destinationPath * destination path to check for existing files * @param copyResources @@ -418,14 +418,14 @@ public class CopyFilesAndFoldersOperation { /** * Copies the resources to the given destination. This method is called * recursively to merge folders during folder copy. - * + * * @param resources * the resources to copy * @param destination * destination to which resources will be copied * @param subMonitor * a progress monitor for showing progress and for cancelation - * + * * @deprecated As of 3.3, the work is performed in the undoable operation * created in * {@link #getUndoableCopyOrMoveOperation(IResource[], IPath)} @@ -514,7 +514,7 @@ public class CopyFilesAndFoldersOperation { * Transform an absolute path URI to a relative path one (i.e. from * "C:\foo\bar\file.txt" to "VAR\file.txt" granted that the relativeVariable * is "VAR" and points to "C:\foo\bar\"). - * + * * @param locationURI * @return an URI that was made relative to a variable */ @@ -533,7 +533,7 @@ public class CopyFilesAndFoldersOperation { /** * Sets the content of the existing file to the source file content. - * + * * @param source * source file to copy * @param existing @@ -562,7 +562,7 @@ public class CopyFilesAndFoldersOperation { * Copies the given resources to the destination. The current Thread is * halted while the resources are copied using a WorkspaceModifyOperation. * This method should be called from the UIThread. - * + * * @param resources * the resources to copy * @param destination @@ -582,7 +582,7 @@ public class CopyFilesAndFoldersOperation { * without forking a new Thread or blocking using a * WorkspaceModifyOperation. It recommended that this method only be called * from a {@link WorkspaceJob} to avoid possible deadlock. - * + * * @param resources * the resources to copy * @param destination @@ -602,7 +602,7 @@ public class CopyFilesAndFoldersOperation { /** * Copies the given resources to the destination. - * + * * @param resources * the resources to copy * @param destination @@ -655,7 +655,7 @@ public class CopyFilesAndFoldersOperation { /** * Return whether the operation is a move or a copy - * + * * @return whether the operation is a move or a copy * @since 3.2 */ @@ -682,7 +682,7 @@ public class CopyFilesAndFoldersOperation { * is halted while the resources are copied using a * WorkspaceModifyOperation. This method should be called from the UI * Thread. - * + * * @param uris * the URIs to copy * @param destination @@ -706,7 +706,7 @@ public class CopyFilesAndFoldersOperation { * new Thread or blocking using a WorkspaceModifyOperation. It is * recommended that this method only be called from a {@link WorkspaceJob} * to avoid possible deadlock. - * + * * @param uris * the URIs to copy * @param destination @@ -730,7 +730,7 @@ public class CopyFilesAndFoldersOperation { /** * Build the collection of fileStores that map to fileNames. If any of them * cannot be found then match then return <code>null</code>. - * + * * @param uris * @return IFileStore[] */ @@ -760,7 +760,7 @@ public class CopyFilesAndFoldersOperation { * destination or creates links or shows a dialog that lets the user choose. The current thread * is halted while the resources are copied using a {@link WorkspaceModifyOperation}. This * method should be called from the UI Thread. - * + * * @param fileNames names of the files to copy * @param destination destination to which files will be copied * @param dropOperation the drop operation ({@link DND#DROP_NONE}, {@link DND#DROP_MOVE} @@ -822,7 +822,7 @@ public class CopyFilesAndFoldersOperation { * Copies the given files and folders to the destination. The current Thread is halted while the * resources are copied using a WorkspaceModifyOperation. This method should be called from the * UI Thread. - * + * * @param fileNames names of the files to copy * @param destination destination to which files will be copied * @see WorkspaceModifyOperation @@ -844,7 +844,7 @@ public class CopyFilesAndFoldersOperation { * new Thread or blocking using a WorkspaceModifyOperation. It is * recommended that this method only be called from a {@link WorkspaceJob} * to avoid possible deadlock. - * + * * @param fileNames * names of the files to copy * @param destination @@ -868,7 +868,7 @@ public class CopyFilesAndFoldersOperation { /** * Build the collection of fileStores that map to fileNames. If any of them * cannot be found then match then return null. - * + * * @param fileNames * @return IFileStore[] */ @@ -887,7 +887,7 @@ public class CopyFilesAndFoldersOperation { /** * Report that a file info could not be found. - * + * * @param fileName */ private void reportFileInfoNotFound(final String fileName) { @@ -909,7 +909,7 @@ public class CopyFilesAndFoldersOperation { /** * Copies the given files and folders to the destination. - * + * * @param stores * the file stores to copy * @param destination @@ -960,7 +960,7 @@ public class CopyFilesAndFoldersOperation { /** * Display the supplied status in an error dialog. - * + * * @param status * The status to display */ @@ -977,7 +977,7 @@ public class CopyFilesAndFoldersOperation { /** * Creates a file or folder handle for the source resource as if it were to * be created in the destination container. - * + * * @param destination * destination container * @param source @@ -1001,7 +1001,7 @@ public class CopyFilesAndFoldersOperation { /** * Removes the given resource from the workspace. - * + * * @param resource * resource to remove from the workspace * @param monitor @@ -1039,7 +1039,7 @@ public class CopyFilesAndFoldersOperation { /** * Opens an error dialog to display the given message. - * + * * @param message * the error message to show */ @@ -1055,7 +1055,7 @@ public class CopyFilesAndFoldersOperation { /** * Returns the resource either casted to or adapted to an IFile. - * + * * @param resource * resource to cast/adapt * @return the resource either casted to or adapted to an IFile. @@ -1070,7 +1070,7 @@ public class CopyFilesAndFoldersOperation { /** * Returns java.io.File objects for the given file names. - * + * * @param fileNames * files to return File object for. * @return java.io.File objects for the given file names. @@ -1090,7 +1090,7 @@ public class CopyFilesAndFoldersOperation { /** * Returns the resource either casted to or adapted to an IFolder. - * + * * @param resource * resource to cast/adapt * @return the resource either casted to or adapted to an IFolder. @@ -1106,7 +1106,7 @@ public class CopyFilesAndFoldersOperation { /** * Returns a new name for a copy of the resource at the given path in the * given workspace. - * + * * @param originalName * the full path of the resource * @param workspace @@ -1149,7 +1149,7 @@ public class CopyFilesAndFoldersOperation { .bind( IDEWorkbenchMessages.CopyFilesAndFoldersOperation_inputDialogMessage, resource.getName()), initial, validator) { - + @Override protected Control createContents(Composite parent) { Control contents= super.createContents(parent); @@ -1177,7 +1177,7 @@ public class CopyFilesAndFoldersOperation { /** * Returns the task title for this operation's progress dialog. - * + * * @return the task title */ protected String getOperationTitle() { @@ -1186,7 +1186,7 @@ public class CopyFilesAndFoldersOperation { /** * Returns the message for this operation's problems dialog. - * + * * @return the problems message */ protected String getProblemsMessage() { @@ -1195,7 +1195,7 @@ public class CopyFilesAndFoldersOperation { /** * Returns the title for this operation's problems dialog. - * + * * @return the problems dialog title */ protected String getProblemsTitle() { @@ -1206,7 +1206,7 @@ public class CopyFilesAndFoldersOperation { * Returns whether the source file in a destination collision will be * validateEdited together with the collision itself. Returns false. Should * return true if the source file is to be deleted after the operation. - * + * * @return boolean <code>true</code> if the source file in a destination * collision should be validateEdited. <code>false</code> if only * the destination should be validated. @@ -1218,7 +1218,7 @@ public class CopyFilesAndFoldersOperation { /** * Returns whether the given resources are either both linked or both * unlinked. - * + * * @param source * source resource * @param destination @@ -1238,7 +1238,7 @@ public class CopyFilesAndFoldersOperation { /** * Returns whether the given resource is accessible. Files and folders are * always considered accessible and a project is accessible if it is open. - * + * * @param resource * the resource * @return <code>true</code> if the resource is accessible, and @@ -1260,7 +1260,7 @@ public class CopyFilesAndFoldersOperation { /** * Returns whether any of the given source resources are being recopied to * their current container. - * + * * @param sourceResources * the source resources * @param destination @@ -1297,7 +1297,7 @@ public class CopyFilesAndFoldersOperation { * Note: the destination container may need to be created prior to copying * the resources. * </p> - * + * * @param resources * the resources to copy * @param destination @@ -1342,7 +1342,7 @@ public class CopyFilesAndFoldersOperation { * Note: the destination container may need to be created prior to copying * the resources. * </p> - * + * * @param resources * the resources to copy * @param destination @@ -1389,7 +1389,7 @@ public class CopyFilesAndFoldersOperation { /** * Performs an import of the given stores into the provided container. * Returns a status indicating if the import was successful. - * + * * @param stores * stores that are to be imported * @param target @@ -1479,7 +1479,7 @@ public class CopyFilesAndFoldersOperation { /** * Records the core exception to be displayed to the user once the action is * finished. - * + * * @param error * a <code>CoreException</code> */ @@ -1497,7 +1497,7 @@ public class CopyFilesAndFoldersOperation { * <p> * Note this method is for internal use only. It is not API. * </p> - * + * * @param destination * the destination container * @param sourceResources @@ -1573,7 +1573,7 @@ public class CopyFilesAndFoldersOperation { /** * Validates that the given source resources can be copied to the * destination as decided by the VCM provider. - * + * * @param destination * copy destination * @param sourceResources @@ -1605,7 +1605,7 @@ public class CopyFilesAndFoldersOperation { * <p> * Note this method is for internal use only. It is not API. * </p> - * + * * @param destination * the destination container * @param sourceNames @@ -1642,7 +1642,7 @@ public class CopyFilesAndFoldersOperation { * Eclipse compiler with regards to visibility and type resolution when * linking. * </p> - * + * * @param destination * the destination container * @param sourceStores @@ -1691,7 +1691,7 @@ public class CopyFilesAndFoldersOperation { /** * Check if the destination is valid for the given source resource. - * + * * @param destination * destination container of the operation * @param source @@ -1741,7 +1741,7 @@ public class CopyFilesAndFoldersOperation { /** * Returns whether moving all of the given source resources to the given * destination container could be done without causing name collisions. - * + * * @param destination * the destination container * @param sourceResources @@ -1869,7 +1869,7 @@ public class CopyFilesAndFoldersOperation { /** * Returns the model provider ids that are known to the client that * instantiated this operation. - * + * * @return the model provider ids that are known to the client that * instantiated this operation. * @since 3.2 @@ -1882,7 +1882,7 @@ public class CopyFilesAndFoldersOperation { * Sets the model provider ids that are known to the client that * instantiated this operation. Any potential side effects reported by these * models during validation will be ignored. - * + * * @param modelProviderIds * the model providers known to the client who is using this * operation. @@ -1897,7 +1897,7 @@ public class CopyFilesAndFoldersOperation { * destination. The current Thread is halted while the resources are copied * using a WorkspaceModifyOperation. This method should be called from the * UI Thread. - * + * * @param fileNames * names of the files to copy * @param destination @@ -1923,7 +1923,7 @@ public class CopyFilesAndFoldersOperation { * current Thread is halted while the resources are copied using a * WorkspaceModifyOperation. This method should be called from the UI * Thread. - * + * * @param fileNames * names of the files to copy * @param destination @@ -1946,7 +1946,7 @@ public class CopyFilesAndFoldersOperation { /** * Set whether or not virtual folders and links will be created under the destination * container. - * + * * @param value * @since 3.6 */ @@ -1956,7 +1956,7 @@ public class CopyFilesAndFoldersOperation { /** * Set whether or not links will be created under the destination container. - * + * * @param value * @since 3.6 */ @@ -1966,7 +1966,7 @@ public class CopyFilesAndFoldersOperation { /** * Set a variable relative to which the links are created - * + * * @param variable * @since 3.6 */ @@ -1978,7 +1978,7 @@ public class CopyFilesAndFoldersOperation { * Returns an AbstractWorkspaceOperation suitable for performing the move or * copy operation that will move or copy the given resources to the given * destination path. - * + * * @param resources * the resources to be moved or copied * @param destinationPath diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/CopyProjectAction.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/CopyProjectAction.java index 2fa3b311195..4e97004b1ca 100644 --- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/CopyProjectAction.java +++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/CopyProjectAction.java @@ -82,10 +82,10 @@ public class CopyProjectAction extends SelectionListenerAction { /** * Creates a new project copy action with the default text. - * + * * @param shell * the shell for any dialogs - * + * * @deprecated {@link #CopyProjectAction(IShellProvider)} */ @Deprecated @@ -95,7 +95,7 @@ public class CopyProjectAction extends SelectionListenerAction { /** * Creates a new project copy action with the default text. - * + * * @param provider * the IShellProvider for any dialogs * @since 3.4 @@ -103,16 +103,16 @@ public class CopyProjectAction extends SelectionListenerAction { public CopyProjectAction(IShellProvider provider){ this(provider, COPY_TITLE); } - + /** * Creates a new project copy action with the given text. - * + * * @param shell * the shell for any dialogs * @param name * the string used as the text for the action, or * <code>null</code> if there is no text - * + * * @deprecated {@link #CopyProjectAction(IShellProvider, String)} */ @Deprecated @@ -126,9 +126,9 @@ public class CopyProjectAction extends SelectionListenerAction { } }; initAction(); } - + /** - * + * * @param provider * the IShellProvider for any dialogs * @param name @@ -141,7 +141,7 @@ public class CopyProjectAction extends SelectionListenerAction { shellProvider = provider; initAction(); } - + private void initAction(){ shell = shellProvider.getShell(); setToolTipText(COPY_TOOL_TIP); @@ -153,7 +153,7 @@ public class CopyProjectAction extends SelectionListenerAction { /** * Create a new IProjectDescription for the copy using the name and path * selected from the dialog. - * + * * @return IProjectDescription * @param project * the source project @@ -183,7 +183,7 @@ public class CopyProjectAction extends SelectionListenerAction { * <p> * Note that this method must be called from UI thread. * </p> - * + * * @param message * the message */ @@ -193,9 +193,9 @@ public class CopyProjectAction extends SelectionListenerAction { /** * Return the title of the errors dialog. - * + * * @return java.lang.String - * + * * @deprecated As of 3.3, the undoable operation created by this action * handles error dialogs. */ @@ -206,7 +206,7 @@ public class CopyProjectAction extends SelectionListenerAction { /** * Get the plugin used by a copy action - * + * * @return AbstractUIPlugin */ protected org.eclipse.ui.plugin.AbstractUIPlugin getPlugin() { @@ -215,7 +215,7 @@ public class CopyProjectAction extends SelectionListenerAction { /** * Copies the project to the new values. - * + * * @param project * the project to copy * @param projectName @@ -265,7 +265,7 @@ public class CopyProjectAction extends SelectionListenerAction { /** * Query for a new project name and destination using the parameters in the * existing project. - * + * * @return Object [] or null if the selection is cancelled * @param project * the project we are going to copy. @@ -281,7 +281,7 @@ public class CopyProjectAction extends SelectionListenerAction { /** * Records the core exception to be displayed to the user once the action is * finished. - * + * * @param error * a <code>CoreException</code> */ @@ -352,7 +352,7 @@ public class CopyProjectAction extends SelectionListenerAction { /** * Returns the model provider ids that are known to the client that * instantiated this operation. - * + * * @return the model provider ids that are known to the client that * instantiated this operation. * @since 3.2 @@ -365,7 +365,7 @@ public class CopyProjectAction extends SelectionListenerAction { * Sets the model provider ids that are known to the client that * instantiated this operation. Any potential side effects reported by these * models during validation will be ignored. - * + * * @param modelProviderIds * the model providers known to the client who is using this * operation. diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/CopyProjectOperation.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/CopyProjectOperation.java index c6fdeb601bd..af921d71a2a 100644 --- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/CopyProjectOperation.java +++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/CopyProjectOperation.java @@ -62,7 +62,7 @@ public class CopyProjectOperation { /** * Validates that the copy of the project will not have undesirable side * effects. - * + * * @param shell * a shell * @param project @@ -92,7 +92,7 @@ public class CopyProjectOperation { /** * Create a new operation initialized with a shell. - * + * * @param shell * parent shell for error dialogs */ @@ -102,7 +102,7 @@ public class CopyProjectOperation { /** * Paste a copy of the project on the clipboard to the workspace. - * + * * @param project * The project that is beign copied. */ @@ -142,7 +142,7 @@ public class CopyProjectOperation { /** * Copies the project to the new values. - * + * * @param project * the project to copy * @param projectName @@ -225,7 +225,7 @@ public class CopyProjectOperation { /** * Returns the model provider ids that are known to the client * that instantiated this operation. - * + * * @return the model provider ids that are known to the client * that instantiated this operation. * @since 3.2 @@ -238,7 +238,7 @@ public class CopyProjectOperation { * Sets the model provider ids that are known to the client that * instantiated this operation. Any potential side effects reported by these * models during validation will be ignored. - * + * * @param modelProviderIds * the model providers known to the client who is using this * operation. diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/CopyResourceAction.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/CopyResourceAction.java index 956113e4b54..24300b54586 100644 --- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/CopyResourceAction.java +++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/CopyResourceAction.java @@ -82,17 +82,17 @@ public class CopyResourceAction extends SelectionListenerAction implements * Creates a new action. * * @param shell the shell for any dialogs - * + * * @deprecated {@link #CopyResourceAction(IShellProvider)} */ @Deprecated public CopyResourceAction(Shell shell) { this(shell, IDEWorkbenchMessages.CopyResourceAction_title); } - + /** * Creates a new action - * + * * @param provider the shell for any dialogs * @since 3.4 */ @@ -104,9 +104,9 @@ public class CopyResourceAction extends SelectionListenerAction implements * Creates a new action with the given text. * * @param shell the shell for any dialogs - * @param name the string used as the name for the action, + * @param name the string used as the name for the action, * or <code>null</code> if there is no name - * + * * @deprecated {@link #CopyResourceAction(IShellProvider, String)} */ @Deprecated @@ -121,12 +121,12 @@ public class CopyResourceAction extends SelectionListenerAction implements }; initAction(); } - + /** * Creates a new action with the given text - * + * * @param provider the shell for any dialogs - * @param name the string used as the name for the action, + * @param name the string used as the name for the action, * or <code>null</code> if there is no name */ CopyResourceAction(IShellProvider provider, String name){ @@ -138,13 +138,13 @@ public class CopyResourceAction extends SelectionListenerAction implements /** * Returns the operation to perform when this action runs. - * + * * @return the operation to perform when this action runs. */ protected CopyFilesAndFoldersOperation createOperation() { return new CopyFilesAndFoldersOperation(getShell()); } - + private void initAction(){ setToolTipText(IDEWorkbenchMessages.CopyResourceAction_toolTip); setId(CopyResourceAction.ID); @@ -167,9 +167,9 @@ public class CopyResourceAction extends SelectionListenerAction implements } /** - * Returns an array of resources to use for the operation from + * Returns an array of resources to use for the operation from * the provided list. - * + * * @param resourceList The list of resources to converted into an array. * @return an array of resources to use for the operation */ @@ -187,7 +187,7 @@ public class CopyResourceAction extends SelectionListenerAction implements } /** - * The <code>CopyResourceAction</code> implementation of this + * The <code>CopyResourceAction</code> implementation of this * <code>ISelectionValidator</code> method checks whether the given path * is a good place to copy the selected resources. */ @@ -198,7 +198,7 @@ public class CopyResourceAction extends SelectionListenerAction implements .findMember((IPath) destination); if (container != null) { - // create a new operation here. + // create a new operation here. // isValid is API and may be called in any context. CopyFilesAndFoldersOperation newOperation = createOperation(); List sources = getSelectedResources(); @@ -212,7 +212,7 @@ public class CopyResourceAction extends SelectionListenerAction implements /** * Asks the user for the destination of this action. * - * @return the path on an existing or new resource container, or + * @return the path on an existing or new resource container, or * <code>null</code> if the operation should be abandoned */ IPath queryDestinationResource() { @@ -240,7 +240,7 @@ public class CopyResourceAction extends SelectionListenerAction implements operation.setModelProviderIds(getModelProviderIds()); // WARNING: do not query the selected resources more than once - // since the selection may change during the run, + // since the selection may change during the run, // e.g. due to window activation when the prompt dialog is dismissed. // For more details, see Bug 60606 [Navigator] (data loss) Navigator deletes/moves the wrong file List sources = getSelectedResources(); @@ -265,7 +265,7 @@ public class CopyResourceAction extends SelectionListenerAction implements /** * Runs the operation created in <code>createOperation</code> - * + * * @param resources source resources to pass to the operation * @param destination destination container to pass to the operation */ @@ -275,8 +275,8 @@ public class CopyResourceAction extends SelectionListenerAction implements /** * The <code>CopyResourceAction</code> implementation of this - * <code>SelectionListenerAction</code> method enables this action only if - * all of the one or more selections are sibling resources which are + * <code>SelectionListenerAction</code> method enables this action only if + * all of the one or more selections are sibling resources which are * local (depth infinity). */ @Override @@ -314,11 +314,11 @@ public class CopyResourceAction extends SelectionListenerAction implements } return true; } - + /** * Returns the model provider ids that are known to the client * that instantiated this operation. - * + * * @return the model provider ids that are known to the client * that instantiated this operation. * @since 3.2 @@ -331,7 +331,7 @@ public class CopyResourceAction extends SelectionListenerAction implements * Sets the model provider ids that are known to the client * that instantiated this operation. Any potential side effects * reported by these models during validation will be ignored. - * + * * @param modelProviderIds the model providers known to the client * who is using this operation. * @since 3.2 diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/CreateFileAction.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/CreateFileAction.java index d6885c172be..9b63645c08b 100644 --- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/CreateFileAction.java +++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/CreateFileAction.java @@ -29,7 +29,7 @@ import org.eclipse.ui.wizards.newresource.BasicNewFileResourceWizard; * <p> * This class may be instantiated; it is not intended to be subclassed. * </p> - * + * * @deprecated should use NewWizardMenu to populate a New submenu instead (see Navigator view) * @noextend This class is not intended to be subclassed by clients. */ @@ -45,12 +45,12 @@ public class CreateFileAction extends SelectionListenerAction { * The shell in which to show any dialogs. */ protected IShellProvider shellProvider; - + /** * Creates a new action for creating a file resource. * * @param shell the shell for any dialogs - * + * * @deprecated {@link #CreateFileAction(IShellProvider)} */ @Deprecated @@ -68,9 +68,9 @@ public class CreateFileAction extends SelectionListenerAction { /** * Creates a new action for creating a file resource. - * + * * @param provider the shell for any dialogs - * + * * @deprecated see deprecated tag on class * @since 3.4 */ diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/CreateFolderAction.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/CreateFolderAction.java index f3ba593fb52..a0bc426fbf5 100644 --- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/CreateFolderAction.java +++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/CreateFolderAction.java @@ -31,7 +31,7 @@ import org.eclipse.ui.wizards.newresource.BasicNewFolderResourceWizard; * <p> * This class may be instantiated; it is not intended to be subclassed. * </p> - * + * * @deprecated should use NewWizardMenu to populate a New submenu instead (see Navigator view) * @noextend This class is not intended to be subclassed by clients. */ @@ -48,12 +48,12 @@ public class CreateFolderAction extends SelectionListenerAction { * The shell in which to show any dialogs. */ protected IShellProvider shellProvider; - + /** * Creates a new action for creating a folder resource. * * @param shell the shell for any dialogs - * + * * @deprecated {@link #CreateFolderAction(IShellProvider)} */ @Deprecated @@ -71,9 +71,9 @@ public class CreateFolderAction extends SelectionListenerAction { /** * Creates a new action for creating a folder resource. - * + * * @param provider the shell for any dialogs - * + * * @deprecated see deprecated tag on class * @since 3.4 */ @@ -84,7 +84,7 @@ public class CreateFolderAction extends SelectionListenerAction { shellProvider = provider; initAction(); } - + /** * Initializes for the constructor. */ @@ -96,7 +96,7 @@ public class CreateFolderAction extends SelectionListenerAction { PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IIDEHelpContextIds.CREATE_FOLDER_ACTION); } - + /** * The <code>CreateFolderAction</code> implementation of this * <code>IAction</code> method opens a <code>BasicNewFolderResourceWizard</code> diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/DeleteResourceAction.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/DeleteResourceAction.java index 9c03bf23396..c7f7c753d95 100644 --- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/DeleteResourceAction.java +++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/DeleteResourceAction.java @@ -137,7 +137,7 @@ public class DeleteResourceAction extends SelectionListenerAction { } radio1.setText(text1); radio1.setFont(parent.getFont()); - + // Add explanatory label that the action cannot be undone. // We can't put multi-line formatted text in a radio button, // so we have to create a separate label. @@ -202,7 +202,7 @@ public class DeleteResourceAction extends SelectionListenerAction { /** * Set this delete dialog into testing mode. It won't pop up, and it * returns true for deleteContent. - * + * * @param t * the testing mode */ @@ -216,7 +216,7 @@ public class DeleteResourceAction extends SelectionListenerAction { */ public static final String ID = PlatformUI.PLUGIN_ID + ".DeleteResourceAction";//$NON-NLS-1$ - + private IShellProvider shellProvider = null; /** @@ -234,7 +234,7 @@ public class DeleteResourceAction extends SelectionListenerAction { /** * Creates a new delete resource action. - * + * * @param shell * the shell for any dialogs * @deprecated Should take an IShellProvider, see @@ -255,7 +255,7 @@ public class DeleteResourceAction extends SelectionListenerAction { /** * Creates a new delete resource action. - * + * * @param provider * the shell provider to use. Must not be <code>null</code>. * @since 3.4 @@ -266,7 +266,7 @@ public class DeleteResourceAction extends SelectionListenerAction { initAction(); setShellProvider(provider); } - + /** * Action initialization. */ @@ -276,14 +276,14 @@ public class DeleteResourceAction extends SelectionListenerAction { IIDEHelpContextIds.DELETE_RESOURCE_ACTION); setId(ID); } - + private void setShellProvider(IShellProvider provider) { shellProvider = provider; } /** * Returns whether delete can be performed on the current selection. - * + * * @param resources * the selected resources * @return <code>true</code> if the resources can be deleted, and @@ -312,7 +312,7 @@ public class DeleteResourceAction extends SelectionListenerAction { /** * Returns whether the selection contains linked resources. - * + * * @param resources * the selected resources * @return <code>true</code> if the resources contain linked resources, @@ -330,7 +330,7 @@ public class DeleteResourceAction extends SelectionListenerAction { /** * Returns whether the selection contains only non-projects. - * + * * @param resources * the selected resources * @return <code>true</code> if the resources contains only non-projects, @@ -348,7 +348,7 @@ public class DeleteResourceAction extends SelectionListenerAction { /** * Returns whether the selection contains only projects. - * + * * @param resources * the selected resources * @return <code>true</code> if the resources contains only projects, and @@ -362,7 +362,7 @@ public class DeleteResourceAction extends SelectionListenerAction { /** * Asks the user to confirm a delete operation. - * + * * @param resources * the selected resources * @return <code>true</code> if the user says to go ahead, and @@ -373,13 +373,13 @@ public class DeleteResourceAction extends SelectionListenerAction { return confirmDeleteProjects(resources); } return confirmDeleteNonProjects(resources); - + } /** * Asks the user to confirm a delete operation, where the selection contains * no projects. - * + * * @param resources * the selected resources * @return <code>true</code> if the user says to go ahead, and @@ -420,7 +420,7 @@ public class DeleteResourceAction extends SelectionListenerAction { /** * Asks the user to confirm a delete operation, where the selection contains * only projects. Also remembers whether project content should be deleted. - * + * * @param resources * the selected resources * @return <code>true</code> if the user says to go ahead, and @@ -439,7 +439,7 @@ public class DeleteResourceAction extends SelectionListenerAction { /** * Return an array of the currently selected resources. - * + * * @return the selected resources */ private IResource[] getSelectedResourcesArray() { @@ -451,7 +451,7 @@ public class DeleteResourceAction extends SelectionListenerAction { /** * Returns a bit-mask containing the types of resources in the selection. - * + * * @param resources * the selected resources */ @@ -472,7 +472,7 @@ public class DeleteResourceAction extends SelectionListenerAction { return; } } - + // WARNING: do not query the selected resources more than once // since the selection may change during the run, // e.g. due to window activation when the prompt dialog is dismissed. @@ -491,7 +491,7 @@ public class DeleteResourceAction extends SelectionListenerAction { scheduleDeleteJob(resources); return Status.OK_STATUS; } - + @Override public boolean belongsTo(Object family) { if (IDEWorkbenchMessages.DeleteResourceAction_jobName @@ -508,7 +508,7 @@ public class DeleteResourceAction extends SelectionListenerAction { /** * Schedule a job to delete the resources to delete. - * + * * @param resourcesToDelete */ private void scheduleDeleteJob(final IResource[] resourcesToDelete) { @@ -519,7 +519,7 @@ public class DeleteResourceAction extends SelectionListenerAction { @Override public IStatus run(final IProgressMonitor monitor) { try { - final DeleteResourcesOperation op = + final DeleteResourcesOperation op = new DeleteResourcesOperation(resourcesToDelete, IDEWorkbenchMessages.DeleteResourceAction_operationLabel, deleteContent); op.setModelProviderIds(getModelProviderIds()); // If we are deleting projects and their content, do not @@ -536,9 +536,9 @@ public class DeleteResourceAction extends SelectionListenerAction { IProgressMonitor monitor) { return op.computeExecutionStatus(monitor); } - + }; - + statusJob.setSystem(true); statusJob.schedule(); try {//block until the status is ready @@ -546,19 +546,19 @@ public class DeleteResourceAction extends SelectionListenerAction { } catch (InterruptedException e) { //Do nothing as status will be a cancel } - + if (statusJob.getResult().isOK()) { return op.execute(monitor, WorkspaceUndoUtil.getUIInfoAdapter(shellProvider.getShell())); - } + } return statusJob.getResult(); } return PlatformUI.getWorkbench().getOperationSupport() - .getOperationHistory().execute(op, monitor, + .getOperationHistory().execute(op, monitor, WorkspaceUndoUtil.getUIInfoAdapter(shellProvider.getShell())); } catch (ExecutionException e) { if (e.getCause() instanceof CoreException) { return ((CoreException)e.getCause()).getStatus(); - } + } return new Status(IStatus.ERROR, IDEWorkbenchPlugin.IDE_WORKBENCH, e.getMessage(),e); } } @@ -591,7 +591,7 @@ public class DeleteResourceAction extends SelectionListenerAction { /** * Returns the model provider ids that are known to the client that * instantiated this operation. - * + * * @return the model provider ids that are known to the client that * instantiated this operation. * @since 3.2 @@ -604,7 +604,7 @@ public class DeleteResourceAction extends SelectionListenerAction { * Sets the model provider ids that are known to the client that * instantiated this operation. Any potential side effects reported by these * models during validation will be ignored. - * + * * @param modelProviderIds * the model providers known to the client who is using this * operation. diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/GlobalBuildAction.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/GlobalBuildAction.java index 55ca645b447..7efc5c6ec08 100644 --- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/GlobalBuildAction.java +++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/GlobalBuildAction.java @@ -64,7 +64,7 @@ public class GlobalBuildAction extends Action implements * Creates a new action of the appropriate type. The action id is * <code>IWorkbenchActionConstants.BUILD</code> for incremental builds and * <code>IWorkbenchActionConstants.REBUILD_ALL</code> for full builds. - * + * * @param workbench * the active workbench * @param shell @@ -73,7 +73,7 @@ public class GlobalBuildAction extends Action implements * the type of build; one of * <code>IncrementalProjectBuilder.INCREMENTAL_BUILD</code> or * <code>IncrementalProjectBuilder.FULL_BUILD</code> - * + * * @deprecated use GlobalBuildAction(IWorkbenchWindow, type) instead */ @Deprecated @@ -87,7 +87,7 @@ public class GlobalBuildAction extends Action implements * Creates a new action of the appropriate type. The action id is * <code>IWorkbenchActionConstants.BUILD</code> for incremental builds and * <code>IWorkbenchActionConstants.REBUILD_ALL</code> for full builds. - * + * * @param window * the window in which this action appears * @param type @@ -103,7 +103,7 @@ public class GlobalBuildAction extends Action implements /** * Sets the build type. - * + * * @param type * the type of build; one of * <code>IncrementalProjectBuilder.INCREMENTAL_BUILD</code> or @@ -172,7 +172,7 @@ public class GlobalBuildAction extends Action implements Job buildJob = new Job(IDEWorkbenchMessages.GlobalBuildAction_jobTitle) { /* * (non-Javadoc) - * + * * @see org.eclipse.core.runtime.jobs.Job#run(org.eclipse.core.runtime.IProgressMonitor) */ @Override @@ -191,7 +191,7 @@ public class GlobalBuildAction extends Action implements /* * (non-Javadoc) - * + * * @see org.eclipse.core.runtime.jobs.Job#belongsTo(java.lang.Object) */ @Override @@ -213,7 +213,7 @@ public class GlobalBuildAction extends Action implements /* * (non-Javadoc) Method declared on IAction. - * + * * Builds all projects within the workspace. Saves all editors prior to * build depending on user's preference. */ @@ -270,7 +270,7 @@ public class GlobalBuildAction extends Action implements /* * (non-Javadoc) Method declared on ActionFactory.IWorkbenchAction. - * + * * @since 3.0 */ @Override @@ -286,7 +286,7 @@ public class GlobalBuildAction extends Action implements * Verify that no manual build is running. If it is then give the use the * option to cancel. If they cancel, cancel the jobs and return true, * otherwise return false. - * + * * @return whether or not there is a manual build job running. */ private boolean verifyNoManualRunning() { diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/MoveFilesAndFoldersOperation.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/MoveFilesAndFoldersOperation.java index 207984403b9..05d048894a3 100644 --- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/MoveFilesAndFoldersOperation.java +++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/MoveFilesAndFoldersOperation.java @@ -31,7 +31,7 @@ import org.eclipse.ui.internal.ide.IDEWorkbenchMessages; * <p> * This class may be instantiated; it is not intended to be subclassed. * </p> - * + * * @since 2.1 * @noextend This class is not intended to be subclassed by clients. */ @@ -39,7 +39,7 @@ public class MoveFilesAndFoldersOperation extends CopyFilesAndFoldersOperation { /** * Creates a new operation initialized with a shell. - * + * * @param shell * parent shell for error dialogs */ @@ -50,7 +50,7 @@ public class MoveFilesAndFoldersOperation extends CopyFilesAndFoldersOperation { /** * Returns whether this operation is able to perform on-the-fly * auto-renaming of resources with name collisions. - * + * * @return <code>true</code> if auto-rename is supported, and * <code>false</code> otherwise */ @@ -62,14 +62,14 @@ public class MoveFilesAndFoldersOperation extends CopyFilesAndFoldersOperation { /** * Moves the resources to the given destination. This method is called * recursively to merge folders during folder move. - * + * * @param resources * the resources to move * @param destination * destination to which resources will be moved * @param subMonitor * a progress monitor for showing progress and for cancelation - * + * * @deprecated As of 3.3, the work is performed in the undoable operation * created in * {@link #getUndoableCopyOrMoveOperation(IResource[], IPath)} @@ -128,7 +128,7 @@ public class MoveFilesAndFoldersOperation extends CopyFilesAndFoldersOperation { /** * Returns the message for querying deep copy/move of a linked resource. - * + * * @param source * resource the query is made for * @return the deep query message @@ -143,7 +143,7 @@ public class MoveFilesAndFoldersOperation extends CopyFilesAndFoldersOperation { /** * Returns the task title for this operation's progress dialog. - * + * * @return the task title */ @Override @@ -153,7 +153,7 @@ public class MoveFilesAndFoldersOperation extends CopyFilesAndFoldersOperation { /** * Returns the message for this operation's problems dialog. - * + * * @return the problems message */ @Override @@ -163,7 +163,7 @@ public class MoveFilesAndFoldersOperation extends CopyFilesAndFoldersOperation { /** * Returns the title for this operation's problems dialog. - * + * * @return the problems dialog title */ @Override @@ -174,7 +174,7 @@ public class MoveFilesAndFoldersOperation extends CopyFilesAndFoldersOperation { /** * Returns whether the source file in a destination collision will be * validateEdited together with the collision itself. Returns true. - * + * * @return boolean <code>true</code>, the source file in a destination * collision should be validateEdited. */ @@ -186,7 +186,7 @@ public class MoveFilesAndFoldersOperation extends CopyFilesAndFoldersOperation { /** * Sets the content of the existing file to the source file content. Deletes * the source file. - * + * * @param source * source file to move * @param existing @@ -216,9 +216,9 @@ public class MoveFilesAndFoldersOperation extends CopyFilesAndFoldersOperation { /* * (non-Javadoc) Overrides method in CopyFilesAndFoldersOperation - * + * * Note this method is for internal use only. It is not API. - * + * */ @Override public String validateDestination(IContainer destination, @@ -254,7 +254,7 @@ public class MoveFilesAndFoldersOperation extends CopyFilesAndFoldersOperation { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.actions.CopyFilesAndFoldersOperation#isMove() */ @Override @@ -266,7 +266,7 @@ public class MoveFilesAndFoldersOperation extends CopyFilesAndFoldersOperation { * Returns an AbstractWorkspaceOperation suitable for performing the move or * copy operation that will move or copy the given resources to the given * destination path. - * + * * @param resources * the resources to be moved or copied * @param destinationPath diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/MoveProjectAction.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/MoveProjectAction.java index 87a3337f774..882139213bf 100644 --- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/MoveProjectAction.java +++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/MoveProjectAction.java @@ -50,10 +50,10 @@ public class MoveProjectAction extends CopyProjectAction { /** * Creates a new project move action and initializes it. - * + * * @param shell * the shell for any dialogs - * + * * @deprecated {@link #MoveProjectAction(IShellProvider)} */ @Deprecated @@ -61,7 +61,7 @@ public class MoveProjectAction extends CopyProjectAction { super(shell, MOVE_TITLE); initAction(); } - + /** * Creates a new project move action and initializes it. * @param provider @@ -81,10 +81,10 @@ public class MoveProjectAction extends CopyProjectAction { } /** * Return the title of the errors dialog. - * + * * @return java.lang.String - * - * @deprecated As of 3.3, the error handling is performed by the undoable + * + * @deprecated As of 3.3, the error handling is performed by the undoable * operation which handles the move. */ @Deprecated @@ -95,7 +95,7 @@ public class MoveProjectAction extends CopyProjectAction { /** * Moves the project to the new values. - * + * * @param project * the project to move * @param newLocation @@ -103,9 +103,9 @@ public class MoveProjectAction extends CopyProjectAction { * @return <code>true</code> if the copy operation completed, and * <code>false</code> if it was abandoned part way */ - boolean performMove(final IProject project, + boolean performMove(final IProject project, final URI newLocation) { - + IRunnableWithProgress op = new IRunnableWithProgress() { @Override public void run(IProgressMonitor monitor) { @@ -113,7 +113,7 @@ public class MoveProjectAction extends CopyProjectAction { op.setModelProviderIds(getModelProviderIds()); try { PlatformUI.getWorkbench().getOperationSupport() - .getOperationHistory().execute(op, monitor, + .getOperationHistory().execute(op, monitor, WorkspaceUndoUtil.getUIInfoAdapter(shellProvider.getShell())); } catch (ExecutionException e) { if (e.getCause() instanceof CoreException) { @@ -125,7 +125,7 @@ public class MoveProjectAction extends CopyProjectAction { } } }; - + try { new ProgressMonitorJobsDialog(shellProvider.getShell()).run(true, true, op); } catch (InterruptedException e) { @@ -145,7 +145,7 @@ public class MoveProjectAction extends CopyProjectAction { /** * Query for a new project destination using the parameters in the existing * project. - * + * * @return Object[] or null if the selection is cancelled * @param project * the project we are going to move. @@ -169,7 +169,7 @@ public class MoveProjectAction extends CopyProjectAction { IProject project = (IProject) getSelectedResources().get(0); - //Get the project name and location + //Get the project name and location Object[] destinationPaths = queryDestinationParameters(project); if (destinationPaths == null) { return; @@ -177,10 +177,10 @@ public class MoveProjectAction extends CopyProjectAction { // Ideally we would have gotten the URI directly from the // ProjectLocationDialog, but for backward compatibility, we - // use the raw string and map back to a URI. + // use the raw string and map back to a URI. URI newLocation = URIUtil.toURI((String)destinationPaths[1]); - - + + boolean completed = performMove(project, newLocation); if (!completed) { diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/MoveResourceAction.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/MoveResourceAction.java index deb82206d36..2fb08173824 100644 --- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/MoveResourceAction.java +++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/MoveResourceAction.java @@ -48,7 +48,7 @@ public class MoveResourceAction extends CopyResourceAction { * Creates a new action. * * @param shell the shell for any dialogs - * + * * @deprecated {@link #MoveResourceAction(IShellProvider)} */ @Deprecated @@ -59,7 +59,7 @@ public class MoveResourceAction extends CopyResourceAction { /** * Creates a new action. - * + * * @param provider the shell for any dialogs. * @since 3.4 */ @@ -67,7 +67,7 @@ public class MoveResourceAction extends CopyResourceAction { super(provider, IDEWorkbenchMessages.MoveResourceAction_text); initAction(); } - + /** * Initializes the workbench */ @@ -77,7 +77,7 @@ public class MoveResourceAction extends CopyResourceAction { PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IIDEHelpContextIds.MOVE_RESOURCE_ACTION); } - + @Override protected CopyFilesAndFoldersOperation createOperation() { return new MoveFilesAndFoldersOperation(getShell()); @@ -112,7 +112,7 @@ public class MoveResourceAction extends CopyResourceAction { copiedResources[i].getName())); } } - + @Override public void run() { if (LTKLauncher.openMoveWizard(getStructuredSelection())) { diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/NewWizardMenu.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/NewWizardMenu.java index c02b48636d9..2fc11096b53 100644 --- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/NewWizardMenu.java +++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/NewWizardMenu.java @@ -48,25 +48,25 @@ public class NewWizardMenu extends BaseNewWizardMenu { * <p> * <strong>Note:</strong> Clients must dispose this menu when it is no longer required. * </p> - * + * * @param window * the window containing the menu */ public NewWizardMenu(IWorkbenchWindow window) { this(window, null); - + } - + /** * Creates a new wizard shortcut menu for the IDE. * <p> * <strong>Note:</strong> Clients must dispose this menu when it is no longer required. * </p> - * + * * @param window * the window containing the menu * @param id - * the identifier for this contribution item + * the identifier for this contribution item */ public NewWizardMenu(IWorkbenchWindow window, String id) { super(window, id); @@ -75,12 +75,12 @@ public class NewWizardMenu extends BaseNewWizardMenu { } /** - * Create a new wizard shortcut menu. + * Create a new wizard shortcut menu. * <p> * If the menu will appear on a semi-permanent basis, for instance within * a toolbar or menubar, the value passed for <code>register</code> should be true. * If set, the menu will listen to perspective activation and update itself - * to suit. In this case clients are expected to call <code>deregister</code> + * to suit. In this case clients are expected to call <code>deregister</code> * when the menu is no longer needed. This will unhook any perspective * listeners. * </p> @@ -101,7 +101,7 @@ public class NewWizardMenu extends BaseNewWizardMenu { fillMenu(innerMgr); // Must be done after constructor to ensure field initialization. } - + /* (non-Javadoc) * Fills the menu with New Wizards. */ @@ -121,7 +121,7 @@ public class NewWizardMenu extends BaseNewWizardMenu { * This method should only be called if the shortcut menu is created with * <code>register = true</code>. * </p> - * + * * @deprecated has no effect */ @Deprecated @@ -131,7 +131,7 @@ public class NewWizardMenu extends BaseNewWizardMenu { /** * Return whether or not any examples are in the current install. - * + * * @return boolean */ private boolean hasExamples() { @@ -146,7 +146,7 @@ public class NewWizardMenu extends BaseNewWizardMenu { } return false; } - + private boolean hasWizards(IWizardCategory category) { IWizardDescriptor[] wizards = category.getWizards(); if (wizards.length>0) { @@ -172,7 +172,7 @@ public class NewWizardMenu extends BaseNewWizardMenu { protected void addItems(List list) { ArrayList shortCuts= new ArrayList(); addShortcuts(shortCuts); - + for (Iterator iterator= shortCuts.iterator(); iterator.hasNext();) { Object curr= iterator.next(); if (curr instanceof ActionContributionItem && isNewProjectWizardAction(((ActionContributionItem) curr).getAction())) { @@ -205,7 +205,7 @@ public class NewWizardMenu extends BaseNewWizardMenu { } return false; } - + /* (non-Javadoc) * Method declared on IContributionItem. */ @@ -216,14 +216,14 @@ public class NewWizardMenu extends BaseNewWizardMenu { /** * Sets the enabled state of the receiver. - * + * * @param enabledValue if <code>true</code> the menu is enabled; else * it is disabled */ public void setEnabled(boolean enabledValue) { this.enabled = enabledValue; } - + /* (non-Javadoc) * @see org.eclipse.ui.actions.BaseNewWizardMenu#getContributionItems() */ diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/OpenFileAction.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/OpenFileAction.java index fd97c307bbc..c639ef8a3bd 100644 --- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/OpenFileAction.java +++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/OpenFileAction.java @@ -23,7 +23,7 @@ import org.eclipse.ui.internal.ide.IIDEHelpContextIds; import org.eclipse.ui.part.FileEditorInput; /** - * Standard action for opening an editor on the currently selected file + * Standard action for opening an editor on the currently selected file * resource(s). * <p> * Note that there is a different action for opening closed projects: @@ -47,7 +47,7 @@ public class OpenFileAction extends OpenSystemEditorAction { private IEditorDescriptor editorDescriptor; /** - * Creates a new action that will open editors on the then-selected file + * Creates a new action that will open editors on the then-selected file * resources. Equivalent to <code>OpenFileAction(page,null)</code>. * * @param page the workbench page in which to open the editor @@ -57,7 +57,7 @@ public class OpenFileAction extends OpenSystemEditorAction { } /** - * Creates a new action that will open instances of the specified editor on + * Creates a new action that will open instances of the specified editor on * the then-selected file resources. * * @param page the workbench page in which to open the editor diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/OpenResourceAction.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/OpenResourceAction.java index 574091bf23d..2d5f953b1b7 100644 --- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/OpenResourceAction.java +++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/OpenResourceAction.java @@ -64,10 +64,10 @@ public class OpenResourceAction extends WorkspaceAction implements IResourceChan /** * Creates a new action. - * + * * @param shell * the shell for any dialogs - * + * * @deprecated {@link #OpenResourceAction(IShellProvider)} */ @Deprecated @@ -78,7 +78,7 @@ public class OpenResourceAction extends WorkspaceAction implements IResourceChan /** * Creates a new action. - * + * * @param provider * the shell for any dialogs * @since 3.4 @@ -152,7 +152,7 @@ public class OpenResourceAction extends WorkspaceAction implements IResourceChan /** * Returns the preference for whether to open required projects when opening * a project. Consults the preference and prompts the user if necessary. - * + * * @return <code>true</code> if referenced projects should be opened, and * <code>false</code> otherwise. */ diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/OpenWithMenu.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/OpenWithMenu.java index 39c7c819a1d..7bc39e4c21b 100644 --- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/OpenWithMenu.java +++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/OpenWithMenu.java @@ -76,7 +76,7 @@ public class OpenWithMenu extends ContributionItem { * Match both the input and id, so that different types of editor can be opened on the same input. */ private static final int MATCH_BOTH = IWorkbenchPage.MATCH_INPUT | IWorkbenchPage.MATCH_ID; - + /* * Compares the labels from two IEditorDescriptor objects */ @@ -290,11 +290,11 @@ public class OpenWithMenu extends ContributionItem { createMenuItem(menu, descriptor, preferredEditor); } createDefaultMenuItem(menu, file, preferredEditor == null); - + // add Other... menu item createOtherMenuItem(menu); } - + /** * Converts the IAdaptable file to IFile or null. @@ -308,7 +308,7 @@ public class OpenWithMenu extends ContributionItem { if (resource instanceof IFile) { return (IFile) resource; } - + return null; } @@ -340,7 +340,7 @@ public class OpenWithMenu extends ContributionItem { } else { String editorId = editorDescriptor == null ? IEditorRegistry.SYSTEM_EXTERNAL_EDITOR_ID : editorDescriptor.getId(); - + page.openEditor(new FileEditorInput(file), editorId, true, MATCH_BOTH); // only remember the default editor if the open succeeds IDE.setDefaultEditor(file, editorId); @@ -354,7 +354,7 @@ public class OpenWithMenu extends ContributionItem { /** * Creates the menu item for clearing the current selection. - * + * * @param menu the menu to add the item to * @param file the file being edited * @param markAsSelected <code>true</code> if the item should marked as selected diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/QuickStartAction.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/QuickStartAction.java index ebf63d59a1b..ed62e1275e1 100644 --- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/QuickStartAction.java +++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/QuickStartAction.java @@ -42,7 +42,7 @@ import org.eclipse.ui.internal.ide.dialogs.WelcomeEditorInput; /** * The quick start (Welcome...) action. - * + * * @deprecated the IDE now uses the new intro mechanism */ @Deprecated @@ -109,7 +109,7 @@ public class QuickStartAction extends Action implements /** * Prompts the user for a feature that has a welcome page. - * + * * @return the chosen feature, or <code>null</code> if none was chosen */ private AboutInfo promptForFeature() throws WorkbenchException { @@ -155,7 +155,7 @@ public class QuickStartAction extends Action implements /** * Opens the welcome page for the given feature. - * + * * @param featureId the about info for the feature * @return <code>true</code> if successful, <code>false</code> otherwise * @throws WorkbenchException @@ -171,7 +171,7 @@ public class QuickStartAction extends Action implements /** * Returns the about info for the feature with the given id, or <code>null</code> * if there is no such feature. - * + * * @return the about info for the feature with the given id, or <code>null</code> * if there is no such feature. */ @@ -189,7 +189,7 @@ public class QuickStartAction extends Action implements /** * Opens the welcome page for a feature. - * + * * @param feature the about info for the feature * @return <code>true</code> if successful, <code>false</code> otherwise */ @@ -224,7 +224,7 @@ public class QuickStartAction extends Action implements if (page == null) { return false; } - + page.setEditorAreaVisible(true); // create input diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/ReadOnlyStateChecker.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/ReadOnlyStateChecker.java index 7a7ac12391d..f9b7a94d718 100644 --- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/ReadOnlyStateChecker.java +++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/ReadOnlyStateChecker.java @@ -43,7 +43,7 @@ public class ReadOnlyStateChecker { private boolean cancelSelected = false; private boolean ignoreLinkedResources = false; - + private String READ_ONLY_EXCEPTION_MESSAGE = IDEWorkbenchMessages.ReadOnlyCheck_problems; /** @@ -99,7 +99,7 @@ public class ReadOnlyStateChecker { * Check the supplied resources to see if they are read only. If so then * prompt the user to see if they can be deleted.Return those that were * accepted. - * + * * @param itemsToCheck * @return the resulting selected resources */ @@ -202,7 +202,7 @@ public class ReadOnlyStateChecker { /** * Returns whether the given resource should be checked for read-only state. - * + * * @param resourceToCheck the resource to check * @return <code>true</code> to check it, <code>false</code> to skip it */ @@ -218,13 +218,13 @@ public class ReadOnlyStateChecker { /** * Open a message dialog with Yes No, Yes To All and Cancel buttons. Return the * code that indicates the selection. - * @return int + * @return int * one of * YES_TO_ALL_ID * YES_ID * NO_ID * CANCEL_ID - * + * * @param resource - the resource being queried. */ private int queryYesToAllNoCancel(IResource resource) { @@ -260,10 +260,10 @@ public class ReadOnlyStateChecker { } return IDialogConstants.CANCEL_ID; } - + /** * Returns whether to ignore linked resources. - * + * * @return <code>true</code> to ignore linked resources, <code>false</code> to consider them * @since 3.1 */ @@ -274,7 +274,7 @@ public class ReadOnlyStateChecker { /** * Sets whether to ignore linked resources. * The default is <code>false</code>. - * + * * @param ignore <code>true</code> to ignore linked resources, <code>false</code> to consider them * @since 3.1 */ diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/RefreshAction.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/RefreshAction.java index 85bfd0a4cce..867a1c03266 100644 --- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/RefreshAction.java +++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/RefreshAction.java @@ -70,7 +70,7 @@ public class RefreshAction extends WorkspaceAction { /** * Creates a new action. - * + * * @param shell * the shell for any dialogs * @deprecated See {@link #RefreshAction(IShellProvider)} @@ -83,7 +83,7 @@ public class RefreshAction extends WorkspaceAction { /** * Creates a new action. - * + * * @param provider * the IShellProvider for any dialogs. * @since 3.4 @@ -92,7 +92,7 @@ public class RefreshAction extends WorkspaceAction { super(provider, IDEWorkbenchMessages.RefreshAction_text); initAction(); } - + /** * Initializes for the constructor. */ @@ -190,7 +190,7 @@ public class RefreshAction extends WorkspaceAction { /** * Handle the key release. - * + * * @param event * the event */ @@ -266,7 +266,7 @@ public class RefreshAction extends WorkspaceAction { * This method may be extended to refresh model objects related to the * resource. * </p> - * + * * @param resource * the resource to refresh. Must not be <code>null</code>. * @param monitor @@ -291,7 +291,7 @@ public class RefreshAction extends WorkspaceAction { } resource.refreshLocal(IResource.DEPTH_INFINITE, monitor); } - + @Override public void run() { final IStatus[] errorStatus = new IStatus[1]; @@ -315,7 +315,7 @@ public class RefreshAction extends WorkspaceAction { } return errorStatus[0]; } - + }; ISchedulingRule rule = op.getRule(); if (rule != null) { diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/RenameResourceAction.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/RenameResourceAction.java index bc0730552dc..c18aa2d6e35 100644 --- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/RenameResourceAction.java +++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/RenameResourceAction.java @@ -104,13 +104,13 @@ public class RenameResourceAction extends WorkspaceAction { private static String RESOURCE_EXISTS_MESSAGE = IDEWorkbenchMessages.RenameResourceAction_overwriteQuestion; private static String PROJECT_EXISTS_MESSAGE = IDEWorkbenchMessages.RenameResourceAction_overwriteProjectQuestion; - + private static String PROJECT_EXISTS_TITLE = IDEWorkbenchMessages.RenameResourceAction_projectExists; /** * Creates a new action. Using this constructor directly will rename using a * dialog rather than the inline editor of a ResourceNavigator. - * + * * @param shell * the shell for any dialogs * @deprecated see {@link #RenameResourceAction(IShellProvider)} @@ -124,7 +124,7 @@ public class RenameResourceAction extends WorkspaceAction { /** * Creates a new action. Using this constructor directly will rename using a * dialog rather than the inline editor of a ResourceNavigator. - * + * * @param provider * the IShellProvider for any dialogs * @since 3.4 @@ -133,7 +133,7 @@ public class RenameResourceAction extends WorkspaceAction { super(provider, IDEWorkbenchMessages.RenameResourceAction_text); initAction(); } - + private void initAction(){ setToolTipText(IDEWorkbenchMessages.RenameResourceAction_toolTip); setId(ID); @@ -142,7 +142,7 @@ public class RenameResourceAction extends WorkspaceAction { } /** * Creates a new action. - * + * * @param shell * the shell for any dialogs * @param tree @@ -155,10 +155,10 @@ public class RenameResourceAction extends WorkspaceAction { this.navigatorTree = tree; this.treeEditor = new TreeEditor(tree); } - + /** * Creates a new action. - * + * * @param provider * the shell provider for any dialogs * @param tree @@ -173,7 +173,7 @@ public class RenameResourceAction extends WorkspaceAction { /** * Check if the user wishes to overwrite the supplied resource - * + * * @returns true if there is no collision or delete was successful * @param shell * the shell to create the dialog in @@ -214,7 +214,7 @@ public class RenameResourceAction extends WorkspaceAction { * Check if the supplied resource is read only or null. If it is then ask * the user if they want to continue. Return true if the resource is not * read only or if the user has given permission. - * + * * @return boolean */ private boolean checkReadOnlyAndNull(IResource currentResource) { @@ -256,7 +256,7 @@ public class RenameResourceAction extends WorkspaceAction { /** * Create the text editor widget. - * + * * @param resource * the resource to rename */ @@ -346,7 +346,7 @@ public class RenameResourceAction extends WorkspaceAction { * Returns the elements that the action is to be performed on. Return the * resource cached by the action as we cannot rely on the selection being * correct for inlined text. - * + * * @return list of resource elements (element type: <code>IResource</code>) */ @Override @@ -386,7 +386,7 @@ public class RenameResourceAction extends WorkspaceAction { /** * Get the Tree being edited. - * + * * @returnTree */ private Tree getTree() { @@ -395,7 +395,7 @@ public class RenameResourceAction extends WorkspaceAction { /** * Return the new name to be given to the target resource. - * + * * @return java.lang.String * @param resource * the resource to query status on @@ -435,7 +435,7 @@ public class RenameResourceAction extends WorkspaceAction { /** * Return the new name to be given to the target resource or * <code>null<code> - * if the query was canceled. Rename the currently selected resource using the table editor. + * if the query was canceled. Rename the currently selected resource using the table editor. * Continue the action when the user is done. * * @param resource the resource to rename @@ -506,7 +506,7 @@ public class RenameResourceAction extends WorkspaceAction { /** * Return the currently selected resource. Only return an IResouce if there * is one and only one resource selected. - * + * * @return IResource or <code>null</code> if there is zero or more than * one resources selected. */ @@ -532,7 +532,7 @@ public class RenameResourceAction extends WorkspaceAction { /** * Save the changes and dispose of the text widget. - * + * * @param resource - * the resource to move. */ @@ -612,7 +612,7 @@ public class RenameResourceAction extends WorkspaceAction { /** * Set the text action handler. - * + * * @param actionHandler * the action handler */ @@ -623,7 +623,7 @@ public class RenameResourceAction extends WorkspaceAction { /** * Returns the model provider ids that are known to the client that * instantiated this operation. - * + * * @return the model provider ids that are known to the client that * instantiated this operation. * @since 3.2 @@ -636,7 +636,7 @@ public class RenameResourceAction extends WorkspaceAction { * Sets the model provider ids that are known to the client that * instantiated this operation. Any potential side effects reported by these * models during validation will be ignored. - * + * * @param modelProviderIds * the model providers known to the client who is using this * operation. @@ -648,9 +648,9 @@ public class RenameResourceAction extends WorkspaceAction { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.actions.WorkspaceAction#createOperation(org.eclipse.core.runtime.IStatus[]) - * + * * Overridden to create and execute an undoable operation that performs the * rename. * @since 3.3 diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/SelectionListenerAction.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/SelectionListenerAction.java index 76fb3e08f1d..19cd9c44db1 100644 --- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/SelectionListenerAction.java +++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/SelectionListenerAction.java @@ -83,7 +83,7 @@ public abstract class SelectionListenerAction extends /** * Creates a new action with the given text. - * + * * @param text * the string used as the text for the action, or * <code>null</code> if there is no text @@ -199,7 +199,7 @@ public abstract class SelectionListenerAction extends /** * Returns the elements in the current selection that are not * <code>IResource</code>s. - * + * * @return list of elements (element type: <code>Object</code>) */ protected List getSelectedNonResources() { @@ -212,14 +212,14 @@ public abstract class SelectionListenerAction extends if (nonResources == null) { return EMPTY_LIST; } - + return nonResources; } /** * Returns the elements in the current selection that are * <code>IResource</code>s. - * + * * @return list of resource elements (element type: <code>IResource</code>) */ protected List getSelectedResources() { @@ -238,7 +238,7 @@ public abstract class SelectionListenerAction extends /** * Returns whether the type of the given resource is among those in the * given resource type mask. - * + * * @param resource * the resource * @param resourceMask @@ -256,7 +256,7 @@ public abstract class SelectionListenerAction extends /** * Returns whether the current selection consists entirely of resources * whose types are among those in the given resource type mask. - * + * * @param resourceMask * a bitwise OR of resource types: <code>IResource</code>.{<code>FILE</code>, * <code>FOLDER</code>, <code>PROJECT</code>, diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/TextActionHandler.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/TextActionHandler.java index 81bcc321884..a2019aaabd1 100644 --- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/TextActionHandler.java +++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/TextActionHandler.java @@ -303,10 +303,10 @@ public class TextActionHandler { break; } } - + clipboard.dispose(); } - + setEnabled(canPaste); return; } @@ -358,11 +358,11 @@ public class TextActionHandler { /** * Creates a <code>Text</code> control action handler - * for the global Cut, Copy, Paste, Delete, and Select All + * for the global Cut, Copy, Paste, Delete, and Select All * of the action bar. * * @param actionBar the action bar to register global - * action handlers for Cut, Copy, Paste, Delete, + * action handlers for Cut, Copy, Paste, Delete, * and Select All */ public TextActionHandler(IActionBars actionBar) { @@ -373,8 +373,8 @@ public class TextActionHandler { /** * Updates the actions bars. - * - * @since 3.6 + * + * @since 3.6 */ public void updateActionBars() { actionBars.setGlobalActionHandler(ActionFactory.CUT.getId(), @@ -389,10 +389,10 @@ public class TextActionHandler { textDeleteAction); } - + /** * Add a <code>Text</code> control to the handler - * so that the Cut, Copy, Paste, Delete, and Select All + * so that the Cut, Copy, Paste, Delete, and Select All * actions are redirected to it when active. * * @param textControl the inline <code>Text</code> control @@ -430,7 +430,7 @@ public class TextActionHandler { /** * Removes a <code>Text</code> control from the handler - * so that the Cut, Copy, Paste, Delete, and Select All + * so that the Cut, Copy, Paste, Delete, and Select All * actions are no longer redirected to it when active. * * @param textControl the inline <code>Text</code> control diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/WorkspaceAction.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/WorkspaceAction.java index 859e589a36d..e841e4595c8 100644 --- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/WorkspaceAction.java +++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/WorkspaceAction.java @@ -44,7 +44,7 @@ import org.eclipse.ui.progress.IProgressConstants2; /** * The abstract superclass for actions which invoke commands implemented in * org.eclipse.core.* on a set of selected resources. - * + * * It iterates over all selected resources; errors are collected and displayed * to the user via a problems dialog at the end of the operation. User requests * to cancel the operation are passed along to the core. @@ -78,7 +78,7 @@ public abstract class WorkspaceAction extends SelectionListenerAction { /** * Creates a new action with the given text. - * + * * @param shell * the shell (for the modal progress dialog and error messages) * @param text @@ -96,10 +96,10 @@ public abstract class WorkspaceAction extends SelectionListenerAction { return shell; } }; } - + /** * Creates a new action with the given text. - * + * * @param provider * the shell provider (for the modal progress dialog and error * messages) @@ -119,7 +119,7 @@ public abstract class WorkspaceAction extends SelectionListenerAction { * <p> * Note that this method must be called from UI thread. * </p> - * + * * @param message * the message */ @@ -138,7 +138,7 @@ public abstract class WorkspaceAction extends SelectionListenerAction { * Note that if an action is running in the background, the same action * instance can be executed multiple times concurrently. This method must * not access or modify any mutable state on action class. - * + * * @param monitor * a progress monitor * @return The result of the execution @@ -186,9 +186,9 @@ public abstract class WorkspaceAction extends SelectionListenerAction { * <p> * Subclasses must implement this method. * </p> - * + * * @return the message - * + * * @since 3.1 */ protected abstract String getOperationMessage(); @@ -201,9 +201,9 @@ public abstract class WorkspaceAction extends SelectionListenerAction { * problems occurred."). Subclasses may reimplement to provide something * more suited to the particular action. * </p> - * + * * @return the problems message - * + * * @since 3.1 */ protected String getProblemsMessage() { @@ -217,9 +217,9 @@ public abstract class WorkspaceAction extends SelectionListenerAction { * a generic title (localized counterpart of "Problems"). Subclasses may * reimplement to provide something more suited to the particular action. * </p> - * + * * @return the problems dialog title - * + * * @since 3.1 */ protected String getProblemsTitle() { @@ -229,7 +229,7 @@ public abstract class WorkspaceAction extends SelectionListenerAction { /** * Returns the shell for this action. This shell is used for the modal * progress and error dialogs. - * + * * @return the shell */ Shell getShell() { @@ -250,26 +250,26 @@ public abstract class WorkspaceAction extends SelectionListenerAction { * {@link #createOperation(IStatus[])} and provide an empty implementation * for this method. * </p> - * + * * @param resource * one of the selected resources * @param monitor * a progress monitor * @exception CoreException * if the operation fails - * + * * @since 3.1 */ @Deprecated protected void invokeOperation(IResource resource, IProgressMonitor monitor) throws CoreException { - + } /** * Returns whether the given resource is a descendent of any of the * resources in the given list. - * + * * @param resources * the list of resources (element type: <code>IResource</code>) * @param child @@ -287,7 +287,7 @@ public abstract class WorkspaceAction extends SelectionListenerAction { /** * Performs pruning on the given list of resources, as described in * <code>shouldPerformResourcePruning</code>. - * + * * @param resourceCollection * the list of resources (element type: <code>IResource</code>) * @return the list of resources (element type: <code>IResource</code>) @@ -309,7 +309,7 @@ public abstract class WorkspaceAction extends SelectionListenerAction { /** * Records the core exception to be displayed to the user once the action is * finished. - * + * * @param error * a <code>CoreException</code> */ @@ -372,10 +372,10 @@ public abstract class WorkspaceAction extends SelectionListenerAction { * <code>true</code>. Subclasses should reimplement to return * <code>false</code> if pruning is not required. * </p> - * + * * @return <code>true</code> if pruning should be performed, and * <code>false</code> if pruning is not desired - * + * * @since 3.1 */ protected boolean shouldPerformResourcePruning() { @@ -409,7 +409,7 @@ public abstract class WorkspaceAction extends SelectionListenerAction { * return the selected resources. * <p> * Subclasses may override this method. - * + * * @return list of resource elements (element type: <code>IResource</code>) */ protected List getActionResources() { @@ -418,7 +418,7 @@ public abstract class WorkspaceAction extends SelectionListenerAction { /** * Run the action in the background rather than with the progress dialog. - * + * * @param rule * The rule to apply to the background job or <code>null</code> * if there isn't one. @@ -429,14 +429,14 @@ public abstract class WorkspaceAction extends SelectionListenerAction { /** * Run the action in the background rather than with the progress dialog. - * + * * @param rule * The rule to apply to the background job or <code>null</code> * if there isn't one. * @param jobFamily * a single family that the job should belong to or * <code>null</code> if none. - * + * * @since 3.1 */ public void runInBackground(ISchedulingRule rule, Object jobFamily) { @@ -449,14 +449,14 @@ public abstract class WorkspaceAction extends SelectionListenerAction { /** * Run the action in the background rather than with the progress dialog. - * + * * @param rule * The rule to apply to the background job or <code>null</code> * if there isn't one. * @param jobFamilies * the families the job should belong to or <code>null</code> * if none. - * + * * @since 3.1 */ public void runInBackground(ISchedulingRule rule, final Object[] jobFamilies) { @@ -501,11 +501,11 @@ public abstract class WorkspaceAction extends SelectionListenerAction { * {@link #invokeOperation(IResource, IProgressMonitor)} or override this * method to provide a different operation. Subclasses typically override * this method when an undoable operation is to be provided. - * + * * @param errorStatus * an array of error status objects to which the result of * running the operation should be added. - * + * * @return the operation to perform when this action runs. * @since 3.3 */ diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/WorkspaceModifyDelegatingOperation.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/WorkspaceModifyDelegatingOperation.java index 12863eaf87d..1c92fff8f4c 100644 --- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/WorkspaceModifyDelegatingOperation.java +++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/WorkspaceModifyDelegatingOperation.java @@ -36,7 +36,7 @@ public class WorkspaceModifyDelegatingOperation extends /** * Creates a new operation which will delegate its work to the given * runnable using the provided scheduling rule. - * + * * @param content * the runnable to delegate to when this operation is executed * @param rule @@ -51,7 +51,7 @@ public class WorkspaceModifyDelegatingOperation extends /** * Creates a new operation which will delegate its work to the given * runnable. Schedule using the supplied s - * + * * @param content * the runnable to delegate to when this operation is executed */ diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/ContainerGenerator.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/ContainerGenerator.java index a5876b18e46..f34812ae386 100644 --- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/ContainerGenerator.java +++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/ContainerGenerator.java @@ -29,7 +29,7 @@ import org.eclipse.ui.internal.ide.IDEWorkbenchMessages; import org.eclipse.ui.internal.ide.IDEWorkbenchPlugin; /** - * For creating folder resources that currently do not exist, + * For creating folder resources that currently do not exist, * along a given workspace path. * <p> * This class may be instantiated; it is not intended to be subclassed. diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/ContainerSelectionDialog.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/ContainerSelectionDialog.java index b53d8eed6a9..6a560ff4064 100644 --- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/ContainerSelectionDialog.java +++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/ContainerSelectionDialog.java @@ -6,7 +6,7 @@ * http://www.eclipse.org/legal/epl-v10.html * * Contributors: - * IBM Corporation - initial API and implementation + * IBM Corporation - initial API and implementation * Sebastian Davids <sdavids@gmx.de> - Fix for bug 19346 - Dialog * font should be activated and used by other components. *******************************************************************************/ @@ -44,13 +44,13 @@ import org.eclipse.ui.internal.ide.misc.ContainerSelectionGroup; * new ContainerSelectionDialog(getShell(), initialSelection, allowNewContainerName(), msg); * dialog.open(); * Object[] result = dialog.getResult(); - * </pre> + * </pre> * </p> * @noextend This class is not intended to be subclassed by clients. */ public class ContainerSelectionDialog extends SelectionDialog { /** - * + * */ private static final String EMPTY_STRING = ""; //$NON-NLS-1$ @@ -74,7 +74,7 @@ public class ContainerSelectionDialog extends SelectionDialog { /** * Creates a resource container selection dialog rooted at the given resource. - * All selections are considered valid. + * All selections are considered valid. * * @param parentShell the parent shell * @param initialRoot the initial selection in the tree @@ -107,7 +107,7 @@ public class ContainerSelectionDialog extends SelectionDialog { @Override protected Control createDialogArea(Composite parent) { - // create composite + // create composite Composite area = (Composite) super.createDialogArea(parent); Listener listener = new Listener() { @@ -143,7 +143,7 @@ public class ContainerSelectionDialog extends SelectionDialog { } /** - * The <code>ContainerSelectionDialog</code> implementation of this + * The <code>ContainerSelectionDialog</code> implementation of this * <code>Dialog</code> method builds a list of the selected resource containers * for later retrieval by the client and closes this dialog. */ @@ -160,8 +160,8 @@ public class ContainerSelectionDialog extends SelectionDialog { } /** - * Sets the validator to use. - * + * Sets the validator to use. + * * @param validator A selection validator */ public void setValidator(ISelectionValidator validator) { @@ -171,7 +171,7 @@ public class ContainerSelectionDialog extends SelectionDialog { /** * Set whether or not closed projects should be shown * in the selection dialog. - * + * * @param show Whether or not to show closed projects. */ public void showClosedProjects(boolean show) { diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/FileSelectionDialog.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/FileSelectionDialog.java index 591c67e3c56..0b73515a630 100644 --- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/FileSelectionDialog.java +++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/FileSelectionDialog.java @@ -6,7 +6,7 @@ * http://www.eclipse.org/legal/epl-v10.html * * Contributors: - * IBM Corporation - initial API and implementation + * IBM Corporation - initial API and implementation * Sebastian Davids <sdavids@gmx.de> - Fix for bug 19346 - Dialog * font should be activated and used by other components. *******************************************************************************/ @@ -46,7 +46,7 @@ import org.eclipse.ui.model.WorkbenchViewerComparator; * <p> * Example: * <pre> - * FileSelectionDialog dialog = + * FileSelectionDialog dialog = * new FileSelectionDialog(getShell(), rootElement, msg); * dialog.setInitialSelections(selectedResources); * dialog.open(); @@ -210,7 +210,7 @@ public class FileSelectionDialog extends SelectionDialog { } /** - * Returns a content provider for <code>FileSystemElement</code>s that returns + * Returns a content provider for <code>FileSystemElement</code>s that returns * only files as children. */ private ITreeContentProvider getFileProvider() { @@ -226,7 +226,7 @@ public class FileSelectionDialog extends SelectionDialog { } /** - * Returns a content provider for <code>FileSystemElement</code>s that returns + * Returns a content provider for <code>FileSystemElement</code>s that returns * only folders as children. */ private ITreeContentProvider getFolderProvider() { @@ -245,7 +245,7 @@ public class FileSelectionDialog extends SelectionDialog { * Initializes this dialog's controls. */ private void initializeDialog() { - // initialize page + // initialize page if (getInitialElementSelections().isEmpty()) { getOkButton().setEnabled(false); } else { @@ -259,7 +259,7 @@ public class FileSelectionDialog extends SelectionDialog { /** * The <code>FileSelectionDialog</code> implementation of this - * <code>Dialog</code> method builds a list of the selected files for later + * <code>Dialog</code> method builds a list of the selected files for later * retrieval by the client and closes this dialog. */ @Override diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/FilteredResourcesSelectionDialog.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/FilteredResourcesSelectionDialog.java index a88cd294082..e24b0db5a04 100644 --- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/FilteredResourcesSelectionDialog.java +++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/FilteredResourcesSelectionDialog.java @@ -78,7 +78,7 @@ import com.ibm.icu.text.Collator; /** * Shows a list of resources to the user with a text entry field for a string * pattern used to filter the list of resources. - * + * * @since 3.3 */ public class FilteredResourcesSelectionDialog extends @@ -122,7 +122,7 @@ public class FilteredResourcesSelectionDialog extends /** * Creates a new instance of the class - * + * * @param shell * the parent shell * @param multi @@ -189,7 +189,7 @@ public class FilteredResourcesSelectionDialog extends super.configureShell(shell); PlatformUI.getWorkbench().getHelpSystem().setHelp(shell, IIDEHelpContextIds.OPEN_RESOURCE_DIALOG); } - + @Override public void setTitle(String title) { super.setTitle(title); @@ -198,7 +198,7 @@ public class FilteredResourcesSelectionDialog extends /** * Adds or replaces subtitle of the dialog - * + * * @param text * the new subtitle */ @@ -407,7 +407,7 @@ public class FilteredResourcesSelectionDialog extends IResource resource2 = (IResource) o2; String s1 = resource1.getName(); String s2 = resource2.getName(); - + // Compare names without extension first int s1Dot = s1.lastIndexOf('.'); int s2Dot = s2.lastIndexOf('.'); @@ -416,7 +416,7 @@ public class FilteredResourcesSelectionDialog extends int comparability = collator.compare(n1, n2); if (comparability != 0) return comparability; - + // Compare full names if (s1Dot != -1 || s2Dot != -1) { comparability = collator.compare(s1, s2); @@ -428,7 +428,7 @@ public class FilteredResourcesSelectionDialog extends if (searchContainer != null) { IContainer c1 = resource1.getParent(); IContainer c2 = resource2.getParent(); - + // Return paths 'closer' to the searchContainer first comparability = pathDistance(c1) - pathDistance(c2); if (comparability != 0) @@ -460,7 +460,7 @@ public class FilteredResourcesSelectionDialog extends * - Closest distance is if the item is the same folder as the search container.<br> * - Next are folders inside the search container.<br> * - After all those, distance increases with decreasing matching prefix folder count.<br> - * + * * @param item * parent of the resource being examined * @return the "distance" of the passed in IResource from the search @@ -479,21 +479,21 @@ public class FilteredResourcesSelectionDialog extends IPath itemPath = item.getFullPath(); if (itemPath.equals(containerPath)) return 0; - + int matching = containerPath.matchingFirstSegments(itemPath); if (matching == 0) return Integer.MAX_VALUE / 2; - + int containerSegmentCount = containerPath.segmentCount(); if (matching == containerSegmentCount) { - // inside searchContainer: + // inside searchContainer: return itemPath.segmentCount() - matching; } - + //outside searchContainer: return Integer.MAX_VALUE / 4 + containerSegmentCount - matching; } - + @Override protected void fillContentProvider(AbstractContentProvider contentProvider, ItemsFilter itemsFilter, IProgressMonitor progressMonitor) @@ -504,11 +504,11 @@ public class FilteredResourcesSelectionDialog extends .beginTask( WorkbenchMessages.FilteredItemsSelectionDialog_searchJob_taskName, members.length); - + ResourceProxyVisitor visitor = new ResourceProxyVisitor( contentProvider, (ResourceFilter) itemsFilter, progressMonitor); - + if (visitor.visit(container.createProxy())) { for (int i= 0; i < members.length; i++) { IResource member = members[i]; @@ -519,7 +519,7 @@ public class FilteredResourcesSelectionDialog extends break; } } - + } progressMonitor.done(); } @@ -594,7 +594,7 @@ public class FilteredResourcesSelectionDialog extends return str; } - + @Override public StyledString getStyledText(Object element) { if (!(element instanceof IResource)) { @@ -610,7 +610,7 @@ public class FilteredResourcesSelectionDialog extends str.append(" - ", StyledString.QUALIFIER_STYLER); //$NON-NLS-1$ str.append(res.getParent().getFullPath().makeRelative().toString(), StyledString.QUALIFIER_STYLER); } - + //Debugging: // int pathDistance = pathDistance(res.getParent()); // if (pathDistance != Integer.MAX_VALUE / 2) { @@ -619,7 +619,7 @@ public class FilteredResourcesSelectionDialog extends // else // str.append(" (" + pathDistance + " folders down from current selection)", StyledString.QUALIFIER_STYLER); // } - + return str; } @@ -700,7 +700,7 @@ public class FilteredResourcesSelectionDialog extends /** * Sets the active working set. - * + * * @param workingSet * the working set the filter should work with */ @@ -731,7 +731,7 @@ public class FilteredResourcesSelectionDialog extends /** * Creates new ResourceProxyVisitor instance. - * + * * @param contentProvider * @param resourceFilter * @param progressMonitor @@ -790,7 +790,7 @@ public class FilteredResourcesSelectionDialog extends * @since 3.6 */ private SearchPattern relativeContainerPattern; - + /** * Camel case pattern for the name part of the file name (without extension). Is <code>null</code> if there's no extension. * @since 3.6 @@ -801,12 +801,12 @@ public class FilteredResourcesSelectionDialog extends * @since 3.6 */ SearchPattern extensionPattern; - + private int filterTypeMask; /** * Creates new ResourceFilter instance - * + * * @param container * @param showDerived * flag which determine showing derived elements @@ -822,9 +822,9 @@ public class FilteredResourcesSelectionDialog extends /** * Creates new ResourceFilter instance - * + * * @param container - * @param searchContainer + * @param searchContainer * IContainer to use for performing relative search * @param showDerived * flag which determine showing derived elements @@ -837,24 +837,24 @@ public class FilteredResourcesSelectionDialog extends String stringPattern = getPattern(); int matchRule = getMatchRule(); String filenamePattern; - + int sep = stringPattern.lastIndexOf(IPath.SEPARATOR); if (sep != -1) { filenamePattern = stringPattern.substring(sep + 1, stringPattern.length()); if ("*".equals(filenamePattern)) //$NON-NLS-1$ filenamePattern= "**"; //$NON-NLS-1$ - + if (sep > 0) { if (filenamePattern.length() == 0) // relative patterns don't need a file name filenamePattern= "**"; //$NON-NLS-1$ - + String containerPattern = stringPattern.substring(0, sep); - + if (searchContainer != null) { relativeContainerPattern = new SearchPattern(SearchPattern.RULE_EXACT_MATCH | SearchPattern.RULE_PATTERN_MATCH); relativeContainerPattern.setPattern(searchContainer.getFullPath().append(containerPattern).toString()); } - + if (!containerPattern.startsWith("" + IPath.SEPARATOR)) //$NON-NLS-1$ containerPattern = IPath.SEPARATOR + containerPattern; this.containerPattern= new SearchPattern(SearchPattern.RULE_EXACT_MATCH | SearchPattern.RULE_PREFIX_MATCH | SearchPattern.RULE_PATTERN_MATCH); @@ -875,7 +875,7 @@ public class FilteredResourcesSelectionDialog extends } else { filenamePattern= stringPattern; } - + int lastPatternDot = filenamePattern.lastIndexOf('.'); if (lastPatternDot != -1) { if (matchRule != SearchPattern.RULE_EXACT_MATCH) { @@ -950,8 +950,8 @@ public class FilteredResourcesSelectionDialog extends } return true; } - - return false; + + return false; } private boolean nameMatches(String name) { @@ -1007,7 +1007,7 @@ public class FilteredResourcesSelectionDialog extends /** * Check show derived flag for a filter - * + * * @return true if filter allow derived resources false if not */ public boolean isShowDerived() { diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/MarkerResolutionSelectionDialog.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/MarkerResolutionSelectionDialog.java index 86518983e6d..e4fd97ee586 100644 --- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/MarkerResolutionSelectionDialog.java +++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/MarkerResolutionSelectionDialog.java @@ -6,7 +6,7 @@ * http://www.eclipse.org/legal/epl-v10.html * * Contributors: - * IBM Corporation - initial API and implementation + * IBM Corporation - initial API and implementation * Sebastian Davids <sdavids@gmx.de> - Fix for bug 19346 - Dialog font should be activated and used by other components. * Simon Scholz <simon.scholz@vogella.com> - Bug 448060 *******************************************************************************/ @@ -36,10 +36,10 @@ import org.eclipse.ui.internal.ide.IIDEHelpContextIds; * Dialog to allow the user to select from a list of marker * resolutions. * <p> - * This dialog may be instantiated, it is not intented to + * This dialog may be instantiated, it is not intented to * be subclassed. * </p> - * + * * @since 2.0 * @noextend This class is not intended to be subclassed by clients. */ @@ -70,7 +70,7 @@ public class MarkerResolutionSelectionDialog extends SelectionDialog { * <p> * There must be at least one resolution. * </p> - * + * * @param shell the parent shell * @param markerResolutions the resolutions to display */ @@ -99,7 +99,7 @@ public class MarkerResolutionSelectionDialog extends SelectionDialog { // Create label createMessageArea(composite); - // Create list viewer + // Create list viewer listViewer = new ListViewer(composite, SWT.SINGLE | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER); GridData data = new GridData(GridData.FILL_BOTH); @@ -107,7 +107,7 @@ public class MarkerResolutionSelectionDialog extends SelectionDialog { data.widthHint = convertWidthInCharsToPixels(LIST_WIDTH); listViewer.getList().setLayoutData(data); listViewer.getList().setFont(parent.getFont()); - // Set the label provider + // Set the label provider listViewer.setLabelProvider(new LabelProvider() { @Override public String getText(Object element) { diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/NewFolderDialog.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/NewFolderDialog.java index 289773f6f21..0dab4fec45e 100644 --- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/NewFolderDialog.java +++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/NewFolderDialog.java @@ -78,7 +78,7 @@ public class NewFolderDialog extends SelectionStatusDialog { private boolean firstLinkCheck = true; /** - * Parent composite of the advanced widget group for creating + * Parent composite of the advanced widget group for creating * linked resources. */ private Composite linkedResourceParent; @@ -89,14 +89,14 @@ public class NewFolderDialog extends SelectionStatusDialog { private Composite linkedResourceComposite; /** - * Height of the dialog without the "advanced" linked resource group. - * Set when the advanced group is first made visible. + * Height of the dialog without the "advanced" linked resource group. + * Set when the advanced group is first made visible. */ private int basicShellHeight = -1; /** * Creates a NewFolderDialog - * + * * @param parentShell parent of the new dialog * @param container parent of the new folder */ @@ -110,11 +110,11 @@ public class NewFolderDialog extends SelectionStatusDialog { /** * Creates the folder using the name and link target entered * by the user. - * Sets the dialog result to the created folder. + * Sets the dialog result to the created folder. */ @Override protected void computeResult() { - //Do nothing here as we + //Do nothing here as we //need to know the result } @@ -138,7 +138,7 @@ public class NewFolderDialog extends SelectionStatusDialog { /** * Creates the widget for advanced options. - * + * * @param parent the parent composite */ protected void createAdvancedControls(Composite parent) { @@ -241,8 +241,8 @@ public class NewFolderDialog extends SelectionStatusDialog { /** * Creates a folder resource handle for the folder with the given name. - * The folder handle is created relative to the container specified during - * object creation. + * The folder handle is created relative to the container specified during + * object creation. * * @param folderName the name of the folder resource to create a handle for * @return the new folder resource handle @@ -258,7 +258,7 @@ public class NewFolderDialog extends SelectionStatusDialog { /** * Creates a new folder with the given name and optionally linking to * the specified link target. - * + * * @param folderName name of the new folder * @param linkTarget name of the link target folder. may be null. * @return IFolder the new folder @@ -322,7 +322,7 @@ public class NewFolderDialog extends SelectionStatusDialog { } /** - * Shows/hides the advanced option widgets. + * Shows/hides the advanced option widgets. */ protected void handleAdvancedButtonSelect() { Shell shell = getShell(); @@ -352,11 +352,11 @@ public class NewFolderDialog extends SelectionStatusDialog { /** * Returns whether the container specified in the constructor is * a valid parent for creating linked resources. - * - * @return boolean <code>true</code> if the container specified in + * + * @return boolean <code>true</code> if the container specified in * the constructor is a valid parent for creating linked resources. * <code>false</code> if no linked resources may be created with the - * specified container as a parent. + * specified container as a parent. */ private boolean isValidContainer() { if (container.getType() != IResource.PROJECT diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/ProjectLocationMoveDialog.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/ProjectLocationMoveDialog.java index 0cf04551324..811e7938d0c 100644 --- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/ProjectLocationMoveDialog.java +++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/ProjectLocationMoveDialog.java @@ -6,7 +6,7 @@ * http://www.eclipse.org/legal/epl-v10.html * * Contributors: - * IBM Corporation - initial API and implementation + * IBM Corporation - initial API and implementation * Sebastian Davids <sdavids@gmx.de> - Fix for bug 19346 - Dialog * font should be activated and used by other components. * Oakland Software Incorporated (Francis Upton) <francisu@ieee.org> @@ -48,7 +48,7 @@ public class ProjectLocationMoveDialog extends SelectionDialog { /** * Create a ProjectLocationMoveDialog on the supplied project parented by * the parentShell. - * + * * @param parentShell * @param existingProject */ @@ -125,7 +125,7 @@ public class ProjectLocationMoveDialog extends SelectionDialog { @Override public void reportError(String errorMessage, boolean notError) { setMessage(errorMessage); - + } }; } diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/ProjectLocationSelectionDialog.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/ProjectLocationSelectionDialog.java index afc9d23f843..b7b17b15325 100644 --- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/ProjectLocationSelectionDialog.java +++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/ProjectLocationSelectionDialog.java @@ -64,7 +64,7 @@ public class ProjectLocationSelectionDialog extends SelectionStatusDialog { /** * Create a ProjectLocationSelectionDialog on the supplied project parented * by the parentShell. - * + * * @param parentShell * @param existingProject */ @@ -79,7 +79,7 @@ public class ProjectLocationSelectionDialog extends SelectionStatusDialog { /** * Check the message. If it is null then continue otherwise inform the user * via the status value and disable the OK. - * + * * @param errorMsg * the error message to show if it is not <code>null</code> */ @@ -190,7 +190,7 @@ public class ProjectLocationSelectionDialog extends SelectionStatusDialog { /** * Creates the project name specification controls. - * + * * @param parent * the parent composite */ @@ -272,7 +272,7 @@ public class ProjectLocationSelectionDialog extends SelectionStatusDialog { /** * Get an error reporter for the receiver. - * + * * @return IErrorMessageReporter */ private IErrorMessageReporter getErrorReporter() { diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/ResourceListSelectionDialog.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/ResourceListSelectionDialog.java index f4af7926542..594284c50bd 100644 --- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/ResourceListSelectionDialog.java +++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/ResourceListSelectionDialog.java @@ -6,13 +6,13 @@ * http://www.eclipse.org/legal/epl-v10.html * * Contributors: - * IBM Corporation - initial API and implementation + * IBM Corporation - initial API and implementation * Sebastian Davids <sdavids@gmx.de> - Fix for bug 19346 - Dialog font * should be activated and used by other components. *******************************************************************************/ package org.eclipse.ui.dialogs; -import com.ibm.icu.text.Collator; +import com.ibm.icu.text.Collator; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; @@ -53,13 +53,13 @@ import org.eclipse.ui.model.WorkbenchLabelProvider; * Shows a list of resources to the user with a text entry field * for a string pattern used to filter the list of resources. * <p> - * + * * @since 2.1 */ public class ResourceListSelectionDialog extends SelectionDialog { - + private static final String DIALOG_SETTINGS_SECTION = "ResourceListSelectionDialogSettings"; //$NON-NLS-1$ - + Text pattern; Table resourceNames; @@ -87,7 +87,7 @@ public class ResourceListSelectionDialog extends SelectionDialog { int descriptorsSize; WorkbenchLabelProvider labelProvider = new WorkbenchLabelProvider(); - + boolean okEnabled = false; private boolean showDerived = false; @@ -95,7 +95,7 @@ public class ResourceListSelectionDialog extends SelectionDialog { private Button showDerivedButton; private boolean allowUserToToggleDerived; - + static class ResourceDescriptor implements Comparable { String label; @@ -121,7 +121,7 @@ public class ResourceListSelectionDialog extends SelectionDialog { Display display = resourceNames.getDisplay(); final int itemIndex[] = { 0 }; final int itemCount[] = { 0 }; - //Keep track of if the widget got disposed + //Keep track of if the widget got disposed //so that we can abort if required final boolean[] disposed = { false }; display.syncExec(new Runnable() { @@ -145,8 +145,8 @@ public class ResourceListSelectionDialog extends SelectionDialog { && (patternString.endsWith("*")) && //$NON-NLS-1$ (patternString.indexOf('*') == patternString.length() - 1)) { // Use a binary search to get first and last match when the pattern - // string ends with "*" and has no other embedded special characters. - // For this case, we can be smarter about getting the first and last + // string ends with "*" and has no other embedded special characters. + // For this case, we can be smarter about getting the first and last // match since the items are in sorted order. firstMatch = getFirstMatch(); if (firstMatch == -1) { @@ -257,7 +257,7 @@ public class ResourceListSelectionDialog extends SelectionDialog { Display display = resourceNames.getDisplay(); final int itemIndex[] = { 0 }; final int itemCount[] = { 0 }; - //Keep track of if the widget got disposed + //Keep track of if the widget got disposed //so that we can abort if required final boolean[] disposed = { false }; display.syncExec(new Runnable() { @@ -359,7 +359,7 @@ public class ResourceListSelectionDialog extends SelectionDialog { /** * Creates a new instance of the class. - * + * * @param parentShell shell to parent the dialog on * @param resources resources to display in the dialog */ @@ -372,10 +372,10 @@ public class ResourceListSelectionDialog extends SelectionDialog { /** * Creates a new instance of the class. When this constructor is used to * create the dialog, resources will be gathered dynamically as the pattern - * string is specified. Only resources of the given types that match the + * string is specified. Only resources of the given types that match the * pattern string will be listed. To further filter the matching resources, * @see #select(IResource) - * + * * @param parentShell shell to parent the dialog on * @param container container to get resources from * @param typeMask mask containing IResource types to be considered @@ -434,7 +434,7 @@ public class ResourceListSelectionDialog extends SelectionDialog { /** * Creates the contents of this dialog, initializes the * listener and the update thread. - * + * * @param parent parent to create the dialog widgets in */ @Override @@ -523,7 +523,7 @@ public class ResourceListSelectionDialog extends SelectionDialog { }); showDerivedButton.setSelection(getShowDerived()); } - + applyDialogFont(dialogArea); return dialogArea; } @@ -531,7 +531,7 @@ public class ResourceListSelectionDialog extends SelectionDialog { /** * Returns whether to include a "Show derived resources" checkbox in the dialog. * The default is <code>false</code>. - * + * * @return <code>true</code> to include the checkbox, <code>false</code> to omit * @since 3.1 */ @@ -541,14 +541,14 @@ public class ResourceListSelectionDialog extends SelectionDialog { /** * Sets whether to include a "Show derived resources" checkbox in the dialog. - * + * * @param allow <code>true</code> to include the checkbox, <code>false</code> to omit * @since 3.1 */ public void setAllowUserToToggleDerived(boolean allow) { allowUserToToggleDerived = allow; } - + /** */ private void filterResources(boolean force) { @@ -573,7 +573,7 @@ public class ResourceListSelectionDialog extends SelectionDialog { && oldPattern.endsWith("*") && patternString.endsWith("*")) { //$NON-NLS-1$ //$NON-NLS-2$ int matchLength = oldPattern.length() - 1; if (patternString.regionMatches(0, oldPattern, 0, matchLength)) { - // filter the previous list of items, this is done when the + // filter the previous list of items, this is done when the // new pattern is a derivative of the old pattern updateFilterThread.firstMatch = oldThread.firstMatch; updateFilterThread.lastMatch = oldThread.lastMatch; @@ -590,7 +590,7 @@ public class ResourceListSelectionDialog extends SelectionDialog { /** * Use a binary search to get the first match for the patternString. - * This method assumes the patternString does not contain any '?' + * This method assumes the patternString does not contain any '?' * characters and that it contains only one '*' character at the end * of the string. */ @@ -670,7 +670,7 @@ public class ResourceListSelectionDialog extends SelectionDialog { /** * Return an image for a resource descriptor. - * + * * @param desc resource descriptor to return image for * @return an image for a resource descriptor. */ @@ -681,7 +681,7 @@ public class ResourceListSelectionDialog extends SelectionDialog { /** * Use a binary search to get the last match for the patternString. - * This method assumes the patternString does not contain any '?' + * This method assumes the patternString does not contain any '?' * characters and that it contains only one '*' character at the end * of the string. */ @@ -716,7 +716,7 @@ public class ResourceListSelectionDialog extends SelectionDialog { * Gather the resources of the specified type that match the current * pattern string. Gather the resources using the proxy visitor since * this is quicker than getting the entire resource. - * + * * @param resources resources that match */ private void getMatchingResources(final ArrayList resources) { @@ -773,17 +773,17 @@ public class ResourceListSelectionDialog extends SelectionDialog { /** * Returns whether derived resources should be shown in the list. * The default is <code>false</code>. - * + * * @return <code>true</code> to show derived resources, <code>false</code> to hide them * @since 3.1 */ protected boolean getShowDerived() { - return showDerived ; + return showDerived ; } /** * Sets whether derived resources should be shown in the list. - * + * * @param show <code>true</code> to show derived resources, <code>false</code> to hide them * @since 3.1 */ @@ -794,7 +794,7 @@ public class ResourceListSelectionDialog extends SelectionDialog { /** * Creates a ResourceDescriptor for each IResource, * sorts them and removes the duplicated ones. - * + * * @param resources resources to create resource descriptors for */ private void initDescriptors(final IResource resources[]) { @@ -829,7 +829,7 @@ public class ResourceListSelectionDialog extends SelectionDialog { current.resources.add(nextResource); // If we are merging resources with the same name, into a single descriptor, // then we must mark the descriptor unsorted so that we will sort the folder - // names. + // names. // See https://bugs.eclipse.org/bugs/show_bug.cgi?id=76496 current.resourcesSorted = false; } else { @@ -849,9 +849,9 @@ public class ResourceListSelectionDialog extends SelectionDialog { /** * Returns true if the label matches the chosen pattern. - * + * * @param label label to match with the current pattern - * @return true if the label matches the chosen pattern. + * @return true if the label matches the chosen pattern. * false otherwise. */ private boolean match(String label) { @@ -890,10 +890,10 @@ public class ResourceListSelectionDialog extends SelectionDialog { /** * Refreshes the filtered list of resources. * Called when the text in the pattern text entry has changed. - * + * * @param force if <code>true</code> a refresh is forced, if <code>false</code> a refresh only * occurs if the pattern has changed - * + * * @since 3.1 */ protected void refresh(boolean force) { @@ -907,7 +907,7 @@ public class ResourceListSelectionDialog extends SelectionDialog { /** * A new resource has been selected. Change the contents * of the folder names list. - * + * * @desc resource descriptor of the selected resource */ private void updateFolders(final ResourceDescriptor desc) { @@ -940,10 +940,10 @@ public class ResourceListSelectionDialog extends SelectionDialog { } /** - * Update the specified item with the new info from the resource + * Update the specified item with the new info from the resource * descriptor. - * Create a new table item if there is no item. - * + * Create a new table item if there is no item. + * * @param index index of the resource descriptor * @param itemPos position of the existing item to update * @param itemCount number of items in the resources table widget @@ -974,7 +974,7 @@ public class ResourceListSelectionDialog extends SelectionDialog { } updateOKState(true); } - + /** * Update the enabled state of the OK button. To be called when * the resource list is updated. @@ -987,16 +987,16 @@ public class ResourceListSelectionDialog extends SelectionDialog { okEnabled = state; } } - - + + @Override protected IDialogSettings getDialogBoundsSettings() { IDialogSettings settings = IDEWorkbenchPlugin.getDefault().getDialogSettings(); IDialogSettings section = settings.getSection(DIALOG_SETTINGS_SECTION); if (section == null) { section = settings.addNewSection(DIALOG_SETTINGS_SECTION); - } + } return section; } } - + diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/ResourceSelectionDialog.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/ResourceSelectionDialog.java index 1c57636d759..c92db010f43 100644 --- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/ResourceSelectionDialog.java +++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/ResourceSelectionDialog.java @@ -166,7 +166,7 @@ public class ResourceSelectionDialog extends SelectionDialog { } /** - * Returns a content provider for <code>IResource</code>s that returns + * Returns a content provider for <code>IResource</code>s that returns * only children of the given resource type. */ private ITreeContentProvider getResourceProvider(final int resourceType) { @@ -195,7 +195,7 @@ public class ResourceSelectionDialog extends SelectionDialog { //input element case if (o instanceof ArrayList) { return ((ArrayList) o).toArray(); - } + } return new Object[0]; } }; @@ -221,8 +221,8 @@ public class ResourceSelectionDialog extends SelectionDialog { } /** - * The <code>ResourceSelectionDialog</code> implementation of this - * <code>Dialog</code> method builds a list of the selected resources for later + * The <code>ResourceSelectionDialog</code> implementation of this + * <code>Dialog</code> method builds a list of the selected resources for later * retrieval by the client and closes this dialog. */ @Override diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/SaveAsDialog.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/SaveAsDialog.java index fc37bad7746..abaa4f63cb1 100644 --- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/SaveAsDialog.java +++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/SaveAsDialog.java @@ -6,7 +6,7 @@ * http://www.eclipse.org/legal/epl-v10.html * * Contributors: - * IBM Corporation - initial API and implementation + * IBM Corporation - initial API and implementation * Bob Foster <bob@objfac.com> * - Fix for bug 23025 - SaveAsDialog should not assume what is being saved is an IFile * Benjamin Muskalla <b.muskalla@gmx.net> @@ -56,9 +56,9 @@ import org.eclipse.ui.internal.ide.misc.ResourceAndContainerGroup; * @noextend This class is not intended to be subclassed by clients. */ public class SaveAsDialog extends TitleAreaDialog { - + private static final String DIALOG_SETTINGS_SECTION = "SaveAsDialogSettings"; //$NON-NLS-1$ - + private IFile originalFile = null; private String originalName = null; @@ -113,7 +113,7 @@ public class SaveAsDialog extends TitleAreaDialog { return contents; } - /** + /** * The <code>SaveAsDialog</code> implementation of this <code>Window</code> * method disposes of the banner image when the dialog is closed. */ @@ -169,7 +169,7 @@ public class SaveAsDialog extends TitleAreaDialog { * Returns the full path entered by the user. * <p> * Note that the file and container might not exist and would need to be created. - * See the <code>IFile.create</code> method and the + * See the <code>IFile.create</code> method and the * <code>ContainerGenerator</code> class. * </p> * @@ -199,8 +199,8 @@ public class SaveAsDialog extends TitleAreaDialog { IPath path = resourceGroup.getContainerFullPath().append( resourceGroup.getResource()); - //If the user does not supply a file extension and if the save - //as dialog was provided a default file name append the extension + //If the user does not supply a file extension and if the save + //as dialog was provided a default file name append the extension //of the default filename to the new name if (path.getFileExtension() == null) { if (originalFile != null && originalFile.getFileExtension() != null) { @@ -292,10 +292,10 @@ public class SaveAsDialog extends TitleAreaDialog { } return false; } - + String resourceName = resourceGroup.getResource(); IWorkspace workspace = ResourcesPlugin.getWorkspace(); - + // Do not allow a closed project to be selected IPath fullPath = resourceGroup.getContainerFullPath(); if (fullPath != null) { @@ -309,27 +309,27 @@ public class SaveAsDialog extends TitleAreaDialog { } } } - + IStatus result = workspace.validateName(resourceName, IResource.FILE); if (!result.isOK()){ setErrorMessage(result.getMessage()); return false; } - + setErrorMessage(null); return true; } - + @Override protected IDialogSettings getDialogBoundsSettings() { IDialogSettings settings = IDEWorkbenchPlugin.getDefault().getDialogSettings(); IDialogSettings section = settings.getSection(DIALOG_SETTINGS_SECTION); if (section == null) { section = settings.addNewSection(DIALOG_SETTINGS_SECTION); - } + } return section; } - + @Override protected boolean isResizable() { return true; diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/WizardDataTransferPage.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/WizardDataTransferPage.java index 7f7d120f5d3..c328e8f2576 100644 --- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/WizardDataTransferPage.java +++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/WizardDataTransferPage.java @@ -167,7 +167,7 @@ public abstract class WizardDataTransferPage extends WizardPage implements Liste /** * Returns whether this page is complete. This determination is made based upon * the current contents of this page's controls. Subclasses wishing to include - * their controls in this determination should override the hook methods + * their controls in this determination should override the hook methods * <code>validateSourceGroup</code> and/or <code>validateOptionsGroup</code>. * * @return <code>true</code> if this page is complete, and <code>false</code> if @@ -198,7 +198,7 @@ public abstract class WizardDataTransferPage extends WizardPage implements Liste if (text.length() == 0) { return new Path(text); } - + return (new Path(text)).makeAbsolute(); } @@ -236,12 +236,12 @@ public abstract class WizardDataTransferPage extends WizardPage implements Liste } /** - * The <code>WizardDataTransfer</code> implementation of this - * <code>IOverwriteQuery</code> method asks the user whether the existing + * The <code>WizardDataTransfer</code> implementation of this + * <code>IOverwriteQuery</code> method asks the user whether the existing * resource at the given path should be overwritten. * - * @param pathString - * @return the user's reply: one of <code>"YES"</code>, <code>"NO"</code>, <code>"ALL"</code>, + * @param pathString + * @return the user's reply: one of <code>"YES"</code>, <code>"NO"</code>, <code>"ALL"</code>, * or <code>"CANCEL"</code> */ @Override @@ -310,7 +310,7 @@ public abstract class WizardDataTransferPage extends WizardPage implements Liste /** * Restores control settings that were saved in the previous instance of this - * page. + * page. * <p> * The <code>WizardDataTransferPage</code> implementation of this method does * nothing. Subclasses may override this hook method. @@ -321,7 +321,7 @@ public abstract class WizardDataTransferPage extends WizardPage implements Liste /** * Saves control settings that are to be restored in the next instance of - * this page. + * this page. * <p> * The <code>WizardDataTransferPage</code> implementation of this method does * nothing. Subclasses may override this hook method. @@ -331,7 +331,7 @@ public abstract class WizardDataTransferPage extends WizardPage implements Liste } /** - * Determine if the page is complete and update the page appropriately. + * Determine if the page is complete and update the page appropriately. */ protected void updatePageCompletion() { boolean pageComplete = determinePageCompletion(); @@ -359,7 +359,7 @@ public abstract class WizardDataTransferPage extends WizardPage implements Liste * <code>true</code>. Subclasses may reimplement this hook method. * </p> * - * @return <code>true</code> indicating validity of all controls in the + * @return <code>true</code> indicating validity of all controls in the * destination specification group */ protected boolean validateDestinationGroup() { @@ -389,7 +389,7 @@ public abstract class WizardDataTransferPage extends WizardPage implements Liste * <code>true</code>. Subclasses may reimplement this hook method. * </p> * - * @return <code>true</code> indicating validity of all controls in the + * @return <code>true</code> indicating validity of all controls in the * source specification group */ protected boolean validateSourceGroup() { diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/WizardExportPage.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/WizardExportPage.java index 29a4f3686c3..f468b24a0f6 100644 --- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/WizardExportPage.java +++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/WizardExportPage.java @@ -56,7 +56,7 @@ import org.eclipse.ui.internal.ide.IDEWorkbenchPlugin; * selection facilities. * </p> * <p> - * Subclasses must implement + * Subclasses must implement * <ul> * <li><code>createDestinationGroup</code></li> * </ul> @@ -124,7 +124,7 @@ public abstract class WizardExportPage extends WizardDataTransferPage { private static final String STORE_EXPORT_ALL_RESOURCES_ID = "WizardFileSystemExportPage1.STORE_EXPORT_ALL_RESOURCES_ID.";//$NON-NLS-1$ /** - * Creates an export wizard page. If the current resource selection + * Creates an export wizard page. If the current resource selection * is not empty then it will be used as the initial collection of resources * selected for export. * @@ -137,8 +137,8 @@ public abstract class WizardExportPage extends WizardDataTransferPage { } /** - * The <code>WizardExportPage</code> implementation of this - * <code>WizardDataTransferPage</code> method returns <code>false</code>. + * The <code>WizardExportPage</code> implementation of this + * <code>WizardDataTransferPage</code> method returns <code>false</code>. * Subclasses may override this method. */ @Override @@ -223,7 +223,7 @@ public abstract class WizardExportPage extends WizardDataTransferPage { resourceBrowseButton.setLayoutData(new GridData( GridData.HORIZONTAL_ALIGN_FILL | GridData.GRAB_HORIZONTAL)); - // export all types radio + // export all types radio exportAllTypesRadio = new Button(sourceGroup, SWT.RADIO); exportAllTypesRadio.setText(IDEWorkbenchMessages.WizardExportPage_allTypes); exportAllTypesRadio.addListener(SWT.Selection, this); @@ -319,12 +319,12 @@ public abstract class WizardExportPage extends WizardDataTransferPage { } /** - * Returns a new subcollection containing only those resources which are not + * Returns a new subcollection containing only those resources which are not * local. * - * @param originalList the original list of resources (element type: + * @param originalList the original list of resources (element type: * <code>IResource</code>) - * @return the new list of non-local resources (element type: + * @return the new list of non-local resources (element type: * <code>IResource</code>) */ protected List extractNonLocalResources(List originalList) { @@ -381,11 +381,11 @@ public abstract class WizardExportPage extends WizardDataTransferPage { } /** - * Returns this page's collection of currently-specified resources to be - * exported. This is the primary resource selection facility accessor for + * Returns this page's collection of currently-specified resources to be + * exported. This is the primary resource selection facility accessor for * subclasses. * - * @return the collection of resources currently selected for export (element + * @return the collection of resources currently selected for export (element * type: <code>IResource</code>) */ protected List getSelectedResources() { @@ -404,7 +404,7 @@ public abstract class WizardExportPage extends WizardDataTransferPage { * Returns the resource object specified in the resource name entry field, * or <code>null</code> if such a resource does not exist in the workbench. * - * @return the resource specified in the resource name entry field, or + * @return the resource specified in the resource name entry field, or * <code>null</code> */ protected IResource getSourceResource() { @@ -441,7 +441,7 @@ public abstract class WizardExportPage extends WizardDataTransferPage { /** * Returns the resource extensions currently specified to be exported. * - * @return the resource extensions currently specified to be exported (element + * @return the resource extensions currently specified to be exported (element * type: <code>String</code>) */ protected List getTypesToExport() { @@ -460,7 +460,7 @@ public abstract class WizardExportPage extends WizardDataTransferPage { } /** - * The <code>WizardExportPage</code> implementation of this + * The <code>WizardExportPage</code> implementation of this * <code>Listener</code> method handles all events and enablements for controls * on this page. Subclasses may extend. */ @@ -555,7 +555,7 @@ public abstract class WizardExportPage extends WizardDataTransferPage { * has been specified for export by the user. * * @param resourceName the resource name - * @return <code>true</code> if the resource name is suitable for export based + * @return <code>true</code> if the resource name is suitable for export based * upon its extension */ protected boolean hasExportableExtension(String resourceName) { @@ -583,7 +583,7 @@ public abstract class WizardExportPage extends WizardDataTransferPage { /** * Persists additional setting that are to be restored in the next instance of * this page. - * <p> + * <p> * The <code>WizardImportPage</code> implementation of this method does * nothing. Subclasses may extend to persist additional settings. * </p> @@ -594,10 +594,10 @@ public abstract class WizardExportPage extends WizardDataTransferPage { /** * Queries the user for the individual resources that are to be exported * and returns these resources as a collection. - * + * * @param rootResource the resource to use as the root of the selection query - * @return the resources selected for export (element type: - * <code>IResource</code>), or <code>null</code> if the user canceled the + * @return the resources selected for export (element type: + * <code>IResource</code>), or <code>null</code> if the user canceled the * selection */ protected Object[] queryIndividualResourcesToExport(IAdaptable rootResource) { @@ -613,8 +613,8 @@ public abstract class WizardExportPage extends WizardDataTransferPage { * Queries the user for the resource types that are to be exported and returns * these types as a collection. * - * @return the resource types selected for export (element type: - * <code>String</code>), or <code>null</code> if the user canceled the + * @return the resource types selected for export (element type: + * <code>String</code>), or <code>null</code> if the user canceled the * selection */ protected Object[] queryResourceTypesToExport() { @@ -706,7 +706,7 @@ public abstract class WizardExportPage extends WizardDataTransferPage { /** * Persists resource specification control setting that are to be restored * in the next instance of this page. Subclasses wishing to persist additional - * setting for their controls should extend hook method + * setting for their controls should extend hook method * <code>internalSaveWidgetValues</code>. */ @Override diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/WizardExportResourcesPage.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/WizardExportResourcesPage.java index 73fe964bc91..f4b68a4d3de 100644 --- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/WizardExportResourcesPage.java +++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/WizardExportResourcesPage.java @@ -53,7 +53,7 @@ import org.eclipse.ui.model.WorkbenchLabelProvider; * selection facilities. * </p> * <p> - * Subclasses must implement + * Subclasses must implement * <ul> * <li><code>createDestinationGroup</code></li> * </ul> @@ -88,7 +88,7 @@ public abstract class WizardExportResourcesPage extends WizardDataTransferPage { private final static String DESELECT_ALL_TITLE = IDEWorkbenchMessages.WizardTransferPage_deselectAll; /** - * Creates an export wizard page. If the current resource selection + * Creates an export wizard page. If the current resource selection * is not empty then it will be used as the initial collection of resources * selected for export. * @@ -103,8 +103,8 @@ public abstract class WizardExportResourcesPage extends WizardDataTransferPage { } /** - * The <code>addToHierarchyToCheckedStore</code> implementation of this - * <code>WizardDataTransferPage</code> method returns <code>false</code>. + * The <code>addToHierarchyToCheckedStore</code> implementation of this + * <code>WizardDataTransferPage</code> method returns <code>false</code>. * Subclasses may override this method. */ @Override @@ -120,14 +120,14 @@ public abstract class WizardExportResourcesPage extends WizardDataTransferPage { * including button presses and registers * default buttons with its shell. * The button id is stored as the buttons client data. - * Note that the parent's layout is assumed to be a GridLayout and + * Note that the parent's layout is assumed to be a GridLayout and * the number of columns in this layout is incremented. * Subclasses may override. * </p> * * @param parent the parent composite * @param id the id of the button (see - * <code>IDialogConstants.*_ID</code> constants + * <code>IDialogConstants.*_ID</code> constants * for standard dialog button ids) * @param label the label from the button * @param defaultButton <code>true</code> if the button is to be the @@ -254,7 +254,7 @@ public abstract class WizardExportResourcesPage extends WizardDataTransferPage { updateWidgetEnablements(); setPageComplete(determinePageCompletion()); setErrorMessage(null); // should not initially have error message - + setControl(composite); } @@ -292,14 +292,14 @@ public abstract class WizardExportResourcesPage extends WizardDataTransferPage { getResourceProvider(IResource.FILE), WorkbenchLabelProvider .getDecoratingWorkbenchLabelProvider(), SWT.NONE, DialogUtil.inRegularFontMode(parent)); - + ICheckStateListener listener = new ICheckStateListener() { @Override public void checkStateChanged(CheckStateChangedEvent event) { updateWidgetEnablements(); } }; - + this.resourceGroup.addCheckStateListener(listener); } @@ -323,12 +323,12 @@ public abstract class WizardExportResourcesPage extends WizardDataTransferPage { } /** - * Returns a new subcollection containing only those resources which are not + * Returns a new subcollection containing only those resources which are not * local. * - * @param originalList the original list of resources (element type: + * @param originalList the original list of resources (element type: * <code>IResource</code>) - * @return the new list of non-local resources (element type: + * @return the new list of non-local resources (element type: * <code>IResource</code>) */ protected List extractNonLocalResources(List originalList) { @@ -346,7 +346,7 @@ public abstract class WizardExportResourcesPage extends WizardDataTransferPage { } /** - * Returns a content provider for <code>IResource</code>s that returns + * Returns a content provider for <code>IResource</code>s that returns * only children of the given resource type. */ private ITreeContentProvider getResourceProvider(final int resourceType) { @@ -371,22 +371,22 @@ public abstract class WizardExportResourcesPage extends WizardDataTransferPage { } } return results.toArray(); - } + } //input element case if (o instanceof ArrayList) { return ((ArrayList) o).toArray(); - } + } return new Object[0]; } }; } /** - * Returns this page's collection of currently-specified resources to be - * exported. This is the primary resource selection facility accessor for + * Returns this page's collection of currently-specified resources to be + * exported. This is the primary resource selection facility accessor for * subclasses. * - * @return a collection of resources currently selected + * @return a collection of resources currently selected * for export (element type: <code>IResource</code>) */ protected List getSelectedResources() { @@ -400,11 +400,11 @@ public abstract class WizardExportResourcesPage extends WizardDataTransferPage { } /** - * Returns this page's collection of currently-specified resources to be - * exported. This is the primary resource selection facility accessor for + * Returns this page's collection of currently-specified resources to be + * exported. This is the primary resource selection facility accessor for * subclasses. * - * @return an iterator over the collection of resources currently selected + * @return an iterator over the collection of resources currently selected * for export (element type: <code>IResource</code>). This will include * white checked folders and individually checked files. */ @@ -415,7 +415,7 @@ public abstract class WizardExportResourcesPage extends WizardDataTransferPage { /** * Returns the resource extensions currently specified to be exported. * - * @return the resource extensions currently specified to be exported (element + * @return the resource extensions currently specified to be exported (element * type: <code>String</code>) */ protected List getTypesToExport() { @@ -424,11 +424,11 @@ public abstract class WizardExportResourcesPage extends WizardDataTransferPage { } /** - * Returns this page's collection of currently-specified resources to be + * Returns this page's collection of currently-specified resources to be * exported. This returns both folders and files - for just the files use * getSelectedResources. * - * @return a collection of resources currently selected + * @return a collection of resources currently selected * for export (element type: <code>IResource</code>) */ protected List getWhiteCheckedResources() { @@ -458,7 +458,7 @@ public abstract class WizardExportResourcesPage extends WizardDataTransferPage { * has been specified for export by the user. * * @param resourceName the resource name - * @return <code>true</code> if the resource name is suitable for export based + * @return <code>true</code> if the resource name is suitable for export based * upon its extension */ protected boolean hasExportableExtension(String resourceName) { @@ -486,7 +486,7 @@ public abstract class WizardExportResourcesPage extends WizardDataTransferPage { /** * Persists additional setting that are to be restored in the next instance of * this page. - * <p> + * <p> * The <code>WizardImportPage</code> implementation of this method does * nothing. Subclasses may extend to persist additional settings. * </p> @@ -498,8 +498,8 @@ public abstract class WizardExportResourcesPage extends WizardDataTransferPage { * Queries the user for the resource types that are to be exported and returns * these types as an array. * - * @return the resource types selected for export (element type: - * <code>String</code>), or <code>null</code> if the user canceled the + * @return the resource types selected for export (element type: + * <code>String</code>), or <code>null</code> if the user canceled the * selection */ protected Object[] queryResourceTypesToExport() { @@ -523,7 +523,7 @@ public abstract class WizardExportResourcesPage extends WizardDataTransferPage { /** * Persists resource specification control setting that are to be restored * in the next instance of this page. Subclasses wishing to persist additional - * setting for their controls should extend hook method + * setting for their controls should extend hook method * <code>internalSaveWidgetValues</code>. */ @Override @@ -634,7 +634,7 @@ public abstract class WizardExportResourcesPage extends WizardDataTransferPage { return IDEWorkbenchPlugin.getDefault().getWorkbench().saveAllEditors( true); } - + /** * Check if widgets are enabled or disabled by a change in the dialog. */ diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/WizardImportPage.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/WizardImportPage.java index be5c5e2a834..51995161e90 100644 --- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/WizardImportPage.java +++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/WizardImportPage.java @@ -36,7 +36,7 @@ import org.eclipse.ui.internal.ide.IDEWorkbenchPlugin; * selection facilities. * </p> * <p> - * Subclasses must implement + * Subclasses must implement * <ul> * <li><code>createSourceGroup</code></li> * </ul> @@ -68,7 +68,7 @@ public abstract class WizardImportPage extends WizardDataTransferPage { private Button containerBrowseButton; /** - * Creates an import wizard page. If the initial resource selection + * Creates an import wizard page. If the initial resource selection * contains exactly one container resource then it will be used as the default * import destination. * @@ -97,8 +97,8 @@ public abstract class WizardImportPage extends WizardDataTransferPage { } /** - * The <code>WizardImportPage</code> implementation of this - * <code>WizardDataTransferPage</code> method returns <code>true</code>. + * The <code>WizardImportPage</code> implementation of this + * <code>WizardDataTransferPage</code> method returns <code>true</code>. * Subclasses may override this method. */ @Override @@ -259,7 +259,7 @@ public abstract class WizardImportPage extends WizardDataTransferPage { } /** - * The <code>WizardImportPage</code> implementation of this + * The <code>WizardImportPage</code> implementation of this * <code>Listener</code> method handles all events and enablements for controls * on this page. Subclasses may extend. */ diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/WizardNewFileCreationPage.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/WizardNewFileCreationPage.java index 926c7407423..28f200958ab 100644 --- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/WizardNewFileCreationPage.java +++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/WizardNewFileCreationPage.java @@ -117,7 +117,7 @@ public class WizardNewFileCreationPage extends WizardPage implements Listener { /** * The file extension to use for this page's file name field when it does * not exist yet. - * + * * @see WizardNewFileCreationPage#setFileExtension(String) * @since 3.3 */ @@ -142,7 +142,7 @@ public class WizardNewFileCreationPage extends WizardPage implements Listener { * Creates a new file creation wizard page. If the initial resource * selection contains exactly one container resource then it will be used as * the default container resource. - * + * * @param pageName * the name of the page * @param selection @@ -157,7 +157,7 @@ public class WizardNewFileCreationPage extends WizardPage implements Listener { /** * Creates the widget for advanced options. - * + * * @param parent * the parent composite */ @@ -267,7 +267,7 @@ public class WizardNewFileCreationPage extends WizardPage implements Listener { /** * Creates a file resource given the file handle and contents. - * + * * @param fileHandle * the file handle to create a file resource with * @param contents @@ -279,7 +279,7 @@ public class WizardNewFileCreationPage extends WizardPage implements Listener { * if the operation fails * @exception OperationCanceledException * if the operation is canceled - * + * * @deprecated As of 3.3, use or override {@link #createNewFile()} which * uses the undoable operation support. To supply customized * file content for a subclass, use @@ -334,7 +334,7 @@ public class WizardNewFileCreationPage extends WizardPage implements Listener { * Creates a file resource handle for the file with the given workspace * path. This method does not create the file resource; this is the * responsibility of <code>createFile</code>. - * + * * @param filePath * the path of the file resource to create a handle for * @return the new file resource handle @@ -370,7 +370,7 @@ public class WizardNewFileCreationPage extends WizardPage implements Listener { * This method should be called within a workspace modify operation since it * creates resources. * </p> - * + * * @return the created file resource, or <code>null</code> if the file was * not created */ @@ -387,7 +387,7 @@ public class WizardNewFileCreationPage extends WizardPage implements Listener { final InputStream initialContents = getInitialContents(); createLinkTarget(); - + if (linkTargetPath != null) { URI resolvedPath = newFileHandle.getPathVariableManager().resolveURI(linkTargetPath); try { @@ -396,7 +396,7 @@ public class WizardNewFileCreationPage extends WizardPage implements Listener { if (!store.fetchInfo().exists()) { MessageDialog dlg = new MessageDialog(getContainer().getShell(), IDEWorkbenchMessages.WizardNewFileCreationPage_createLinkLocationTitle, - null, + null, NLS.bind( IDEWorkbenchMessages.WizardNewFileCreationPage_createLinkLocationQuestion, linkTargetPath), MessageDialog.QUESTION_WITH_CANCEL, @@ -423,7 +423,7 @@ public class WizardNewFileCreationPage extends WizardPage implements Listener { .bind( IDEWorkbenchMessages.WizardNewFileCreationPage_internalErrorMessage, e.getMessage()), SWT.SHEET); - + return null; } catch (IOException e) { MessageDialog @@ -434,7 +434,7 @@ public class WizardNewFileCreationPage extends WizardPage implements Listener { .bind( IDEWorkbenchMessages.WizardNewFileCreationPage_internalErrorMessage, e.getMessage()), SWT.SHEET); - + return null; } } @@ -448,7 +448,7 @@ public class WizardNewFileCreationPage extends WizardPage implements Listener { try { // see bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=219901 // directly execute the operation so that the undo state is - // not preserved. Making this undoable resulted in too many + // not preserved. Making this undoable resulted in too many // accidental file deletions. op.execute(monitor, WorkspaceUndoUtil .getUIInfoAdapter(getShell())); @@ -521,7 +521,7 @@ public class WizardNewFileCreationPage extends WizardPage implements Listener { * Returns the scheduling rule to use when creating the resource at the * given container path. The rule should be the creation rule for the * top-most non-existing parent. - * + * * @param resource * The resource being created * @return The scheduling rule for creating the given resource @@ -546,7 +546,7 @@ public class WizardNewFileCreationPage extends WizardPage implements Listener { /** * Returns the current full path of the containing resource as entered or * selected by the user, or its anticipated initial value. - * + * * @return the container's full path, anticipated initial value, or * <code>null</code> if no path is known */ @@ -560,9 +560,9 @@ public class WizardNewFileCreationPage extends WizardPage implements Listener { * <br> * The current file name will include the file extension if the * preconditions are met. - * + * * @see WizardNewFileCreationPage#setFileExtension(String) - * + * * @return the file name, its anticipated initial value, or * <code>null</code> if no file name is known */ @@ -576,7 +576,7 @@ public class WizardNewFileCreationPage extends WizardPage implements Listener { /** * Returns the file extension to use when creating the new file. - * + * * @return the file extension or <code>null</code>. * @see WizardNewFileCreationPage#setFileExtension(String) * @since 3.3 @@ -592,7 +592,7 @@ public class WizardNewFileCreationPage extends WizardPage implements Listener { * Returns a stream containing the initial contents to be given to new file * resource instances. <b>Subclasses</b> may wish to override. This default * implementation provides no initial contents. - * + * * @return initial contents to be given to new file resource instances */ protected InputStream getInitialContents() { @@ -605,7 +605,7 @@ public class WizardNewFileCreationPage extends WizardPage implements Listener { * <p> * Subclasses may reimplement. * </p> - * + * * @return the label to display in the file name specification visual * component group */ @@ -657,7 +657,7 @@ public class WizardNewFileCreationPage extends WizardPage implements Listener { if (path != null) setDefaultLinkValue = path.toPortableString().length() > 0; } - + if (setDefaultLinkValue) { IPath containerPath = resourceGroup.getContainerFullPath(); IPath newFilePath = containerPath.append(resourceGroup.getResource()); @@ -722,7 +722,7 @@ public class WizardNewFileCreationPage extends WizardPage implements Listener { /** * Sets the flag indicating whether existing resources are permitted to be * specified on this page. - * + * * @param value * <code>true</code> if existing resources are permitted, and * <code>false</code> otherwise @@ -739,7 +739,7 @@ public class WizardNewFileCreationPage extends WizardPage implements Listener { /** * Sets the value of this page's container name field, or stores it for * future use if this page's controls do not exist yet. - * + * * @param path * the full path to the container */ @@ -754,7 +754,7 @@ public class WizardNewFileCreationPage extends WizardPage implements Listener { /** * Sets the value of this page's file name field, or stores it for future * use if this page's controls do not exist yet. - * + * * @param value * new file name */ @@ -781,7 +781,7 @@ public class WizardNewFileCreationPage extends WizardPage implements Listener { * <br> * The file extension will not be reflected in the actual file name field * until the file name field loses focus. - * + * * @param value * The file extension without the '.' prefix (e.g. 'java', 'xml') * @since 3.3 @@ -797,7 +797,7 @@ public class WizardNewFileCreationPage extends WizardPage implements Listener { /** * Checks whether the linked resource target is valid. Sets the error * message accordingly and returns the status. - * + * * @return IStatus validation result from the CreateLinkedResourceGroup */ protected IStatus validateLinkedResource() { @@ -823,7 +823,7 @@ public class WizardNewFileCreationPage extends WizardPage implements Listener { /** * Returns whether this page's controls currently all contain valid values. - * + * * @return <code>true</code> if all controls are valid, and * <code>false</code> if at least one is invalid */ diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/WizardNewFolderMainPage.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/WizardNewFolderMainPage.java index a6da2b190d5..4397a1e9b52 100644 --- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/WizardNewFolderMainPage.java +++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/WizardNewFolderMainPage.java @@ -104,18 +104,18 @@ public class WizardNewFolderMainPage extends WizardPage implements Listener { private Button useDefaultLocation; private Button useVirtualFolder; private Button useLinkedResource; - + private Button filterButton; - + private CreateLinkedResourceGroup linkedResourceGroup; private Composite advancedComposite; - + private Composite linkedResourceComposite; private Composite linkedGroupComposite; private UIResourceFilterDescription[] filterList = null; - + /** * Height of the "advanced" linked resource group. Set when the advanced * group is first made visible. @@ -131,7 +131,7 @@ public class WizardNewFolderMainPage extends WizardPage implements Listener { * Creates a new folder creation wizard page. If the initial resource * selection contains exactly one container resource then it will be used as * the default container resource. - * + * * @param pageName * the name of the page * @param selection @@ -147,7 +147,7 @@ public class WizardNewFolderMainPage extends WizardPage implements Listener { /** * Creates the widget for advanced options. - * + * * @param parent * the parent composite */ @@ -165,7 +165,7 @@ public class WizardNewFolderMainPage extends WizardPage implements Listener { layout.marginWidth = 0; advancedComposite.setLayout(layout); - + advancedButton = new Button(advancedComposite, SWT.PUSH); advancedButton.setFont(advancedComposite.getFont()); advancedButton.setText(IDEWorkbenchMessages.showAdvanced); @@ -237,7 +237,7 @@ public class WizardNewFolderMainPage extends WizardPage implements Listener { if (path != null) setDefaultLinkValue = path.toPortableString().length() > 0; } - + if (setDefaultLinkValue) { IPath containerPath = resourceGroup.getContainerFullPath(); IPath newFilePath = containerPath.append(resourceGroup.getResource()); @@ -289,7 +289,7 @@ public class WizardNewFolderMainPage extends WizardPage implements Listener { /** * Creates a folder resource given the folder handle. - * + * * @param folderHandle * the folder handle to create a folder resource for * @param monitor @@ -298,7 +298,7 @@ public class WizardNewFolderMainPage extends WizardPage implements Listener { * if the operation fails * @exception OperationCanceledException * if the operation is canceled - * + * * @deprecated As of 3.3, use {@link #createNewFolder()} which uses the * undoable operation support. */ @@ -355,7 +355,7 @@ public class WizardNewFolderMainPage extends WizardPage implements Listener { * Creates a folder resource handle for the folder with the given workspace * path. This method does not create the folder resource; this is the * responsibility of <code>createFolder</code>. - * + * * @param folderPath * the path of the folder resource to create a handle for * @return the new folder resource handle @@ -369,7 +369,7 @@ public class WizardNewFolderMainPage extends WizardPage implements Listener { /** * Creates a container resource handle for the container with the given workspace path. This * method does not create the resource. - * + * * @param containerPath the path of the container resource to create a handle for * @return the new container resource handle * @see #createFolder @@ -408,7 +408,7 @@ public class WizardNewFolderMainPage extends WizardPage implements Listener { * This method should be called within a workspace modify operation since it * creates resources. * </p> - * + * * @return the created folder resource, or <code>null</code> if the folder * was not created */ @@ -431,7 +431,7 @@ public class WizardNewFolderMainPage extends WizardPage implements Listener { if (!store.fetchInfo().exists()) { MessageDialog dlg = new MessageDialog(getContainer().getShell(), IDEWorkbenchMessages.WizardNewFolderCreationPage_createLinkLocationTitle, - null, + null, NLS.bind( IDEWorkbenchMessages.WizardNewFolderCreationPage_createLinkLocationQuestion, linkTargetPath), MessageDialog.QUESTION_WITH_CANCEL, @@ -455,9 +455,9 @@ public class WizardNewFolderMainPage extends WizardPage implements Listener { .bind( IDEWorkbenchMessages.WizardNewFileCreationPage_internalErrorMessage, e.getMessage()), SWT.SHEET); - + return null; - } + } } IRunnableWithProgress op = new IRunnableWithProgress() { @Override @@ -571,14 +571,14 @@ public class WizardNewFolderMainPage extends WizardPage implements Listener { IDEWorkbenchPlugin.IDE_WORKBENCH, "$nl$/icons/full/ovr16/link_ovr.png")}; //$NON-NLS-1$ - CompositeImageDescriptor linkedFolderDescriptor = new OverlayIcon(folderDescriptor, linkedResourceOverlayMap, new Point(16, 16)); + CompositeImageDescriptor linkedFolderDescriptor = new OverlayIcon(folderDescriptor, linkedResourceOverlayMap, new Point(16, 16)); ImageDescriptor[][] virtualFolderOverlayMap = new ImageDescriptor[4][1]; virtualFolderOverlayMap[1]= new ImageDescriptor[] {AbstractUIPlugin.imageDescriptorFromPlugin( IDEWorkbenchPlugin.IDE_WORKBENCH, "$nl$/icons/full/ovr16/virt_ovr.png")}; //$NON-NLS-1$ - CompositeImageDescriptor virtualFolderDescriptor = new OverlayIcon(folderDescriptor, virtualFolderOverlayMap, new Point(16, 16)); + CompositeImageDescriptor virtualFolderDescriptor = new OverlayIcon(folderDescriptor, virtualFolderOverlayMap, new Point(16, 16)); Image folderImage = folderDescriptor.createImage(); useDefaultLocation = new Button(advancedComposite, SWT.RADIO); @@ -621,13 +621,13 @@ public class WizardNewFolderMainPage extends WizardPage implements Listener { handleRadioSelect(); } }; - + useLinkedResource.addSelectionListener(radioListener); useVirtualFolder.addSelectionListener(radioListener); useDefaultLocation.addSelectionListener(radioListener); - + useDefaultLocation.setSelection(true); - + linkedGroupComposite = new Composite(advancedComposite, 0); data = new GridData(SWT.FILL, SWT.BEGINNING, true, false); data.horizontalIndent = indent; @@ -685,7 +685,7 @@ public class WizardNewFolderMainPage extends WizardPage implements Listener { if (dialog.open() == Window.OK) filterList = dialog.getFilters(); } - + /** * The <code>WizardNewFolderCreationPage</code> implementation of this * <code>Listener</code> method handles all events and enablements for @@ -738,7 +738,7 @@ public class WizardNewFolderMainPage extends WizardPage implements Listener { /** * Checks whether the linked resource target is valid. Sets the error * message accordingly and returns the status. - * + * * @return IStatus validation result from the CreateLinkedResourceGroup */ protected IStatus validateLinkedResource() { @@ -763,7 +763,7 @@ public class WizardNewFolderMainPage extends WizardPage implements Listener { /** * Returns whether this page's controls currently all contain valid values. - * + * * @return <code>true</code> if all controls are valid, and * <code>false</code> if at least one is invalid */ @@ -804,16 +804,16 @@ public class WizardNewFolderMainPage extends WizardPage implements Listener { setMessage(null); setErrorMessage(null); } - + if (isFilteredByParent()) { setMessage(IDEWorkbenchMessages.WizardNewFolderCreationPage_resourceWillBeFilteredWarning, IMessageProvider.ERROR); setupLinkedResourceTarget(); valid = false; } - + return valid; } - + private boolean isFilteredByParent() { boolean createVirtualFolder = useVirtualFolder != null && useVirtualFolder.getSelection(); if (createVirtualFolder) diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/WizardNewLinkPage.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/WizardNewLinkPage.java index 614e58e7196..40149729e9f 100644 --- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/WizardNewLinkPage.java +++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/WizardNewLinkPage.java @@ -6,7 +6,7 @@ * http://www.eclipse.org/legal/epl-v10.html * * Contributors: - * IBM Corporation - initial API and implementation + * IBM Corporation - initial API and implementation * Sebastian Davids <sdavids@gmx.de> - Fix for bug 19346 - Dialog * font should be activated and used by other components. *******************************************************************************/ @@ -47,7 +47,7 @@ import org.eclipse.ui.internal.ide.IIDEHelpContextIds; import org.eclipse.ui.internal.ide.dialogs.IDEResourceInfoUtils; /** - * Standard resource link page for a wizard that creates a file or + * Standard resource link page for a wizard that creates a file or * folder resource. * <p> * This class may be instantiated; it is not intended to be subclassed. @@ -72,10 +72,10 @@ public class WizardNewLinkPage extends WizardPage { private Button variablesButton; /** - * Creates a new resource link wizard page. + * Creates a new resource link wizard page. * * @param pageName the name of the page - * @param type specifies the type of resource to link to. + * @param type specifies the type of resource to link to. * <code>IResource.FILE</code> or <code>IResource.FOLDER</code> */ public WizardNewLinkPage(String pageName, int type) { @@ -195,7 +195,7 @@ public class WizardNewLinkPage extends WizardPage { } /** - * Returns the link target location entered by the user. + * Returns the link target location entered by the user. * * @return the link target location entered by the user. null if the user * choose not to create a link. @@ -273,7 +273,7 @@ public class WizardNewLinkPage extends WizardPage { /** * Sets the container to use for link validation. - * This should be the parent of the new resource that is being + * This should be the parent of the new resource that is being * linked. * * @param container the container to use for link validation. @@ -284,7 +284,7 @@ public class WizardNewLinkPage extends WizardPage { /** * Sets the value of the link target field - * + * * @param target the value of the link target field */ public void setLinkTarget(String target) { @@ -297,7 +297,7 @@ public class WizardNewLinkPage extends WizardPage { /** * Validates the type of the given file against the link type specified * during page creation. - * + * * @param linkTargetStore file to validate * @return boolean <code>true</code> if the link target type is valid * and <code>false</code> otherwise. @@ -340,7 +340,7 @@ public class WizardNewLinkPage extends WizardPage { } /** - * Returns whether this page's controls currently all contain valid + * Returns whether this page's controls currently all contain valid * values. * * @return <code>true</code> if all controls are valid, and diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/WizardNewProjectCreationPage.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/WizardNewProjectCreationPage.java index 430d91e3879..b2b2450a85f 100644 --- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/WizardNewProjectCreationPage.java +++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/WizardNewProjectCreationPage.java @@ -71,7 +71,7 @@ public class WizardNewProjectCreationPage extends WizardPage { setLocationForSelection(); boolean valid = validatePage(); setPageComplete(valid); - + } }; @@ -94,11 +94,11 @@ public class WizardNewProjectCreationPage extends WizardPage { /** * Creates a new project creation wizard page. - * + * * @param pageName * @param selection * @param workingSetTypes - * + * * @deprecated default placement of the working set group has been removed. * If you wish to use the working set block please call * {@link #createWorkingSetGroup(Composite, IStructuredSelection, String[])} @@ -118,7 +118,7 @@ public class WizardNewProjectCreationPage extends WizardPage { @Override public void createControl(Composite parent) { Composite composite = new Composite(parent, SWT.NULL); - + initializeDialogUnits(parent); @@ -133,10 +133,10 @@ public class WizardNewProjectCreationPage extends WizardPage { if(initialProjectFieldValue != null) { locationArea.updateProjectName(initialProjectFieldValue); } - + // Scale the button based on the rest of the dialog setButtonLayoutData(locationArea.getBrowseButton()); - + setPageComplete(validatePage()); // Show description on opening setErrorMessage(null); @@ -144,11 +144,11 @@ public class WizardNewProjectCreationPage extends WizardPage { setControl(composite); Dialog.applyDialogFont(composite); } - + /** * Create a working set group for this page. This method can only be called * once. - * + * * @param composite * the composite in which to create the group * @param selection @@ -168,7 +168,7 @@ public class WizardNewProjectCreationPage extends WizardPage { supportedWorkingSetTypes); return workingSetGroup; } - + /** * Get an error reporter for the receiver. * @return IErrorMessageReporter @@ -187,7 +187,7 @@ public class WizardNewProjectCreationPage extends WizardPage { if(valid) { valid = validatePage(); } - + setPageComplete(valid); } }; @@ -229,7 +229,7 @@ public class WizardNewProjectCreationPage extends WizardPage { /** - * Returns the current project location path as entered by + * Returns the current project location path as entered by * the user, or its anticipated initial value. * Note that if the default has been returned the path * in a project description used to create a project @@ -240,10 +240,10 @@ public class WizardNewProjectCreationPage extends WizardPage { public IPath getLocationPath() { return new Path(locationArea.getProjectLocation()); } - + /** /** - * Returns the current project location URI as entered by + * Returns the current project location URI as entered by * the user, or <code>null</code> if a valid project location * has not been entered. * @@ -262,7 +262,7 @@ public class WizardNewProjectCreationPage extends WizardPage { * responsibility of <code>IProject::create</code> invoked by the new * project resource wizard. * </p> - * + * * @return the new project resource handle */ public IProject getProjectHandle() { @@ -288,7 +288,7 @@ public class WizardNewProjectCreationPage extends WizardPage { /** * Returns the value of the project name field * with leading and trailing spaces removed. - * + * * @return the project name in the field */ private String getProjectNameFieldValue() { @@ -304,15 +304,15 @@ public class WizardNewProjectCreationPage extends WizardPage { * created. The name is ignored if the createControl(Composite) * method has already been called. Leading and trailing spaces * in the name are ignored. - * Providing the name of an existing project will not necessarily - * cause the wizard to warn the user. Callers of this method - * should first check if the project name passed already exists + * Providing the name of an existing project will not necessarily + * cause the wizard to warn the user. Callers of this method + * should first check if the project name passed already exists * in the workspace. - * + * * @param name initial project name for this page - * + * * @see IWorkspace#validateName(String, int) - * + * */ public void setInitialProjectName(String name) { if (name == null) { @@ -332,9 +332,9 @@ public class WizardNewProjectCreationPage extends WizardPage { locationArea.updateProjectName(getProjectNameFieldValue()); } - + /** - * Returns whether this page's controls currently all contain valid + * Returns whether this page's controls currently all contain valid * values. * * @return <code>true</code> if all controls are valid, and @@ -362,11 +362,11 @@ public class WizardNewProjectCreationPage extends WizardPage { setErrorMessage(IDEWorkbenchMessages.WizardNewProjectCreationPage_projectExistsMessage); return false; } - + IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject( getProjectNameFieldValue()); locationArea.setExistingProject(project); - + String validLocationMessage = locationArea.checkValidLocation(); if (validLocationMessage != null) { // there is no destination location given setErrorMessage(validLocationMessage); @@ -400,7 +400,7 @@ public class WizardNewProjectCreationPage extends WizardPage { /** * Return the selected working sets, if any. If this page is not configured * to interact with working sets this will be an empty array. - * + * * @return the selected working sets * @since 3.4 */ diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/WizardNewProjectReferencePage.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/WizardNewProjectReferencePage.java index 5f99b850f29..db4bc117f74 100644 --- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/WizardNewProjectReferencePage.java +++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/WizardNewProjectReferencePage.java @@ -32,7 +32,7 @@ import org.eclipse.ui.model.WorkbenchContentProvider; import org.eclipse.ui.model.WorkbenchLabelProvider; /** - * Standard project reference page for a wizard that creates a + * Standard project reference page for a wizard that creates a * project resource. * <p> * This page may be used by clients as-is; it may be also be diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/WizardResourceImportPage.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/WizardResourceImportPage.java index c457b3df2c3..1252f1f3988 100644 --- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/WizardResourceImportPage.java +++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/WizardResourceImportPage.java @@ -7,7 +7,7 @@ * * Contributors: * IBM Corporation - initial API and implementation - * Martin Boyle <martingboyle@gmail.com> - Fix for + * Martin Boyle <martingboyle@gmail.com> - Fix for * Bug 183013 [Wizards] Error importing into linked EFS folder - "undefined path variable" * Marc-Andre Laperle (Ericsson) - Bug 279902 - [Import/Export] WizardResourceImportPage.createDestinationGroup is final *******************************************************************************/ @@ -57,7 +57,7 @@ import org.eclipse.ui.model.WorkbenchViewerComparator; * selection facilities. * </p> * <p> - * Subclasses must implement + * Subclasses must implement * <ul> * <li><code>createSourceGroup</code></li> * </ul> @@ -91,7 +91,7 @@ public abstract class WizardResourceImportPage extends WizardDataTransferPage { /** * The <code>selectionGroup</code> field should have been created with a * private modifier. Subclasses should not access this field directly. - * + * * @noreference This field is not intended to be referenced by clients. */ protected ResourceTreeAndListGroup selectionGroup; @@ -100,11 +100,11 @@ public abstract class WizardResourceImportPage extends WizardDataTransferPage { private static final String EMPTY_FOLDER_MESSAGE = IDEWorkbenchMessages.WizardImportPage_specifyFolder; private static final String EMPTY_PROJECT_MESSAGE = IDEWorkbenchMessages.WizardImportPage_specifyProject; - + private static final String INACCESSABLE_FOLDER_MESSAGE = IDEWorkbenchMessages.WizardImportPage_folderMustExist; /** - * Creates an import wizard page. If the initial resource selection + * Creates an import wizard page. If the initial resource selection * contains exactly one container resource then it will be used as the default * import destination. * @@ -141,8 +141,8 @@ public abstract class WizardResourceImportPage extends WizardDataTransferPage { } /** - * The <code>WizardResourceImportPage</code> implementation of this - * <code>WizardDataTransferPage</code> method returns <code>true</code>. + * The <code>WizardResourceImportPage</code> implementation of this + * <code>WizardDataTransferPage</code> method returns <code>true</code>. * Subclasses may override this method. */ @Override @@ -297,13 +297,13 @@ public abstract class WizardResourceImportPage extends WizardDataTransferPage { } /** - * Returns a content provider for <code>FileSystemElement</code>s that returns + * Returns a content provider for <code>FileSystemElement</code>s that returns * only files as children. */ protected abstract ITreeContentProvider getFileProvider(); /** - * Returns a content provider for <code>FileSystemElement</code>s that returns + * Returns a content provider for <code>FileSystemElement</code>s that returns * only folders as children. */ protected abstract ITreeContentProvider getFolderProvider(); @@ -325,11 +325,11 @@ public abstract class WizardResourceImportPage extends WizardDataTransferPage { } /** - * Returns this page's list of currently-specified resources to be - * imported. This is the primary resource selection facility accessor for + * Returns this page's list of currently-specified resources to be + * imported. This is the primary resource selection facility accessor for * subclasses. * - * @return a list of resources currently selected + * @return a list of resources currently selected * for export (element type: <code>IResource</code>) */ protected java.util.List getSelectedResources() { @@ -337,7 +337,7 @@ public abstract class WizardResourceImportPage extends WizardDataTransferPage { } /** - * Returns this page's list of currently-specified resources to be + * Returns this page's list of currently-specified resources to be * imported filtered by the IElementFilter. * @since 3.10 */ @@ -347,7 +347,7 @@ public abstract class WizardResourceImportPage extends WizardDataTransferPage { /** * <bold>DO NOT USE THIS METHOD</bold> - * Returns this page's list of currently-specified resources to be + * Returns this page's list of currently-specified resources to be * imported filtered by the IElementFilter. * @deprecated Should use the API {@link IElementFilter} */ @@ -372,9 +372,9 @@ public abstract class WizardResourceImportPage extends WizardDataTransferPage { return null; } return (IContainer) resource; - + } - + return null; } @@ -406,7 +406,7 @@ public abstract class WizardResourceImportPage extends WizardDataTransferPage { } /** - * The <code>WizardResourceImportPage</code> implementation of this + * The <code>WizardResourceImportPage</code> implementation of this * <code>Listener</code> method handles all events and enablements for controls * on this page. Subclasses may extend. * @param event Event @@ -532,7 +532,7 @@ public abstract class WizardResourceImportPage extends WizardDataTransferPage { if(IDEWorkbenchPlugin.getPluginWorkspace().getRoot().exists(getContainerFullPath())) { return false; } - + //if it is does not exist be sure the project does IWorkspace workspace = IDEWorkbenchPlugin.getPluginWorkspace(); IPath projectPath = containerPath.removeLastSegments(containerPath @@ -543,7 +543,7 @@ public abstract class WizardResourceImportPage extends WizardDataTransferPage { } setErrorMessage(IDEWorkbenchMessages.WizardImportPage_projectNotExist); return false; - } + } if (!container.isAccessible()) { setErrorMessage(INACCESSABLE_FOLDER_MESSAGE); return false; @@ -556,7 +556,7 @@ public abstract class WizardResourceImportPage extends WizardDataTransferPage { } return false; } - + if (sourceConflictsWithDestination(containerPath)) { setErrorMessage(getSourceConflictMessage()); @@ -583,7 +583,7 @@ public abstract class WizardResourceImportPage extends WizardDataTransferPage { * Returns whether or not the source location conflicts * with the destination resource. By default this is not * checked, so <code>false</code> is returned. - * + * * @param sourcePath the path being checked * @return <code>true</code> if the source location conflicts with the * destination resource, <code>false</code> if not @@ -597,7 +597,7 @@ public abstract class WizardResourceImportPage extends WizardDataTransferPage { */ @Override protected boolean determinePageCompletion() { - //Check for valid projects before making the user do anything + //Check for valid projects before making the user do anything if (noOpenProjects()) { setErrorMessage(IDEWorkbenchMessages.WizardImportPage_noOpenProjects); return false; @@ -606,7 +606,7 @@ public abstract class WizardResourceImportPage extends WizardDataTransferPage { } /** - * Returns whether or not the passed workspace has any + * Returns whether or not the passed workspace has any * open projects * @return boolean */ diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/model/WorkbenchContentProvider.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/model/WorkbenchContentProvider.java index 51bf3f5b121..0515642be33 100644 --- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/model/WorkbenchContentProvider.java +++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/model/WorkbenchContentProvider.java @@ -112,17 +112,17 @@ public class WorkbenchContentProvider extends BaseWorkbenchContentProvider /** * Process the resource delta. - * + * * @param delta */ - protected void processDelta(IResourceDelta delta) { + protected void processDelta(IResourceDelta delta) { Control ctrl = viewer.getControl(); if (ctrl == null || ctrl.isDisposed()) { return; } - - + + final Collection runnables = new ArrayList(); processDelta(delta, runnables); @@ -145,7 +145,7 @@ public class WorkbenchContentProvider extends BaseWorkbenchContentProvider if (ctrl == null || ctrl.isDisposed()) { return; } - + runUpdates(runnables); } }); @@ -162,7 +162,7 @@ public class WorkbenchContentProvider extends BaseWorkbenchContentProvider while(runnableIterator.hasNext()){ ((Runnable)runnableIterator.next()).run(); } - + } /** @@ -178,7 +178,7 @@ public class WorkbenchContentProvider extends BaseWorkbenchContentProvider // Get the affected resource final IResource resource = delta.getResource(); - + // If any children have changed type, just do a full refresh of this // parent, // since a simple update on such children won't work, @@ -281,7 +281,7 @@ public class WorkbenchContentProvider extends BaseWorkbenchContentProvider } // heuristic test for items moving within same folder (i.e. renames) final boolean hasRename = numMovedFrom > 0 && numMovedTo > 0; - + Runnable addAndRemove = new Runnable(){ @Override public void run() { diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/part/FileEditorInput.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/part/FileEditorInput.java index c7bb870a721..c278b0cc42f 100644 --- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/part/FileEditorInput.java +++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/part/FileEditorInput.java @@ -46,7 +46,7 @@ import org.eclipse.ui.model.IWorkbenchAdapter; public class FileEditorInput extends PlatformObject implements IFileEditorInput, IPathEditorInput, IURIEditorInput, IPersistableElement { private IFile file; - + /** * Return whether or not file is local. Only {@link IFile}s with a local * value should call {@link IPathEditorInput#getPath()} @@ -79,7 +79,7 @@ public class FileEditorInput extends PlatformObject implements IFileEditorInput, "Failed to obtain file store for resource", e); //$NON-NLS-1$ return false; } - + } /** @@ -91,7 +91,7 @@ public class FileEditorInput extends PlatformObject implements IFileEditorInput, if (file == null) throw new IllegalArgumentException(); this.file = file; - + } /* (non-Javadoc) @@ -195,7 +195,7 @@ public class FileEditorInput extends PlatformObject implements IFileEditorInput, FileEditorInputFactory.saveState(memento, this); } - + /* (non-Javadoc) * @see org.eclipse.ui.IURIEditorInput#getURI() @@ -204,8 +204,8 @@ public class FileEditorInput extends PlatformObject implements IFileEditorInput, public URI getURI() { return file.getLocationURI(); } - - + + /* (non-Javadoc) * @see org.eclipse.ui.IPathEditorInput#getPath() */ @@ -244,12 +244,12 @@ public class FileEditorInput extends PlatformObject implements IFileEditorInput, public String toString() { return getClass().getName() + "(" + getFile().getFullPath() + ")"; //$NON-NLS-1$ //$NON-NLS-2$ } - + /* * Allows for the return of an {@link IWorkbenchAdapter} adapter. - * + * * @since 3.5 - * + * * @see org.eclipse.core.runtime.PlatformObject#getAdapter(java.lang.Class) */ @Override diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/part/FileEditorInputFactory.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/part/FileEditorInputFactory.java index 66fae70c285..7e881d7b635 100644 --- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/part/FileEditorInputFactory.java +++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/part/FileEditorInputFactory.java @@ -71,7 +71,7 @@ public class FileEditorInputFactory implements IElementFactory { /** * Returns the element factory id for this class. - * + * * @return the element factory id */ public static String getFactoryId() { diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/part/FileInPlaceEditorInput.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/part/FileInPlaceEditorInput.java index dc3f58415be..9907802c903 100644 --- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/part/FileInPlaceEditorInput.java +++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/part/FileInPlaceEditorInput.java @@ -25,7 +25,7 @@ import org.eclipse.ui.IInPlaceEditorInput; * <p> * This class may be instantiated; it is not intended to be subclassed. * </p> - * + * * @since 3.0 * @noextend This class is not intended to be subclassed by clients. */ diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/part/MarkerTransfer.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/part/MarkerTransfer.java index d657986b045..9d50988b184 100644 --- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/part/MarkerTransfer.java +++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/part/MarkerTransfer.java @@ -26,18 +26,18 @@ import org.eclipse.swt.dnd.ByteArrayTransfer; import org.eclipse.swt.dnd.TransferData; /** - * A <code>MarkerTransfer</code> is used to transfer an array of - * <code>IMarker</code>s from one part to another in a drag and drop + * A <code>MarkerTransfer</code> is used to transfer an array of + * <code>IMarker</code>s from one part to another in a drag and drop * operation. * <p> - * In every drag and drop operation there is a <code>DragSource</code> and - * a <code>DropTarget</code>. When a drag occurs a <code>Transfer</code> is - * used to marshall the drag data from the source into a byte array. If a drop + * In every drag and drop operation there is a <code>DragSource</code> and + * a <code>DropTarget</code>. When a drag occurs a <code>Transfer</code> is + * used to marshall the drag data from the source into a byte array. If a drop * occurs another <code>Transfer</code> is used to marshall the byte array into * drop data for the target. * </p><p> * This class can be used for a <code>Viewer<code> or an SWT component directly. - * A singleton is provided which may be serially reused (see <code>getInstance</code>). + * A singleton is provided which may be serially reused (see <code>getInstance</code>). * It is not intended to be subclassed. * </p> * diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/part/ResourceTransfer.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/part/ResourceTransfer.java index cc4bd6922b2..7f02f0fa301 100644 --- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/part/ResourceTransfer.java +++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/part/ResourceTransfer.java @@ -27,25 +27,25 @@ import org.eclipse.ui.internal.ide.IDEWorkbenchPlugin; /** * The <code>ResourceTransfer</code> class is used to transfer an - * array of <code>IResource</code>s from one part to another in a + * array of <code>IResource</code>s from one part to another in a * drag and drop operation or a cut, copy, paste action. * <p> - * In every drag and drop operation there is a <code>DragSource</code> and - * a <code>DropTarget</code>. When a drag occurs a <code>Transfer</code> is - * used to marshal the drag data from the source into a byte array. If a drop + * In every drag and drop operation there is a <code>DragSource</code> and + * a <code>DropTarget</code>. When a drag occurs a <code>Transfer</code> is + * used to marshal the drag data from the source into a byte array. If a drop * occurs another <code>Transfer</code> is used to marshal the byte array into - * drop data for the target. + * drop data for the target. * </p> * <p> - * When a <code>CutAction</code> or a <code>CopyAction</code> is performed, - * this transfer is used to place references to the selected resources - * on the <code>Clipboard</code>. When a <code>PasteAction</code> is performed, the + * When a <code>CutAction</code> or a <code>CopyAction</code> is performed, + * this transfer is used to place references to the selected resources + * on the <code>Clipboard</code>. When a <code>PasteAction</code> is performed, the * references on the clipboard are used to move or copy the resources * to the selected destination. * </p> * <p> * This class can be used for a <code>Viewer<code> or an SWT component directly. - * A singleton is provided which may be serially reused (see <code>getInstance</code>). + * A singleton is provided which may be serially reused (see <code>getInstance</code>). * It is not intended to be subclassed. * </p> * <p> diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/FileStoreEditorInput.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/FileStoreEditorInput.java index d24dc5b3867..417422843b7 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/FileStoreEditorInput.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/FileStoreEditorInput.java @@ -23,10 +23,10 @@ import org.eclipse.ui.PlatformUI; import org.eclipse.ui.model.IWorkbenchAdapter; /** - * Implements an IEditorInput instance appropriate for + * Implements an IEditorInput instance appropriate for * <code>IFileStore</code> elements that represent files * that are not part of the current workspace. - * + * * @since 3.3 * */ @@ -134,7 +134,7 @@ public class FileStoreEditorInput implements IURIEditorInput, IPersistableElemen @Override public void saveState(IMemento memento) { FileStoreEditorInputFactory.saveState(memento, this); - + } } diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/FileStoreEditorInputFactory.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/FileStoreEditorInputFactory.java index e832f309551..ad8e885c7e9 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/FileStoreEditorInputFactory.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/FileStoreEditorInputFactory.java @@ -23,17 +23,17 @@ import org.eclipse.ui.IMemento; /** - * Factory for saving and restoring a <code>FileStoreEditorInput</code>. + * Factory for saving and restoring a <code>FileStoreEditorInput</code>. * The stored representation of a <code>FileStoreEditorInput</code> remembers * the path of the editor input. * <p> * The workbench will automatically create instances of this class as required. * It is not intended to be instantiated or subclassed by the client.</p> - * + * * @since 3.3 */ public class FileStoreEditorInputFactory implements IElementFactory { - + /** * This factory's ID. * <p> @@ -41,7 +41,7 @@ public class FileStoreEditorInputFactory implements IElementFactory { * the <code>"org.eclipse.ui.elementFactories"<code> extension point. */ static final String ID = "org.eclipse.ui.ide.FileStoreEditorInputFactory"; //$NON-NLS-1$ - + /** * Saves the state of the given editor input into the given memento. * @@ -67,14 +67,14 @@ public class FileStoreEditorInputFactory implements IElementFactory { String uriString = memento.getString(TAG_URI); if (uriString == null) return null; - + URI uri; try { uri = new URI(uriString); } catch (URISyntaxException e) { return null; } - + try { return new FileStoreEditorInput(EFS.getStore(uri)); } catch (CoreException e) { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/IContributorResourceAdapter2.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/IContributorResourceAdapter2.java index 922f65ea466..a3f190f4190 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/IContributorResourceAdapter2.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/IContributorResourceAdapter2.java @@ -15,19 +15,19 @@ import org.eclipse.core.runtime.IAdaptable; import org.eclipse.ui.IContributorResourceAdapter; /** - * An extension to the <code>IContributorResourceAdapter</code> that adapts + * An extension to the <code>IContributorResourceAdapter</code> that adapts * a model object to a <code>ResourceMapping</code>. - * + * * @since 3.2 */ public interface IContributorResourceAdapter2 extends IContributorResourceAdapter { /** - * Return the resource mapping that the supplied adaptable + * Return the resource mapping that the supplied adaptable * adapts to. An <code>IContributorResourceAdapter2</code> assumes * that any object passed to it adapts to one equivalent * resource mapping. - * + * * @param adaptable the adaptable being queried * @return a resource mapping, or <code>null</code> if there * is no adapted resource mapping for this type diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/IDE.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/IDE.java index 89a04f06020..2c3cefe1a5a 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/IDE.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/IDE.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2003, 2015 IBM Corporation and others. + * Copyright (c) 2003, 2013 IBM Corporation and others. * 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 @@ -81,7 +81,7 @@ import org.eclipse.ui.part.FileEditorInput; * Collection of IDE-specific APIs factored out of existing workbench. This * class cannot be instantiated; all functionality is provided by static methods * and fields. - * + * * @since 3.0 */ public final class IDE { @@ -90,7 +90,7 @@ public final class IDE { * preferred editor ID to use. * <p> * Example of retrieving the persisted editor id: - * + * * <pre><code> * IFile file = ... * IEditorDescriptor editorDesc = null; @@ -103,11 +103,11 @@ public final class IDE { * // handle problem accessing persistent property here * } * </code></pre> - * + * * </p> * <p> * Example of persisting the editor id: - * + * * <pre><code> * IFile file = ... * try { @@ -116,7 +116,7 @@ public final class IDE { * // handle problem setting persistent property here * } * </code></pre> - * + * * </p> */ public static final QualifiedName EDITOR_KEY = new QualifiedName( @@ -149,7 +149,7 @@ public final class IDE { * <p> * This interface is not intended to be implemented by clients. * </p> - * + * * @see org.eclipse.ui.ISharedImages */ public interface SharedImages { @@ -194,10 +194,10 @@ public final class IDE { * <p> * Value is of type <code>String</code>. The possible values are * defined by the constants - * <code>OPEN_PERSPECTIVE_WINDOW, OPEN_PERSPECTIVE_PAGE, + * <code>OPEN_PERSPECTIVE_WINDOW, OPEN_PERSPECTIVE_PAGE, * OPEN_PERSPECTIVE_REPLACE, and NO_NEW_PERSPECTIVE</code>. * </p> - * + * * @see org.eclipse.ui.IWorkbenchPreferenceConstants#OPEN_PERSPECTIVE_WINDOW * @see org.eclipse.ui.IWorkbenchPreferenceConstants#OPEN_PERSPECTIVE_PAGE * @see org.eclipse.ui.IWorkbenchPreferenceConstants#OPEN_PERSPECTIVE_REPLACE @@ -213,7 +213,7 @@ public final class IDE { * <p> * The default value for this preference is <code>true</code>. * </p> - * + * * @since 3.1 */ public static final String SHOW_WORKSPACE_SELECTION_DIALOG = "SHOW_WORKSPACE_SELECTION_DIALOG"; //$NON-NLS-1$ @@ -223,7 +223,7 @@ public final class IDE { * Stores the maximum number of workspaces that should be displayed in * the ChooseWorkspaceDialog. * </p> - * + * * @since 3.1 */ public static final String MAX_RECENT_WORKSPACES = "MAX_RECENT_WORKSPACES"; //$NON-NLS-1$ @@ -232,7 +232,7 @@ public final class IDE { * <p> * Stores a comma separated list of the recently used workspace paths. * </p> - * + * * @since 3.1 */ public static final String RECENT_WORKSPACES = "RECENT_WORKSPACES"; //$NON-NLS-1$ @@ -242,7 +242,7 @@ public final class IDE { * Stores the version of the protocol used to decode/encode the list of * recent workspaces. * </p> - * + * * @since 3.1 */ public static final String RECENT_WORKSPACES_PROTOCOL = "RECENT_WORKSPACES_PROTOCOL"; //$NON-NLS-1$ @@ -264,7 +264,7 @@ public final class IDE { /** * Returns the marker help registry for the workbench. - * + * * @return the marker help registry */ public static IMarkerHelpRegistry getMarkerHelpRegistry() { @@ -281,7 +281,7 @@ public final class IDE { * editor does not provide an <code>IGotoMarker</code> interface (either * directly or via <code>IAdaptable.getAdapter</code>), this has no * effect. - * + * * @param editor * the editor * @param marker @@ -305,7 +305,7 @@ public final class IDE { * If the page already has an editor open on the target object then that * editor is brought to front; otherwise, a new editor is opened. * <p> - * + * * @param page * the page in which the editor will be opened * @param input @@ -339,7 +339,7 @@ public final class IDE { * If the page already has an editor open on the target object then that * editor is brought to front; otherwise, a new editor is opened. * </p> - * + * * @param page * the page in which the editor will be opened * @param uri @@ -351,10 +351,10 @@ public final class IDE { * @return an open editor or <code>null</code> if an external editor was * @exception PartInitException * if the editor could not be initialized - * + * * @see org.eclipse.ui.IWorkbenchPage#openEditor(IEditorInput, String) * @see EFS#getStore(URI) - * + * * @since 3.3 */ public static IEditorPart openEditor(IWorkbenchPage page, URI uri, @@ -383,7 +383,7 @@ public final class IDE { * The result is a normal file editor input if the file exists in the * workspace and, if not, we create a wrapper capable of managing an * 'external' file using its <code>IFileStore</code>. - * + * * @param fileStore * The file store to provide the editor input for * @return The editor input associated with the given file store @@ -399,7 +399,7 @@ public final class IDE { /** * Determine whether or not the <code>IFileStore</code> represents a file * currently in the workspace. - * + * * @param fileStore * The <code>IFileStore</code> to test * @return The workspace's <code>IFile</code> if it exists or @@ -419,7 +419,7 @@ public final class IDE { /** * Filter the incoming array of <code>IFile</code> elements by removing * any that do not currently exist in the workspace. - * + * * @param files * The array of <code>IFile</code> elements * @return The filtered array @@ -444,7 +444,7 @@ public final class IDE { * editor is brought to front; otherwise, a new editor is opened. If * <code>activate == true</code> the editor will be activated. * <p> - * + * * @param page * the page in which the editor will be opened * @param input @@ -481,7 +481,7 @@ public final class IDE { * editor is brought to front; otherwise, a new editor is opened. If * <code>activate == true</code> the editor will be activated. * <p> - * + * * @param page * the page in which the editor will be opened * @param input @@ -510,7 +510,7 @@ public final class IDE { * editor is brought to front; otherwise, a new editor is opened. If * <code>activate == true</code> the editor will be activated. * <p> - * + * * @param page * the page in which the editor will be opened * @param input @@ -550,7 +550,7 @@ public final class IDE { * If the page already has an editor open on the target object then that * editor is brought to front; otherwise, a new editor is opened. * <p> - * + * * @param page * the page in which the editor will be opened * @param input @@ -579,7 +579,7 @@ public final class IDE { * If the page already has an editor open on the target object then that * editor is brought to front; otherwise, a new editor is opened. * <p> - * + * * @param page * the page in which the editor will be opened * @param input @@ -610,7 +610,7 @@ public final class IDE { * editor is brought to front; otherwise, a new editor is opened. If * <code>activate == true</code> the editor will be activated. * <p> - * + * * @param page * the page in which the editor will be opened * @param input @@ -661,7 +661,7 @@ public final class IDE { * default text editor is available.</li> * </ol> * </p> - * + * * @param file * the file * @return an editor descriptor, appropriate for opening the file @@ -698,7 +698,7 @@ public final class IDE { * default text editor is available.</li> * </ol> * </p> - * + * * @param file * the file * @param determineContentType @@ -721,7 +721,7 @@ public final class IDE { } /** - * Returns an editor descriptor appropriate for opening the given file + * Returns an editor id appropriate for opening the given file * store. * <p> * The editor descriptor is determined using a multi-step process. This @@ -741,15 +741,14 @@ public final class IDE { * default text editor is available.</li> * </ol> * </p> - * + * * @param fileStore * the file store - * @return the editor descriptor, appropriate for opening the file + * @return the id of an editor, appropriate for opening the file * @throws PartInitException * if no editor can be found - * @since 3.11 */ - public static IEditorDescriptor getEditorDescriptorForFileStore(IFileStore fileStore) throws PartInitException { + private static String getEditorId(IFileStore fileStore) throws PartInitException { String name = fileStore.fetchInfo().getName(); if (name == null) { throw new IllegalArgumentException(); @@ -776,7 +775,7 @@ public final class IDE { IEditorDescriptor defaultEditor = editorReg.getDefaultEditor(name, contentType); defaultEditor = overrideDefaultEditorAssociation(new FileStoreEditorInput(fileStore), contentType, defaultEditor); - return getEditorDescriptor(name, editorReg, defaultEditor); + return getEditorDescriptor(name, editorReg, defaultEditor).getId(); } /** @@ -787,7 +786,7 @@ public final class IDE { * calling {@link #getDefaultEditor(IFile, boolean)}. This method here should only be used if * this is not possible for whatever reason. * </p> - * + * * @param editorInput the editor input for the editor * @param contentType the content type of the input or <code>null</code> if not available * @param editorDescriptor the current association for the given input or <code>null</code> if @@ -809,7 +808,7 @@ public final class IDE { /** * Applies the <code>org.eclipse.ui.ide.editorAssociationOverride</code> extensions to the given * input. - * + * * @param fileName the name of the file for which to choose the editor * @param contentType the content type of the input or <code>null</code> if not available * @param editorDescriptor the current association for the given input or <code>null</code> if @@ -831,7 +830,7 @@ public final class IDE { /** * Applies the <code>org.eclipse.ui.ide.editorAssociationOverride</code> extensions to the given * input. - * + * * @param editorInput the editor input for the editor * @param contentType the content type of the input or <code>null</code> if not available * @param editorDescriptors the current association for the given input @@ -852,7 +851,7 @@ public final class IDE { /** * Applies the <code>org.eclipse.ui.ide.editorAssociationOverride</code> extensions to the given * input. - * + * * @param fileName the name of the file for which to choose the editor * @param contentType the content type of the input or <code>null</code> if not available * @param editorDescriptors the current association for the given input @@ -890,7 +889,7 @@ public final class IDE { * default text editor is available.</li> * </ol> * </p> - * + * * @param name * the file name * @return an editor descriptor, appropriate for opening the file @@ -924,7 +923,7 @@ public final class IDE { * default text editor is available.</li> * </ol> * </p> - * + * * @param name * the file name * @param inferContentType @@ -955,7 +954,7 @@ public final class IDE { /** * Get the editor descriptor for a given name using the editorDescriptor * passed in as a default as a starting point. - * + * * @param name * The name of the element to open. * @param editorReg @@ -965,7 +964,7 @@ public final class IDE { * @return IEditorDescriptor * @throws PartInitException * if no valid editor can be found - * + * * @since 3.1 */ private static IEditorDescriptor getEditorDescriptor(String name, @@ -1019,7 +1018,7 @@ public final class IDE { * attribute value will be used to determine the editor type to be opened. * If not, the registered editor for the marker resource file will be used. * </p> - * + * * @param page * the workbench page to open the editor in * @param marker @@ -1049,7 +1048,7 @@ public final class IDE { * attribute value will be used to determine the editor type to be opened. * If not, the registered editor for the marker resource file will be used. * </p> - * + * * @param page * the workbench page to open the editor in * @param marker @@ -1116,10 +1115,10 @@ public final class IDE { * If the page already has an editor open on the target object then that * editor is brought to front; otherwise, a new editor is opened. * </p> - * + * * @param page * the page in which the editor will be opened - * @param fileStore + * @param fileStore * the IFileStore representing the file to open * @return an open editor or <code>null</code> if an external editor was opened * @exception PartInitException @@ -1134,8 +1133,8 @@ public final class IDE { } IEditorInput input = getEditorInput(fileStore); - String editorId = getEditorDescriptorForFileStore(fileStore).getId(); - + String editorId = getEditorId(fileStore); + // open the editor on the file return page.openEditor(input, editorId); } @@ -1150,7 +1149,7 @@ public final class IDE { * If the page already has an editor open on the target object then that * editor is brought to front; otherwise, a new editor is opened. * </p> - * + * * @param page * the page in which the editor will be opened * @param fileStore @@ -1225,9 +1224,9 @@ public final class IDE { * resource of one of the <code>IResource</code>'s provided. Opens a * dialog to prompt the user if <code>confirm</code> is true. Return true * if successful. Return false if the user has canceled the command. - * + * * @since 3.0 - * + * * @param resourceRoots the resource roots under which editor input should * be saved, other will be left dirty * @param confirm <code>true</code> to ask the user before saving unsaved @@ -1269,7 +1268,7 @@ public final class IDE { * Sets the default editor id for a given file. This value will be used to * determine the default editor descriptor for the file in future calls to * <code>getDefaultEditor(IFile)</code>. - * + * * @param file * the file * @param editorID @@ -1294,7 +1293,7 @@ public final class IDE { * default editor is determined by taking the file name for the file and * obtaining the default editor for that name. * </p> - * + * * @param file * the file * @return the descriptor of the default editor, or <code>null</code> if @@ -1316,7 +1315,7 @@ public final class IDE { * default editor is determined by taking the file name for the file and * obtaining the default editor for that name. * </p> - * + * * @param file * the file * @param determineContentType @@ -1356,7 +1355,7 @@ public final class IDE { /** * Extracts and returns the <code>IResource</code>s in the given * selection or the resource objects they adapts to. - * + * * @param originalSelection * the original selection, possibly empty * @return list of resources (element type: <code>IResource</code>), @@ -1391,7 +1390,7 @@ public final class IDE { /** * Return the content type for the given file. - * + * * @param file * the file to test * @return the content type, or <code>null</code> if it cannot be @@ -1421,7 +1420,7 @@ public final class IDE { /** * Guess at the content type of the given file based on the filename. - * + * * @param file * the file to test * @return the content type, or <code>null</code> if it cannot be @@ -1448,7 +1447,7 @@ public final class IDE { * providers. A model provider can be ignored if it is the client calling * this API. Any message from the provided model provider id or any model * providers it extends will be ignored. - * + * * @param shell * the shell to parent the prompt dialog * @param title @@ -1557,7 +1556,7 @@ public final class IDE { * <b>Note:</b> this method should only be called once, in your * application's WorkbenchAdvisor#initialize(IWorkbenchConfigurer) method. * </p> - * + * * @since 3.5 */ public static void registerAdapters() { @@ -1602,12 +1601,12 @@ public final class IDE { } return false; } - + /** * Opens editors on given file resources. * <p> * If the page already has an editor open on the target object then that - * editor is brought to front; otherwise, a new editor is opened. The editor created + * editor is brought to front; otherwise, a new editor is opened. The editor created * for the first input will be activated. * </p> * @param page the page in which the editor will be opened @@ -1619,9 +1618,9 @@ public final class IDE { public static IEditorReference[] openEditors(IWorkbenchPage page, IFile[] inputs) throws MultiPartInitException { if ((page == null) || (inputs == null)) throw new IllegalArgumentException(); - - String[] editorDescriptions = new String[inputs.length]; - IEditorInput[] editorInputs = new IEditorInput[inputs.length]; + + String[] editorDescriptions = new String[inputs.length]; + IEditorInput[] editorInputs = new IEditorInput[inputs.length]; for(int i = 0 ; i < inputs.length; i++) { editorInputs[i] = new FileEditorInput(inputs[i]); try { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/IDEActionFactory.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/IDEActionFactory.java index c1401e80b9c..bb1e49a5661 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/IDEActionFactory.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/IDEActionFactory.java @@ -42,7 +42,7 @@ import org.eclipse.ui.internal.ide.actions.ToggleAutoBuildAction; * menu.add(closeProjectAction); * </pre> * </p> - * + * * @since 3.0 */ public final class IDEActionFactory { @@ -71,7 +71,7 @@ public final class IDEActionFactory { * This action is a {@link RetargetAction}. This action maintains its enablement state. */ public static final ActionFactory ADD_TASK = new ActionFactory("addTask", //$NON-NLS-1$ - IWorkbenchCommandConstants.EDIT_ADD_TASK) { + IWorkbenchCommandConstants.EDIT_ADD_TASK) { /* (non-javadoc) method declared on ActionFactory */ @Override public IWorkbenchAction create(IWorkbenchWindow window) { @@ -91,7 +91,7 @@ public final class IDEActionFactory { * This action is a {@link RetargetAction}. This action maintains its enablement state. */ public static final ActionFactory BOOKMARK = new ActionFactory("bookmark", //$NON-NLS-1$ - IWorkbenchCommandConstants.EDIT_ADD_BOOKMARK) { + IWorkbenchCommandConstants.EDIT_ADD_BOOKMARK) { /* (non-javadoc) method declared on ActionFactory */ @Override public IWorkbenchAction create(IWorkbenchWindow window) { @@ -217,11 +217,11 @@ public final class IDEActionFactory { * Close unrelated projects. * <p> * This action closes all projects that are unrelated to the selected projects. A - * project is unrelated if it is not directly or transitively referenced by one + * project is unrelated if it is not directly or transitively referenced by one * of the selected projects, and does not directly or transitively reference * one of the selected projects. * </p> - * This action is a {@link RetargetAction} with + * This action is a {@link RetargetAction} with * id "closeUnrelatedProjects". This action maintains its enablement state. * @see IProject#getReferencedProjects() * @see IProject#getReferencingProjects() @@ -239,7 +239,7 @@ public final class IDEActionFactory { RetargetAction action = new RetargetAction(getId(), IDEWorkbenchMessages.CloseUnrelatedProjectsAction_text); action.setToolTipText(IDEWorkbenchMessages.CloseUnrelatedProjectsAction_toolTip); window.getPartService().addPartListener(action); - action.setActionDefinitionId(getCommandId()); + action.setActionDefinitionId(getCommandId()); return action; } }; @@ -282,7 +282,7 @@ public final class IDEActionFactory { RetargetAction action = new RetargetAction(getId(), IDEWorkbenchMessages.OpenResourceAction_text); action.setToolTipText(IDEWorkbenchMessages.OpenResourceAction_toolTip); window.getPartService().addPartListener(action); - action.setActionDefinitionId(getCommandId()); + action.setActionDefinitionId(getCommandId()); return action; } }; @@ -326,7 +326,7 @@ public final class IDEActionFactory { /** * IDE-specific workbench action (id: "quickStart"): Quick start. * This action maintains its enablement state. - * + * * @deprecated the IDE now uses the new intro mechanism */ @Deprecated @@ -347,7 +347,7 @@ public final class IDEActionFactory { /** * IDE-specific workbench action (id: "rebuildAll"): Full build. * This action maintains its enablement state. - * + * * @deprecated as of 3.0, this action no longer appears in the UI (was deprecated in 3.1) */ @Deprecated @@ -368,9 +368,9 @@ public final class IDEActionFactory { /** * IDE-specific workbench action (id: "rebuildProject"): Rebuild project. - * This action is a {@link RetargetAction} with + * This action is a {@link RetargetAction} with * id "rebuildProject". This action maintains its enablement state. - * + * * @deprecated as of 3.0, this action no longer appears in the UI (was deprecated in 3.1) */ @Deprecated diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/IDEEncoding.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/IDEEncoding.java index fe9a262f255..4f987ecd807 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/IDEEncoding.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/IDEEncoding.java @@ -33,13 +33,13 @@ import org.eclipse.ui.internal.ide.IDEWorkbenchPlugin; * This class provides all its functionality via static methods. * It is not intended to be instantiated or subclassed. * </p> - * + * * @see org.eclipse.ui.WorkbenchEncoding * @see org.eclipse.core.resources.ResourcesPlugin * @since 3.1 */ public final class IDEEncoding { - + private IDEEncoding () { // prevent instantiation } @@ -69,7 +69,7 @@ public final class IDEEncoding { /** * Get all of the available encodings including any that were saved as a * preference in the IDE or in core resources. - * + * * @return List of String */ public static List getIDEEncodings() { @@ -89,7 +89,7 @@ public final class IDEEncoding { /** * Get the current value of the encoding preference. If the value is not set * return <code>null</code>. - * + * * @return String */ public static String getResourceEncoding() { @@ -103,7 +103,7 @@ public final class IDEEncoding { /** * Add value to the list of workbench encodings. - * + * * @param value */ public static void addIDEEncoding(String value) { @@ -149,13 +149,13 @@ public final class IDEEncoding { /** * Get the value of the encodings preference. - * + * * @return List */ private static List getIDEEncodingsPreference() { - + boolean updateRequired = false; - + String encodings = IDEWorkbenchPlugin.getDefault().getPreferenceStore().getString( IDE_ENCODINGS_PREFERENCE); @@ -181,9 +181,9 @@ public final class IDEEncoding { WorkbenchPlugin.log(NLS.bind(IDEWorkbenchMessages.WorkbenchEncoding_invalidCharset, string)); updateRequired = true; } - + } - + if(updateRequired) { writeEncodingsPreference(null, result); } @@ -201,7 +201,7 @@ public final class IDEEncoding { /** * Get the displayable string for the byte order marking from the supplied * file description. - * + * * @param description * The description to query. May be <code>null</code>. * @return String or <code>null</code> if the byte order mark cannot be diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/IEditorAssociationOverride.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/IEditorAssociationOverride.java index 8ad55da321b..47576b495a5 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/IEditorAssociationOverride.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/IEditorAssociationOverride.java @@ -24,7 +24,7 @@ import org.eclipse.ui.IEditorInput; * <p> * Clients may implement this interface. * </p> - * + * * @since 3.8 */ public interface IEditorAssociationOverride { @@ -32,7 +32,7 @@ public interface IEditorAssociationOverride { /** * Allows to override the given editor descriptors for the given editor input with different * ones. - * + * * @param editorInput the editor input for the editor * @param contentType the content type of the input or <code>null</code> if not available * @param editorDescriptors the current association for the given input @@ -43,7 +43,7 @@ public interface IEditorAssociationOverride { /** * Allows to override the given editor descriptors for the given file name with different ones. - * + * * @param fileName the name of the file for which to choose the editor * @param contentType the content type of the input or <code>null</code> if not available * @param editorDescriptors the current association for the given input @@ -60,7 +60,7 @@ public interface IEditorAssociationOverride { * the user for the given input. This is the case when * <code>IFile#getPersistentProperty(IDE.EDITOR_KEY) != null</code>. * </p> - * + * * @param editorInput the editor input for the editor * @param contentType the content type of the input or <code>null</code> if not available * @param editorDescriptor the current association for the given input or <code>null</code> if @@ -73,7 +73,7 @@ public interface IEditorAssociationOverride { /** * Allows to override the given editor descriptor for the given input with a different one. * Normally, this is used to override the default editor for the given input. - * + * * @param fileName the name of the file for which to choose the editor * @param contentType the content type of the input or <code>null</code> if not available * @param editorDescriptor the current association for the given input or <code>null</code> if diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/IGotoMarker.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/IGotoMarker.java index 5092341d81a..767655206cb 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/IGotoMarker.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/IGotoMarker.java @@ -15,14 +15,14 @@ import org.eclipse.core.resources.IMarker; /** * An adapter interface for editors, which allows the editor * to reveal the position of a given marker. - * + * * @since 3.0 */ public interface IGotoMarker { /** - * Sets the cursor and selection state for an editor to + * Sets the cursor and selection state for an editor to * reveal the position of the given marker. - * + * * @param marker the marker */ public void gotoMarker(IMarker marker); diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/IIDEActionConstants.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/IIDEActionConstants.java index c6309e79913..3e607ea9e78 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/IIDEActionConstants.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/IIDEActionConstants.java @@ -16,10 +16,10 @@ package org.eclipse.ui.ide; * This interface contains constants only; it is not intended to be implemented * or extended. * </p> - * + * * Note: want to move IDE-specific stuff out of IWorkbenchActionConstants. * There's still some cleanup to be done here (and there). - * + * * @since 3.0 * @noimplement This interface is not intended to be implemented by clients. */ @@ -136,52 +136,52 @@ public interface IIDEActionConstants { /** * Workbench toolbar id for file toolbar group. - * + * * @since 2.1 */ public static final String TOOLBAR_FILE = "org.eclipse.ui.workbench.file"; //$NON-NLS-1$ /** * Workbench toolbar id for navigate toolbar group. - * + * * @since 2.1 */ public static final String TOOLBAR_NAVIGATE = "org.eclipse.ui.workbench.navigate"; //$NON-NLS-1$ - // Workbench toolbar group ids. To add an item at the beginning of the group, + // Workbench toolbar group ids. To add an item at the beginning of the group, // use the GROUP id. To add an item at the end of the group, use the EXT id. /** * Group id for pin toolbar group. - * + * * @since 2.1 */ public static final String PIN_GROUP = "pin.group"; //$NON-NLS-1$ /** * Group ids for history toolbar group. - * + * * @since 2.1 */ public static final String HISTORY_GROUP = "history.group"; //$NON-NLS-1$ /** * Group ids for new toolbar group. - * + * * @since 2.1 */ public static final String NEW_GROUP = "new.group"; //$NON-NLS-1$ /** * Group ids for save toolbar group. - * + * * @since 2.1 */ public static final String SAVE_GROUP = "save.group"; //$NON-NLS-1$ /** * Group ids for build toolbar group. - * + * * @since 2.1 */ public static final String BUILD_GROUP = "build.group"; //$NON-NLS-1$ @@ -204,7 +204,7 @@ public interface IIDEActionConstants { /** * Pop-up menu: name of group for Show In actions (value <code>"group.showIn"</code>). - * + * * @since 2.1 */ public static final String GROUP_SHOW_IN = "group.showIn"; //$NON-NLS-1$ @@ -248,7 +248,7 @@ public interface IIDEActionConstants { /** * Navigate menu: name of standard Go To Resource global action * (value <code>"goToResource"</code>). - * + * * Note:should be in an action factory */ public static final String GO_TO_RESOURCE = "goToResource"; // Global action. //$NON-NLS-1$ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/ResourceSaveableFilter.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/ResourceSaveableFilter.java index ff7eba65880..09a892f9d6b 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/ResourceSaveableFilter.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/ResourceSaveableFilter.java @@ -27,9 +27,9 @@ import org.eclipse.ui.internal.ide.IDEWorkbenchPlugin; /** * A saveable filter where the given savable must either match one of the given roots or be a direct * or indirect child of one of the roots. - * + * * @since 3.9 - * + * */ public class ResourceSaveableFilter implements ISaveableFilter { @@ -37,7 +37,7 @@ public class ResourceSaveableFilter implements ISaveableFilter { /** * Creates a new filter. - * + * * @param roots the save roots */ public ResourceSaveableFilter(IResource[] roots) { @@ -65,7 +65,7 @@ public class ResourceSaveableFilter implements ISaveableFilter { /** * Return whether the given saveable contains any resources that are descendants of the root * resources. - * + * * @param saveable the saveable * @return whether the given saveable contains any resources that are descendants of the root * resources @@ -107,7 +107,7 @@ public class ResourceSaveableFilter implements ISaveableFilter { /** * Return whether the given resource is either equal to or a descendant of one of the given * roots. - * + * * @param resource the resource to be tested * @return whether the given resource is either equal to or a descendant of one of the given * roots @@ -125,7 +125,7 @@ public class ResourceSaveableFilter implements ISaveableFilter { /** * Return whether the given dirty editor part is editing resources that are * descendants of the given roots. - * + * * @param part the dirty editor part * @return whether the given dirty editor part is editing resources that are * descendants of the given roots diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/ResourceSelectionUtil.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/ResourceSelectionUtil.java index 0de815a9057..6665f46fc85 100755 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/ResourceSelectionUtil.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/ResourceSelectionUtil.java @@ -35,9 +35,9 @@ public class ResourceSelectionUtil { } /** - * Returns whether the types of the resources in the given selection are among + * Returns whether the types of the resources in the given selection are among * the specified resource types. - * + * * @param selection the selection * @param resourceMask resource mask formed by bitwise OR of resource type * constants (defined on <code>IResource</code>) @@ -64,7 +64,7 @@ public class ResourceSelectionUtil { /** * Returns the selection adapted to IResource. Returns null * if any of the entries are not adaptable. - * + * * @param selection the selection * @param resourceMask resource mask formed by bitwise OR of resource type * constants (defined on <code>IResource</code>) @@ -94,13 +94,13 @@ public class ResourceSelectionUtil { } /** - * Returns whether the type of the given resource is among the specified + * Returns whether the type of the given resource is among the specified * resource types. - * + * * @param resource the resource * @param resourceMask resource mask formed by bitwise OR of resource type * constants (defined on <code>IResource</code>) - * @return <code>true</code> if the resources has a matching type, and + * @return <code>true</code> if the resources has a matching type, and * <code>false</code> otherwise * @see IResource#getType() */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/ResourceUtil.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/ResourceUtil.java index d5c352fb0f4..4db5f04b382 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/ResourceUtil.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/ResourceUtil.java @@ -26,7 +26,7 @@ import org.eclipse.ui.part.FileEditorInput; import org.eclipse.ui.statushandlers.StatusManager; /** - * Utility class for manipulating resources and determining correspondences + * Utility class for manipulating resources and determining correspondences * between resources and workbench objects. * <p> * This class provides all its functionality via static methods. @@ -43,9 +43,9 @@ public final class ResourceUtil { /** * Returns the file corresponding to the given editor input, or <code>null</code> - * if there is no applicable file. + * if there is no applicable file. * Returns <code>null</code> if the given editor input is <code>null</code>. - * + * * @param editorInput the editor input, or <code>null</code> * @return the file corresponding to the editor input, or <code>null</code> */ @@ -66,7 +66,7 @@ public final class ResourceUtil { * Returns the resource corresponding to the given editor input, or <code>null</code> * if there is no applicable resource. * Returns <code>null</code> if the given editor input is <code>null</code>. - * + * * @param editorInput the editor input * @return the file corresponding to the editor input, or <code>null</code> */ @@ -87,7 +87,7 @@ public final class ResourceUtil { /** * Returns the editor in the given page whose input represents the given file, * or <code>null</code> if there is no such editor. - * + * * @param page the workbench page * @param file the file * @return the matching editor, or <code>null</code> @@ -113,11 +113,11 @@ public final class ResourceUtil { } return null; } - + /** * Returns the resource corresponding to the given model element, or <code>null</code> * if there is no applicable resource. - * + * * @param element the model element, or <code>null</code> * @return the resource corresponding to the model element, or <code>null</code> * @since 3.2 @@ -135,7 +135,7 @@ public final class ResourceUtil { /** * Returns the file corresponding to the given model element, or <code>null</code> * if there is no applicable file. - * + * * @param element the model element, or <code>null</code> * @return the resource corresponding to the model element, or <code>null</code> * @since 3.2 @@ -144,24 +144,24 @@ public final class ResourceUtil { if (element == null) { return null; } - + // try direct instanceof check if (element instanceof IFile) { return (IFile) element; } - + // try for ResourceMapping ResourceMapping mapping = getResourceMapping(element); if (mapping != null) { return getFileFromResourceMapping(mapping); } - + // try for IFile adapter (before IResource adapter, since it's more specific) Object adapter = getAdapter(element, IFile.class, true); if (adapter instanceof IFile) { return (IFile) adapter; } - + // try for IResource adapter adapter = getAdapter(element, IResource.class, true); if (adapter instanceof IFile) { @@ -173,7 +173,7 @@ public final class ResourceUtil { /** * Returns the resource mapping corresponding to the given model element, or <code>null</code> * if there is no applicable resource mapping. - * + * * @param element the model element, or <code>null</code> * @return the resource mapping corresponding to the model element, or <code>null</code> * @since 3.2 @@ -182,12 +182,12 @@ public final class ResourceUtil { if (element == null) { return null; } - + // try direct instanceof check if (element instanceof ResourceMapping) { return (ResourceMapping) element; } - + // try for ResourceMapping adapter Object adapter = getAdapter(element, ResourceMapping.class, true); if (adapter instanceof ResourceMapping) { @@ -195,12 +195,12 @@ public final class ResourceUtil { } return null; } - + /** * Tries to extra a single file from the given resource mapping. * Returns the file if the mapping maps to a single file, or <code>null</code> * if it maps to zero or multiple files. - * + * * @param mapping the resource mapping * @return the file, or <code>null</code> */ @@ -211,12 +211,12 @@ public final class ResourceUtil { } return null; } - + /** * Tries to extra a single resource from the given resource mapping. * Returns the resource if the mapping maps to a single resource, or <code>null</code> * if it maps to zero or multiple resources. - * + * * @param mapping the resource mapping * @return the resource, or <code>null</code> */ @@ -243,10 +243,10 @@ public final class ResourceUtil { /** * Returns the specified adapter for the given element, or <code>null</code> * if no such adapter was found. - * + * * @param element the model element * @param adapterType the type of adapter to look up - * @param forceLoad <code>true</code> to force loading of the plug-in providing the adapter, + * @param forceLoad <code>true</code> to force loading of the plug-in providing the adapter, * <code>false</code> otherwise * @return the adapter * @since 3.2 diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/dialogs/AbstractEncodingFieldEditor.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/dialogs/AbstractEncodingFieldEditor.java index 0933e2fc534..1f7ea216bb8 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/dialogs/AbstractEncodingFieldEditor.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/dialogs/AbstractEncodingFieldEditor.java @@ -42,7 +42,7 @@ import org.eclipse.ui.internal.ide.IDEWorkbenchMessages; * Subclasses may extend, but must call <code>createEncodingGroup</code> * during <code>doFillIntoGrid</code>. * </p> - * + * * @see org.eclipse.ui.ide.IDEEncoding * @since 3.1 */ @@ -74,7 +74,7 @@ public abstract class AbstractEncodingFieldEditor extends FieldEditor { /** * Creates a new encoding field editor with the given preference name, label * and parent. - * + * * @param name * the name of the preference this field editor works on * @param labelText @@ -90,7 +90,7 @@ public abstract class AbstractEncodingFieldEditor extends FieldEditor { /** * Creates a new encoding field editor with the given preference name, label * and parent. - * + * * @param name * the name of the preference this field editor works on * @param labelText @@ -133,7 +133,7 @@ public abstract class AbstractEncodingFieldEditor extends FieldEditor { /** * Returns the value that is currently stored for the encoding. - * + * * @return the currently stored encoding */ protected abstract String getStoredValue(); @@ -178,7 +178,7 @@ public abstract class AbstractEncodingFieldEditor extends FieldEditor { * <p> * Subclasses may extend. * </p> - * + * * @param parent * the parent widget * @param numColumns @@ -256,12 +256,12 @@ public abstract class AbstractEncodingFieldEditor extends FieldEditor { otherEncodingButton.setEnabled(enabled); if (encodingCombo != null) encodingCombo.setEnabled(enabled && otherEncodingButton.getSelection()); - + } /** * Returns the default encoding for the object being shown. - * + * * @return the default encoding for the object being shown */ protected String findDefaultEncoding() { @@ -270,7 +270,7 @@ public abstract class AbstractEncodingFieldEditor extends FieldEditor { /** * Returns the text for the default encoding button. - * + * * @return the text for the default encoding button */ protected String defaultButtonText() { @@ -283,7 +283,7 @@ public abstract class AbstractEncodingFieldEditor extends FieldEditor { * Populates the encodings combo. Sets the text based on the selected * encoding. If there is no selected encoding, the text is set to the * default encoding. - * + * * @param encodings * the list of encodings (list of String) * @param selectedEncoding @@ -332,7 +332,7 @@ public abstract class AbstractEncodingFieldEditor extends FieldEditor { /** * Returns the currently selected encoding. - * + * * @return the currently selected encoding */ protected String getSelectedEncoding() { @@ -349,7 +349,7 @@ public abstract class AbstractEncodingFieldEditor extends FieldEditor { /** * Returns whether or not the given encoding is valid. - * + * * @param enc * the encoding to validate * @return <code>true</code> if the encoding is valid, <code>false</code> @@ -367,7 +367,7 @@ public abstract class AbstractEncodingFieldEditor extends FieldEditor { /** * Returns the default encoding. - * + * * @return the default encoding */ protected String getDefaultEnc() { @@ -376,7 +376,7 @@ public abstract class AbstractEncodingFieldEditor extends FieldEditor { /** * Returns whether or not the encoding setting changed. - * + * * @param encodingSetting * the setting from the page. * @return boolean <code>true</code> if the resource encoding is the same @@ -395,7 +395,7 @@ public abstract class AbstractEncodingFieldEditor extends FieldEditor { /** * Return whether or not the default has been selected. - * + * * @return <code>true</code> if the default button has been selected. */ boolean isDefaultSelected() { @@ -406,10 +406,10 @@ public abstract class AbstractEncodingFieldEditor extends FieldEditor { * Set the title of the group to groupTitle. If this is not called a default * title is used. If groupTitle is <code>null</code> the control will be * unlabelled (by default a {@link Composite} instead of a {@link Group}. - * + * * <strong>NOTE</strong> this value must be set before * {@link #createControl(Composite)} is called or it will be ignored. - * + * * @param groupTitle * The groupTitle to set. * @since 3.3 diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/dialogs/EncodingFieldEditor.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/dialogs/EncodingFieldEditor.java index ce2417c3055..d8ba670bf31 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/dialogs/EncodingFieldEditor.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/dialogs/EncodingFieldEditor.java @@ -22,16 +22,16 @@ import org.eclipse.ui.ide.IDEEncoding; * <p> * This class may be instantiated; it is not intended to be subclassed. * </p> - * + * * @since 3.1 */ public final class EncodingFieldEditor extends AbstractEncodingFieldEditor { - + /** * Creates a new encoding field editor with the given preference name, label * and parent. - * + * * @param name * the name of the preference this field editor works on * @param labelText @@ -69,17 +69,17 @@ public final class EncodingFieldEditor extends AbstractEncodingFieldEditor { protected String getStoredValue() { return getPreferenceStore().getString(getPreferenceName()); } - + @Override protected void doStore() { String encoding = getSelectedEncoding(); - + if(hasSameEncoding(encoding)) { return; } - + IDEEncoding.addIDEEncoding(encoding); - + if (encoding.equals(getDefaultEnc())) { getPreferenceStore().setToDefault(getPreferenceName()); } else { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/dialogs/IElementFilter.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/dialogs/IElementFilter.java index 366f6da2798..e420757315e 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/dialogs/IElementFilter.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/dialogs/IElementFilter.java @@ -15,9 +15,9 @@ import java.util.Collection; import org.eclipse.core.runtime.IProgressMonitor; /** - * The {@link IElementFilter} is a interface that defines the API for filtering the current selection of + * The {@link IElementFilter} is a interface that defines the API for filtering the current selection of * a {@link ResourceTreeAndListGroup} in order to find a subset to update as the result of a type filtering. - * + * * @noextend This interface is not intended to be extended by clients. * @since 3.10 */ @@ -25,7 +25,7 @@ public interface IElementFilter { /** * Callback to filter the given collection of elements - * + * * @param elements the raw list of elements to filter * @param monitor the progress monitor * @throws InterruptedException thrown if the monitor is cancelled @@ -34,7 +34,7 @@ public interface IElementFilter { /** * Callback to filter the given array of objects - * + * * @param elements the raw array of elements to filter * @param monitor the progress monitor * @throws InterruptedException thrown if the monitor is cancelled diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/dialogs/ImportTypeDialog.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/dialogs/ImportTypeDialog.java index ff5c56b7520..60748cf1e23 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/dialogs/ImportTypeDialog.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/dialogs/ImportTypeDialog.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: * Serge Beauchamp (Freescale Semiconductor) - initial API and implementation *******************************************************************************/ @@ -43,7 +43,7 @@ import org.eclipse.ui.internal.ide.dialogs.RelativePathVariableGroup; /** * Dialog to let the user customise how files and resources are created in a project * hierarchy after the user drag and drop items on a workspace container. - * + * * Files and folders can be created either by copying the source objects, creating * linked resources, and/or creating virtual folders. * @noextend This class is not intended to be subclassed by clients. @@ -76,7 +76,7 @@ public class ImportTypeDialog extends TrayDialog { * Recreate the file and folder hierarchy using groups and links */ public final static int IMPORT_VIRTUAL_FOLDERS_AND_LINKS = 2; - + private Button copyButton = null; private int currentSelection; @@ -90,13 +90,13 @@ public class ImportTypeDialog extends TrayDialog { private IResource receivingResource = null; private Button shadowCopyButton = null; private String variable = null; - + private RelativePathVariableGroup relativePathVariableGroup; - + /** * Creates the Import Type Dialog when resources are dragged and dropped from an Eclipse * view. - * + * * @param shell * the parent Shell * @param dropOperation @@ -110,11 +110,11 @@ public class ImportTypeDialog extends TrayDialog { IResource[] sources, IContainer target) { this(shell, selectAppropriateMask(dropOperation, sources, target), RelativePathVariableGroup.getPreferredVariable(sources, target)); } - + /** * Creates the Import Type Dialog when files are dragged and dropped from the * operating system's shell (Windows Explorer on Windows Platform, for example). - * + * * @param shell * the parent Shell * @param dropOperation @@ -127,14 +127,14 @@ public class ImportTypeDialog extends TrayDialog { public ImportTypeDialog(Shell shell, int dropOperation, String[] names, IContainer target) { this(shell, selectAppropriateMask(dropOperation, names, target), RelativePathVariableGroup.getPreferredVariable(names, target)); } - + /** * @param parentShell * @param operationMask */ private ImportTypeDialog(Shell parentShell, int operationMask, String preferredVariable) { super(parentShell); - + this.preferredVariable = preferredVariable; this.operationMask = operationMask; currentSelection = 0; @@ -158,7 +158,7 @@ public class ImportTypeDialog extends TrayDialog { public boolean close() { return super.close(); } - + /** * Get the user selection from the dialog. * @return The current selection (one of IMPORT_COPY, IMPORT_VIRTUAL_FOLDERS_AND_LINKS, IMPORT_LINK and IMPORT_MOVE) @@ -166,7 +166,7 @@ public class ImportTypeDialog extends TrayDialog { public int getSelection() { return currentSelection; } - + /** * Get the selected variable if the selection is either IMPORT_VIRTUAL_FOLDERS_AND_LINKS or IMPORT_LINK * @return The currently selected variable, or AUTOMATIC or ABSOLUTE_PATH @@ -174,14 +174,14 @@ public class ImportTypeDialog extends TrayDialog { public String getVariable() { return variable; } - + /** Set the project that is the destination of the import operation * @param resource */ public void setResource(IResource resource) { receivingResource = resource; } - + private boolean hasFlag(int flag) { return (operationMask & flag) != 0; } @@ -199,7 +199,7 @@ public class ImportTypeDialog extends TrayDialog { } return ""; //$NON-NLS-1$ } - + private void refreshSelection() { if (copyButton != null) copyButton.setSelection(currentSelection == IMPORT_COPY); @@ -273,7 +273,7 @@ public class ImportTypeDialog extends TrayDialog { composite.setLayoutData(gridData); composite.setFont(parent.getFont()); - + GridLayout layout = new GridLayout(); layout.numColumns = 1; layout.marginWidth= convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_MARGIN); @@ -297,7 +297,7 @@ public class ImportTypeDialog extends TrayDialog { refreshSelection(); } }; - + if (hasFlag(IMPORT_COPY)) { copyButton = new Button(composite, SWT.RADIO); copyButton.setText(hasFlag(IMPORT_FILES_ONLY) ? IDEWorkbenchMessages.ImportTypeDialog_copyFiles: IDEWorkbenchMessages.ImportTypeDialog_copyFilesAndDirectories); @@ -307,7 +307,7 @@ public class ImportTypeDialog extends TrayDialog { copyButton.addSelectionListener(listener); copyButton.setFont(parent.getFont()); } - + if (hasFlag(IMPORT_MOVE)) { moveButton = new Button(composite, SWT.RADIO); moveButton.setText(hasFlag(IMPORT_FILES_ONLY) ? IDEWorkbenchMessages.ImportTypeDialog_moveFiles:IDEWorkbenchMessages.ImportTypeDialog_moveFilesAndDirectories); @@ -353,21 +353,21 @@ public class ImportTypeDialog extends TrayDialog { return variable; } }); - + int groupIndent = 0; - + if (!linkIsOnlyChoice) { Button tmp = new Button(composite, SWT.CHECK); tmp.setText("."); //$NON-NLS-1$ groupIndent = tmp.computeSize(SWT.DEFAULT, SWT.DEFAULT).x; tmp.dispose(); - + Label tmpLabel = new Label(composite, SWT.NONE); tmpLabel.setText("."); //$NON-NLS-1$ groupIndent -= tmpLabel.computeSize(SWT.DEFAULT, SWT.DEFAULT).x; tmpLabel.dispose(); } - + Composite variableGroup = new Composite(composite, 0); gridData = new GridData(SWT.FILL, SWT.FILL, true, true); gridData.horizontalIndent = groupIndent; @@ -386,7 +386,7 @@ public class ImportTypeDialog extends TrayDialog { else relativePathVariableGroup.selectVariable(preferredVariable); } - + if (linkIsOnlyChoice) { currentSelection = IMPORT_LINK; parent.getShell().setText(IDEWorkbenchMessages.ImportTypeDialog_titleFilesLinking); @@ -424,7 +424,7 @@ public class ImportTypeDialog extends TrayDialog { composite.setLayoutData(gridData); composite.setFont(parent.getFont()); - + GridLayout layout = new GridLayout(); layout.numColumns = 1; layout.marginTop= convertVerticalDLUsToPixels(IDialogConstants.VERTICAL_MARGIN); @@ -444,7 +444,7 @@ public class ImportTypeDialog extends TrayDialog { } return composite; } - + /** * @param resources * The list of items that were dragged @@ -491,11 +491,11 @@ public class ImportTypeDialog extends TrayDialog { mask |= ImportTypeDialog.IMPORT_FILES_ONLY; return mask; } - + /** * Select the most appropriate mode that should be used for the dialog given * the items dropped on the container, the container type, and the drop operation. - * + * * @param dropOperation * @param names * The list of items that were dragged diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/dialogs/PathVariableSelectionDialog.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/dialogs/PathVariableSelectionDialog.java index 018da5c2395..ddf7cc79193 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/dialogs/PathVariableSelectionDialog.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/dialogs/PathVariableSelectionDialog.java @@ -39,9 +39,9 @@ import org.eclipse.ui.internal.ide.dialogs.IDEResourceInfoUtils; import org.eclipse.ui.internal.ide.dialogs.PathVariablesGroup; /** - * A selection dialog which shows the path variables defined in the + * A selection dialog which shows the path variables defined in the * workspace. - * The <code>getResult</code> method returns the name(s) of the + * The <code>getResult</code> method returns the name(s) of the * selected path variable(s). * <p> * This class may be instantiated; it is not intended to be subclassed. @@ -53,9 +53,9 @@ import org.eclipse.ui.internal.ide.dialogs.PathVariablesGroup; * new PathVariableSelectionDialog(getShell(), IResource.FOLDER); * dialog.open(); * String[] result = (String[]) dialog.getResult(); - * </pre> + * </pre> * </p> - * + * * @since 3.1 */ public final class PathVariableSelectionDialog extends SelectionDialog { @@ -71,7 +71,7 @@ public final class PathVariableSelectionDialog extends SelectionDialog { * Creates a path variable selection dialog. * * @param parentShell the parent shell - * @param variableType the type of variables that are displayed in + * @param variableType the type of variables that are displayed in * this dialog. <code>IResource.FILE</code> and/or <code>IResource.FOLDER</code> * logically ORed together. */ @@ -144,24 +144,24 @@ public final class PathVariableSelectionDialog extends SelectionDialog { @Override protected Control createDialogArea(Composite parent) { - // create composite + // create composite Composite dialogArea = (Composite) super.createDialogArea(parent); pathVariablesGroup.createContents(dialogArea); return dialogArea; } - + @Override public boolean close() { pathVariablesGroup.dispose(); return super.close(); } - + @Override protected void okPressed() { - //Sets the dialog result to the selected path variable name(s). + //Sets the dialog result to the selected path variable name(s). if (pathVariablesGroup.performOk()) { PathVariablesGroup.PathVariableElement[] selection = pathVariablesGroup .getSelection(); @@ -179,7 +179,7 @@ public final class PathVariableSelectionDialog extends SelectionDialog { /** * Sets the dialog result to the concatenated variable name and extension. - * + * * @param variable variable selected in the variables list and extended * by <code>extensionFile</code> * @param extensionFile file selected to extend the variable. @@ -199,7 +199,7 @@ public final class PathVariableSelectionDialog extends SelectionDialog { } /** - * Updates the enabled state of the Extend button based on the + * Updates the enabled state of the Extend button based on the * current variable selection. */ private void updateExtendButtonState() { @@ -224,7 +224,7 @@ public final class PathVariableSelectionDialog extends SelectionDialog { } else { extendButton.setEnabled(false); } - + } else { extendButton.setEnabled(false); } @@ -232,7 +232,7 @@ public final class PathVariableSelectionDialog extends SelectionDialog { /** * Sets the resource for which the path variable is being edited. - * + * * @param resource * @since 3.6 */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/dialogs/ResourceEncodingFieldEditor.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/dialogs/ResourceEncodingFieldEditor.java index f9ce61c4135..e4805781537 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/dialogs/ResourceEncodingFieldEditor.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/dialogs/ResourceEncodingFieldEditor.java @@ -52,7 +52,7 @@ import org.osgi.service.prefs.Preferences; * <p> * This class may be instantiated; it is not intended to be subclassed. * </p> - * + * * @since 3.1 */ public final class ResourceEncodingFieldEditor extends AbstractEncodingFieldEditor { @@ -73,14 +73,14 @@ public final class ResourceEncodingFieldEditor extends AbstractEncodingFieldEdit /** * Creates a new encoding field editor for setting the encoding on the given * resource. - * + * * @param labelText * the label text of the field editor * @param parent * the parent of the field editor's control * @param charsetResource * must be an <code>IContainer</code> or an <code>IFile</code>. - * + * * @see org.eclipse.core.resources.IContainer#getDefaultCharset() * @see org.eclipse.core.resources.IFile#getCharset() */ @@ -90,11 +90,11 @@ public final class ResourceEncodingFieldEditor extends AbstractEncodingFieldEdit setLabelAndResource(labelText, charsetResource); createControl(parent); } - + /** * Creates a new encoding field editor for setting the encoding on the given * resource. - * + * * @param labelText * the label text of the field editor * @param parent @@ -105,7 +105,7 @@ public final class ResourceEncodingFieldEditor extends AbstractEncodingFieldEdit * the title for the field editor's control. If groupTitle is * <code>null</code> the control will be unlabelled * (by default a {@link Composite} instead of a {@link Group}. - * + * * @see org.eclipse.core.resources.IContainer#getDefaultCharset() * @see org.eclipse.core.resources.IFile#getCharset() * @see AbstractEncodingFieldEditor#setGroupTitle(String) @@ -330,7 +330,7 @@ public final class ResourceEncodingFieldEditor extends AbstractEncodingFieldEdit /** * Returns the charset from the content description if there is one. - * + * * @return the charset from the content description, or <code>null</code> */ private String getCharsetFromDescription() { @@ -420,7 +420,7 @@ public final class ResourceEncodingFieldEditor extends AbstractEncodingFieldEdit /** * Returns the content description of the resource if it is a file and it * has a content description. - * + * * @return the content description or <code>null</code> if resource is not * an <code>IFile</code> or it does not have a description */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/dialogs/ResourceTreeAndListGroup.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/dialogs/ResourceTreeAndListGroup.java index 7860cca3edb..8f7e8742f8b 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/dialogs/ResourceTreeAndListGroup.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/dialogs/ResourceTreeAndListGroup.java @@ -56,10 +56,10 @@ import org.eclipse.swt.widgets.Tree; * @since 3.10 */ public class ResourceTreeAndListGroup extends EventManager { - + /** * Default attached listener that delegates to clients that register their own {@link ICheckStateListener} - * + * * @see ResourceTreeAndListGroup#addCheckStateListener(ICheckStateListener) */ private class CheckListener implements ICheckStateListener { @@ -81,10 +81,10 @@ public class ResourceTreeAndListGroup extends EventManager { }); } } - + /** * Default attached listener for selections - * + * * TODO do we want to make this extensible like checked listeners? */ private class SelectionListener implements ISelectionChangedListener { @@ -104,12 +104,12 @@ public class ResourceTreeAndListGroup extends EventManager { } currentTreeSelection = selectedElement; } - + } - + /** * Default attached tree listener - * + * * TODO do we want to make this extensible like checked listeners? */ private class TreeListener implements ITreeViewerListener { @@ -122,11 +122,11 @@ public class ResourceTreeAndListGroup extends EventManager { expandTreeElement(event.getElement()); } } - + private CheckListener checkListener = new CheckListener(); private SelectionListener selectionListener = new SelectionListener(); private TreeListener treeListener = new TreeListener(); - + private Object root; private Object currentTreeSelection; private Collection expandedTreeNodes = new HashSet(); @@ -148,7 +148,7 @@ public class ResourceTreeAndListGroup extends EventManager { * Create an instance of this class. Use this constructor if you wish to specify * the width and/or height of the combined widget (to only hard-code one of the * sizing dimensions, specify the other dimension's value as -1) - * + * * @param parent * @param rootObject * @param treeContentProvider @@ -392,7 +392,7 @@ public class ResourceTreeAndListGroup extends EventManager { public void collapseAll() { treeViewer.collapseAll(); } - + /** * Expand an element in a tree viewer */ @@ -440,7 +440,7 @@ public class ResourceTreeAndListGroup extends EventManager { * @param treeElement The tree elements being queried * @param addAll a boolean to indicate if the checked state store needs to be queried * @param filter IElementFilter - the filter being used on the data - * @param monitor IProgressMonitor or null that the cancel is polled for + * @param monitor IProgressMonitor or null that the cancel is polled for */ private void findAllSelectedListElements(Object treeElement, String parentLabel, boolean addAll, IElementFilter filter, IProgressMonitor monitor) throws InterruptedException { @@ -510,7 +510,7 @@ public class ResourceTreeAndListGroup extends EventManager { * Returns a flat list of all of the leaf elements which are checked. Filter * then based on the supplied ElementFilter. If monitor is cancelled then * return null - * + * * @param filter - * the filter for the data * @param monitor @@ -528,7 +528,7 @@ public class ResourceTreeAndListGroup extends EventManager { } } - /** + /** * Returns whether all items in the list are checked. * This method is required, because this widget will keep items grey * checked even though all children are selected (see grayUpdateHierarchy()). @@ -548,7 +548,7 @@ public class ResourceTreeAndListGroup extends EventManager { return true; } - /**Verifies of all list items of the tree element are checked, and + /**Verifies of all list items of the tree element are checked, and * if all children are white checked. If not, verify their children * so that if an element is not white checked, but all its children * are while checked, then, all items are considered checked. @@ -650,7 +650,7 @@ public class ResourceTreeAndListGroup extends EventManager { /** * Returns a list of all of the items that are white checked. * Any folders that are white checked are added and then any files - * from white checked folders are added. + * from white checked folders are added. * * @return the list of all of the items that are white checked */ @@ -750,7 +750,7 @@ public class ResourceTreeAndListGroup extends EventManager { selectAndReveal(parent); //Check the element in the viewer as if it had been manually checked listViewer.setChecked(element, true); - //As this is not done from the UI then set the box for updating from the selection to false + //As this is not done from the UI then set the box for updating from the selection to false listItemChecked(element, true, false); grayUpdateHierarchy(parent); } @@ -950,7 +950,7 @@ public class ResourceTreeAndListGroup extends EventManager { /** * Set the comparator that is to be applied to self's list viewer - * + * * @param comparator the sorter for the list */ public void setListComparator(ViewerComparator comparator) { @@ -960,7 +960,7 @@ public class ResourceTreeAndListGroup extends EventManager { /** * Set the root of the widget to be new Root. Regenerate all of the tables and lists from this * value. - * @param newRoot + * @param newRoot */ public void setRoot(Object newRoot) { this.root = newRoot; @@ -1007,7 +1007,7 @@ public class ResourceTreeAndListGroup extends EventManager { /** * Set the comparator that is to be applied to self's tree viewer - * + * * @param comparator the comparator for the tree */ public void setTreeComparator(ViewerComparator comparator) { @@ -1043,7 +1043,7 @@ public class ResourceTreeAndListGroup extends EventManager { return; } - // now update upwards in the tree hierarchy + // now update upwards in the tree hierarchy if (state) { grayCheckHierarchy(parent); } else { @@ -1072,8 +1072,8 @@ public class ResourceTreeAndListGroup extends EventManager { * Update the selections of the tree elements in items to reflect the new * selections provided. * @param items Map with keys of Object (the tree element) and values of List (the selected - * list elements). - * NOTE: This method does not special case keys with no values (i.e., + * list elements). + * NOTE: This method does not special case keys with no values (i.e., * a tree element with an empty list). If a tree element does not have any selected * items, do not include the element in the Map. */ @@ -1091,13 +1091,13 @@ public class ResourceTreeAndListGroup extends EventManager { while (keyIterator.hasNext()) { Object key = keyIterator.next(); List selections = (List) items.get(key); - //Replace the items in the checked state store with those from the supplied items + //Replace the items in the checked state store with those from the supplied items checkedStateStore.put(key, selections); selectedNodes.add(key); // proceed up the tree element hierarchy Object parent = treeContentProvider.getParent(key); if (parent != null) { - // proceed up the tree element hierarchy and make sure everything is in the table + // proceed up the tree element hierarchy and make sure everything is in the table primeHierarchyForSelection(parent, selectedNodes); } } @@ -1116,7 +1116,7 @@ public class ResourceTreeAndListGroup extends EventManager { } } - /** + /** * Set the focus on to the list widget. */ public void setFocus() { @@ -1128,7 +1128,7 @@ public class ResourceTreeAndListGroup extends EventManager { treeViewer.setSelection(selection); } } - + } } diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/dialogs/UIResourceFilterDescription.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/dialogs/UIResourceFilterDescription.java index df9d0fa7ddb..a7f8e313c91 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/dialogs/UIResourceFilterDescription.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/dialogs/UIResourceFilterDescription.java @@ -36,7 +36,7 @@ public abstract class UIResourceFilterDescription { * @return the description */ abstract public FileInfoMatcherDescription getFileInfoMatcherDescription(); - + /** * @param iResourceFilterDescription * @return a UIResourceFilterDescription @@ -52,12 +52,12 @@ public abstract class UIResourceFilterDescription { public IPath getPath() { return iResourceFilterDescription.getResource().getProjectRelativePath(); } - + @Override public IProject getProject() { return iResourceFilterDescription.getResource().getProject(); } - + @Override public int getType() { return iResourceFilterDescription.getType(); diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/fileSystem/FileSystemContributor.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/fileSystem/FileSystemContributor.java index 9c4a907bc76..4a383faadb9 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/fileSystem/FileSystemContributor.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/fileSystem/FileSystemContributor.java @@ -19,14 +19,14 @@ import org.eclipse.swt.widgets.Shell; /** * The abstract base class for all UI file system contributors. This class * provides the infrastructure for defining a contributor and fulfills the contract - * specified by the <code>org.eclipse.ui.ide.filesystemSupport</code> + * specified by the <code>org.eclipse.ui.ide.filesystemSupport</code> * extension point. - * + * * @since 3.2 * @see org.eclipse.core.filesystem.IFileSystem */ public abstract class FileSystemContributor { - + /** * Browse the file system for a URI to display to the user. * @param initialPath The path to initialize the selection with. @@ -35,11 +35,11 @@ public abstract class FileSystemContributor { * <code>null</code> if a URI could not be determined. */ public abstract URI browseFileSystem(String initialPath, Shell shell); - + /** * Return a URI for the supplied String from the user. * @param string - * @return URI or <code>null</code> if the string is + * @return URI or <code>null</code> if the string is * invalid. */ public URI getURI(String string){ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/AbstractCopyOrMoveResourcesOperation.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/AbstractCopyOrMoveResourcesOperation.java index 6b964f4147a..148ae408cd6 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/AbstractCopyOrMoveResourcesOperation.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/AbstractCopyOrMoveResourcesOperation.java @@ -24,11 +24,11 @@ import org.eclipse.ui.internal.ide.undo.UndoMessages; * An AbstractCopyOrMoveResourcesOperation represents an undoable operation for * moving or copying one or more resources in the workspace. Clients may call * the public API from a background thread. - * + * * This class is not intended to be subclassed by clients. - * + * * @since 3.3 - * + * */ abstract class AbstractCopyOrMoveResourcesOperation extends AbstractResourcesOperation { @@ -49,10 +49,10 @@ abstract class AbstractCopyOrMoveResourcesOperation extends * Create an AbstractCopyOrMoveResourcesOperation that moves or copies all * of the specified resources to the specified paths. The destination paths * must include the names of the resources at their new location. - * + * * @param resources * the resources to be moved or copied. May not contain null - * resources, or resources that are descendants of already + * resources, or resources that are descendants of already * included resources. * @param destinationPaths * the destination paths for the resources, including the name to @@ -60,7 +60,7 @@ abstract class AbstractCopyOrMoveResourcesOperation extends * null paths, and must be the same length as the resources array. * @param label * the label of the operation - * + * */ AbstractCopyOrMoveResourcesOperation(IResource[] resources, IPath[] destinationPaths, String label) { @@ -92,7 +92,7 @@ abstract class AbstractCopyOrMoveResourcesOperation extends * Create an AbstractCopyOrMoveResourcesOperation that moves or copies all * of the specified resources to the same target location, using their * existing names. - * + * * @param resources * the resources to be moved or copied * @param destinationPath @@ -110,7 +110,7 @@ abstract class AbstractCopyOrMoveResourcesOperation extends /** * Create an AbstractCopyOrMoveResourcesOperation whose destination is not * yet specified. - * + * * @param resources * the resources to be modified * @param label @@ -127,7 +127,7 @@ abstract class AbstractCopyOrMoveResourcesOperation extends * successful. A status severity of <code>ERROR</code> indicates that the * operation is no longer valid. Other status severities are open to * interpretation by the caller. - * + * * Note this method may be called on initial moving or copying of a * resource, or when a move or copy is undone or redone. Therefore, this * method should check conditions that can change over the life of the @@ -136,7 +136,7 @@ abstract class AbstractCopyOrMoveResourcesOperation extends * typically be done by the caller so that the user is not continually * prompted or warned about conditions that were acceptable at the time of * original execution and do not change over time. - * + * * @return the status indicating the projected outcome of moving or copying * the resources. */ @@ -176,7 +176,7 @@ abstract class AbstractCopyOrMoveResourcesOperation extends /** * Return the destination path that should be used to move or copy the * specified resource. This path is relative to the workspace. - * + * * @param resource * the resource being moved or copied * @param index @@ -204,7 +204,7 @@ abstract class AbstractCopyOrMoveResourcesOperation extends /** * Return a boolean indicating whether the proposed destination path for a * resource is valid. - * + * * @param resource * the resource whose path is to be checked * @param index @@ -218,7 +218,7 @@ abstract class AbstractCopyOrMoveResourcesOperation extends /** * Return a string indicating the proposed name for the resource - * + * * @param resource * the resource whose path is to be checked * @param index diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/AbstractCreateResourcesOperation.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/AbstractCreateResourcesOperation.java index 38e43f529bc..3dbc0b468a9 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/AbstractCreateResourcesOperation.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/AbstractCreateResourcesOperation.java @@ -23,18 +23,18 @@ import org.eclipse.core.runtime.jobs.ISchedulingRule; * A CreateResourcesOperation represents an undoable operation for creating * resources in the workspace. Clients may call the public API from a background * thread. - * + * * This class is not intended to be subclassed by clients. - * + * * @since 3.3 - * + * */ abstract class AbstractCreateResourcesOperation extends AbstractResourcesOperation { /** * Create an AbstractCreateResourcesOperation. - * + * * @param resourceDescriptions * the resourceDescriptions describing resources to be created * @param label diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/AbstractMarkersOperation.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/AbstractMarkersOperation.java index bbf851340a3..63e54a8aed0 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/AbstractMarkersOperation.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/AbstractMarkersOperation.java @@ -33,11 +33,11 @@ import org.eclipse.ui.views.markers.internal.MarkerTypesModel; * markers on a resource. It provides implementations for marker creation, * deletion, and updating. Clients may call the public API from a background * thread. - * + * * This class is not intended to be subclassed by clients. - * + * * @since 3.3 - * + * */ abstract class AbstractMarkersOperation extends AbstractWorkspaceOperation { @@ -50,7 +50,7 @@ abstract class AbstractMarkersOperation extends AbstractWorkspaceOperation { /** * Create an AbstractMarkersOperation by specifying a combination of markers * and attributes or marker descriptions. - * + * * @param markers * the markers used in the operation or <code>null</code> if no * markers yet exist @@ -92,14 +92,14 @@ abstract class AbstractMarkersOperation extends AbstractWorkspaceOperation { /** * Delete any currently known markers and save their information in marker * descriptions so that they can be restored. - * + * * @param work * the number of work ticks to be used by the delete * @param monitor * the progress monitor to use for the delete * @throws CoreException * propagates any CoreExceptions thrown from the resources API - * + * */ protected void deleteMarkers(int work, IProgressMonitor monitor) throws CoreException { @@ -119,7 +119,7 @@ abstract class AbstractMarkersOperation extends AbstractWorkspaceOperation { /** * Create markers from any currently known marker descriptions. - * + * * @param work * the number of work ticks to be used by the create * @param monitor @@ -146,7 +146,7 @@ abstract class AbstractMarkersOperation extends AbstractWorkspaceOperation { /** * Update the currently known markers with the corresponding array of marker * descriptions. - * + * * @param work * the number of work ticks to be used by the update * @param monitor @@ -156,7 +156,7 @@ abstract class AbstractMarkersOperation extends AbstractWorkspaceOperation { * considered to be a replacement of the previous attributes. * @throws CoreException * propagates any CoreExceptions thrown from the resources API - * + * */ protected void updateMarkers(int work, IProgressMonitor monitor, boolean mergeAttributes) throws CoreException { @@ -192,7 +192,7 @@ abstract class AbstractMarkersOperation extends AbstractWorkspaceOperation { /** * Set the marker descriptions that describe markers that can be created. - * + * * @param descriptions * the descriptions of markers that can be created. */ @@ -228,7 +228,7 @@ abstract class AbstractMarkersOperation extends AbstractWorkspaceOperation { /* * Add undo contexts according to marker types. Any unknown marker types * will cause the workspace undo context to be added. - * + * * This is an optimization that allows us to add specific undo contexts for * tasks and bookmarks, without also adding the workspace undo context. Note * that clients with different marker types may still assign their own @@ -287,7 +287,7 @@ abstract class AbstractMarkersOperation extends AbstractWorkspaceOperation { /** * Return the array of markers that has been updated or created. - * + * * @return the array of markers that have been updated or created, or * <code>null</code> if no markers have been created or updated. */ @@ -297,7 +297,7 @@ abstract class AbstractMarkersOperation extends AbstractWorkspaceOperation { /** * Return whether the markers known by this operation currently exist. - * + * * @return <code>true</code> if there are existing markers and * <code>false</code> if there are no known markers or any one of * them does not exist @@ -319,7 +319,7 @@ abstract class AbstractMarkersOperation extends AbstractWorkspaceOperation { * Return a status indicating the projected outcome of undoing the marker * operation. The receiver is not responsible for remembering the result of * this computation. - * + * * @return the status indicating whether the operation can be undone */ protected abstract IStatus getBasicUndoStatus(); @@ -328,7 +328,7 @@ abstract class AbstractMarkersOperation extends AbstractWorkspaceOperation { * Return a status indicating the projected outcome of redoing the marker * operation. The receiver is not responsible for remembering the result of * this computation. - * + * * @return the status indicating whether the operation can be undone */ protected abstract IStatus getBasicRedoStatus(); @@ -375,10 +375,10 @@ abstract class AbstractMarkersOperation extends AbstractWorkspaceOperation { * status severity of <code>ERROR</code> indicates that the operation is * no longer valid. Other status severities are open to interpretation by * the caller. - * + * * @return the status indicating the projected outcome of deleting the * markers. - * + * */ protected IStatus getMarkerDeletionStatus() { if (markersExist()) { @@ -393,10 +393,10 @@ abstract class AbstractMarkersOperation extends AbstractWorkspaceOperation { * status severity of <code>ERROR</code> indicates that the operation is * no longer valid. Other status severities are open to interpretation by * the caller. - * + * * @return the status indicating the projected outcome of creating the * markers. - * + * */ protected IStatus getMarkerCreationStatus() { if (!resourcesExist()) { @@ -413,10 +413,10 @@ abstract class AbstractMarkersOperation extends AbstractWorkspaceOperation { * status severity of <code>ERROR</code> indicates that the operation is * no longer valid. Other status severities are open to interpretation by * the caller. - * + * * @return the status indicating the projected outcome of updating the * markers. - * + * */ protected IStatus getMarkerUpdateStatus() { if (!markersExist()) { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/AbstractResourcesOperation.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/AbstractResourcesOperation.java index e07996a767b..af0c9401fea 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/AbstractResourcesOperation.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/AbstractResourcesOperation.java @@ -30,20 +30,20 @@ import org.eclipse.ui.internal.ide.undo.UndoMessages; * An AbstractResourcesOperation represents an undoable operation that * manipulates resources. It provides implementations for resource rename, * delete, creation, and modification. It also assigns the workspace undo - * context as the undo context for operations of this type. - * + * context as the undo context for operations of this type. + * * Resource operations record a snapshot of the workspace state when they * are created. It is expected that an operation will be created and * executed without there being any intermediate changes to the resources * described in the operation between construction of the operation and * execution of the operation. - * + * * Clients may call the public API from a background thread. - * + * * This class is not intended to be subclassed by clients. - * + * * @since 3.3 - * + * */ abstract class AbstractResourcesOperation extends AbstractWorkspaceOperation { @@ -67,7 +67,7 @@ abstract class AbstractResourcesOperation extends AbstractWorkspaceOperation { /** * Create an Abstract Resources Operation - * + * * @param resources * the resources to be modified * @param label @@ -82,7 +82,7 @@ abstract class AbstractResourcesOperation extends AbstractWorkspaceOperation { /** * Create an Abstract Resources Operation - * + * * @param resourceDescriptions * the resourceDescriptions describing resources to be created * @param label @@ -98,7 +98,7 @@ abstract class AbstractResourcesOperation extends AbstractWorkspaceOperation { /** * Delete any resources known by this operation. Store enough information to * undo and redo the operation. - * + * * @param monitor * the progress monitor to use for the operation * @param uiInfo @@ -124,7 +124,7 @@ abstract class AbstractResourcesOperation extends AbstractWorkspaceOperation { /** * Recreate any resources known by this operation. Store enough information * to undo and redo the operation. - * + * * @param monitor * the progress monitor to use for the operation * @param uiInfo @@ -149,7 +149,7 @@ abstract class AbstractResourcesOperation extends AbstractWorkspaceOperation { * successful. A status severity of <code>ERROR</code> indicates that the * operation is no longer valid. Other status severities are open to * interpretation by the caller. - * + * * Note this method may be called on initial creation of a resource, or when * a create or delete operation is being undone or redone. Therefore, this * method should check conditions that can change over the life of the @@ -158,7 +158,7 @@ abstract class AbstractResourcesOperation extends AbstractWorkspaceOperation { * caller (such as the action that creates the operation) so that the user * is not continually prompted or warned about conditions that were * acceptable at the time of original execution. - * + * * @param allowOverwrite * a boolean that specifies whether resource creation should be * allowed to overwrite an existent resource. @@ -190,7 +190,7 @@ abstract class AbstractResourcesOperation extends AbstractWorkspaceOperation { * status severity of <code>ERROR</code> indicates that the operation is * no longer valid. Other status severities are open to interpretation by * the caller. - * + * * Note this method may be called on initial deletion of a resource, or when * a create or delete operation is being undone or redone. Therefore, this * method should check conditions that can change over the life of the @@ -240,7 +240,7 @@ abstract class AbstractResourcesOperation extends AbstractWorkspaceOperation { /** * Set the array of resource descriptions describing resources to be * restored when undoing or redoing this operation. - * + * * @param descriptions * the array of resource descriptions */ @@ -262,7 +262,7 @@ abstract class AbstractResourcesOperation extends AbstractWorkspaceOperation { /** * Compute a scheduling rule for creating resources. - * + * * @return a scheduling rule appropriate for creating the resources * specified in the resource descriptions */ @@ -290,7 +290,7 @@ abstract class AbstractResourcesOperation extends AbstractWorkspaceOperation { /** * Compute a scheduling rule for deleting resources. - * + * * @return a scheduling rule appropriate for deleting the resources * specified in the receiver. */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/AbstractWorkspaceOperation.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/AbstractWorkspaceOperation.java index 01761654f9f..a74a027d099 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/AbstractWorkspaceOperation.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/AbstractWorkspaceOperation.java @@ -76,7 +76,7 @@ public abstract class AbstractWorkspaceOperation extends AbstractOperation /** * Create an AbstractWorkspaceOperation with the specified name. - * + * * @param name * the name used to describe the operation */ @@ -95,7 +95,7 @@ public abstract class AbstractWorkspaceOperation extends AbstractOperation /** * Set the ids of any model providers for the resources involved. - * + * * @param ids * the array of String model provider ids that provide models * associated with the resources involved in this operation @@ -106,7 +106,7 @@ public abstract class AbstractWorkspaceOperation extends AbstractOperation /** * Set the resources which are affected by this operation - * + * * @param resources * an array of resources */ @@ -116,7 +116,7 @@ public abstract class AbstractWorkspaceOperation extends AbstractOperation /** * Return the workspace manipulated by this operation. - * + * * @return the IWorkspace used by this operation. */ protected IWorkspace getWorkspace() { @@ -125,7 +125,7 @@ public abstract class AbstractWorkspaceOperation extends AbstractOperation /** * Return the workspace rule factory associated with this operation. - * + * * @return the IResourceRuleFactory associated with this operation. */ protected IResourceRuleFactory getWorkspaceRuleFactory() { @@ -135,7 +135,7 @@ public abstract class AbstractWorkspaceOperation extends AbstractOperation /** * Mark this operation invalid due to some external change. May be used by * subclasses. - * + * */ protected void markInvalid() { isValid = false; @@ -170,7 +170,7 @@ public abstract class AbstractWorkspaceOperation extends AbstractOperation * operation in a workspace runnable and catches any CoreExceptions * resulting from the operation. Unhandled CoreExceptions are propagated as * ExecutionExceptions. - * + * * @param monitor * the progress monitor to use for the operation * @param uiInfo @@ -185,7 +185,7 @@ public abstract class AbstractWorkspaceOperation extends AbstractOperation * to represent an incompletion of the execution. * @throws ExecutionException * if an exception occurred during execution. - * + * * @see org.eclipse.core.commands.operations.IUndoableOperation#execute(org.eclipse.core.runtime.IProgressMonitor, * org.eclipse.core.runtime.IAdaptable) */ @@ -213,7 +213,7 @@ public abstract class AbstractWorkspaceOperation extends AbstractOperation * a workspace runnable and catches any CoreExceptions resulting from the * operation. Unhandled CoreExceptions are propagated as * ExecutionExceptions. - * + * * @param monitor * the progress monitor to use for the operation * @param uiInfo @@ -256,7 +256,7 @@ public abstract class AbstractWorkspaceOperation extends AbstractOperation * a workspace runnable and catches any CoreExceptions resulting from the * operation. Unhandled CoreExceptions are propagated as * ExecutionExceptions. - * + * * @param monitor * the progress monitor to use for the operation * @param uiInfo @@ -296,7 +296,7 @@ public abstract class AbstractWorkspaceOperation extends AbstractOperation /** * Perform the specific work involved in undoing this operation. - * + * * @param monitor * the progress monitor to use for the operation * @param uiInfo @@ -313,7 +313,7 @@ public abstract class AbstractWorkspaceOperation extends AbstractOperation /** * Perform the specific work involved in executing this operation. - * + * * @param monitor * the progress monitor to use for the operation * @param uiInfo @@ -324,7 +324,7 @@ public abstract class AbstractWorkspaceOperation extends AbstractOperation * org.eclipse.swt.widgets.Shell.class * @throws CoreException * propagates any CoreExceptions thrown from the resources API - * + * */ protected abstract void doExecute(IProgressMonitor monitor, IAdaptable uiInfo) throws CoreException; @@ -333,7 +333,7 @@ public abstract class AbstractWorkspaceOperation extends AbstractOperation * Return whether the proposed operation is valid. The default * implementation simply checks to see if the flag has been marked as * invalid, relying on subclasses to mark the flag invalid when appropriate. - * + * * @return the validity flag */ protected boolean isValid() { @@ -357,13 +357,13 @@ public abstract class AbstractWorkspaceOperation extends AbstractOperation * {@link org.eclipse.core.commands.operations.IOperationApprover2}) who * wish to perform advanced validation of an operation before attempting to * execute it. - * + * * If an ERROR status is returned, the operation will not proceed and the * user notified if deemed necessary by the caller. The validity flag on the * operation should be marked as invalid. If an OK status is returned, the * operation will proceed. The caller must interpret any other returned * status severity, and may choose to prompt the user as to how to proceed. - * + * * If there are multiple conditions that result in an ambiguous status * severity, it is best for the implementor of this method to consult the * user as to how to proceed for each one, and return an OK or ERROR status @@ -372,16 +372,16 @@ public abstract class AbstractWorkspaceOperation extends AbstractOperation * may potentially consult the user. (Note that the user should not be * consulted at all if a client has called {@link #setQuietCompute(boolean)} * with a value of <code>true</code>.) - * + * * This implementation computes the validity of execution by computing the * resource delta that would be generated on execution, and checking whether * any registered model providers are affected by the operation. - * + * * @param monitor * the progress monitor to be used for computing the status * @return the status indicating the projected outcome of executing the * receiver - * + * * @see org.eclipse.core.commands.operations.IAdvancedUndoableOperation#computeUndoableStatus(org.eclipse.core.runtime.IProgressMonitor) * @see #setQuietCompute(boolean) */ @@ -421,13 +421,13 @@ public abstract class AbstractWorkspaceOperation extends AbstractOperation * {@link org.eclipse.core.commands.operations.IOperationApprover2}) who * wish to perform advanced validation of an operation before attempting to * undo it. - * + * * If an ERROR status is returned, the undo will not proceed and the user * notified if deemed necessary by the caller. The validity flag on the * operation should be marked as invalid. If an OK status is returned, the * undo will proceed. The caller must interpret any other returned status * severity, and may choose to prompt the user as to how to proceed. - * + * * If there are multiple conditions that result in an ambiguous status * severity, it is best for the implementor of this method to consult the * user as to how to proceed for each one, and return an OK or ERROR status @@ -436,16 +436,16 @@ public abstract class AbstractWorkspaceOperation extends AbstractOperation * may potentially consult the user. (Note that the user should not be * consulted at all if a client has called {@link #setQuietCompute(boolean)} * with a value of <code>true</code>.) - * + * * This implementation computes the validity of undo by computing the * resource delta that would be generated on undo, and checking whether any * registered model providers are affected by the operation. - * + * * @param monitor * the progress monitor to be used for computing the status * @return the status indicating the projected outcome of undoing the * receiver - * + * * @see org.eclipse.core.commands.operations.IAdvancedUndoableOperation#computeUndoableStatus(org.eclipse.core.runtime.IProgressMonitor) * @see #setQuietCompute(boolean) */ @@ -484,13 +484,13 @@ public abstract class AbstractWorkspaceOperation extends AbstractOperation * {@link org.eclipse.core.commands.operations.IOperationApprover2}) who * wish to perform advanced validation of an operation before attempting to * redo it. - * + * * If an ERROR status is returned, the redo will not proceed and the user * notified if deemed necessary by the caller. The validity flag on the * operation should be marked as invalid. If an OK status is returned, the * redo will proceed. The caller must interpret any other returned status * severity, and may choose to prompt the user as to how to proceed. - * + * * If there are multiple conditions that result in an ambiguous status * severity, it is best for the implementor of this method to consult the * user as to how to proceed for each one, and return an OK or ERROR status @@ -499,16 +499,16 @@ public abstract class AbstractWorkspaceOperation extends AbstractOperation * may potentially consult the user. (Note that the user should not be * consulted at all if a client has called {@link #setQuietCompute(boolean)} * with a value of <code>true</code>.) - * + * * This implementation computes the validity of redo by computing the * resource delta that would be generated on redo, and checking whether any * registered model providers are affected by the operation. - * + * * @param monitor * the progress monitor to be used for computing the status * @return the status indicating the projected outcome of redoing the * receiver - * + * * @see org.eclipse.core.commands.operations.IAdvancedUndoableOperation#computeUndoableStatus(org.eclipse.core.runtime.IProgressMonitor) * @see #setQuietCompute(boolean) */ @@ -546,7 +546,7 @@ public abstract class AbstractWorkspaceOperation extends AbstractOperation * implementation does not update the factory. Subclasses are expected to * override this method to more specifically describe their modifications to * the workspace. - * + * * @param factory * the factory to update * @param operation @@ -562,7 +562,7 @@ public abstract class AbstractWorkspaceOperation extends AbstractOperation /** * Return an error status describing an invalid operation using the provided * message. - * + * * @param message * the message to be used in the status, or <code>null</code> * if a generic message should be used @@ -583,7 +583,7 @@ public abstract class AbstractWorkspaceOperation extends AbstractOperation /** * Return a warning status describing the warning state of an operation * using the provided message and code. - * + * * @param message * the message to be used in the status, or <code>null</code> * if a generic message should be used @@ -605,7 +605,7 @@ public abstract class AbstractWorkspaceOperation extends AbstractOperation /** * Return whether the resources known by this operation currently exist. - * + * * @return <code>true</code> if there are existing resources and * <code>false</code> if there are no known resources or any one * of them does not exist @@ -625,7 +625,7 @@ public abstract class AbstractWorkspaceOperation extends AbstractOperation /** * Return whether the resources known by this operation contain any * projects. - * + * * @return <code>true</code> if there is one or more projects known by * this operation and false if there are no projects. */ @@ -643,15 +643,15 @@ public abstract class AbstractWorkspaceOperation extends AbstractOperation /** * Return a scheduling rule appropriate for executing this operation. - * + * * The default implementation is to return a rule that locks out the entire * workspace. Subclasses are encouraged to provide more specific rules that * affect only their resources. - * + * * @return the scheduling rule to use when executing this operation, or * <code>null</code> if there are no scheduling restrictions for * this operation. - * + * * @see IWorkspace#run(IWorkspaceRunnable, ISchedulingRule, int, * IProgressMonitor) */ @@ -661,15 +661,15 @@ public abstract class AbstractWorkspaceOperation extends AbstractOperation /** * Return a scheduling rule appropriate for undoing this operation. - * + * * The default implementation is to return a rule that locks out the entire * workspace. Subclasses are encouraged to provide more specific rules that * affect only their resources. - * + * * @return the scheduling rule to use when undoing this operation, or * <code>null</code> if there are no scheduling restrictions for * this operation. - * + * * @see IWorkspace#run(IWorkspaceRunnable, ISchedulingRule, int, * IProgressMonitor) */ @@ -679,14 +679,14 @@ public abstract class AbstractWorkspaceOperation extends AbstractOperation /** * Return a scheduling rule appropriate for redoing this operation. - * + * * The default implementation considers the redo scheduling rule the same as * the original execution scheduling rule. - * + * * @return the scheduling rule to use when redoing this operation, or * <code>null</code> if there are no scheduling restrictions for * this operation. - * + * * @see IWorkspace#run(IWorkspaceRunnable, ISchedulingRule, int, * IProgressMonitor) */ @@ -712,7 +712,7 @@ public abstract class AbstractWorkspaceOperation extends AbstractOperation * Append any descriptive text to the specified string buffer to be shown in * the receiver's {@link #toString()} text. * <p>Note that this method is not intend to be subclassed by clients. - * + * * @param text * the StringBuffer on which to append the text */ @@ -725,17 +725,17 @@ public abstract class AbstractWorkspaceOperation extends AbstractOperation /** * Return the shell described by the specified adaptable, or the active * shell if no shell has been specified in the adaptable. - * + * * @param uiInfo * the IAdaptable (or <code>null</code>) provided by the * caller in order to supply UI information for prompting the * user if necessary. When this parameter is not * <code>null</code>, it contains an adapter for the * org.eclipse.swt.widgets.Shell.class - * + * * @return the shell specified in the adaptable, or the active shell if no * shell has been specified - * + * */ protected Shell getShell(IAdaptable uiInfo) { if (uiInfo != null) { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/CopyProjectOperation.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/CopyProjectOperation.java index 5a8d67cdb94..3a3fee71b92 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/CopyProjectOperation.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/CopyProjectOperation.java @@ -35,12 +35,12 @@ import org.eclipse.ui.internal.ide.undo.UndoMessages; * A CopyProjectOperation represents an undoable operation for copying a * project, also specifying the location of its contents. Clients may call the * public API from a background thread. - * + * * <p> * This class is intended to be instantiated and used by clients. It is not * intended to be subclassed by clients. * </p> - * + * * @noextend This class is not intended to be subclassed by clients. * @since 3.3 */ @@ -55,7 +55,7 @@ public class CopyProjectOperation extends AbstractCopyOrMoveResourcesOperation { /** * Create a CopyProjectOperation that copies the specified project and sets * its location to the specified location. - * + * * @param project * the project to be copied * @param name diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/CopyResourcesOperation.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/CopyResourcesOperation.java index 47f75e6bf28..8c4617c218e 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/CopyResourcesOperation.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/CopyResourcesOperation.java @@ -28,7 +28,7 @@ import org.eclipse.ui.internal.ide.undo.UndoMessages; * A CopyResourcesOperation represents an undoable operation for copying one or * more resources in the workspace. Clients may call the public API from a * background thread. - * + * * <p> * This operation can track any overwritten resources and restore them when the * copy is undone. It is up to clients to determine whether overwrites are @@ -37,12 +37,12 @@ import org.eclipse.ui.internal.ide.undo.UndoMessages; * location for the copy is assumed to have already been validated by the * client. It will not be revalidated on undo and redo. * </p> - * + * * <p> * This class is intended to be instantiated and used by clients. It is not * intended to be subclassed by clients. * </p> - * + * * @noextend This class is not intended to be subclassed by clients. * @since 3.3 */ @@ -56,7 +56,7 @@ public class CopyResourcesOperation extends /** * Create a CopyResourcesOperation that copies a single resource to a new * location. The new location includes the name of the copy. - * + * * @param resource * the resource to be copied * @param newPath @@ -75,7 +75,7 @@ public class CopyResourcesOperation extends * Create a CopyResourcesOperation that copies all of the specified * resources to a single target location. The original resource name will be * used when copied to the new location. - * + * * @param resources * the resources to be copied * @param destinationPath @@ -95,7 +95,7 @@ public class CopyResourcesOperation extends * resources to its corresponding destination path in the destination path * array. The resource name for the target is included in the corresponding * destination path. - * + * * @param resources * the resources to be copied. Must not contain null resources. * @param destinationPaths @@ -125,7 +125,7 @@ public class CopyResourcesOperation extends * Move or copy any known resources according to the destination parameters * known by this operation. Store enough information to undo and redo the * operation. - * + * * @param monitor * the progress monitor to use for the operation * @param uiInfo diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/CreateFileOperation.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/CreateFileOperation.java index 2a39c7af388..80c833c4281 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/CreateFileOperation.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/CreateFileOperation.java @@ -29,8 +29,8 @@ import org.eclipse.ui.internal.ide.undo.IFileContentDescription; * be linked to the file at the specified location. If a link location is not * specified, the file will be created in the location specified by the handle, * and the entire containment path of the file will be created if it does not - * exist. The file should not already exist, and the existence of the - * containment path should not be changed between the time this operation + * exist. The file should not already exist, and the existence of the + * containment path should not be changed between the time this operation * is created and the time it is executed. * <p> * Clients may call the public API from a background thread. @@ -46,7 +46,7 @@ public class CreateFileOperation extends AbstractCreateResourcesOperation { /** * Create a CreateFileOperation - * + * * @param fileHandle * the file to be created * @param linkLocation @@ -111,7 +111,7 @@ public class CreateFileOperation extends AbstractCreateResourcesOperation { } }; } - + @Override public IStatus computeExecutionStatus(IProgressMonitor monitor) { IStatus status = super.computeExecutionStatus(monitor); diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/CreateFolderOperation.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/CreateFolderOperation.java index 5c6368aea95..207573b4aea 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/CreateFolderOperation.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/CreateFolderOperation.java @@ -23,7 +23,7 @@ import org.eclipse.ui.internal.ide.undo.ContainerDescription; * considered to be linked to the specified location. If a link location is not * specified, the folder will be created in the location specified by the * handle, and the entire containment path of the folder will be created if it - * does not exist. The folder should not already exist, and the existence + * does not exist. The folder should not already exist, and the existence * of the containment path should not be changed between the time this operation * is created and the time it is executed. * <p> @@ -40,7 +40,7 @@ public class CreateFolderOperation extends AbstractCreateResourcesOperation { /** * Create a CreateFolderOperation - * + * * @param folderHandle * the folder to be created * @param linkLocation @@ -56,7 +56,7 @@ public class CreateFolderOperation extends AbstractCreateResourcesOperation { /** * Create a CreateFolderOperation - * + * * @param folderHandle * the folder to be created * @param linkLocation diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/CreateMarkersOperation.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/CreateMarkersOperation.java index 9d132d0f379..58f6cf0ccd0 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/CreateMarkersOperation.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/CreateMarkersOperation.java @@ -26,19 +26,19 @@ import org.eclipse.ui.internal.ide.undo.UndoMessages; * A CreateMarkersOperation represents an undoable operation for creating one or * more markers on one or more resources in the workspace. Clients may call the * public API from a background thread. - * + * * This class is intended to be instantiated and used by clients. It is not * intended to be subclassed by clients. - * + * * @since 3.3 - * + * */ public class CreateMarkersOperation extends AbstractMarkersOperation { /** * Create an undoable operation that can create a marker of a specific type * on a resource. - * + * * @param type * the type of marker to be created * @param attributes @@ -48,7 +48,7 @@ public class CreateMarkersOperation extends AbstractMarkersOperation { * @param name * the name used to describe the operation that creates the * marker - * + * * @see org.eclipse.core.resources.IMarker */ public CreateMarkersOperation(String type, Map attributes, @@ -60,7 +60,7 @@ public class CreateMarkersOperation extends AbstractMarkersOperation { /** * Create an undoable operation that can create multiple markers of various * types on multiple resources. - * + * * @param types * an array describing the types of markers to be created * @param attributes @@ -87,7 +87,7 @@ public class CreateMarkersOperation extends AbstractMarkersOperation { /** * Create an undoable operation that can create multiple markers of a single * type on multiple resources. - * + * * @param type * the type of markers to be created * @param attributes diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/CreateProjectOperation.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/CreateProjectOperation.java index 1713427a44d..c74f163057f 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/CreateProjectOperation.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/CreateProjectOperation.java @@ -29,7 +29,7 @@ public class CreateProjectOperation extends AbstractCreateResourcesOperation { /** * Create a CreateProjectOperation - * + * * @param projectDescription * the project to be created * @param label diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/DeleteMarkersOperation.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/DeleteMarkersOperation.java index 6a0ceb96bcb..dcc25b80d35 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/DeleteMarkersOperation.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/DeleteMarkersOperation.java @@ -23,18 +23,18 @@ import org.eclipse.ui.internal.ide.undo.UndoMessages; * A DeleteMarkersOperation represents an undoable operation for deleting one or * more markers in the workspace. Clients may call the public API from a * background thread. - * + * * This class is intended to be instantiated and used by clients. It is not * intended to be subclassed by clients. - * + * * @since 3.3 - * + * */ public class DeleteMarkersOperation extends AbstractMarkersOperation { /** * Create an undoable operation that can delete the specified markers. - * + * * @param markers * the markers to be deleted * @param name diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/DeleteResourcesOperation.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/DeleteResourcesOperation.java index f6d2047accb..5edcdb9dc13 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/DeleteResourcesOperation.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/DeleteResourcesOperation.java @@ -40,7 +40,7 @@ public class DeleteResourcesOperation extends AbstractResourcesOperation { /** * Create a DeleteResourcesOperation - * + * * @param resources * the resources to be deleted * @param label diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/MoveProjectOperation.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/MoveProjectOperation.java index eac2550e765..d666c55eaf2 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/MoveProjectOperation.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/MoveProjectOperation.java @@ -35,10 +35,10 @@ import org.eclipse.ui.internal.ide.undo.UndoMessages; * This class is intended to be instantiated and used by clients. It is not * intended to be subclassed by clients. * </p> - * + * * @noextend This class is not intended to be subclassed by clients. * @since 3.3 - * + * */ public class MoveProjectOperation extends AbstractCopyOrMoveResourcesOperation { @@ -47,7 +47,7 @@ public class MoveProjectOperation extends AbstractCopyOrMoveResourcesOperation { /** * Create a MoveProjectOperation that moves the specified project contents * to a new location. - * + * * @param project * the project to be moved * @param location @@ -79,7 +79,7 @@ public class MoveProjectOperation extends AbstractCopyOrMoveResourcesOperation { private IProject getProject() { return (IProject) resources[0]; } - + @Override protected boolean isDestinationPathValid(IResource resource, int index) { // path has already been validated in #computeMoveOrCopyStatus() @@ -124,7 +124,7 @@ public class MoveProjectOperation extends AbstractCopyOrMoveResourcesOperation { throws CoreException { doExecute(monitor, uiInfo); } - + /* * Move the project to its new location, returning its previous location. */ @@ -132,19 +132,19 @@ public class MoveProjectOperation extends AbstractCopyOrMoveResourcesOperation { throws CoreException { monitor .setTaskName(UndoMessages.AbstractCopyOrMoveResourcesOperation_moveProjectProgress); - + IProjectDescription description = project.getDescription(); // Record the original path so this can be undone URI newDestinationURI = description.getLocationURI(); // Set the new location into the project's description description.setLocationURI(locationURI); - + project.move(description, IResource.FORCE | IResource.SHALLOW, monitor); - + // Now adjust the projectLocation so this can be undone/redone. return newDestinationURI; } - + /* * Map undo to move status. */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/MoveResourcesOperation.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/MoveResourcesOperation.java index b9de7c06432..f4ab6c40821 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/MoveResourcesOperation.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/MoveResourcesOperation.java @@ -42,7 +42,7 @@ import org.eclipse.ui.internal.ide.undo.UndoMessages; * <p> * @noextend This class is not intended to be subclassed by clients. * @since 3.3 - * + * */ public class MoveResourcesOperation extends AbstractCopyOrMoveResourcesOperation { @@ -56,7 +56,7 @@ public class MoveResourcesOperation extends /** * Create a MoveResourcesOperation that moves all of the specified resources * to the same target location, using their existing names. - * + * * @param resources * the resources to be moved * @param destinationPath @@ -77,7 +77,7 @@ public class MoveResourcesOperation extends * Create a MoveResourcesOperation that moves a single resource to a new * location. The new location includes the name of the resource, so this may * be used for a move/rename operation or a simple move. - * + * * @param resource * the resource to be moved * @param newPath @@ -105,7 +105,7 @@ public class MoveResourcesOperation extends /** * Move any known resources according to the destination parameters known by * this operation. Store enough information to undo and redo the operation. - * + * * @param monitor * the progress monitor to use for the operation * @param uiInfo diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/ResourceDescription.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/ResourceDescription.java index b3cbc2ba60b..4ddc1919244 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/ResourceDescription.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/ResourceDescription.java @@ -24,18 +24,18 @@ import org.eclipse.ui.internal.ide.undo.ProjectDescription; /** * ResourceDescription is a lightweight description that describes the common * attributes of a resource to be created. - * + * * This class is not intended to be extended by clients. - * + * * @since 3.3 - * + * */ public abstract class ResourceDescription { /** * Create a resource description given the specified resource. The resource * is assumed to exist. - * + * * @param resource * the resource from which a description should be created * @return the resource description @@ -51,12 +51,12 @@ public abstract class ResourceDescription { throw new IllegalArgumentException(); } } - + /** * Create a resource handle that can be used to create a resource from this * resource description. This handle can be used to create the actual * resource, or to describe the creation to a resource delta factory. - * + * * @return the resource handle that can be used to create a resource from * this description */ @@ -64,25 +64,25 @@ public abstract class ResourceDescription { /** * Get the name of this resource. - * + * * @return the name of the Resource */ public abstract String getName(); - + /** * Create an existent resource from this resource description. - * + * * @param monitor * the progress monitor to use * @return a resource that has the attributes of this resource description * @throws CoreException */ public abstract IResource createResource(IProgressMonitor monitor) throws CoreException; - + /** * Given a resource handle, create an actual resource with the attributes of * the receiver resource description. - * + * * @param resource * the resource handle * @param monitor @@ -91,20 +91,20 @@ public abstract class ResourceDescription { */ public abstract void createExistentResourceFromHandle(IResource resource, IProgressMonitor monitor) throws CoreException; - + /** * Return a boolean indicating whether this resource description has enough * information to create a resource. - * + * * @return <code>true</code> if the resource can be created, and * <code>false</code> if it does not have enough information */ public abstract boolean isValid(); - + /** * Record the appropriate state of this resource description using * any available resource history. - * + * * @param resource * the resource whose state is to be recorded. * @param monitor @@ -113,17 +113,17 @@ public abstract class ResourceDescription { */ public abstract void recordStateFromHistory(IResource resource, IProgressMonitor monitor) throws CoreException; - + /** * Return a boolean indicating whether this description represents an * existent resource. - * + * * @param checkMembers * Use <code>true</code> if members should also exist in order * for this description to be considered existent. A value of * <code>false</code> indicates that the existence of members * does not matter. - * + * * @return a boolean indicating whether this description represents an * existent resource. */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/UpdateMarkersOperation.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/UpdateMarkersOperation.java index fd4950de07a..b8b9c7e7e35 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/UpdateMarkersOperation.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/UpdateMarkersOperation.java @@ -25,12 +25,12 @@ import org.eclipse.ui.internal.ide.undo.UndoMessages; * An UpdateMarkersOperation represents an undoable operation for updating one * or more markers in the workspace with one or more sets of attributes. Clients * may call the public API from a background thread. - * + * * This class is intended to be instantiated and used by clients. It is not * intended to be subclassed by clients. - * + * * @since 3.3 - * + * */ public class UpdateMarkersOperation extends AbstractMarkersOperation { @@ -41,7 +41,7 @@ public class UpdateMarkersOperation extends AbstractMarkersOperation { /** * Create an undoable operation that can update the specified marker with * the specified attributes. - * + * * @param marker * the marker to be updated * @param attributes @@ -67,7 +67,7 @@ public class UpdateMarkersOperation extends AbstractMarkersOperation { /** * Create an undoable operation that updates many markers to have the same * set of attributes. - * + * * @param markers * the markers to be updated * @param attributes diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/WorkspaceUndoUtil.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/WorkspaceUndoUtil.java index 93f9f15b47d..963d2238a62 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/WorkspaceUndoUtil.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/WorkspaceUndoUtil.java @@ -53,7 +53,7 @@ import org.eclipse.ui.internal.ide.undo.UndoMessages; /** * WorkspaceUndoUtil defines common utility methods and constants used by * clients who create undoable workspace operations. - * + * * @since 3.3 */ public class WorkspaceUndoUtil { @@ -65,7 +65,7 @@ public class WorkspaceUndoUtil { /** * Return the undo context that should be used for workspace-wide operations - * + * * @return the undo context suitable for workspace-level operations. */ public static IUndoContext getWorkspaceUndoContext() { @@ -76,7 +76,7 @@ public class WorkspaceUndoUtil { /** * Return the undo context that should be used for operations involving * tasks. - * + * * @return the tasks undo context */ public static IUndoContext getTasksUndoContext() { @@ -91,7 +91,7 @@ public class WorkspaceUndoUtil { /** * Return the undo context that should be used for operations involving * bookmarks. - * + * * @return the bookmarks undo context */ public static IUndoContext getBookmarksUndoContext() { @@ -106,7 +106,7 @@ public class WorkspaceUndoUtil { /** * Return the undo context that should be used for operations involving * problems. - * + * * @return the problems undo context * @since 3.7 */ @@ -126,12 +126,12 @@ public class WorkspaceUndoUtil { * {@link org.eclipse.core.commands.operations.IOperationHistory} method * that requires an {@link org.eclipse.core.runtime.IAdaptable} * <code>uiInfo</code> parameter. - * + * * @param shell * the shell that should be returned by the IAdaptable when asked * to adapt a shell. If this parameter is <code>null</code>, * the returned shell will also be <code>null</code>. - * + * * @return an IAdaptable that will return the specified shell. */ public static IAdaptable getUIInfoAdapter(final Shell shell) { @@ -153,7 +153,7 @@ public class WorkspaceUndoUtil { /** * Delete all of the specified resources, returning resource descriptions * that can be used to restore them. - * + * * @param resourcesToDelete * an array of resources to be deleted * @param monitor @@ -164,7 +164,7 @@ public class WorkspaceUndoUtil { * user if necessary. When this parameter is not * <code>null</code>, it contains an adapter for the * org.eclipse.swt.widgets.Shell.class - * + * * @param deleteContent * a boolean indicating whether project content should be deleted * when a project resource is to be deleted @@ -237,7 +237,7 @@ public class WorkspaceUndoUtil { /** * Copies the resources to the given destination. This method can be called * recursively to merge folders during folder copy. - * + * * @param resources * the resources to be copied * @param destination @@ -533,7 +533,7 @@ public class WorkspaceUndoUtil { * is "VAR" and points to "C:\foo\bar\"). * * @param locationURI - * @param resource + * @param resource * @return an URI that was made relative to a variable */ static private URI createRelativePath(URI locationURI, String relativeVariable, IResource resource) { @@ -552,7 +552,7 @@ public class WorkspaceUndoUtil { /** * Moves the resources to the given destination. This method can be called * recursively to merge folders during folder move. - * + * * @param resources * the resources to be moved * @param destination @@ -717,7 +717,7 @@ public class WorkspaceUndoUtil { /** * Recreate the resources from the specified resource descriptions. - * + * * @param resourcesToRecreate * the ResourceDescriptions describing resources to be recreated * @param monitor @@ -764,7 +764,7 @@ public class WorkspaceUndoUtil { /** * Delete the specified resources, returning a resource description that can * be used to restore it. - * + * * @param resourceToDelete * the resource to be deleted * @param monitor @@ -901,7 +901,7 @@ public class WorkspaceUndoUtil { /* * Ask the user whether the given resource should be deleted despite being * out of sync with the file system. - * + * * Return one of the IDialogConstants constants indicating which of the Yes, * Yes to All, No, Cancel options has been selected by the user. */ @@ -1017,14 +1017,14 @@ public class WorkspaceUndoUtil { /** * Return the shell described by the specified adaptable, or the active * shell if no shell has been specified in the adaptable. - * + * * @param uiInfo * the IAdaptable (or <code>null</code>) provided by the * caller in order to supply UI information for prompting the * user if necessary. When this parameter is not * <code>null</code>, it contains an adapter for the * org.eclipse.swt.widgets.Shell.class - * + * * @return the Shell that can be used to show information */ public static Shell getShell(IAdaptable uiInfo) { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/AboutInfo.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/AboutInfo.java index 2f0975c547c..deccd1f1bdf 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/AboutInfo.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/AboutInfo.java @@ -28,8 +28,8 @@ import org.eclipse.ui.internal.ProductProperties; /** * The information within this object is obtained from the about INI file. - * This file resides within an install configurations directory and must be a - * standard java property file. + * This file resides within an install configurations directory and must be a + * standard java property file. * <p> * This class is not intended to be instantiated or subclassed by clients. * </p> @@ -59,7 +59,7 @@ public final class AboutInfo { /** * Returns the configuration information for the feature with the given id. - * + * * @param featureId * the feature id * @param versionId @@ -106,10 +106,10 @@ public final class AboutInfo { } /** - * Returns the descriptor for an image which can be shown in an "about" dialog - * for this product. Products designed to run "headless" typically would not + * Returns the descriptor for an image which can be shown in an "about" dialog + * for this product. Products designed to run "headless" typically would not * have such an image. - * + * * @return the descriptor for an about image, or <code>null</code> if none */ public ImageDescriptor getAboutImage() { @@ -118,9 +118,9 @@ public final class AboutInfo { } /** - * Returns the descriptor for an image which can be shown in an "about features" + * Returns the descriptor for an image which can be shown in an "about features" * dialog. Products designed to run "headless" typically would not have such an image. - * + * * @return the descriptor for a feature image, or <code>null</code> if none */ public ImageDescriptor getFeatureImage() { @@ -130,7 +130,7 @@ public final class AboutInfo { /** * Returns the simple name of the feature image file. - * + * * @return the simple name of the feature image file, * or <code>null</code> if none */ @@ -145,7 +145,7 @@ public final class AboutInfo { /** * Returns the CRC of the feature image as supplied in the properties file. - * + * * @return the CRC of the feature image, or <code>null</code> if none */ public Long getFeatureImageCRC() { @@ -212,7 +212,7 @@ public final class AboutInfo { /** * Returns the id for this feature. - * + * * @return the feature id */ public String getFeatureId() { @@ -222,13 +222,13 @@ public final class AboutInfo { } else if (bundleGroupProperties != null) { id = bundleGroupProperties.getFeatureId(); } - return id != null ? id : ""; //$NON-NLS-1$ + return id != null ? id : ""; //$NON-NLS-1$ } /** * Returns the text to show in an "about" dialog for this product. * Products designed to run "headless" typically would not have such text. - * + * * @return the about text, or <code>null</code> if none */ public String getAboutText() { @@ -246,7 +246,7 @@ public final class AboutInfo { * </p> * * @return the application name, or <code>null</code> - * + * * @see org.eclipse.swt.widgets.Display#setAppName */ public String getAppName() { @@ -287,7 +287,7 @@ public final class AboutInfo { /** * Returns a <code>URL</code> for the welcome page. * Products designed to run "headless" typically would not have such an page. - * + * * @return the welcome page, or <code>null</code> if none */ public URL getWelcomePageURL() { @@ -303,7 +303,7 @@ public final class AboutInfo { /** * Returns the ID of a perspective in which to show the welcome page. * May be <code>null</code>. - * + * * @return the welcome page perspective id, or <code>null</code> if none */ public String getWelcomePerspectiveId() { @@ -313,7 +313,7 @@ public final class AboutInfo { /** * Returns a <code>String</code> for the tips and trick href. - * + * * @return the tips and tricks href, or <code>null</code> if none */ public String getTipsAndTricksHref() { @@ -326,7 +326,7 @@ public final class AboutInfo { * this product. The expectations is that the elements will be the same * image rendered at different sizes. Products designed to run "headless" * typically would not have such images. - * + * * @return an array of the image descriptors for the window images, or * <code>null</code> if none * @since 3.0 @@ -335,12 +335,12 @@ public final class AboutInfo { return productProperties == null ? null : productProperties .getWindowImages(); } - + public String getBrandingBundleId() { return bundleGroupProperties == null ? null : bundleGroupProperties .getBrandingBundleId(); } - + public String getBrandingBundleVersion() { return bundleGroupProperties == null ? null : bundleGroupProperties .getBrandingBundleVersion(); diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/ChooseWorkspaceData.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/ChooseWorkspaceData.java index 64d46f3c0a8..e9197990aca 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/ChooseWorkspaceData.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/ChooseWorkspaceData.java @@ -66,13 +66,13 @@ public class ChooseWorkspaceData { * workspace list into a comma-separated list. */ private static final int PERS_ENCODING_VERSION_CONFIG_PREFS = 2; - + /** * This is the second version of the encode/decode protocol that uses the * confi area preferences store for persistence. This version is the same as * the previous version except it uses a \n character to seperate the path * entries instead of commas. (see bug 98467) - * + * * @since 3.3.1 */ private static final int PERS_ENCODING_VERSION_CONFIG_PREFS_NO_COMMAS = 3; @@ -222,7 +222,7 @@ public class ChooseWorkspaceData { // move the new selection to the front of the list if (selection != null) { - File newFolder = new File(selection); + File newFolder = new File(selection); String oldEntry = recentWorkspaces[0]; recentWorkspaces[0] = selection; for (int i = 1; i < recentWorkspaces.length && oldEntry != null; ++i) { @@ -258,7 +258,7 @@ public class ChooseWorkspaceData { * Look for and read data that might have been persisted from some previous * run. Leave the receiver in a default state if no persistent data is * found. - * + * * @return true if a file was successfully read and false otherwise */ private boolean readPersistedData_file() { @@ -376,10 +376,10 @@ public class ChooseWorkspaceData { /** * Look in the config area preference store for the list of recently used * workspaces. - * + * * NOTE: During the transition phase the file will be checked if no config * preferences are found. - * + * * @return true if the values were successfully retrieved and false * otherwise */ @@ -472,7 +472,7 @@ public class ChooseWorkspaceData { if (tokens == null) // unknown version? corrupt file? we can't log it // because we dont have a workspace yet... return new String[0]; - + StringTokenizer tokenizer = new StringTokenizer(prefValue, tokens); for (int i = 0; i < paths.length && tokenizer.hasMoreTokens(); ++i) { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/ChooseWorkspaceDialog.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/ChooseWorkspaceDialog.java index 0c1ffd26147..3770c5eb1f7 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/ChooseWorkspaceDialog.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/ChooseWorkspaceDialog.java @@ -45,9 +45,9 @@ import org.eclipse.swt.widgets.Shell; * A dialog that prompts for a directory to use as a workspace. */ public class ChooseWorkspaceDialog extends TitleAreaDialog { - + private static final String DIALOG_SETTINGS_SECTION = "ChooseWorkspaceDialogSettings"; //$NON-NLS-1$ - + private ChooseWorkspaceData launchData; private Combo text; @@ -60,10 +60,10 @@ public class ChooseWorkspaceDialog extends TitleAreaDialog { * argument data object. * @param parentShell the parent shell for this dialog * @param launchData the launch data from past launches - * + * * @param suppressAskAgain * true means the dialog will not have a "don't ask again" button - * @param centerOnMonitor indicates whether the dialog should be centered on + * @param centerOnMonitor indicates whether the dialog should be centered on * the monitor or according to it's parent if there is one */ public ChooseWorkspaceDialog(Shell parentShell, @@ -81,7 +81,7 @@ public class ChooseWorkspaceDialog extends TitleAreaDialog { * The parameter can be used to override the users preference. For example, * this is important in cases where the default selection is already in use * and the user is forced to choose a different one. - * + * * @param force * true if the dialog should be opened regardless of the value of * the show dialog checkbox @@ -141,8 +141,8 @@ public class ChooseWorkspaceDialog extends TitleAreaDialog { if (!suppressAskAgain) { createShowDialogButton(composite); } - - // look for the eclipse.gcj property. + + // look for the eclipse.gcj property. // If true, then we dont need any warning messages. // someone is asserting that we're okay on GCJ boolean gcj = Boolean.getBoolean("eclipse.gcj"); //$NON-NLS-1$ @@ -159,14 +159,14 @@ public class ChooseWorkspaceDialog extends TitleAreaDialog { } }); } - + Dialog.applyDialogFont(composite); return composite; } /** * Returns the title that the dialog (or splash) should have. - * + * * @return the window title * @since 3.4 */ @@ -187,10 +187,10 @@ public class ChooseWorkspaceDialog extends TitleAreaDialog { * in it. * <p> * The default implementation of this framework method - * sets the shell's image and gives it a grid layout. + * sets the shell's image and gives it a grid layout. * Subclasses may extend or reimplement. * </p> - * + * * @param shell the shell */ @Override @@ -255,7 +255,7 @@ public class ChooseWorkspaceDialog extends TitleAreaDialog { label.setText(IDEWorkbenchMessages.ChooseWorkspaceDialog_workspaceEntryLabel); text = new Combo(panel, SWT.BORDER | SWT.LEAD | SWT.DROP_DOWN); - text.setFocus(); + text.setFocus(); text.setLayoutData(new GridData(400, SWT.DEFAULT)); text.addModifyListener(new ModifyListener(){ @Override @@ -303,7 +303,7 @@ public class ChooseWorkspaceDialog extends TitleAreaDialog { * works toward the root until there is a directory for which File.exists * returns true. Return the current working dir if the text box does not * contain a valid path. - * + * * @return closest parent that exists or an empty string */ private String getInitialBrowsePath() { @@ -317,12 +317,12 @@ public class ChooseWorkspaceDialog extends TitleAreaDialog { } /* - * see org.eclipse.jface.Window.getInitialLocation() + * see org.eclipse.jface.Window.getInitialLocation() */ @Override protected Point getInitialLocation(Point initialSize) { Composite parent = getShell().getParent(); - + if (!centerOnMonitor || parent == null) { return super.getInitialLocation(initialSize); } @@ -374,7 +374,7 @@ public class ChooseWorkspaceDialog extends TitleAreaDialog { text.setText(TextProcessor.process((text.getItemCount() > 0 ? text .getItem(0) : launchData.getInitialDefault()))); } - + @Override protected IDialogSettings getDialogBoundsSettings() { // If we were explicitly instructed to center on the monitor, then @@ -383,12 +383,12 @@ public class ChooseWorkspaceDialog extends TitleAreaDialog { if (centerOnMonitor) { return null; } - + IDialogSettings settings = IDEWorkbenchPlugin.getDefault().getDialogSettings(); IDialogSettings section = settings.getSection(DIALOG_SETTINGS_SECTION); if (section == null) { section = settings.addNewSection(DIALOG_SETTINGS_SECTION); - } + } return section; } diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/ChooseWorkspaceWithSettingsDialog.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/ChooseWorkspaceWithSettingsDialog.java index 354faa410a1..da6d89fce44 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/ChooseWorkspaceWithSettingsDialog.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/ChooseWorkspaceWithSettingsDialog.java @@ -52,9 +52,9 @@ import org.eclipse.ui.preferences.SettingsTransfer; /** * The ChooseWorkspaceWithSettingsDialog is the dialog used to switch workspaces * with an optional settings export. - * + * * @since 3.3 - * + * */ public class ChooseWorkspaceWithSettingsDialog extends ChooseWorkspaceDialog { @@ -79,7 +79,7 @@ public class ChooseWorkspaceWithSettingsDialog extends ChooseWorkspaceDialog { /** * Open a new instance of the receiver. - * + * * @param parentShell * @param launchData * @param suppressAskAgain @@ -104,7 +104,7 @@ public class ChooseWorkspaceWithSettingsDialog extends ChooseWorkspaceDialog { /** * Create the controls for selecting the controls we are going to export. - * + * * @param workArea */ private void createSettingsControls(Composite workArea) { @@ -114,7 +114,7 @@ public class ChooseWorkspaceWithSettingsDialog extends ChooseWorkspaceDialog { @Override public void widgetDisposed(DisposeEvent e) { toolkit.dispose(); - + }}); final ScrolledForm form = toolkit.createScrolledForm(workArea); form.setBackground(workArea.getBackground()); @@ -172,7 +172,7 @@ public class ChooseWorkspaceWithSettingsDialog extends ChooseWorkspaceDialog { /** * Create the buttons for the settings transfer. - * + * * @param toolkit * @param sectionClient * @return boolean <code>true</code> if any were selected @@ -227,7 +227,7 @@ public class ChooseWorkspaceWithSettingsDialog extends ChooseWorkspaceDialog { /** * Get the settings for the receiver based on the entries in section. - * + * * @param section * @return String[] or <code>null</code> */ @@ -275,7 +275,7 @@ public class ChooseWorkspaceWithSettingsDialog extends ChooseWorkspaceDialog { /** * Save the ids of the selected elements. - * + * * @param selectionIDs */ private void saveSettings(String[] selectionIDs) { @@ -292,7 +292,7 @@ public class ChooseWorkspaceWithSettingsDialog extends ChooseWorkspaceDialog { /** * Take the values from element and execute the class for path. - * + * * @param elem * @param path * @return IStatus the result of the settings transfer. diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/ContentTypeDecorator.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/ContentTypeDecorator.java index 0f160fef7c3..0e3ccc040ea 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/ContentTypeDecorator.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/ContentTypeDecorator.java @@ -27,9 +27,9 @@ import org.eclipse.ui.internal.ide.model.WorkbenchFile; /** * Lightweight decorator for more specific file icons. - * + * * @since 3.4 - * + * */ public class ContentTypeDecorator implements ILightweightLabelDecorator { @@ -44,7 +44,7 @@ public class ContentTypeDecorator implements ILightweightLabelDecorator { IWorkbench workbench = PlatformUI.getWorkbench(); if (workbench.isClosing()) return; - + IFile file = (IFile) element; ImageDescriptor image = null; diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/DefaultContributorResourceAdapter.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/DefaultContributorResourceAdapter.java index 9a5e7c7dd24..9324931982d 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/DefaultContributorResourceAdapter.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/DefaultContributorResourceAdapter.java @@ -18,7 +18,7 @@ import org.eclipse.ui.ide.IContributorResourceAdapter2; /** * The DefaultContributorResourceAdapter is the default - * implementation of the IContributorResourceAdapter used for + * implementation of the IContributorResourceAdapter used for * one to one resource adaption. */ public class DefaultContributorResourceAdapter implements diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/DialogUtil.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/DialogUtil.java index 8a064db3235..c07ea59d36a 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/DialogUtil.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/DialogUtil.java @@ -76,9 +76,9 @@ public class DialogUtil { /** * Return whether or not the font in the parent is the size of a regular - * font. Typically used to know if a font is smaller than the High Contrast + * font. Typically used to know if a font is smaller than the High Contrast * Font. This method is used to make layout decisions based on screen space. - * + * * @param parent The Composite whose Font will be queried. * @return boolean. True if there are more than 50 lines of possible * text in the display. diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/EditorAreaDropAdapter.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/EditorAreaDropAdapter.java index d1e2c3491f4..73ae607092f 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/EditorAreaDropAdapter.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/EditorAreaDropAdapter.java @@ -94,7 +94,7 @@ public class EditorAreaDropAdapter extends DropTargetAdapter { /* Open Editor for generic IEditorInput */ if (EditorInputTransfer.getInstance().isSupportedType( event.currentDataType)) { - /* event.data is an array of EditorInputData, which contains an IEditorInput and + /* event.data is an array of EditorInputData, which contains an IEditorInput and * the corresponding editorId */ Assert.isTrue(event.data instanceof EditorInputTransfer.EditorInputData[]); EditorInputTransfer.EditorInputData[] editorInputs = (EditorInputTransfer.EditorInputData []) event.data; @@ -123,7 +123,7 @@ public class EditorAreaDropAdapter extends DropTargetAdapter { for (int i = 0; i < files.length; i++) { if (files[i] instanceof IFile) { IFile file = (IFile) files[i]; - + if (!file.isPhantom()) openNonExternalEditor(page, file); } @@ -153,7 +153,7 @@ public class EditorAreaDropAdapter extends DropTargetAdapter { * an editor, we never open an external editor in this case (since external * editors appear in their own window and not in the editor area). * The operation fails silently if there is no suitable editor to open. - * + * * @param page the workbench page * @param file the file to open * @return the editor part that was opened, or <code>null</code> if no editor @@ -207,7 +207,7 @@ public class EditorAreaDropAdapter extends DropTargetAdapter { * an editor, we never open an external editor in this case (since external * editors appear in their own window and not in the editor area). * The operation fails silently if there is no suitable editor to open. - * + * * @param page the workbench page * @param marker the marker to open * @return the editor part that was opened, or <code>null</code> if no editor @@ -264,7 +264,7 @@ public class EditorAreaDropAdapter extends DropTargetAdapter { * editor in this case (since external editors appear in their own window and * not in the editor area). The operation fails silently if the editor * cannot be opened. - * + * * @param page the workbench page * @param editorInput the editor input * @param editorId the editor id diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/EditorAssociationOverrideDescriptor.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/EditorAssociationOverrideDescriptor.java index a16440cb017..5d4009706e6 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/EditorAssociationOverrideDescriptor.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/EditorAssociationOverrideDescriptor.java @@ -31,7 +31,7 @@ import com.ibm.icu.text.MessageFormat; /** * Describes a contribution to the 'org.eclipse.ui.ide.editorAssociationOverride' extension point. - * + * * @since 3.8 * @noinstantiate This class is not intended to be instantiated by clients. */ @@ -50,7 +50,7 @@ public final class EditorAssociationOverrideDescriptor { /** * Returns descriptors for all editor association override extensions. - * + * * @return an array with the contributed editor association overrides */ public static EditorAssociationOverrideDescriptor[] getContributedEditorAssociationOverrides() { @@ -72,7 +72,7 @@ public final class EditorAssociationOverrideDescriptor { /** * Creates a new {@link IEditorAssociationOverride}. - * + * * @return the editor association override or <code>null</code> if the plug-in isn't loaded yet * @throws CoreException if a failure occurred during creation */ @@ -112,7 +112,7 @@ public final class EditorAssociationOverrideDescriptor { /** * Returns the editor association override's id. - * + * * @return the editor association override's id */ public String getId() { @@ -121,7 +121,7 @@ public final class EditorAssociationOverrideDescriptor { /** * Returns the editor association override's name. - * + * * @return the editor association override's name */ public String getName() { @@ -130,7 +130,7 @@ public final class EditorAssociationOverrideDescriptor { /** * Returns the editor association override's description. - * + * * @return the editor association override's description or <code>null</code> if not provided */ public String getDescription() { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/FeatureSelectionDialog.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/FeatureSelectionDialog.java index 36129f212e7..8fe4e948a22 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/FeatureSelectionDialog.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/FeatureSelectionDialog.java @@ -70,7 +70,7 @@ public class FeatureSelectionDialog extends SelectionDialog { * <p> * There must be at least one feature. * </p> - * + * * @param shell the parent shell * @param features the features to display * @param primaryFeatureId the id of the primary feature or null if none @@ -121,7 +121,7 @@ public class FeatureSelectionDialog extends SelectionDialog { } } - // set a safe default + // set a safe default setInitialSelections(new Object[0]); } @@ -138,7 +138,7 @@ public class FeatureSelectionDialog extends SelectionDialog { // Create label createMessageArea(composite); - // Create list viewer + // Create list viewer listViewer = new ListViewer(composite, SWT.SINGLE | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER); GridData data = new GridData(GridData.FILL_BOTH); @@ -146,7 +146,7 @@ public class FeatureSelectionDialog extends SelectionDialog { data.widthHint = convertWidthInCharsToPixels(LIST_WIDTH); listViewer.getList().setLayoutData(data); listViewer.getList().setFont(parent.getFont()); - // Set the label provider + // Set the label provider listViewer.setLabelProvider(new LabelProvider() { @Override public String getText(Object element) { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IDEInternalPreferences.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IDEInternalPreferences.java index 9ee950f7db2..78fc8b96238 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IDEInternalPreferences.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IDEInternalPreferences.java @@ -20,10 +20,10 @@ import org.eclipse.jface.dialogs.MessageDialogWithToggle; * The IDEInternalPreferences are the internal constants used by the Workbench. */ public interface IDEInternalPreferences { - // (boolean) Save all dirty editors before running a full or incremental build + // (boolean) Save all dirty editors before running a full or incremental build public static final String SAVE_ALL_BEFORE_BUILD = "SAVE_ALL_BEFORE_BUILD"; //$NON-NLS-1$ - // (boolean) Refresh workspace on startup + // (boolean) Refresh workspace on startup public static final String REFRESH_WORKSPACE_ON_STARTUP = "REFRESH_WORKSPACE_ON_STARTUP"; //$NON-NLS-1$ // (int) Workspace save interval in minutes @@ -43,12 +43,12 @@ public interface IDEInternalPreferences { /** * (String) Whether to open required projects when opening a project. - */ + */ public static final String OPEN_REQUIRED_PROJECTS = "OPEN_REQUIRED_PROJECTS"; //$NON-NLS-1$ - + /** * (String) Whether to confirm closing unrelated projects. - */ + */ public static final String CLOSE_UNRELATED_PROJECTS = "CLOSE_UNRELATED_PROJECTS"; //$NON-NLS-1$ public static final String PSPM_PROMPT = MessageDialogWithToggle.PROMPT; @@ -59,50 +59,50 @@ public interface IDEInternalPreferences { // (boolean) Whether or not to display the Welcome dialog on startup. public static final String WELCOME_DIALOG = "WELCOME_DIALOG"; //$NON-NLS-1$ - + //Whether or not to limit problems public static final String LIMIT_PROBLEMS = "LIMIT_PROBLEMS"; //$NON-NLS-1$ - + //The list of defined problems filters public static final String PROBLEMS_FILTERS = "PROBLEMS_FILTERS"; //$NON-NLS-1$ - + //problem limits public static final String PROBLEMS_LIMIT = "PROBLEMS_LIMIT"; //$NON-NLS-1$ - + //Whether or not to limit tasks public static final String LIMIT_TASKS = "LIMIT_TASKS"; //$NON-NLS-1$ - + //tasks limits public static final String TASKS_LIMIT = "TASKS_LIMIT"; //$NON-NLS-1$ - + //The list of defined tasks filters public static final String TASKS_FILTERS = "TASKS_FILTERS"; //$NON-NLS-1$ - + //Whether or not to limit bookmarks public static final String LIMIT_BOOKMARKS = "LIMIT_BOOKMARKS"; //$NON-NLS-1$ - + //bookmark limits public static final String BOOKMARKS_LIMIT = "BOOKMARKS_LIMIT"; //$NON-NLS-1$ - + // The list of defined tasks filters public static final String BOOKMARKS_FILTERS = "BOOKMARKS_FILTERS"; //$NON-NLS-1$ - + //Enablement of marker limits public static final String USE_MARKER_LIMITS = "USE_MARKER_LIMITS"; //$NON-NLS-1$ - + //Value of marker limits public static final String MARKER_LIMITS_VALUE = "MARKER_LIMITS_VALUE"; //$NON-NLS-1$ // Type of import public static final String IMPORT_FILES_AND_FOLDERS_TYPE = "IMPORT_FILES_AND_FOLDERS_TYPE"; //$NON-NLS-1$ - + // (boolean) Using variable relative paths for the import file and folder dialog public static final String IMPORT_FILES_AND_FOLDERS_RELATIVE = "IMPORT_FILES_AND_FOLDERS_RELATIVE"; //$NON-NLS-1$ - // (string) Save all dirty editors before running a full or incremental build + // (string) Save all dirty editors before running a full or incremental build public static final String IMPORT_FILES_AND_FOLDERS_MODE = "IMPORT_FILES_AND_FOLDERS_MODE"; //$NON-NLS-1$ - // (string) Save all dirty editors before running a full or incremental build + // (string) Save all dirty editors before running a full or incremental build public static final String IMPORT_FILES_AND_FOLDERS_VIRTUAL_FOLDER_MODE = "IMPORT_FILES_AND_FOLDERS_VIRTUAL_FOLDER_MODE"; //$NON-NLS-1$ public static final String IMPORT_FILES_AND_FOLDERS_MODE_PROMPT = MessageDialogWithToggle.PROMPT; @@ -110,7 +110,7 @@ public interface IDEInternalPreferences { public static final String IMPORT_FILES_AND_FOLDERS_MODE_MOVE_COPY = "MOVE_COPY"; //$NON-NLS-1$ public static final String IMPORT_FILES_AND_FOLDERS_MODE_LINK = "LINK"; //$NON-NLS-1$ - + public static final String IMPORT_FILES_AND_FOLDERS_MODE_LINK_AND_VIRTUAL_FOLDER = "LINK_AND_VIRTUAL_FOLDER"; //$NON-NLS-1$ // Always show this import window diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IDEInternalWorkbenchImages.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IDEInternalWorkbenchImages.java index 78194752578..33cf1b115b8 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IDEInternalWorkbenchImages.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IDEInternalWorkbenchImages.java @@ -14,8 +14,8 @@ import org.eclipse.jface.resource.ImageDescriptor; import org.eclipse.ui.PlatformUI; /** - * This class defines internal constants for images that intended to be - * available only within the IDE UI proper. Use + * This class defines internal constants for images that intended to be + * available only within the IDE UI proper. Use * <code>IDEInternalWorkbenchImages.getImageDescriptor} to retrieve image * descriptors for any of the images named in this class. * <p> @@ -58,7 +58,7 @@ public final class IDEInternalWorkbenchImages { public final static String IMG_ETOOL_PROBLEMS_VIEW_WARNING= "IMG_ETOOL_PROBLEMS_VIEW_WARNING"; //$NON-NLS-1$ public final static String IMG_LCL_FLAT_LAYOUT = "IMG_LCL_FLAT_LAYOUT"; //$NON-NLS-1$ - + public final static String IMG_LCL_HIERARCHICAL_LAYOUT = "IMG_LCL_HIERARCHICAL_LAYOUT"; //$NON-NLS-1$ //wizard images @@ -77,16 +77,16 @@ public final class IDEInternalWorkbenchImages { public final static String IMG_WIZBAN_EXPORTZIP_WIZ = "IMG_WIZBAN_EXPORTZIP_WIZ"; //$NON-NLS-1$ public final static String IMG_WIZBAN_RESOURCEWORKINGSET_WIZ = "IMG_WIZBAN_EXPORTZIP_WIZ"; //$NON-NLS-1$ - + public final static String IMG_DLGBAN_SAVEAS_DLG = "IMG_DLGBAN_SAVEAS_DLG"; //$NON-NLS-1$ - + public final static String IMG_DLGBAN_QUICKFIX_DLG = "IMG_DLGBAN_QUICKFIX_DLG"; //$NON-NLS-1$ // task objects public final static String IMG_OBJS_COMPLETE_TSK = "IMG_OBJS_COMPLETE_TSK"; //$NON-NLS-1$ public final static String IMG_OBJS_INCOMPLETE_TSK = "IMG_OBJS_INCOMPLETE_TSK"; //$NON-NLS-1$ - + //problems images public static final String IMG_OBJS_ERROR_PATH = "IMG_OBJS_ERROR_PATH"; //$NON-NLS-1$ @@ -99,7 +99,7 @@ public final class IDEInternalWorkbenchImages { // welcome public final static String IMG_OBJS_WELCOME_ITEM = "IMG_OBJS_WELCOME_ITEM"; //$NON-NLS-1$ - + public final static String IMG_OBJS_WELCOME_BANNER = "IMG_OBJS_WELCOME_BANNER"; //$NON-NLS-1$ //Quick fix images @@ -107,7 +107,7 @@ public final class IDEInternalWorkbenchImages { public static final String IMG_ELCL_QUICK_FIX_ENABLED = "IMG_ELCL_QUICK_FIX_ENABLED"; //$NON-NLS-1$ public static final String IMG_OBJS_FIXABLE_WARNING= "IMG_OBJS_FIXABLE_WARNING"; //$NON-NLS-1$ public static final String IMG_OBJS_FIXABLE_ERROR= "IMG_OBJS_FIXABLE_ERROR"; //$NON-NLS-1$ - + /** * Returns the image descriptor for the workbench image with the given diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IDEPreferenceInitializer.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IDEPreferenceInitializer.java index a24ed88cb7c..fd9d5d9308b 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IDEPreferenceInitializer.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IDEPreferenceInitializer.java @@ -71,10 +71,10 @@ public class IDEPreferenceInitializer extends AbstractPreferenceInitializer { node.putBoolean(IDEInternalPreferences.LIMIT_TASKS, true); node.putInt(IDEInternalPreferences.TASKS_LIMIT, 100); - + node.putBoolean(IDEInternalPreferences.USE_MARKER_LIMITS, true); node.putInt(IDEInternalPreferences.MARKER_LIMITS_VALUE, 100); - + node.put(IDEInternalPreferences.IMPORT_FILES_AND_FOLDERS_TYPE, ""); //$NON-NLS-1$ node.putBoolean(IDEInternalPreferences.IMPORT_FILES_AND_FOLDERS_RELATIVE, true); @@ -82,7 +82,7 @@ public class IDEPreferenceInitializer extends AbstractPreferenceInitializer { node.putBoolean(MarkerSupportInternalUtilities.MIGRATE_BOOKMARK_FILTERS, false); node.putBoolean(MarkerSupportInternalUtilities.MIGRATE_TASK_FILTERS, false); node.putBoolean(MarkerSupportInternalUtilities.MIGRATE_PROBLEM_FILTERS, false); - + node.put(IDEInternalPreferences.IMPORT_FILES_AND_FOLDERS_MODE, IDEInternalPreferences.IMPORT_FILES_AND_FOLDERS_MODE_PROMPT); node.put(IDEInternalPreferences.IMPORT_FILES_AND_FOLDERS_VIRTUAL_FOLDER_MODE, IDEInternalPreferences.IMPORT_FILES_AND_FOLDERS_MODE_PROMPT); @@ -91,13 +91,13 @@ public class IDEPreferenceInitializer extends AbstractPreferenceInitializer { /** * The default command for launching the system explorer on this platform. - * + * * @return The default command which launches the system explorer on this system, or an empty * string if no default exists * @see ShowInSystemExplorerHandler#getDefaultCommand() */ public static String getShowInSystemExplorerCommand() { - // See https://bugs.eclipse.org/419940 why it is implemented in here and not in ShowInSystemExplorerHandler#getDefaultCommand() + // See https://bugs.eclipse.org/419940 why it is implemented in here and not in ShowInSystemExplorerHandler#getDefaultCommand() if (Util.isGtk()) { return "dbus-send --print-reply --dest=org.freedesktop.FileManager1 /org/freedesktop/FileManager1 org.freedesktop.FileManager1.ShowItems array:string:\"${selected_resource_uri}\" string:\"\""; //$NON-NLS-1$ } else if (Util.isWindows()) { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IDESelectionConversionService.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IDESelectionConversionService.java index 844f0ed27fe..3cb368efdf2 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IDESelectionConversionService.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IDESelectionConversionService.java @@ -30,7 +30,7 @@ import org.eclipse.ui.statushandlers.StatusManager; /** * The IDESelectionConversionService is the selection service that uses the * resource support available to the IDE. - * + * * @since 3.2 */ public class IDESelectionConversionService implements diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IDEWorkbenchActivityHelper.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IDEWorkbenchActivityHelper.java index 3ed1d5a4ea7..3b8aca8abdc 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IDEWorkbenchActivityHelper.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IDEWorkbenchActivityHelper.java @@ -41,15 +41,15 @@ import org.eclipse.ui.progress.WorkbenchJob; /** * Utility class that manages promotion of activites in response to workspace changes. - * + * * @since 3.0 */ public class IDEWorkbenchActivityHelper { private static final String NATURE_POINT = "org.eclipse.ui.ide.natures"; //$NON-NLS-1$ - + /** - * Resource listener that reacts to new projects (and associated natures) + * Resource listener that reacts to new projects (and associated natures) * coming into the workspace. */ private IResourceChangeListener listener; @@ -64,12 +64,12 @@ public class IDEWorkbenchActivityHelper { * Lock for the list of nature ids to be processed. */ private final IDEWorkbenchActivityHelper lock; - + /** * The update job. */ private WorkbenchJob fUpdateJob; - + /** * The collection of natures to process. */ @@ -93,7 +93,7 @@ public class IDEWorkbenchActivityHelper { } /** - * Create a new <code>IDEWorkbenchActivityHelper</code> which will listen + * Create a new <code>IDEWorkbenchActivityHelper</code> which will listen * for workspace changes and promote activities accordingly. */ private IDEWorkbenchActivityHelper() { @@ -148,7 +148,7 @@ public class IDEWorkbenchActivityHelper { /** * Get a change listener for listening to resource changes. - * + * * @return the resource change listeners */ private IResourceChangeListener getChangeListener() { @@ -249,7 +249,7 @@ public class IDEWorkbenchActivityHelper { } if (needsUpdate) { if (fUpdateJob == null) { - fUpdateJob = new WorkbenchJob(IDEWorkbenchMessages.IDEWorkbenchActivityHelper_jobName) { + fUpdateJob = new WorkbenchJob(IDEWorkbenchMessages.IDEWorkbenchActivityHelper_jobName) { @Override public IStatus runInUIThread( IProgressMonitor monitor) { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IDEWorkbenchErrorHandler.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IDEWorkbenchErrorHandler.java index ce51bc50f15..0903b9d8736 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IDEWorkbenchErrorHandler.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IDEWorkbenchErrorHandler.java @@ -40,7 +40,7 @@ import com.ibm.icu.text.MessageFormat; * returned from IDEWorkbenchAdvisor#getWorkbenchErrorHandler(). All handled * statuses are checked against severity and logged using logging facility (by * superclass). - * + * * @since 3.3 */ public class IDEWorkbenchErrorHandler extends WorkbenchErrorHandler { @@ -68,10 +68,10 @@ public class IDEWorkbenchErrorHandler extends WorkbenchErrorHandler { private static String MSG_FATAL_ERROR_Recursive = IDEWorkbenchMessages.FatalError_RecursiveError; private static String MSG_FATAL_ERROR_Title = IDEWorkbenchMessages.InternalError; - + // cache handled statuses - private final Map map = Collections.synchronizedMap(new WeakHashMap()); - + private final Map map = Collections.synchronizedMap(new WeakHashMap()); + /** * @param configurer */ @@ -283,7 +283,7 @@ public class IDEWorkbenchErrorHandler extends WorkbenchErrorHandler { /** * Updates the dialog message - * + * * @param message * new message */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IDEWorkbenchMessages.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IDEWorkbenchMessages.java index 9e3ec8fba09..9c6281f7b9d 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IDEWorkbenchMessages.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IDEWorkbenchMessages.java @@ -39,7 +39,7 @@ public class IDEWorkbenchMessages extends NLS { public static String QuickStartAction_errorDialogTitle; public static String QuickStartAction_infoReadError; - + public static String ConfigurationLogUpdateSection_installConfiguration; public static String ConfigurationLogUpdateSection_lastChangedOn; public static String ConfigurationLogUpdateSection_location; @@ -105,7 +105,7 @@ public class IDEWorkbenchMessages extends NLS { public static String ResourceFilterPage_multiWithin; public static String ResourceFilterPage_true; public static String ResourceFilterPage_false; - + // // // Copies from org.eclipse.ui.workbench @@ -116,7 +116,7 @@ public class IDEWorkbenchMessages extends NLS { public static String useDefaultLocation; public static String createLinkedFolder; public static String createVirtualFolder; - + // ============================================================================== // Workbench Actions // ============================================================================== @@ -185,7 +185,7 @@ public class IDEWorkbenchMessages extends NLS { public static String BuildSetAction_noBuildTitle; public static String BuildSetAction_noProjects; - + // --- Window Menu --- public static String Workbench_window; public static String Workbench_openPerspective; @@ -305,14 +305,14 @@ public class IDEWorkbenchMessages extends NLS { public static String OpenLocalFileAction_message_errorOnOpen; public static String OpenLocalFileAction_title_selectWorkspaceFile; public static String OpenLocalFileAction_message_fileLinkedToMultiple; - + public static String OpenResourceAction_text; public static String OpenResourceAction_toolTip; public static String OpenResourceAction_dialogTitle; public static String OpenResourceAction_problemMessage; public static String OpenResourceAction_operationMessage; public static String OpenResourceAction_openRequiredProjects; - + public static String CloseResourceAction_text; public static String CloseResourceAction_warningForOne; public static String CloseResourceAction_warningForMultiple; @@ -499,7 +499,7 @@ public class IDEWorkbenchMessages extends NLS { public static String WorkbenchPreference_otherEncoding; public static String WorkbenchPreference_unsupportedEncoding; public static String WorkbenchPreference_encoding_encodingMessage; - + // ---workspace --- public static String IDEWorkspacePreference_autobuild; public static String IDEWorkspacePreference_autobuildToolTip; @@ -684,14 +684,14 @@ public class IDEWorkbenchMessages extends NLS { public static String linkedResourceEditor_OK; public static String LinkedResourceEditor_unableToCreateVariable; public static String LinkedResourceEditor_unableToFindCommonPathSegments; - public static String LinkedResourceEditor_convertAbsolutePathLocations; + public static String LinkedResourceEditor_convertAbsolutePathLocations; public static String LinkedResourceEditor_descriptionBlock; public static String LinkedResourceEditor_convertTitle; public static String LinkedResourceEditor_convertMessage; public static String LinkedResourceEditor_removeTitle; public static String LinkedResourceEditor_removeMessage; public static String LinkedResourceEditor_removingMessage; - + // ============================================================================== // Editors // ============================================================================== @@ -754,9 +754,9 @@ public class IDEWorkbenchMessages extends NLS { public static String MarkerResolutionSelectionDialog_messageLabel; public static String MarkerDeleteHandler_JobTitle; public static String MarkerDeleteHandler_JobMessageLabel; - + public static String FilteredResourcesSelectionDialog_showDerivedResourcesAction; - + public static String ResourceSelectionDialog_label; public static String ResourceSelectionDialog_matching; public static String ResourceSelectionDialog_folders; @@ -786,7 +786,7 @@ public class IDEWorkbenchMessages extends NLS { public static String CreateLinkedResourceGroup_variablesButton; public static String CreateLinkedResourceGroup_resolvedPathLabel; public static String CreateLinkedResourceGroup_targetSelectionLabel; - public static String CreateLinkedResourceGroup_targetSelectionTitle; + public static String CreateLinkedResourceGroup_targetSelectionTitle; public static String CreateLinkedResourceGroup_linkTargetNotFile; public static String CreateLinkedResourceGroup_linkTargetNotFolder; public static String CreateLinkedResourceGroup_linkTargetNonExistent; @@ -922,7 +922,7 @@ public class IDEWorkbenchMessages extends NLS { public static String ResourceWorkingSetPage_selectAll_toolTip; public static String ResourceWorkingSetPage_deselectAll_label; public static String ResourceWorkingSetPage_deselectAll_toolTip; - + public static String ResourceEncodingFieldEditor_ErrorLoadingMessage; public static String ResourceEncodingFieldEditor_ErrorStoringMessage; public static String ResourceEncodingFieldEditor_EncodingConflictTitle; @@ -938,13 +938,13 @@ public class IDEWorkbenchMessages extends NLS { public static String ChooseWorkspaceDialog_directoryBrowserTitle; public static String ChooseWorkspaceDialog_directoryBrowserMessage; public static String ChooseWorkspaceDialog_useDefaultMessage; - + public static String ChooseWorkspaceWithSettingsDialog_SettingsGroupName; public static String ChooseWorkspaceWithSettingsDialog_ProblemsTransferTitle; public static String ChooseWorkspaceWithSettingsDialog_TransferFailedMessage; public static String ChooseWorkspaceWithSettingsDialog_SaveSettingsFailed; public static String ChooseWorkspaceWithSettingsDialog_ClassCreationFailed; - + public static String IDEApplication_workspaceMandatoryTitle; public static String IDEApplication_workspaceMandatoryMessage; public static String IDEApplication_workspaceInUseTitle; @@ -993,18 +993,18 @@ public class IDEWorkbenchMessages extends NLS { public static String IDE_sideEffectWarning; public static String IDE_areYouSure; - + public static String IDEIdleHelper_backgroundGC; - + public static String SystemSettingsChange_title; public static String SystemSettingsChange_message; public static String SystemSettingsChange_yes; public static String SystemSettingsChange_no; - + public static String UnsupportedVM_message; - + public static String IDEWorkbenchActivityHelper_jobName; - + public static String OpenDelayedFileAction_title; public static String OpenDelayedFileAction_message_errorOnOpen; public static String OpenDelayedFileAction_message_fileNotFound; diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IDEWorkbenchPlugin.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IDEWorkbenchPlugin.java index 5f6a79cdfec..c63b017ea99 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IDEWorkbenchPlugin.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IDEWorkbenchPlugin.java @@ -50,9 +50,9 @@ import com.ibm.icu.text.MessageFormat; * This class is responsible for tracking various registries * font, preference, graphics, dialog store. * - * This class is explicitly referenced by the + * This class is explicitly referenced by the * IDE workbench plug-in's "plugin.xml" - * + * * @since 3.0 */ public class IDEWorkbenchPlugin extends AbstractUIPlugin { @@ -84,7 +84,7 @@ public class IDEWorkbenchPlugin extends AbstractUIPlugin { public static final String PL_CAPABILITIES = "capabilities"; //$NON-NLS-1$ public static final String PL_PROJECT_NATURE_IMAGES = "projectNatureImages"; //$NON-NLS-1$ - + private final static String ICONS_PATH = "$nl$/icons/full/";//$NON-NLS-1$ private static final int PROBLEMS_VIEW_CREATION_DELAY= 6000; @@ -167,14 +167,14 @@ public class IDEWorkbenchPlugin extends AbstractUIPlugin { /** * Logs the given message to the platform log. - * + * * If you have an exception in hand, call log(String, Throwable) instead. - * + * * If you have a status object in hand call log(String, IStatus) instead. - * + * * This convenience method is for internal use by the IDE Workbench only and * must not be called outside the IDE Workbench. - * + * * @param message * A high level UI message describing when the problem happened. */ @@ -185,12 +185,12 @@ public class IDEWorkbenchPlugin extends AbstractUIPlugin { /** * Logs the given message and throwable to the platform log. - * + * * If you have a status object in hand call log(String, IStatus) instead. - * + * * This convenience method is for internal use by the IDE Workbench only and * must not be called outside the IDE Workbench. - * + * * @param message * A high level UI message describing when the problem happened. * @param t @@ -200,15 +200,15 @@ public class IDEWorkbenchPlugin extends AbstractUIPlugin { IStatus status = StatusUtil.newStatus(IStatus.ERROR, message, t); log(message, status); } - + /** * Logs the given throwable to the platform log, indicating the class and * method from where it is being logged (this is not necessarily where it * occurred). - * + * * This convenience method is for internal use by the IDE Workbench only and * must not be called outside the IDE Workbench. - * + * * @param clazz * The calling class. * @param methodName @@ -221,13 +221,13 @@ public class IDEWorkbenchPlugin extends AbstractUIPlugin { new Object[] { clazz.getName(), methodName, t }); log(msg, t); } - + /** * Logs the given message and status to the platform log. - * + * * This convenience method is for internal use by the IDE Workbench only and * must not be called outside the IDE Workbench. - * + * * @param message * A high level UI message describing when the problem happened. * May be <code>null</code>. @@ -282,7 +282,7 @@ public class IDEWorkbenchPlugin extends AbstractUIPlugin { /** * Returns the about information of all known features, * omitting any features which are missing this information. - * + * * @return a possibly empty list of about infos */ public AboutInfo[] getFeatureInfos() { @@ -305,15 +305,15 @@ public class IDEWorkbenchPlugin extends AbstractUIPlugin { /** * Returns the about information of the primary feature. - * - * @return info about the primary feature, or <code>null</code> if there + * + * @return info about the primary feature, or <code>null</code> if there * is no primary feature or if this information is unavailable */ public AboutInfo getPrimaryInfo() { IProduct product = Platform.getProduct(); return product == null ? null : new AboutInfo(product); } - + /** * Get the workbench image with the given path relative to * ICON_PATH. @@ -333,7 +333,7 @@ public class IDEWorkbenchPlugin extends AbstractUIPlugin { } return resourceManager; } - + @Override public void stop(BundleContext context) throws Exception { super.stop(context); diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IIDEHelpContextIds.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IIDEHelpContextIds.java index c8ff9b52eaf..e69a8f104c4 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IIDEHelpContextIds.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IIDEHelpContextIds.java @@ -26,7 +26,7 @@ public interface IIDEHelpContextIds { + "add_bookmark_action_context"; //$NON-NLS-1$ public static final String ADD_TASK_ACTION = PREFIX - + "add_task_action_context"; //$NON-NLS-1$ + + "add_task_action_context"; //$NON-NLS-1$ public static final String INCREMENTAL_BUILD_ACTION = PREFIX + "incremental_build_action_context"; //$NON-NLS-1$ @@ -45,7 +45,7 @@ public interface IIDEHelpContextIds { public static final String OPEN_FILE_ACTION = PREFIX + "open_file_action_context"; //$NON-NLS-1$ - + public static final String OPEN_LOCAL_FILE_ACTION = PREFIX + "open_local_file_action_context"; //$NON-NLS-1$ @@ -187,7 +187,7 @@ public interface IIDEHelpContextIds { public static final String NEW_FILE_WIZARD_PAGE = PREFIX + "new_file_wizard_page_context"; //$NON-NLS-1$ - + // Wizard pages public static final String NEW_PROJECT_WIZARD_PAGE = PREFIX + "new_project_wizard_page_context"; //$NON-NLS-1$ @@ -197,10 +197,10 @@ public interface IIDEHelpContextIds { public static final String NEW_FOLDER_WIZARD_PAGE = PREFIX + "new_folder_wizard_page_context"; //$NON-NLS-1$ - + public static final String LINKED_RESOURCE_PAGE = PREFIX + "linked_resource_page_context"; //$NON-NLS-1$ - + public static final String NEW_GROUP_WIZARD_PAGE = PREFIX + "new_group_wizard_page_context"; //$NON-NLS-1$ @@ -208,13 +208,13 @@ public interface IIDEHelpContextIds { + "new_link_wizard_page_context"; //$NON-NLS-1$ public static final String WORKING_SET_RESOURCE_PAGE = PREFIX - + "working_set_resource_page"; //$NON-NLS-1$ + + "working_set_resource_page"; //$NON-NLS-1$ public static final String WORKSPACE_PREFERENCE_PAGE = PREFIX + "workspace_preference_page_context"; //$NON-NLS-1$ // Wizards - + public static final String NEW_FILE_WIZARD = PREFIX + "new_file_wizard_context"; //$NON-NLS-1$ @@ -223,7 +223,7 @@ public interface IIDEHelpContextIds { public static final String NEW_PROJECT_WIZARD = PREFIX + "new_project_wizard_context"; //$NON-NLS-1$ - + public static final String SWITCH_WORKSPACE_ACTION = PREFIX + "switch_workspace_dialog_context"; //$NON-NLS-1$ } diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IURIEditorInputAdapterFactory.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IURIEditorInputAdapterFactory.java index dffabdfcdcc..a11bba21aea 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IURIEditorInputAdapterFactory.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IURIEditorInputAdapterFactory.java @@ -25,7 +25,7 @@ import org.eclipse.ui.ide.FileStoreEditorInput; /** * Adapter factory for <code>IURIEditorInput</code>. - * + * * @since 3.3 */ public class IURIEditorInputAdapterFactory implements IAdapterFactory { @@ -34,7 +34,7 @@ public class IURIEditorInputAdapterFactory implements IAdapterFactory { /** * Creates a new adapter for the given file store. - * + * * @param fileStore the file store; */ public PathEditorInputAdapter(IFileStore fileStore) { @@ -47,12 +47,12 @@ public class IURIEditorInputAdapterFactory implements IAdapterFactory { } } - + /** The list of provided adapters. */ private static final Class[] ADAPTER_LIST= new Class[] { IPathEditorInput.class }; - - + + @Override public Object getAdapter(Object adaptableObject, Class adapterType) { if (IPathEditorInput.class.equals(adapterType)) { @@ -71,7 +71,7 @@ public class IURIEditorInputAdapterFactory implements IAdapterFactory { return null; } - + @Override public Class[] getAdapterList() { return ADAPTER_LIST; diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/LineDelimiterEditor.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/LineDelimiterEditor.java index bfd295d094e..eef0c8f70e9 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/LineDelimiterEditor.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/LineDelimiterEditor.java @@ -36,7 +36,7 @@ import org.osgi.service.prefs.Preferences; /** * A class to handle editing of the line delimiter preferences in core. - * + * * @since 3.1 */ public class LineDelimiterEditor { @@ -58,7 +58,7 @@ public class LineDelimiterEditor { /** * Creates a new line delimiter editor for workspace. - * + * * @param composite * the parent of the field editor's control */ @@ -68,7 +68,7 @@ public class LineDelimiterEditor { /** * Creates a new line delimiter editor for the given project. - * + * * @param composite * the parent of the field editor's control * @param project @@ -82,7 +82,7 @@ public class LineDelimiterEditor { /** * Creates this field editor's main control containing all of its basic * controls. - * + * * @param parent * the parent control */ @@ -180,7 +180,7 @@ public class LineDelimiterEditor { /** * Returns the value that is currently stored for the line delimiter. - * + * * @param node * preferences node from which the value should be read * @return the currently stored line delimiter @@ -200,7 +200,7 @@ public class LineDelimiterEditor { * Answer the <code>Preferences</code> for the receiver, this will be a * project preferences if the receiver is editing project preferences, * otherwise instance preferences. - * + * * @param project * the project for which the line editor will be modified * @return the preferences @@ -215,7 +215,7 @@ public class LineDelimiterEditor { /** * Returns the default setting for the object being shown. - * + * * @return the default setting for the object being shown */ private String[] getChoices() { @@ -284,7 +284,7 @@ public class LineDelimiterEditor { /** * Set whether or not the controls in the field editor are enabled. - * + * * @param enabled * The enabled state. */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/LinkedResourceDecorator.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/LinkedResourceDecorator.java index c9015e6834d..5bdf313c857 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/LinkedResourceDecorator.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/LinkedResourceDecorator.java @@ -23,9 +23,9 @@ import org.eclipse.ui.internal.ide.dialogs.IDEResourceInfoUtils; import org.eclipse.ui.plugin.AbstractUIPlugin; /** - * A LinkedResourceDecorator decorates an element's image with a linked - * resource overlay. - * + * A LinkedResourceDecorator decorates an element's image with a linked + * resource overlay. + * * @since 2.1 */ public class LinkedResourceDecorator implements ILightweightLabelDecorator { @@ -81,7 +81,7 @@ public class LinkedResourceDecorator implements ILightweightLabelDecorator { /** * Adds the linked resource overlay if the given element is a linked * resource. - * + * * @param element element to decorate * @param decoration The decoration we are adding to * @see org.eclipse.jface.viewers.ILightweightLabelDecorator#decorate(Object, IDecoration) diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/Policy.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/Policy.java index 0ee1506440e..25519e170a8 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/Policy.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/Policy.java @@ -19,7 +19,7 @@ import org.eclipse.ui.statushandlers.StatusManager; * */ public class Policy { - + /** * The default value */ @@ -29,12 +29,12 @@ public class Policy { * Option for opening an error dialog on internal error. */ public static boolean DEBUG_OPEN_ERROR_DIALOG = DEFAULT; - + /** * Option for reporting on garbage collection jobs. */ public static boolean DEBUG_GC = DEFAULT; - + /** * Option for monitoring undo. */ @@ -59,7 +59,7 @@ public class Policy { /** * Handle the core exception. - * + * * @param exception */ public static void handle(CoreException exception) { @@ -67,6 +67,6 @@ public class Policy { if (DEBUG_CORE_EXCEPTIONS) StatusManager.getManager().handle(exception, IDEWorkbenchPlugin.IDE_WORKBENCH); - + } } diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/ResourceDragAndDropEditor.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/ResourceDragAndDropEditor.java index 7a4df72efd6..0ce3cfcb480 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/ResourceDragAndDropEditor.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/ResourceDragAndDropEditor.java @@ -21,7 +21,7 @@ import org.eclipse.swt.widgets.Group; /** * A class to handle editing of the Line delimiter preferences in core. - * + * * @since 3.1 */ public class ResourceDragAndDropEditor { @@ -34,14 +34,14 @@ public class ResourceDragAndDropEditor { String[] labels; String[] values; Button[] buttons; - + public PreferenceGroup(String title, String pref, String[] labels, String[] values) { this.preferenceKey = pref; this.title = title; this.labels = labels; this.values = values; } - + public void createControl(Composite parent) { Font font = parent.getFont(); group = new Group(parent, SWT.NONE); @@ -63,7 +63,7 @@ public class ResourceDragAndDropEditor { } /** - * + * */ public void doLoad() { String resourcePreference = getStoredValue(false); @@ -80,7 +80,7 @@ public class ResourceDragAndDropEditor { } /** - * + * */ public void loadDefault() { String value = getStoredValue(true); @@ -88,8 +88,8 @@ public class ResourceDragAndDropEditor { } /** * Returns the value that is currently stored for the encoding. - * @param useDefault - * + * @param useDefault + * * @return the currently stored encoding */ public String getStoredValue(boolean useDefault) { @@ -111,7 +111,7 @@ public class ResourceDragAndDropEditor { } /** - * + * */ public void store() { IPreferenceStore store = IDEWorkbenchPlugin.getDefault().getPreferenceStore(); @@ -127,16 +127,16 @@ public class ResourceDragAndDropEditor { if (buttons[i] != null && !buttons[i].isDisposed()) buttons[i].setEnabled(enableLinking); } - + } } - + PreferenceGroup folderPref; PreferenceGroup virtualFolderPref; /** * Creates a new drag and drop resource editor with the given preference name, label * and parent. - * + * * @param composite * the parent of the field editor's control */ @@ -146,7 +146,7 @@ public class ResourceDragAndDropEditor { new String[] { IDEWorkbenchMessages.Prompt, IDEWorkbenchMessages.linkedResourcesPreference_copy, - IDEWorkbenchMessages.LinkedResourcesPreference_link, + IDEWorkbenchMessages.LinkedResourcesPreference_link, IDEWorkbenchMessages.LinkedResourcesPreference_linkAndVirtualFolder }, new String[] {IDEInternalPreferences.IMPORT_FILES_AND_FOLDERS_MODE_PROMPT, IDEInternalPreferences.IMPORT_FILES_AND_FOLDERS_MODE_MOVE_COPY, @@ -156,7 +156,7 @@ public class ResourceDragAndDropEditor { IDEInternalPreferences.IMPORT_FILES_AND_FOLDERS_VIRTUAL_FOLDER_MODE, new String[] { IDEWorkbenchMessages.LinkedResourcesPreference_promptVirtual, - IDEWorkbenchMessages.LinkedResourcesPreference_linkVirtual, + IDEWorkbenchMessages.LinkedResourcesPreference_linkVirtual, IDEWorkbenchMessages.LinkedResourcesPreference_linkAndVirtualFolderVirtual }, new String[] {IDEInternalPreferences.IMPORT_FILES_AND_FOLDERS_MODE_PROMPT, IDEInternalPreferences.IMPORT_FILES_AND_FOLDERS_MODE_LINK, @@ -167,7 +167,7 @@ public class ResourceDragAndDropEditor { /** * Creates this field editor's main control containing all of its basic * controls. - * + * * @param parent * the parent control */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/ResourceWorkingSetUpdater.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/ResourceWorkingSetUpdater.java index cf6a8b6fa30..1eef7779b53 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/ResourceWorkingSetUpdater.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/ResourceWorkingSetUpdater.java @@ -27,7 +27,7 @@ import org.eclipse.ui.IWorkingSetUpdater; /** * A working set updater that updates resource working sets on resource deltas - * + * * @since 3.2 */ public class ResourceWorkingSetUpdater implements IWorkingSetUpdater, @@ -45,7 +45,7 @@ public class ResourceWorkingSetUpdater implements IWorkingSetUpdater, /** * Create a new instance of this class. - * + * * @param workingSet * the working set to track. */ @@ -56,7 +56,7 @@ public class ResourceWorkingSetUpdater implements IWorkingSetUpdater, /** * Returns the index of this element in the list of known elements. - * + * * @param element * the element to search for * @return the index, or -1 if unknown. @@ -67,7 +67,7 @@ public class ResourceWorkingSetUpdater implements IWorkingSetUpdater, /** * Add a new element to the list of known elements. - * + * * @param index * the index at which to place the element * @param element @@ -80,7 +80,7 @@ public class ResourceWorkingSetUpdater implements IWorkingSetUpdater, /** * Remove an element from the list of known elements. - * + * * @param index * the index of the element to remove */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/StatusUtil.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/StatusUtil.java index 29ac10408d2..45edf0f8362 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/StatusUtil.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/StatusUtil.java @@ -20,10 +20,10 @@ import org.eclipse.core.runtime.Status; /** * Utility class to create status objects. - * + * * PRIVATE This class is an internal implementation class and should not be * referenced or sub-classed outside of the workbench - * + * * @since 3.0 */ public class StatusUtil { @@ -56,7 +56,7 @@ public class StatusUtil { /** * This method must not be called outside the workbench. - * + * * Utility method for creating status. */ protected static IStatus newStatus(IStatus[] stati, String message, @@ -69,10 +69,10 @@ public class StatusUtil { stati, message, exception); } - + /** * This method must not be called outside the workbench. - * + * * Utility method for creating status. * @param severity * @param message @@ -97,10 +97,10 @@ public class StatusUtil { statusMessage, exception); } - + /** * This method must not be called outside the workbench. - * + * * Utility method for creating status. * @param children * @param message @@ -125,5 +125,5 @@ public class StatusUtil { return newStatus(stati, message, exception); } - + } diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/StringMatcher.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/StringMatcher.java index 2a4baa9b018..6a7bbf8f9c8 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/StringMatcher.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/StringMatcher.java @@ -55,14 +55,14 @@ public class StringMatcher { } /** - * StringMatcher constructor takes in a String object that is a simple + * StringMatcher constructor takes in a String object that is a simple * pattern which may contain '*' for 0 and many characters and - * '?' for exactly one character. + * '?' for exactly one character. * - * Literal '*' and '*' characters must be escaped in the pattern + * Literal '*' and '*' characters must be escaped in the pattern * e.g. "\*" means literal "*", etc. * - * Escaping any other character (including the escape character itself), + * Escaping any other character (including the escape character itself), * just results in that character in the pattern. * e.g. "\a" means "a" and "\\" means "\" * @@ -92,13 +92,13 @@ public class StringMatcher { } /** - * Find the first occurrence of the pattern between <code>start</code)(inclusive) - * and <code>end</code>(exclusive). - * @param text the String object to search in + * Find the first occurrence of the pattern between <code>start</code)(inclusive) + * and <code>end</code>(exclusive). + * @param text the String object to search in * @param start the starting index of the search range, inclusive * @param end the ending index of the search range, exclusive - * @return an <code>StringMatcher.Position</code> object that keeps the starting - * (inclusive) and ending positions (exclusive) of the first occurrence of the + * @return an <code>StringMatcher.Position</code> object that keeps the starting + * (inclusive) and ending positions (exclusive) of the first occurrence of the * pattern in the specified range of the text; return null if not found or subtext * is empty (start==end). A pair of zeros is returned if pattern is empty string * Note that for pattern like "*abc*" with leading and trailing stars, position of "abc" @@ -156,21 +156,21 @@ public class StringMatcher { } /** - * match the given <code>text</code> with the pattern + * match the given <code>text</code> with the pattern * @return true if matched eitherwise false - * @param text a String object + * @param text a String object */ public boolean match(String text) { return match(text, 0, text.length()); } /** - * Given the starting (inclusive) and the ending (exclusive) positions in the - * <code>text</code>, determine if the given substring matches with aPattern + * Given the starting (inclusive) and the ending (exclusive) positions in the + * <code>text</code>, determine if the given substring matches with aPattern * @return true if the specified portion of the text matches the pattern - * @param text a <code>String</code> object that contains the substring to match + * @param text a <code>String</code> object that contains the substring to match * @param start marks the starting position (inclusive) of the substring - * @param end marks the ending index (exclusive) of the substring + * @param end marks the ending index (exclusive) of the substring */ public boolean match(String text, int start, int end) { if (null == text) { @@ -330,11 +330,11 @@ public class StringMatcher { temp.copyInto(fSegments); } - /** + /** * @param text a string which contains no wildcard * @param start the starting index in the text for search, inclusive * @param end the stopping point of search, exclusive - * @return the starting index in the text of the pattern , or -1 if not found + * @return the starting index in the text of the pattern , or -1 if not found */ protected int posIn(String text, int start, int end) {//no wild card in pattern int max = end - fLength; @@ -356,12 +356,12 @@ public class StringMatcher { return -1; } - /** + /** * @param text a simple regular expression that may only contain '?'(s) * @param start the starting index in the text for search, inclusive * @param end the stopping point of search, exclusive * @param p a simple regular expression that may contains '?' - * @return the starting index in the text of the pattern , or -1 if not found + * @return the starting index in the text of the pattern , or -1 if not found */ protected int regExpPosIn(String text, int start, int end, String p) { int plen = p.length(); @@ -376,13 +376,13 @@ public class StringMatcher { } /** - * + * * @return boolean * @param text a String to match * @param tStart int that indicates the starting index of match, inclusive * @param p String, String, a simple regular expression that may contain '?' * @param pStart - * @param plen + * @param plen */ protected boolean regExpRegionMatches(String text, int tStart, String p, int pStart, int plen) { @@ -417,12 +417,12 @@ public class StringMatcher { return true; } - /** + /** * @param text the string to match * @param start the starting index in the text for search, inclusive * @param end the stopping point of search, exclusive * @param p a string that has no wildcard - * @return the starting index in the text of the pattern , or -1 if not found + * @return the starting index in the text of the pattern , or -1 if not found */ protected int textPosIn(String text, int start, int end, String p) { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/TipsAndTricksAction.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/TipsAndTricksAction.java index 585da7448e1..30447d4f792 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/TipsAndTricksAction.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/TipsAndTricksAction.java @@ -7,7 +7,7 @@ * * Contributors: * IBM Corporation - initial API and implementation - * Sebastian Davids <sdavids@gmx.de> - Fix for bug 93373 - [Intro] + * Sebastian Davids <sdavids@gmx.de> - Fix for bug 93373 - [Intro] * TipsAndTricksAction should not use magic numbers *******************************************************************************/ package org.eclipse.ui.internal.ide; @@ -41,7 +41,7 @@ public class TipsAndTricksAction extends PartEventAction implements /** * Create an instance of this class. - * + * * @param window the window */ public TipsAndTricksAction(IWorkbenchWindow window) { @@ -94,7 +94,7 @@ public class TipsAndTricksAction extends PartEventAction implements IIDEHelpContextIds.TIPS_AND_TRICKS_PAGE_SELECTION_DIALOG); d.create(); d.getOkButton().setEnabled(false); - + if (d.open() != Window.OK || d.getResult().length != 1) { return; } @@ -128,7 +128,7 @@ public class TipsAndTricksAction extends PartEventAction implements IStatus status = new Status(IStatus.ERROR, IDEWorkbenchPlugin.IDE_WORKBENCH, IStatus.INFO, IDEWorkbenchMessages.TipsAndTricksErrorDialog_noHref, null); ErrorDialog.openError(shell, IDEWorkbenchMessages.TipsAndTricksErrorDialog_title, - IDEWorkbenchMessages.TipsAndTricksErrorDialog_noFeatures, + IDEWorkbenchMessages.TipsAndTricksErrorDialog_noFeatures, status); } } diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/VirtualResourceDecorator.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/VirtualResourceDecorator.java index 8812f1d27c3..96d1f3556ff 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/VirtualResourceDecorator.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/VirtualResourceDecorator.java @@ -71,7 +71,7 @@ public class VirtualResourceDecorator implements ILightweightLabelDecorator { /** * Replaces the resource image, if the given element is a virtual resource. - * + * * @param element * element to decorate * @param decoration diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/WorkbenchActionBuilder.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/WorkbenchActionBuilder.java index 37cedbed49e..625f79afacc 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/WorkbenchActionBuilder.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/WorkbenchActionBuilder.java @@ -79,7 +79,7 @@ public final class WorkbenchActionBuilder extends ActionBarAdvisor { private IWorkbenchAction closeAction; private IWorkbenchAction closeAllAction; - + private IWorkbenchAction closeOthersAction; private IWorkbenchAction closeAllSavedAction; @@ -89,13 +89,13 @@ public final class WorkbenchActionBuilder extends ActionBarAdvisor { private IWorkbenchAction saveAllAction; private IWorkbenchAction newWindowAction; - + private IWorkbenchAction helpContentsAction; private IWorkbenchAction helpSearchAction; - + private IWorkbenchAction dynamicHelpAction; - + private IWorkbenchAction aboutAction; private IWorkbenchAction openPreferencesAction; @@ -131,7 +131,7 @@ public final class WorkbenchActionBuilder extends ActionBarAdvisor { private IWorkbenchAction activateEditorAction; private IWorkbenchAction maximizePartAction; - + private IWorkbenchAction minimizePartAction; private IWorkbenchAction switchToEditorAction; @@ -173,7 +173,7 @@ public final class WorkbenchActionBuilder extends ActionBarAdvisor { private IWorkbenchAction newWizardDropDownAction; private IWorkbenchAction importResourcesAction; - + private IWorkbenchAction exportResourcesAction; private IWorkbenchAction buildAllAction; // Incremental workspace build @@ -196,19 +196,19 @@ public final class WorkbenchActionBuilder extends ActionBarAdvisor { // IDE-specific retarget actions private IWorkbenchAction buildProjectAction; - + private CommandContributionItem minimizeItem; - + private CommandContributionItem zoomItem; private CommandContributionItem fullscreenItem; private CommandContributionItem arrangeWindowsItem; - + // contribution items // @issue should obtain from ContributionItemFactory private NewWizardMenu newWizardMenu; - + // @issue class is workbench internal private StatusLineContributionItem statusLineItem; @@ -221,7 +221,7 @@ public final class WorkbenchActionBuilder extends ActionBarAdvisor { private IPageListener pageListener; private IResourceChangeListener resourceListener; - + /** * Indicates if the action builder has been disposed */ @@ -230,7 +230,7 @@ public final class WorkbenchActionBuilder extends ActionBarAdvisor { /** * Constructs a new action builder which contributes actions * to the given window. - * + * * @param configurer the action bar configurer for the window */ public WorkbenchActionBuilder(IActionBarConfigurer configurer) { @@ -305,7 +305,7 @@ public final class WorkbenchActionBuilder extends ActionBarAdvisor { /* * In order to ensure that the pin action toolbar sets its size * correctly, the pin action should set its visiblity before we call updatePinActionToolbar(). - * + * * In other words we always want the PinActionContributionItem to be notified before the * WorkbenchActionBuilder. */ @@ -398,9 +398,9 @@ public final class WorkbenchActionBuilder extends ActionBarAdvisor { } coolBar.add(new GroupMarker(IWorkbenchActionConstants.GROUP_EDITOR)); - + coolBar.add(new GroupMarker(IWorkbenchActionConstants.GROUP_HELP)); - + { // Help group IToolBarManager helpToolBar = actionBarConfigurer.createToolBarManager(); helpToolBar.add(new Separator(IWorkbenchActionConstants.GROUP_HELP)); @@ -446,7 +446,7 @@ public final class WorkbenchActionBuilder extends ActionBarAdvisor { newMenu.add(new Separator(IWorkbenchActionConstants.MB_ADDITIONS)); menu.add(newMenu); } - + menu.add(new GroupMarker(IWorkbenchActionConstants.NEW_EXT)); menu.add(new Separator()); @@ -483,7 +483,7 @@ public final class WorkbenchActionBuilder extends ActionBarAdvisor { menu.add(ContributionItemFactory.REOPEN_EDITORS.create(getWindow())); menu.add(new GroupMarker(IWorkbenchActionConstants.MRU)); menu.add(new Separator()); - + // If we're on OS X we shouldn't show this command in the File menu. It // should be invisible to the user. However, we should not remove it - // the carbon UI code will do a search through our menu structure @@ -612,11 +612,11 @@ public final class WorkbenchActionBuilder extends ActionBarAdvisor { IDEWorkbenchMessages.Workbench_window, IWorkbenchActionConstants.M_WINDOW); addMacWindowMenuItems(menu); - + menu.add(newWindowAction); - + menu.add(new Separator()); - + menu.add(addShowView()); menu.add(addPerspectiveActions()); menu.add(new Separator()); @@ -624,10 +624,10 @@ public final class WorkbenchActionBuilder extends ActionBarAdvisor { Separator sep = new Separator(IWorkbenchActionConstants.MB_ADDITIONS); sep.setVisible(!Util.isMac()); menu.add(sep); - + if(Util.isCocoa()) menu.add(arrangeWindowsItem); - + // See the comment for quit in createFileMenu ActionContributionItem openPreferencesItem = new ActionContributionItem(openPreferencesAction); openPreferencesItem.setVisible(!Util.isMac()); @@ -752,7 +752,7 @@ public final class WorkbenchActionBuilder extends ActionBarAdvisor { addSeparatorOrGroupMarker(menu, IWorkbenchActionConstants.MB_ADDITIONS); // about should always be at the bottom menu.add(new Separator("group.about")); //$NON-NLS-1$ - + ActionContributionItem aboutItem = new ActionContributionItem(aboutAction); aboutItem.setVisible(!Util.isMac()); menu.add(aboutItem); @@ -765,7 +765,7 @@ public final class WorkbenchActionBuilder extends ActionBarAdvisor { * The test for whether a separator should be added is done by checking for * the existence of a preference matching the string * useSeparator.MENUID.GROUPID that is set to <code>true</code>. - * + * * @param menu * the menu to add to * @param groupId @@ -781,7 +781,7 @@ public final class WorkbenchActionBuilder extends ActionBarAdvisor { menu.add(new GroupMarker(groupId)); } } - + /** * Disposes any resources and unhooks any listeners that are no longer needed. * Called when the window is closed. @@ -815,7 +815,7 @@ public final class WorkbenchActionBuilder extends ActionBarAdvisor { showInQuickMenu.dispose(); newQuickMenu.dispose(); - + // null out actions to make leak debugging easier closeAction = null; @@ -953,7 +953,7 @@ public final class WorkbenchActionBuilder extends ActionBarAdvisor { exportResourcesAction = ActionFactory.EXPORT.create(window); register(exportResourcesAction); - + buildAllAction = IDEActionFactory.BUILD.create(window); register(buildAllAction); @@ -972,7 +972,7 @@ public final class WorkbenchActionBuilder extends ActionBarAdvisor { saveAllAction = ActionFactory.SAVE_ALL.create(window); register(saveAllAction); - + newWindowAction = ActionFactory.OPEN_NEW_WINDOW.create(getWindow()); newWindowAction.setText(IDEWorkbenchMessages.Workbench_openNewWindow); register(newWindowAction); @@ -1001,10 +1001,10 @@ public final class WorkbenchActionBuilder extends ActionBarAdvisor { helpSearchAction = ActionFactory.HELP_SEARCH.create(window); register(helpSearchAction); - + dynamicHelpAction = ActionFactory.DYNAMIC_HELP.create(window); register(dynamicHelpAction); - + aboutAction = ActionFactory.ABOUT.create(window); aboutAction .setImageDescriptor(IDEInternalWorkbenchImages @@ -1014,7 +1014,7 @@ public final class WorkbenchActionBuilder extends ActionBarAdvisor { openPreferencesAction = ActionFactory.PREFERENCES.create(window); register(openPreferencesAction); - + @@ -1058,7 +1058,7 @@ public final class WorkbenchActionBuilder extends ActionBarAdvisor { minimizePartAction = ActionFactory.MINIMIZE.create(window); register(minimizePartAction); - + switchToEditorAction = ActionFactory.SHOW_OPEN_EDITORS .create(window); register(switchToEditorAction); @@ -1066,7 +1066,7 @@ public final class WorkbenchActionBuilder extends ActionBarAdvisor { workbookEditorsAction = ActionFactory.SHOW_WORKBOOK_EDITORS .create(window); register(workbookEditorsAction); - + quickAccessAction = ActionFactory.SHOW_QUICK_ACCESS .create(window); @@ -1157,8 +1157,8 @@ public final class WorkbenchActionBuilder extends ActionBarAdvisor { } }; register(newQuickMenu); - - + + if (Util.isCocoa()) { CommandContributionItemParameter minimizeParam = new CommandContributionItemParameter(window, null, @@ -1182,7 +1182,7 @@ public final class WorkbenchActionBuilder extends ActionBarAdvisor { */ private void makeFeatureDependentActions(IWorkbenchWindow window) { AboutInfo[] infos = null; - + IPreferenceStore prefs = IDEWorkbenchPlugin.getDefault().getPreferenceStore(); // Optimization: avoid obtaining the about infos if the platform state is @@ -1194,7 +1194,7 @@ public final class WorkbenchActionBuilder extends ActionBarAdvisor { if (!sameState) { prefs.putValue(stateKey, currentState); } - + // See if a welcome page is specified. // Optimization: if welcome pages were found on a previous run, then just add the action. String quickStartKey = IDEActionFactory.QUICK_START.getId(); @@ -1216,7 +1216,7 @@ public final class WorkbenchActionBuilder extends ActionBarAdvisor { register(quickStartAction); } } - + // See if a tips and tricks page is specified. // Optimization: if tips and tricks were found on a previous run, then just add the action. String tipsAndTricksKey = IDEActionFactory.TIPS_AND_TRICKS.getId(); @@ -1246,7 +1246,7 @@ public final class WorkbenchActionBuilder extends ActionBarAdvisor { /** * Returns whether any of the given infos have a welcome page. - * + * * @param infos the infos * @return <code>true</code> if a welcome page was found, <code>false</code> if not */ @@ -1261,7 +1261,7 @@ public final class WorkbenchActionBuilder extends ActionBarAdvisor { /** * Returns whether any of the given infos have tips and tricks. - * + * * @param infos the infos * @return <code>true</code> if tips and tricks were found, <code>false</code> if not */ @@ -1277,7 +1277,7 @@ public final class WorkbenchActionBuilder extends ActionBarAdvisor { /** * Update the build actions on the toolbar and menu bar based on the current * state of autobuild. This method can be called from any thread. - * + * * @param immediately * <code>true</code> to update the actions immediately, * <code>false</code> to queue the update to be run in the @@ -1299,7 +1299,7 @@ public final class WorkbenchActionBuilder extends ActionBarAdvisor { buildProjectAction.setEnabled(enabled); toggleAutoBuildAction.setChecked(workspace.isAutoBuilding()); cleanAction.setEnabled(BuildUtilities.isEnabled(projects, IncrementalProjectBuilder.CLEAN_BUILD)); - + //update the cool bar build button ICoolBarManager coolBarManager = getActionBarConfigurer() .getCoolBarManager(); @@ -1379,11 +1379,11 @@ public final class WorkbenchActionBuilder extends ActionBarAdvisor { toolBarManager.update(false); toolBarItem.update(ICoolBarManager.SIZE); } - + private IContributionItem getPinEditorItem() { return ContributionItemFactory.PIN_EDITOR.create(window); } - + private IContributionItem getCutItem() { return getItem( ActionFactory.CUT.getId(), @@ -1393,7 +1393,7 @@ public final class WorkbenchActionBuilder extends ActionBarAdvisor { WorkbenchMessages.Workbench_cut, WorkbenchMessages.Workbench_cutToolTip, null); } - + private IContributionItem getCopyItem() { return getItem( ActionFactory.COPY.getId(), @@ -1403,7 +1403,7 @@ public final class WorkbenchActionBuilder extends ActionBarAdvisor { WorkbenchMessages.Workbench_copy, WorkbenchMessages.Workbench_copyToolTip, null); } - + private IContributionItem getResetPerspectiveItem() { return getItem( ActionFactory.RESET_PERSPECTIVE.getId(), @@ -1411,10 +1411,10 @@ public final class WorkbenchActionBuilder extends ActionBarAdvisor { null, null, WorkbenchMessages.ResetPerspective_text, - WorkbenchMessages.ResetPerspective_toolTip, + WorkbenchMessages.ResetPerspective_toolTip, IWorkbenchHelpContextIds.RESET_PERSPECTIVE_ACTION); } - + private IContributionItem getSavePerspectiveItem() { return getItem( ActionFactory.SAVE_PERSPECTIVE.getId(), @@ -1422,10 +1422,10 @@ public final class WorkbenchActionBuilder extends ActionBarAdvisor { null, null, WorkbenchMessages.SavePerspective_text, - WorkbenchMessages.SavePerspective_toolTip, + WorkbenchMessages.SavePerspective_toolTip, IWorkbenchHelpContextIds.SAVE_PERSPECTIVE_ACTION); } - + private IContributionItem getPasteItem() { return getItem( ActionFactory.PASTE.getId(), @@ -1435,7 +1435,7 @@ public final class WorkbenchActionBuilder extends ActionBarAdvisor { WorkbenchMessages.Workbench_paste, WorkbenchMessages.Workbench_pasteToolTip, null); } - + private IContributionItem getPrintItem() { return getItem( ActionFactory.PRINT.getId(), @@ -1445,7 +1445,7 @@ public final class WorkbenchActionBuilder extends ActionBarAdvisor { WorkbenchMessages.Workbench_print, WorkbenchMessages.Workbench_printToolTip, null); } - + private IContributionItem getSelectAllItem() { return getItem( ActionFactory.SELECT_ALL.getId(), @@ -1453,7 +1453,7 @@ public final class WorkbenchActionBuilder extends ActionBarAdvisor { null, null, WorkbenchMessages.Workbench_selectAll, WorkbenchMessages.Workbench_selectAllToolTip, null); } - + private IContributionItem getFindItem() { return getItem( ActionFactory.FIND.getId(), @@ -1461,7 +1461,7 @@ public final class WorkbenchActionBuilder extends ActionBarAdvisor { null, null, WorkbenchMessages.Workbench_findReplace, WorkbenchMessages.Workbench_findReplaceToolTip, null); } - + private IContributionItem getBookmarkItem() { return getItem( IDEActionFactory.BOOKMARK.getId(), @@ -1469,7 +1469,7 @@ public final class WorkbenchActionBuilder extends ActionBarAdvisor { null, null, IDEWorkbenchMessages.Workbench_addBookmark, IDEWorkbenchMessages.Workbench_addBookmarkToolTip, null); } - + private IContributionItem getTaskItem() { return getItem( IDEActionFactory.ADD_TASK.getId(), @@ -1477,7 +1477,7 @@ public final class WorkbenchActionBuilder extends ActionBarAdvisor { null, null, IDEWorkbenchMessages.Workbench_addTask, IDEWorkbenchMessages.Workbench_addTaskToolTip, null); } - + private IContributionItem getDeleteItem() { return getItem(ActionFactory.DELETE.getId(), ActionFactory.DELETE.getCommandId(), @@ -1487,7 +1487,7 @@ public final class WorkbenchActionBuilder extends ActionBarAdvisor { WorkbenchMessages.Workbench_deleteToolTip, IWorkbenchHelpContextIds.DELETE_RETARGET_ACTION); } - + private IContributionItem getRevertItem() { return getItem( ActionFactory.REVERT.getId(), @@ -1495,42 +1495,42 @@ public final class WorkbenchActionBuilder extends ActionBarAdvisor { null, null, WorkbenchMessages.Workbench_revert, WorkbenchMessages.Workbench_revertToolTip, null); } - + private IContributionItem getRefreshItem() { return getItem(ActionFactory.REFRESH.getId(), ActionFactory.REFRESH.getCommandId(), null, null, WorkbenchMessages.Workbench_refresh, WorkbenchMessages.Workbench_refreshToolTip, null); } - + private IContributionItem getPropertiesItem() { return getItem(ActionFactory.PROPERTIES.getId(), ActionFactory.PROPERTIES.getCommandId(), null, null, WorkbenchMessages.Workbench_properties, WorkbenchMessages.Workbench_propertiesToolTip, null); } - + private IContributionItem getMoveItem() { return getItem(ActionFactory.MOVE.getId(), ActionFactory.MOVE.getCommandId(), null, null, WorkbenchMessages.Workbench_move, WorkbenchMessages.Workbench_moveToolTip, null); } - + private IContributionItem getRenameItem() { return getItem(ActionFactory.RENAME.getId(), ActionFactory.RENAME.getCommandId(), null, null, WorkbenchMessages.Workbench_rename, WorkbenchMessages.Workbench_renameToolTip, null); } - + private IContributionItem getOpenProjectItem() { return getItem(IDEActionFactory.OPEN_PROJECT.getId(), IDEActionFactory.OPEN_PROJECT.getCommandId(), null, null, IDEWorkbenchMessages.OpenResourceAction_text, IDEWorkbenchMessages.OpenResourceAction_toolTip, null); } - + private IContributionItem getCloseProjectItem() { return getItem( IDEActionFactory.CLOSE_PROJECT.getId(), @@ -1538,7 +1538,7 @@ public final class WorkbenchActionBuilder extends ActionBarAdvisor { null, null, IDEWorkbenchMessages.CloseResourceAction_text, IDEWorkbenchMessages.CloseResourceAction_text, null); } - + private IContributionItem getItem(String actionId, String commandId, String image, String disabledImage, String label, String tooltip, String helpContextId) { ISharedImages sharedImages = getWindow().getWorkbench() diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/actions/BuildCleanAction.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/actions/BuildCleanAction.java index 47ed71417e4..eacb6f10902 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/actions/BuildCleanAction.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/actions/BuildCleanAction.java @@ -22,7 +22,7 @@ import org.eclipse.ui.internal.ide.dialogs.CleanDialog; * state for all projects in the workspace, and deletes all problem markers. * The next time a build is run, projects will have to be built from scratch. * Technically this is only necessary if an incremental builder misbehaves. - * + * * @since 3.0 */ public class BuildCleanAction extends Action implements ActionFactory.IWorkbenchAction { @@ -30,7 +30,7 @@ public class BuildCleanAction extends Action implements ActionFactory.IWorkbench /** * Creates a new BuildCleanAction - * + * * @param window The window for parenting this action */ public BuildCleanAction(IWorkbenchWindow window) { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/actions/BuildSetAction.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/actions/BuildSetAction.java index df89004a620..a5b6851ff2f 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/actions/BuildSetAction.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/actions/BuildSetAction.java @@ -25,7 +25,7 @@ import org.eclipse.ui.internal.ide.IDEWorkbenchMessages; /** * This class will perform an incremental build on a working set. - * + * * @since 3.0 */ public class BuildSetAction extends Action { @@ -63,8 +63,8 @@ public class BuildSetAction extends Action { window.getWorkbench().getWorkingSetManager().addRecentWorkingSet(workingSet); IProject[] projects = BuildUtilities.extractProjects(workingSet.getElements()); if (projects.length == 0) { - MessageDialog.openInformation(window.getShell(), - IDEWorkbenchMessages.BuildSetAction_noBuildTitle, + MessageDialog.openInformation(window.getShell(), + IDEWorkbenchMessages.BuildSetAction_noBuildTitle, IDEWorkbenchMessages.BuildSetAction_noProjects); return; } diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/actions/BuildSetMenu.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/actions/BuildSetMenu.java index 709bbc3759b..838e703d30a 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/actions/BuildSetMenu.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/actions/BuildSetMenu.java @@ -7,8 +7,8 @@ * * Contributors: * IBM - Initial API and implementation - * hzhou@actuate.com - Fix for Bug 71695 - - * [WorkingSets]Removed Working Set is still shown under the menu item + * hzhou@actuate.com - Fix for Bug 71695 - + * [WorkingSets]Removed Working Set is still shown under the menu item * when it is the recently used working set *******************************************************************************/ package org.eclipse.ui.internal.ide.actions; @@ -28,7 +28,7 @@ import org.eclipse.ui.application.IActionBarConfigurer; /** * Sub-menu off project menu for showing MRU list of working set builds. - * + * * @since 3.0 */ public class BuildSetMenu extends ContributionItem { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/actions/BuildUtilities.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/actions/BuildUtilities.java index 67af7fdf8ea..0972fc9341d 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/actions/BuildUtilities.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/actions/BuildUtilities.java @@ -37,13 +37,13 @@ import org.eclipse.ui.ide.ResourceUtil; * This class contains convenience methods used by the various build commands * to determine enablement. These utilities cannot be factored into a common * class because some build actions are API and some are not. - * + * * @since 3.1 */ public class BuildUtilities { /** * Extracts the selected projects from a selection. - * + * * @param selection The selection to analyze * @return The selected projects */ @@ -77,7 +77,7 @@ public class BuildUtilities { /** * Finds and returns the selected projects in the given window - * + * * @param window The window to find the selection in * @return The selected projects, or an empty array if no selection could be found. */ @@ -138,7 +138,7 @@ public class BuildUtilities { /** * Returns whether one of the projects has a builder whose trigger setting * for the given trigger matches the given value. - * + * * @param projects The projects to check * @param trigger The trigger to look for * @param value The trigger value to look for diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/actions/LTKLauncher.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/actions/LTKLauncher.java index 42c4e889d66..b6606d7db4c 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/actions/LTKLauncher.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/actions/LTKLauncher.java @@ -27,7 +27,7 @@ import org.eclipse.ui.handlers.IHandlerService; /** * Launch the LTK aware resource operations ... but sneaky! - * + * * @since 3.4 */ public class LTKLauncher { @@ -37,10 +37,10 @@ public class LTKLauncher { /** * Open the LTK delete resources wizard if available. - * + * * @param structuredSelection * The action current selection. - * + * * @return <code>true</code> if we can launch the wizard */ public static boolean openDeleteWizard( @@ -50,10 +50,10 @@ public class LTKLauncher { /** * Open the LTK move resources wizard if available. - * + * * @param structuredSelection * The action current selection. - * + * * @return <code>true</code> if we can launch the wizard */ public static boolean openMoveWizard( @@ -63,10 +63,10 @@ public class LTKLauncher { /** * Open the LTK rename resource wizard if available. - * + * * @param structuredSelection * The action current selection. - * + * * @return <code>true</code> if we can launch the wizard */ public static boolean openRenameWizard( diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/actions/OpenLocalFileAction.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/actions/OpenLocalFileAction.java index 4a9c3924814..c748f2672ef 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/actions/OpenLocalFileAction.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/actions/OpenLocalFileAction.java @@ -36,7 +36,7 @@ import org.eclipse.ui.internal.ide.IDEWorkbenchPlugin; /** - * Standard action for opening an editor on local file(s). + * Standard action for opening an editor on local file(s). * <p> * This class may be instantiated; it is not intended to be subclassed. * </p> diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/actions/OpenWorkspaceAction.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/actions/OpenWorkspaceAction.java index 697d98f2c63..b24de2fdd72 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/actions/OpenWorkspaceAction.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/actions/OpenWorkspaceAction.java @@ -41,7 +41,7 @@ import org.eclipse.ui.internal.ide.IDEWorkbenchMessages; /** * Implements the open workspace action. Opens a dialog prompting for a * directory and then restarts the IDE on that workspace. - * + * * @since 3.0 */ public class OpenWorkspaceAction extends Action implements @@ -50,9 +50,9 @@ public class OpenWorkspaceAction extends Action implements /** * Action responsible for opening the "Other..." dialog (ie: the workspace * chooser). - * + * * @since 3.3 - * + * */ class OpenDialogAction extends Action { @@ -69,7 +69,7 @@ public class OpenWorkspaceAction extends Action implements /** * Action responsible for opening a specific workspace location - * + * * @since 3.3 */ class WorkspaceMRUAction extends Action { @@ -113,8 +113,8 @@ public class OpenWorkspaceAction extends Action implements private static final String NEW_LINE = "\n"; //$NON-NLS-1$ private IWorkbenchWindow window; - - + + private IContributionItem[] getContributionItems() { ArrayList list = new ArrayList(); final ChooseWorkspaceData data = new ChooseWorkspaceData(Platform @@ -134,7 +134,7 @@ public class OpenWorkspaceAction extends Action implements return (IContributionItem[]) list .toArray(new IContributionItem[list.size()]); } - + class MenuCreator implements IMenuCreator { ArrayList menus = new ArrayList(); @@ -212,7 +212,7 @@ public class OpenWorkspaceAction extends Action implements /** * Set definition for this action and text so that it will be used for File * -> Open Workspace in the argument window. - * + * * @param window * the window in which this action should appear */ @@ -244,7 +244,7 @@ public class OpenWorkspaceAction extends Action implements /** * Restart the workbench using the specified path as the workspace location. - * + * * @param path * the location * @since 3.3 @@ -262,7 +262,7 @@ public class OpenWorkspaceAction extends Action implements /** * Use the ChooseWorkspaceDialog to get the new workspace from the user. - * + * * @return a string naming the new workspace and null if cancel was selected */ private String promptForWorkspace() { @@ -288,7 +288,7 @@ public class OpenWorkspaceAction extends Action implements * Create and return a string with command line options for eclipse.exe that * will launch a new workbench that is the same as the currently running * one, but using the argument directory as its workspace. - * + * * @param workspace * the directory to use as the new workspace * @return a string of command line options or null on error diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/actions/ProjectPropertyDialogAction.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/actions/ProjectPropertyDialogAction.java index 84ed8ced0c7..2c0e33f663a 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/actions/ProjectPropertyDialogAction.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/actions/ProjectPropertyDialogAction.java @@ -43,7 +43,7 @@ public class ProjectPropertyDialogAction extends PartEventAction implements /** * Create a new dialog. - * + * * @param window the window */ public ProjectPropertyDialogAction(IWorkbenchWindow window) { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/actions/QuickMenuAction.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/actions/QuickMenuAction.java index 521b9d156a7..64178ffcf0b 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/actions/QuickMenuAction.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/actions/QuickMenuAction.java @@ -21,7 +21,7 @@ import org.eclipse.ui.keys.IBindingService; /** * A quick menu actions provides support to assign short cuts * to sub menus. - * + * * @since 3.0 */ public abstract class QuickMenuAction extends Action { @@ -35,9 +35,9 @@ public abstract class QuickMenuAction extends Action { /** * Creates a new quick menu action with the given command id. - * + * * @param commandId the command id of the short cut used to open - * the sub menu + * the sub menu */ public QuickMenuAction(String commandId) { setId(commandId); @@ -51,7 +51,7 @@ public abstract class QuickMenuAction extends Action { public void run() { creator.createMenu(); } - + /** * Dispose of this menu action. */ @@ -64,15 +64,15 @@ public abstract class QuickMenuAction extends Action { /** * Hook to fill a menu manager with the items of the sub menu. - * + * * @param menu the sub menu to fill */ protected abstract void fillMenu(IMenuManager menu); - + /** * Returns the short cut assigned to the sub menu or <code>null</code> if * no short cut is assigned. - * + * * @return the short cut as a human readable string or <code>null</code> */ public String getShortCutString() { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/actions/RetargetActionWithDefault.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/actions/RetargetActionWithDefault.java index c99d510fadf..b5608e2f769 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/actions/RetargetActionWithDefault.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/actions/RetargetActionWithDefault.java @@ -18,7 +18,7 @@ import org.eclipse.ui.actions.RetargetAction; * handler when the active part does not supply one. Enablement of this * action is based on enablement of the handler, or enablement of the default * handler if no explicit handler is available. - * + * * @since 3.1 */ public class RetargetActionWithDefault extends RetargetAction { @@ -27,7 +27,7 @@ public class RetargetActionWithDefault extends RetargetAction { /** * Constructs a RetargetActionWithDefault with the given action id and text. - * + * * @param actionID the retargetable action id * @param text the action's text, or <code>null</code> if there is no text */ @@ -42,7 +42,7 @@ public class RetargetActionWithDefault extends RetargetAction { protected void setActionHandler(IAction newHandler) { super.setActionHandler(newHandler); // Only set the default handler after clearing the old handler above. - // This triggers enablement updating on the default handler which + // This triggers enablement updating on the default handler which // might be needed since the active part has changed. if (newHandler == null) { super.setActionHandler(defaultHandler); diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/actions/SelectBuildWorkingSetAction.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/actions/SelectBuildWorkingSetAction.java index 39d758a1149..78493893a50 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/actions/SelectBuildWorkingSetAction.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/actions/SelectBuildWorkingSetAction.java @@ -22,7 +22,7 @@ import org.eclipse.ui.internal.ide.IDEWorkbenchMessages; /** * This action asks the user to select a working set, and then creates * and runs a corresponding BuildSetAction. - * + * * @since 3.0 */ public class SelectBuildWorkingSetAction extends Action implements diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/commands/CopyBuildIdToClipboardHandler.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/commands/CopyBuildIdToClipboardHandler.java index 71c165ba21f..ea7fdd254a7 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/commands/CopyBuildIdToClipboardHandler.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/commands/CopyBuildIdToClipboardHandler.java @@ -23,9 +23,9 @@ import org.eclipse.ui.internal.ConfigurationInfo; /** * Copies the build ID to the clipboard. Useful for debugging and bug * reporting/verification. - * + * * @since 3.4 - * + * */ public class CopyBuildIdToClipboardHandler extends AbstractHandler { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/commands/CopyConfigToClipboardHandler.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/commands/CopyConfigToClipboardHandler.java index 13d7bc2edbb..590d6b7c886 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/commands/CopyConfigToClipboardHandler.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/commands/CopyConfigToClipboardHandler.java @@ -21,7 +21,7 @@ import org.eclipse.ui.internal.ConfigurationInfo; /** * Copies the configuration data present in the about dialog to the clipboard. - * + * * @since 3.4 */ public class CopyConfigToClipboardHandler extends AbstractHandler { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/commands/ResourcePathConverter.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/commands/ResourcePathConverter.java index ecf755c8099..4ce97b959e6 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/commands/ResourcePathConverter.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/commands/ResourcePathConverter.java @@ -21,7 +21,7 @@ import org.eclipse.core.runtime.Path; /** * A command parameter value converter to convert between IResources and strings * encoding the path of a resource. - * + * * @since 3.2 */ public final class ResourcePathConverter extends diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/BuildOrderPreferencePage.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/BuildOrderPreferencePage.java index 6827e3f1d69..405991dae3a 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/BuildOrderPreferencePage.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/BuildOrderPreferencePage.java @@ -51,8 +51,8 @@ import org.eclipse.ui.internal.ide.IDEWorkbenchMessages; import org.eclipse.ui.internal.ide.IIDEHelpContextIds; import org.eclipse.ui.internal.util.PrefUtil; -/** - * Page used to determine what order projects will be built in +/** + * Page used to determine what order projects will be built in * by the workspace. */ public class BuildOrderPreferencePage extends PreferencePage implements @@ -180,7 +180,7 @@ public class BuildOrderPreferencePage extends PreferencePage implements | SWT.H_SCROLL | SWT.V_SCROLL); this.buildList.setEnabled(enabled); GridData data = new GridData(); - //Set heightHint with a small value so the list size will be defined by + //Set heightHint with a small value so the list size will be defined by //the space available in the dialog instead of resizing the dialog to //fit all the items in the list. data.heightHint = buildList.getItemHeight(); @@ -252,7 +252,7 @@ public class BuildOrderPreferencePage extends PreferencePage implements /** * Adds in a spacer. - * + * * @param composite the parent composite */ private void createSpacer(Composite composite) { @@ -373,7 +373,7 @@ public class BuildOrderPreferencePage extends PreferencePage implements /** * Create the field for the maximum number of iterations in the presence - * of cycles. + * of cycles. */ private void createMaxIterationsField(Composite composite) { Composite maxItersComposite = new Composite(composite, SWT.NONE); @@ -443,7 +443,7 @@ public class BuildOrderPreferencePage extends PreferencePage implements /** * Get the project names for the current custom build * order stored in the workspace description. - * + * * @return java.lang.String[] or null if there is no setting */ private String[] getCurrentBuildOrder() { @@ -458,7 +458,7 @@ public class BuildOrderPreferencePage extends PreferencePage implements /** * Get the project names in the default build order * based on the current Workspace settings. - * + * * @return java.lang.String[] */ private String[] getDefaultProjectOrder() { @@ -553,7 +553,7 @@ public class BuildOrderPreferencePage extends PreferencePage implements super.performDefaults(); } - /** + /** * OK has been pressed. If the defualt button is pressed then reset the build order to false; * otherwise set it to the contents of the list. */ @@ -624,10 +624,10 @@ public class BuildOrderPreferencePage extends PreferencePage implements } /** - * Return a sorted array of the names of the projects that are already in the currently + * Return a sorted array of the names of the projects that are already in the currently * displayed names. * @return String[] - * @param allProjects - all of the projects in the workspace + * @param allProjects - all of the projects in the workspace * @param currentlyDisplayed - the names of the projects already being displayed */ private String[] sortedDifference(IProject[] allProjects, diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/CleanDialog.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/CleanDialog.java index 3fe1a6de131..e512c258db1 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/CleanDialog.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/CleanDialog.java @@ -59,7 +59,7 @@ import org.eclipse.ui.progress.IProgressConstants2; * Dialog that asks the user to confirm a clean operation, and to configure * settings in relation to the clean. Clicking ok in the dialog will perform the * clean operation. - * + * * @since 3.0 */ public class CleanDialog extends MessageDialog { @@ -84,7 +84,7 @@ public class CleanDialog extends MessageDialog { private static final String TOGGLE_SELECTED = "TOGGLE_SELECTED"; //$NON-NLS-1$ private static final String BUILD_NOW = "BUILD_NOW"; //$NON-NLS-1$ private static final String BUILD_ALL = "BUILD_ALL"; //$NON-NLS-1$ - + private Button allButton, selectedButton, buildNowButton, globalBuildButton, projectBuildButton; private CheckboxTableViewer projectNames; @@ -108,7 +108,7 @@ public class CleanDialog extends MessageDialog { /** * Creates a new clean dialog. - * + * * @param window the window to create it in * @param selection the currently selected projects (may be empty) */ @@ -211,7 +211,7 @@ public class CleanDialog extends MessageDialog { //second row createProjectSelectionTable(area); - + //third row //only prompt for immediate build if autobuild is off if (!ResourcesPlugin.getWorkspace().isAutoBuilding()) { @@ -353,30 +353,30 @@ public class CleanDialog extends MessageDialog { protected void updateBuildRadioEnablement() { projectBuildButton.setSelection(!globalBuildButton.getSelection()); } - + @Override public boolean close() { persistDialogSettings(getShell(), DIALOG_SETTINGS_SECTION); return super.close(); } - + @Override protected Point getInitialLocation(Point initialSize) { Point p = getInitialLocation(DIALOG_SETTINGS_SECTION); return p != null ? p : super.getInitialLocation(initialSize); } - + @Override protected Point getInitialSize() { Point p = super.getInitialSize(); return getInitialSize(DIALOG_SETTINGS_SECTION, p); } - + /** * Returns the initial location which is persisted in the IDE Plugin dialog settings * under the provided dialog setttings section name. * If location is not persisted in the settings, the <code>null</code> is returned. - * + * * @param dialogSettingsSectionName The name of the dialog settings section * @return The initial location or <code>null</code> */ @@ -390,7 +390,7 @@ public class CleanDialog extends MessageDialog { } return null; } - + private IDialogSettings getDialogSettings(String dialogSettingsSectionName) { IDialogSettings settings = IDEWorkbenchPlugin.getDefault().getDialogSettings(); IDialogSettings section = settings.getSection(dialogSettingsSectionName); @@ -403,7 +403,7 @@ public class CleanDialog extends MessageDialog { /** * Persists the location and dimensions of the shell and other user settings in the * plugin's dialog settings under the provided dialog settings section name - * + * * @param shell The shell whose geometry is to be stored * @param dialogSettingsSectionName The name of the dialog settings section */ @@ -429,7 +429,7 @@ public class CleanDialog extends MessageDialog { * Returns the initial size which is the larger of the <code>initialSize</code> or * the size persisted in the IDE UI Plugin dialog settings under the provided dialog setttings section name. * If no size is persisted in the settings, the <code>initialSize</code> is returned. - * + * * @param initialSize The initialSize to compare against * @param dialogSettingsSectionName The name of the dialog settings section * @return the initial size @@ -445,7 +445,7 @@ public class CleanDialog extends MessageDialog { } return initialSize; } - + @Override protected boolean isResizable() { return true; diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/ConfigurationLogUpdateSection.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/ConfigurationLogUpdateSection.java index 0e8416d9a15..f34dcb4bab7 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/ConfigurationLogUpdateSection.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/ConfigurationLogUpdateSection.java @@ -34,7 +34,7 @@ import org.osgi.framework.ServiceReference; /** * Writes information about the update configurer into the system summary. - * + * * @since 3.0 */ public class ConfigurationLogUpdateSection implements ISystemSummarySection { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/CreateLinkedResourceGroup.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/CreateLinkedResourceGroup.java index 2a5fda75401..a0b0048f75a 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/CreateLinkedResourceGroup.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/CreateLinkedResourceGroup.java @@ -60,7 +60,7 @@ import org.eclipse.ui.internal.ide.filesystem.FileSystemSupportRegistry; /** * Widget group for specifying a linked file or folder target. - * + * * @since 2.1 */ public class CreateLinkedResourceGroup { @@ -93,13 +93,13 @@ public class CreateLinkedResourceGroup { /** * Helper interface intended for updating a string value based on the * currently selected link target. - * + * * @since 3.2 */ public static interface IStringValue { /** * Sets the String value. - * + * * @param string * a non-null String */ @@ -107,14 +107,14 @@ public class CreateLinkedResourceGroup { /** * Gets the String value. - * + * * @return the current value, or <code>null</code> */ String getValue(); /** * Gets the resource to which the resource will belong - * + * * @return the IResource object, or <code>null</code> */ IResource getResource(); @@ -126,7 +126,7 @@ public class CreateLinkedResourceGroup { /** * Creates a link target group - * + * * @param type * specifies the type of resource to link to. * <code>IResource.FILE</code> or <code>IResource.FOLDER</code> @@ -151,7 +151,7 @@ public class CreateLinkedResourceGroup { /** * Creates the widgets - * + * * @param parent * parent composite of the widget group * @return the widget group @@ -162,7 +162,7 @@ public class CreateLinkedResourceGroup { /** * Creates the widgets without the checkbox button - * + * * @param parent * parent composite of the widget group * @return the widget group @@ -173,7 +173,7 @@ public class CreateLinkedResourceGroup { /** * Creates the widgets - * + * * @param parent * parent composite of the widget group * @return the widget group @@ -238,10 +238,10 @@ public class CreateLinkedResourceGroup { public boolean isEnabled() { return createLink; } - + /** * Creates the link target location widgets. - * + * * @param locationGroup * the parent composite * @param enabled @@ -341,7 +341,7 @@ public class CreateLinkedResourceGroup { /** * Create the file system selection area. - * + * * @param composite * @param enabled * the initial enablement state. @@ -354,7 +354,7 @@ public class CreateLinkedResourceGroup { } fileSystemSelectionArea = new FileSystemSelectionArea(); - + Composite parent = new Composite(composite, SWT.NONE); parent.setLayoutData(new GridData(SWT.FILL, SWT.NONE, true, false, 4, 1)); GridLayout layout = new GridLayout(2, false); @@ -364,13 +364,13 @@ public class CreateLinkedResourceGroup { parent.setFont(composite.getFont()); fileSystemSelectionArea.createContents(parent); - + fileSystemSelectionArea.setEnabled(enabled); } /** * Create the composite for the resolved path. - * + * * @param locationGroup * @param indent */ @@ -402,7 +402,7 @@ public class CreateLinkedResourceGroup { /** * Returns a new status object with the given severity and message. - * + * * @return a new status object with the given severity and message. */ private IStatus createStatus(int severity, String message) { @@ -421,7 +421,7 @@ public class CreateLinkedResourceGroup { /** * Returns the link target location entered by the user. - * + * * @return the link target location entered by the user. null if the user * chose not to create a link. */ @@ -437,7 +437,7 @@ public class CreateLinkedResourceGroup { IPath path = Path.fromOSString(linkTarget); if (path != null && path.toFile().exists()) return URIUtil.toURI(path); - + uri = new URI(linkTarget); URI resolved = getPathVariableManager().resolveURI(uri); try { @@ -459,7 +459,7 @@ public class CreateLinkedResourceGroup { // validate non-local file system location return configuration.getContributor().getURI(string); } - + /** * Opens a file or directory browser depending on the link type. */ @@ -538,7 +538,7 @@ public class CreateLinkedResourceGroup { /** * Return the selected configuration or <code>null</code> if there is not * one selected. - * + * * @return FileSystemConfiguration or <code>null</code> */ private FileSystemConfiguration getSelectedConfiguration() { @@ -579,7 +579,7 @@ public class CreateLinkedResourceGroup { * This method must be called before <code>setButtonLayoutData</code> is * called. * </p> - * + * * @param control * a control from which to obtain the current font */ @@ -609,10 +609,10 @@ public class CreateLinkedResourceGroup { URI resolvedURI = pathVariableManager.resolveURI(uri); String resolvedString; if (isURL) - resolvedString = resolvedURI.toString(); + resolvedString = resolvedURI.toString(); else resolvedString = URIUtil.toPath(resolvedURI).toOSString(); - + if (linkTarget.equals(resolvedString)) { resolvedPathLabelText.setVisible(false); resolvedPathLabelData.setVisible(false); @@ -631,14 +631,14 @@ public class CreateLinkedResourceGroup { && updatableResourceName.getResource() != null) return updatableResourceName.getResource().getPathVariableManager(); return ResourcesPlugin.getWorkspace().getPathVariableManager(); - } + } /** * Sets the <code>GridData</code> on the specified button to be one that * is spaced for the current dialog page units. The method * <code>initializeDialogUnits</code> must be called once before calling * this method for the first time. - * + * * @param button * the button to set the <code>GridData</code> * @return the <code>GridData</code> set on the specified button @@ -655,7 +655,7 @@ public class CreateLinkedResourceGroup { /** * Sets the value of the link target field - * + * * @param target * the value of the link target field */ @@ -669,7 +669,7 @@ public class CreateLinkedResourceGroup { /** * Validates the type of the given file against the link type specified in * the constructor. - * + * * @param linkTargetFile * file to validate * @return IStatus indicating the validation result. IStatus.OK if the given @@ -690,10 +690,10 @@ public class CreateLinkedResourceGroup { /** * Validates this page's controls. - * + * * @param linkHandle * The target to check - * + * * @return IStatus indicating the validation result. IStatus.OK if the * specified link target is valid given the linkHandle. */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/FileFolderSelectionDialog.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/FileFolderSelectionDialog.java index ff56e88d4c7..cb873b8d0c5 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/FileFolderSelectionDialog.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/FileFolderSelectionDialog.java @@ -31,7 +31,7 @@ import org.eclipse.ui.internal.ide.IDEWorkbenchPlugin; /** * Selection dialog to select files and/or folders on the file system. Use * setInput to set input to an IFileStore that points to a folder. - * + * * @since 2.1 */ public class FileFolderSelectionDialog extends ElementTreeSelectionDialog { @@ -77,7 +77,7 @@ public class FileFolderSelectionDialog extends ElementTreeSelectionDialog { /** * Creates a new instance of the receiver. - * + * * @param showFiles * <code>true</code> files and folders are returned by the * receiver. <code>false</code> only folders are returned. @@ -160,7 +160,7 @@ public class FileFolderSelectionDialog extends ElementTreeSelectionDialog { /** * Creates a new instance of the receiver. - * + * * @param multiSelect * <code>true</code> if multi selection is allowed. * <code>false</code> if only single selection is allowed. @@ -195,7 +195,7 @@ public class FileFolderSelectionDialog extends ElementTreeSelectionDialog { } } - + // Return an ok status with no message as SelectionStatusDialog will display default ok message return new Status(IStatus.OK, pluginId, IDEResourceInfoUtils.EMPTY_STRING); } @@ -203,7 +203,7 @@ public class FileFolderSelectionDialog extends ElementTreeSelectionDialog { /** * Creates a new instance of the receiver. - * + * * @param parent * @param multiSelect * <code>true</code> if multi selection is allowed. diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/FileStatesPage.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/FileStatesPage.java index d2abd6ac185..7fffe75c655 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/FileStatesPage.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/FileStatesPage.java @@ -67,7 +67,7 @@ public class FileStatesPage extends PreferencePage implements private long STATE_SIZE_MAXIMUM = 100; private static final int INDENT = 20; - + /** * This method takes the string for the title of a text field and the value for the * text of the field. @@ -326,7 +326,7 @@ public class FileStatesPage extends PreferencePage implements /** * Validate a text entry for a long field. Return the result if there are * no errors, otherwise return -1 and set the entry field error. - * @param scale the scale (factor by which the value is multiplied when it is persisted) + * @param scale the scale (factor by which the value is multiplied when it is persisted) * @return long */ private long validateLongTextEntry(Text text, long scale) { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/FileSystemSelectionArea.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/FileSystemSelectionArea.java index 8aff9927d54..c5b832991a5 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/FileSystemSelectionArea.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/FileSystemSelectionArea.java @@ -27,19 +27,19 @@ import org.eclipse.ui.internal.ide.filesystem.FileSystemSupportRegistry; /** * FileSystemSelectionArea is the area used to select the file system. * @since 3.2 - * + * */ public class FileSystemSelectionArea { private Label fileSystemTitle; private ComboViewer fileSystems; - + /** * Create a new instance of the receiver. */ public FileSystemSelectionArea(){ - + } /** @@ -96,14 +96,14 @@ public class FileSystemSelectionArea { */ public FileSystemConfiguration getSelectedConfiguration() { ISelection selection = fileSystems.getSelection(); - + if (selection instanceof IStructuredSelection) { IStructuredSelection structured = (IStructuredSelection) selection; if (structured.size() == 1) { return (FileSystemConfiguration) structured.getFirstElement(); } } - + return null; } @@ -114,6 +114,6 @@ public class FileSystemSelectionArea { public void setEnabled(boolean enabled) { fileSystemTitle.setEnabled(enabled); fileSystems.getControl().setEnabled(enabled); - + } } diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/IDEEditorsPreferencePage.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/IDEEditorsPreferencePage.java index e6d7b1d663a..e8d2ebc6617 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/IDEEditorsPreferencePage.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/IDEEditorsPreferencePage.java @@ -23,7 +23,7 @@ import org.eclipse.ui.preferences.IWorkbenchPreferenceContainer; /** * Extends the Editors preference page with IDE-specific settings. - * + * * Note: want IDE settings to appear in main Editors preference page (via * subclassing), however the superclass, EditorsPreferencePage, is internal */ @@ -32,7 +32,7 @@ public class IDEEditorsPreferencePage extends EditorsPreferencePage { @Override protected Control createContents(Composite parent) { Composite composite = createComposite(parent); - + PreferenceLinkArea fileEditorsArea = new PreferenceLinkArea(composite, SWT.NONE, "org.eclipse.ui.preferencePages.FileEditors", IDEWorkbenchMessages.IDEEditorsPreferencePage_WorkbenchPreference_FileEditorsRelatedLink,//$NON-NLS-1$ (IWorkbenchPreferenceContainer) getContainer(),null); @@ -43,17 +43,17 @@ public class IDEEditorsPreferencePage extends EditorsPreferencePage { PreferenceLinkArea contentTypeArea = new PreferenceLinkArea(composite, SWT.NONE, "org.eclipse.ui.preferencePages.ContentTypes", IDEWorkbenchMessages.IDEEditorsPreferencePage_WorkbenchPreference_contentTypesRelatedLink,//$NON-NLS-1$ (IWorkbenchPreferenceContainer) getContainer(),null); - + data = new GridData(GridData.FILL_HORIZONTAL | GridData.GRAB_HORIZONTAL); contentTypeArea.getControl().setLayoutData(data); - + PreferenceLinkArea appearanceArea = new PreferenceLinkArea(composite, SWT.NONE, "org.eclipse.ui.preferencePages.Views", IDEWorkbenchMessages.IDEEditorsPreferencePage_WorkbenchPreference_viewsRelatedLink,//$NON-NLS-1$ (IWorkbenchPreferenceContainer) getContainer(),null); data = new GridData(GridData.FILL_HORIZONTAL | GridData.GRAB_HORIZONTAL); appearanceArea.getControl().setLayoutData(data); - + createEditorHistoryGroup(composite); createSpace(composite); @@ -65,10 +65,10 @@ public class IDEEditorsPreferencePage extends EditorsPreferencePage { ((TabBehaviour)Tweaklets.get(TabBehaviour.KEY)).setPreferenceVisibility(editorReuseGroup, showMultipleEditorTabs); applyDialogFont(composite); - + super.setHelpContext(parent); - + return composite; } - + } diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/IDEPerspectivesPreferencePage.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/IDEPerspectivesPreferencePage.java index 63f4d2aa152..d25ff0a41c1 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/IDEPerspectivesPreferencePage.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/IDEPerspectivesPreferencePage.java @@ -25,7 +25,7 @@ import org.eclipse.ui.internal.ide.IDEWorkbenchPlugin; /** * Extends the Perspectives preference page with IDE-specific settings. - * + * * Note: want IDE settings to appear in main Perspectives preference page (via * subclassing), however the superclass, PerspectivesPreferencePage, is * internal diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/IDEResourceInfoUtils.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/IDEResourceInfoUtils.java index e50a9fbf1a6..8afeb2edad2 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/IDEResourceInfoUtils.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/IDEResourceInfoUtils.java @@ -39,9 +39,9 @@ import org.eclipse.ui.statushandlers.StatusManager; /** * Utility class supporting common information required from resources. - * + * * @since 3.2 - * + * */ public class IDEResourceInfoUtils { @@ -80,7 +80,7 @@ public class IDEResourceInfoUtils { /** * Return whether or not the file called pathName exists. - * + * * @param pathName * @return boolean <code>true</code> if the file exists. * @see IFileInfo#exists() @@ -106,7 +106,7 @@ public class IDEResourceInfoUtils { /** * Return the value for the date String for the timestamp of the supplied * resource. - * + * * @param resource * The resource to query * @return String @@ -145,7 +145,7 @@ public class IDEResourceInfoUtils { /** * Return the fileInfo at pathName or <code>null</code> if the format is * invalid or if the file info cannot be determined. - * + * * @param pathName * @return IFileInfo or <code>null</code> */ @@ -160,7 +160,7 @@ public class IDEResourceInfoUtils { /** * Return the fileInfo at pathName or <code>null</code> if the format is * invalid or if the file info cannot be determined. - * + * * @param pathName * @return IFileInfo or <code>null</code> */ @@ -175,7 +175,7 @@ public class IDEResourceInfoUtils { /** * Return the fileInfo for location. Return <code>null</code> if there is * a CoreException looking it up - * + * * @param location * @return String or <code>null</code> */ @@ -191,7 +191,7 @@ public class IDEResourceInfoUtils { /** * Get the file store for the local file system path. - * + * * @param string * @return IFileStore or <code>null</code> if there is a * {@link CoreException}. @@ -208,7 +208,7 @@ public class IDEResourceInfoUtils { /** * Get the file store for the URI. - * + * * @param uri * @return IFileStore or <code>null</code> if there is a * {@link CoreException}. @@ -224,7 +224,7 @@ public class IDEResourceInfoUtils { /** * Get the location of a resource - * + * * @param resource * @return String the text to display the location */ @@ -247,7 +247,7 @@ public class IDEResourceInfoUtils { if (resolvedLocation.getScheme() == null) return location.toString(); - + IFileStore store = getFileStore(resolvedLocation); // don't access the file system for closed projects (bug 151089) boolean isPathVariable = isPathVariable(resource); @@ -275,7 +275,7 @@ public class IDEResourceInfoUtils { /** * Get the resolved location of a resource. This resolves path variables if * present in the resource path. - * + * * @param resource * @return String */ @@ -295,7 +295,7 @@ public class IDEResourceInfoUtils { if (location.getScheme() == null) return UNKNOWN_LABEL; - + IFileStore store = getFileStore(location); if (store == null) { return UNKNOWN_LABEL; @@ -311,7 +311,7 @@ public class IDEResourceInfoUtils { /** * Return a String that indicates the size of the supplied file. - * + * * @param resource * @return String */ @@ -349,7 +349,7 @@ public class IDEResourceInfoUtils { /** * Get the string that identifies the type of this resource. - * + * * @param resource * @param description * @return String @@ -393,7 +393,7 @@ public class IDEResourceInfoUtils { /** * Returns whether the given resource is a linked resource bound to a path * variable. - * + * * @param resource * resource to test * @return boolean <code>true</code> the given resource is a linked @@ -429,7 +429,7 @@ public class IDEResourceInfoUtils { /** * Return the file stores that are a child of store that the filter accepts. - * + * * @param store * @param fileFilter * @param monitor diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/IDEWorkbenchPreferencePage.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/IDEWorkbenchPreferencePage.java index cedf6c30bfd..6b3a876e1d4 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/IDEWorkbenchPreferencePage.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/IDEWorkbenchPreferencePage.java @@ -24,7 +24,7 @@ import org.eclipse.ui.internal.ide.IDEWorkbenchPlugin; /** * The IDE workbench main preference page. - * + * *Note: want IDE settings to appear in main Workbench preference page (via subclassing), * however the superclass, WorkbenchPreferencePage, is internal */ @@ -39,7 +39,7 @@ public class IDEWorkbenchPreferencePage extends WorkbenchPreferencePage Composite composite = createComposite(parent); - createSettings(composite); + createSettings(composite); createOpenModeGroup(composite); applyDialogFont(composite); @@ -70,5 +70,5 @@ public class IDEWorkbenchPreferencePage extends WorkbenchPreferencePage public boolean performOk() { return super.performOk(); } - + } diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/IDEWorkspacePreferencePage.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/IDEWorkspacePreferencePage.java index dc680573f57..b1fb9c55fa4 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/IDEWorkspacePreferencePage.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/IDEWorkspacePreferencePage.java @@ -88,7 +88,7 @@ public class IDEWorkspacePreferencePage extends PreferencePage implements IWorkb private ResourceEncodingFieldEditor encodingEditor; private LineDelimiterEditor lineSeparatorEditor; - + //A boolean to indicate if the user settings were cleared. private boolean clearUserSettings = false; @@ -130,17 +130,17 @@ public class IDEWorkspacePreferencePage extends PreferencePage implements IWorkb createSpace(composite); createSystemExplorerGroup(composite); createSpace(composite); - + Composite lower = new Composite(composite,SWT.NONE); GridLayout lowerLayout = new GridLayout(); lowerLayout.marginWidth = 0; lowerLayout.numColumns = 2; lowerLayout.makeColumnsEqualWidth = true; lower.setLayout(lowerLayout); - + lower.setLayoutData(new GridData( GridData.HORIZONTAL_ALIGN_FILL | GridData.GRAB_HORIZONTAL)); - + createEncodingEditorControls(lower); createLineSeparatorEditorControls(lower); applyDialogFont(composite); @@ -235,7 +235,7 @@ public class IDEWorkspacePreferencePage extends PreferencePage implements IWorkb /** * Create a composite that contains entry fields specifying save interval * preference. - * + * * @param composite the Composite the group is created in. */ private void createSaveIntervalGroup(Composite composite) { @@ -284,7 +284,7 @@ public class IDEWorkspacePreferencePage extends PreferencePage implements IWorkb /** * Create a composite that contains entry fields specifying the workspace name * preference. - * + * * @param composite the Composite the group is created in. */ private void createWindowTitleGroup(Composite composite) { @@ -335,12 +335,12 @@ public class IDEWorkspacePreferencePage extends PreferencePage implements IWorkb * * @param parent */ - private void createEncodingEditorControls(Composite parent){ + private void createEncodingEditorControls(Composite parent){ Composite encodingComposite = new Composite(parent,SWT.NONE); encodingComposite.setLayout(new GridLayout()); encodingComposite.setLayoutData(new GridData( GridData.HORIZONTAL_ALIGN_FILL | GridData.GRAB_HORIZONTAL)); - + encodingEditor = new ResourceEncodingFieldEditor(IDEWorkbenchMessages.WorkbenchPreference_encoding, encodingComposite, ResourcesPlugin .getWorkspace().getRoot()); @@ -356,10 +356,10 @@ public class IDEWorkspacePreferencePage extends PreferencePage implements IWorkb } }); } - + /** * Create a composite that contains the line delimiter controls - * + * * @param parent */ private void createLineSeparatorEditorControls(Composite parent){ @@ -371,14 +371,14 @@ public class IDEWorkspacePreferencePage extends PreferencePage implements IWorkb lineComposite.setLayoutData(new GridData( GridData.HORIZONTAL_ALIGN_FILL | GridData.GRAB_HORIZONTAL)); - + lineSeparatorEditor = new LineDelimiterEditor(lineComposite); lineSeparatorEditor.doLoad(); } /** * Create the widget for the system explorer command. - * + * * @param composite */ protected void createSystemExplorerGroup(Composite composite) { @@ -420,10 +420,10 @@ public class IDEWorkspacePreferencePage extends PreferencePage implements IWorkb protected IPreferenceStore getIDEPreferenceStore() { return IDEWorkbenchPlugin.getDefault().getPreferenceStore(); } - + /** * Creates a tab of one horizontal spans. - * + * * @param parent * the parent in which the tab should be created */ @@ -441,7 +441,7 @@ public class IDEWorkspacePreferencePage extends PreferencePage implements IWorkb /** * Creates the composite which will contain all the preference controls for * this page. - * + * * @param parent * the parent composite * @return the composite for this page @@ -461,7 +461,7 @@ public class IDEWorkspacePreferencePage extends PreferencePage implements IWorkb public void init(org.eclipse.ui.IWorkbench workbench) { e4Context = workbench.getService(IEclipseContext.class); } - + /** * The default button has been pressed. */ @@ -480,7 +480,7 @@ public class IDEWorkspacePreferencePage extends PreferencePage implements IWorkb saveInterval.loadDefault(); showLocationInWindowTitle.setSelection(store.getDefaultBoolean(IDEInternalPreferences.SHOW_LOCATION)); workspaceName.loadDefault(); - + boolean closeUnrelatedProj = store.getDefaultBoolean(IDEInternalPreferences.CLOSE_UNRELATED_PROJECTS); closeUnrelatedProjectButton.setSelection(closeUnrelatedProj); @@ -553,7 +553,7 @@ public class IDEWorkspacePreferencePage extends PreferencePage implements IWorkb .getStatus()); } } - + store.setValue(IDEInternalPreferences.SHOW_LOCATION, showLocationInWindowTitle.getSelection()); workspaceName.store(); @@ -570,8 +570,8 @@ public class IDEWorkspacePreferencePage extends PreferencePage implements IWorkb boolean closeUnrelatedProj = closeUnrelatedProjectButton.getSelection(); getIDEPreferenceStore().setValue(IDEInternalPreferences.CLOSE_UNRELATED_PROJECTS, closeUnrelatedProj); - - + + if (clearUserSettings) { IDEEncoding.clearUserEncodings(); } diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/IFileStoreFilter.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/IFileStoreFilter.java index fdb6336b04e..a871f605943 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/IFileStoreFilter.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/IFileStoreFilter.java @@ -20,7 +20,7 @@ import org.eclipse.core.filesystem.IFileStore; * */ public interface IFileStoreFilter { - + /** * Return whether or not this store is accepted by the receiver. * @param store IFileStore diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/InternalErrorDialog.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/InternalErrorDialog.java index 98d4c68f95f..d75b3b4637d 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/InternalErrorDialog.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/InternalErrorDialog.java @@ -7,7 +7,7 @@ * * Contributors: * IBM Corporation - initial API and implementation - * Sebastian Davids <sdavids@gmx.de> - Fix for bug 93353 - + * Sebastian Davids <sdavids@gmx.de> - Fix for bug 93353 - * [Dialogs] InternalErrorDialog#buttonPressed should explicitly call super *******************************************************************************/ package org.eclipse.ui.internal.ide.dialogs; @@ -39,7 +39,7 @@ public class InternalErrorDialog extends MessageDialog { private Text text; - //Workaround. SWT does not seem to set the default button if + //Workaround. SWT does not seem to set the default button if //there is not control with focus. Bug: 14668 private int defaultButtonIndex = 0; @@ -50,7 +50,7 @@ public class InternalErrorDialog extends MessageDialog { /** * Create a new dialog. - * + * * @param parentShell the parent shell * @param dialogTitle the title * @param dialogTitleImage the title image @@ -70,7 +70,7 @@ public class InternalErrorDialog extends MessageDialog { setShellStyle(getShellStyle() | SWT.APPLICATION_MODAL); } - //Workaround. SWT does not seem to set rigth the default button if + //Workaround. SWT does not seem to set rigth the default button if //there is not control with focus. Bug: 14668 @Override public int open() { @@ -153,13 +153,13 @@ public class InternalErrorDialog extends MessageDialog { text.setLayoutData(data); } - /** + /** * Convenience method to open a simple Yes/No question dialog. * * @param parent the parent shell of the dialog, or <code>null</code> if none * @param title the dialog's title, or <code>null</code> if none * @param message the message - * @param detail the error + * @param detail the error * @param defaultIndex the default index of the button to select * @return <code>true</code> if the user presses the OK button, * <code>false</code> otherwise diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/LinkedResourceEditor.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/LinkedResourceEditor.java index a12117a529f..fdd83ac9fc7 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/LinkedResourceEditor.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/LinkedResourceEditor.java @@ -80,11 +80,11 @@ import org.eclipse.ui.model.WorkbenchLabelProvider; /** * UI to edit the location of the linked resources contained in a project. * @since 3.5 - * + * */ public class LinkedResourceEditor { - + private static int NAME_COLUMN = 0; private static int PATH_COLUMN = -1; private static int LOCATION_COLUMN = 1; @@ -156,7 +156,7 @@ public class LinkedResourceEditor { removeSelection(); } }); - + updateSelection(); } @@ -181,7 +181,7 @@ public class LinkedResourceEditor { /** * Creates the widget group. Callers must call <code>dispose</code> when the * group is no longer needed. - * + * * @param parent * the widget parent * @return container of the widgets @@ -290,7 +290,7 @@ public class LinkedResourceEditor { } /** - * + * */ public void dispose() { fixedImg.dispose(); @@ -382,7 +382,7 @@ public class LinkedResourceEditor { @Override public Object[] getChildren(Object parentElement) { if (parentElement instanceof LinkedResourceEditor) { - ArrayList list = new ArrayList(); + ArrayList list = new ArrayList(); Object[] objs = { BROKEN, ABSOLUTE, FIXED }; for (int i = 0; i < objs.length; i++) { Object[] children = getChildren(objs[i]); @@ -543,8 +543,8 @@ public class LinkedResourceEditor { } private void convertLocation() { - if (MessageDialog.openConfirm(fConvertAbsoluteButton.getShell(), - IDEWorkbenchMessages.LinkedResourceEditor_convertTitle, + if (MessageDialog.openConfirm(fConvertAbsoluteButton.getShell(), + IDEWorkbenchMessages.LinkedResourceEditor_convertTitle, IDEWorkbenchMessages.LinkedResourceEditor_convertMessage)) { ArrayList/* <IResource> */resources = new ArrayList/* <IResource> */(); IResource[] selectedResources = getSelectedResource(); @@ -642,7 +642,7 @@ public class LinkedResourceEditor { /** * @param res * @param location - * @throws CoreException + * @throws CoreException */ private void setLinkLocation(IResource res, IPath location) throws CoreException { if (res.getType() == IResource.FILE) @@ -719,7 +719,7 @@ public class LinkedResourceEditor { private void convertToRelative(ArrayList/* <IResource> */resources, IResource[] selectedResources) { ArrayList/* <String> */report = new ArrayList/* <String> */(); - + // first, try to use the automatic converter ArrayList/* <IResource> */remaining = new ArrayList/* <IResource> */(); Iterator/* <IResource> */it = resources.iterator(); @@ -882,7 +882,7 @@ public class LinkedResourceEditor { IPath commonPath = resLocation.removeLastSegments(1); String variableName = getSuitablePathVariable(commonPath); try { - fProject.getPathVariableManager().setURIValue(variableName, + fProject.getPathVariableManager().setURIValue(variableName, URIUtil.toURI(commonPath)); } catch (CoreException e) { report @@ -1052,7 +1052,7 @@ public class LinkedResourceEditor { } /** - * + * */ public void reloadContent() { refreshContent(); diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/LinkedResourcesPreferencePage.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/LinkedResourcesPreferencePage.java index fe3257c43e0..58c35ebc839 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/LinkedResourcesPreferencePage.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/LinkedResourcesPreferencePage.java @@ -34,12 +34,12 @@ import org.eclipse.ui.internal.ide.IIDEHelpContextIds; import org.eclipse.ui.internal.ide.ResourceDragAndDropEditor; /** - * Preference page for linked resources. - * This preference page allows enabling and disabling the workbench linked + * Preference page for linked resources. + * This preference page allows enabling and disabling the workbench linked * resource support. - * It also shows all path variables currently defined in the workspace's path - * variable manager. The user may add, edit and remove path variables. - * + * It also shows all path variables currently defined in the workspace's path + * variable manager. The user may add, edit and remove path variables. + * * @see org.eclipse.ui.internal.ide.dialogs.PathVariableDialog */ public class LinkedResourcesPreferencePage extends PreferencePage implements @@ -49,7 +49,7 @@ public class LinkedResourcesPreferencePage extends PreferencePage implements /** */ public static String PREF_ID = "org.eclipse.ui.preferencePages.LinkedResources"; //$NON-NLS-1$ - + private PathVariablesGroup pathVariablesGroup; private ResourceDragAndDropEditor dragAndDropHandlingEditor; @@ -67,7 +67,7 @@ public class LinkedResourcesPreferencePage extends PreferencePage implements /** * Resets this page's internal state and creates its UI contents. - * + * * @see PreferencePage#createContents(org.eclipse.swt.widgets.Composite) */ @Override @@ -144,7 +144,7 @@ public class LinkedResourcesPreferencePage extends PreferencePage implements /** * Create a composite that contains the line delimiter controls - * + * * @param parent */ private void createLineSeparatorEditorControls(Composite parent){ @@ -157,7 +157,7 @@ public class LinkedResourcesPreferencePage extends PreferencePage implements lineComposite.setLayoutData(new GridData( GridData.HORIZONTAL_ALIGN_FILL | GridData.GRAB_HORIZONTAL)); - + dragAndDropHandlingEditor = new ResourceDragAndDropEditor(lineComposite); dragAndDropHandlingEditor.doLoad(); } @@ -190,7 +190,7 @@ public class LinkedResourcesPreferencePage extends PreferencePage implements /** * Empty implementation. This page does not use the workbench. - * + * * @see IWorkbenchPreferencePage#init(org.eclipse.ui.IWorkbench) */ @Override @@ -200,7 +200,7 @@ public class LinkedResourcesPreferencePage extends PreferencePage implements /** * Commits the temporary state to the path variable manager in response to user * confirmation. - * + * * @see PreferencePage#performOk() * @see PathVariablesGroup#performOk() */ @@ -212,7 +212,7 @@ public class LinkedResourcesPreferencePage extends PreferencePage implements /** * Set the widget enabled state - * + * * @param enableLinking the new widget enabled state */ protected void updateWidgetState(boolean enableLinking) { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/OpenResourceDialog.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/OpenResourceDialog.java index 0ceb4c52bed..e4501df1062 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/OpenResourceDialog.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/OpenResourceDialog.java @@ -63,7 +63,7 @@ import org.eclipse.ui.views.IViewDescriptor; /** * Shows a list of resources to the user with a text entry field for a string * pattern used to filter the list of resources. - * + * * @since 2.1 */ public class OpenResourceDialog extends FilteredResourcesSelectionDialog { @@ -112,7 +112,7 @@ public class OpenResourceDialog extends FilteredResourcesSelectionDialog { computeResult(); setResult(Collections.EMPTY_LIST); close(); - + IWorkbenchPage page = getActivePage(); IViewPart view; try { @@ -137,13 +137,13 @@ public class OpenResourceDialog extends FilteredResourcesSelectionDialog { private static final int OPEN_WITH_ID = IDialogConstants.CLIENT_ID + 1; private static final int SHOW_IN_ID = IDialogConstants.CLIENT_ID + 2; - + private Button showInButton; private Button openWithButton; /** * Creates a new instance of the class. - * + * * @param parentShell * the parent shell * @param container @@ -165,14 +165,14 @@ public class OpenResourceDialog extends FilteredResourcesSelectionDialog { if (selectedItems.isEmpty()) { return; } - + IWorkbenchPage activePage = getActivePage(); if (activePage == null) { return; } menuManager.add(new Separator()); - + // Add 'Open' menu item OpenFileAction openFileAction = new OpenFileAction(activePage) { @Override @@ -183,10 +183,10 @@ public class OpenResourceDialog extends FilteredResourcesSelectionDialog { openFileAction.selectionChanged(selectedItems); if (openFileAction.isEnabled()) { menuManager.add(openFileAction); - + IAdaptable selectedAdaptable = getSelectedAdaptable(); if (selectedAdaptable != null) { - + // Add 'Open With' sub-menu MenuManager subMenu = new MenuManager(IDEWorkbenchMessages.OpenResourceDialog_openWithMenu_label); OpenWithMenu openWithMenu = new ResourceOpenWithMenu(activePage, selectedAdaptable); @@ -194,8 +194,8 @@ public class OpenResourceDialog extends FilteredResourcesSelectionDialog { menuManager.add(subMenu); } } - - + + // Add 'Show In' sub-menu MenuManager showInMenuManager = new MenuManager(IDEWorkbenchMessages.OpenResourceDialog_showInMenu_label); ShowInMenu showInMenu = new ResourceShowInMenu(selectedItems, activePage.getWorkbenchWindow()); @@ -216,7 +216,7 @@ public class OpenResourceDialog extends FilteredResourcesSelectionDialog { } }); setButtonLayoutData(showInButton); - + openWithButton = createDropdownButton(parent, OPEN_WITH_ID, IDEWorkbenchMessages.OpenResourceDialog_openWithButton_text, new MouseAdapter() { @Override @@ -225,16 +225,16 @@ public class OpenResourceDialog extends FilteredResourcesSelectionDialog { } }); setButtonLayoutData(openWithButton); - + GridData showInLayoutData = (GridData) showInButton.getLayoutData(); GridData openWithLayoutData = (GridData) openWithButton.getLayoutData(); int buttonWidth = Math.max(showInLayoutData.widthHint, openWithLayoutData.widthHint); showInLayoutData.widthHint = buttonWidth; openWithLayoutData.widthHint = buttonWidth; - + new Label(parent, SWT.NONE).setLayoutData(new GridData(5, 0)); parentLayout.numColumns++; - + Button okButton = createButton(parent, IDialogConstants.OK_ID, IDEWorkbenchMessages.OpenResourceDialog_openButton_text, true); Button cancelButton = createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false); @@ -327,7 +327,7 @@ public class OpenResourceDialog extends FilteredResourcesSelectionDialog { if (selectedItems.isEmpty()) { return; } - + ShowInMenu showInMenu = new ResourceShowInMenu(selectedItems, activePage.getWorkbenchWindow()); showMenu(showInButton, showInMenu); } diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/PathVariableDialog.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/PathVariableDialog.java index 188af544d3f..1c83e517861 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/PathVariableDialog.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/PathVariableDialog.java @@ -63,7 +63,7 @@ public class PathVariableDialog extends TitleAreaDialog { private Label variableNameLabel; private Label variableValueLabel; - + private Label variableResolvedValueLabel; private Text variableNameField; @@ -140,12 +140,12 @@ public class PathVariableDialog extends TitleAreaDialog { private String validationMessage; /** - * Whether a variable name has been entered. + * Whether a variable name has been entered. */ private boolean nameEntered = false; /** - * Whether a variable location has been entered. + * Whether a variable location has been entered. */ private boolean locationEntered = false; @@ -177,14 +177,14 @@ public class PathVariableDialog extends TitleAreaDialog { /** * Constructs a dialog for editing a new/existing path variable. - * + * * @param parentShell the parent shell * @param type the dialog type: <code>NEW_VARIABLE</code> or * <code>EXISTING_VARIABLE</code> - * @param variableType the type of variable that can be edited in + * @param variableType the type of variable that can be edited in * this dialog. <code>IResource.FILE</code> or <code>IResource.FOLDER</code> * @param pathVariableManager a reference to the path variable manager - * @param namesInUse a set of variable names currently in use + * @param namesInUse a set of variable names currently in use */ public PathVariableDialog(Shell parentShell, int type, int variableType, IPathVariableManager pathVariableManager, Set namesInUse) { @@ -207,7 +207,7 @@ public class PathVariableDialog extends TitleAreaDialog { /** * Configures this dialog's shell, setting the shell's text. - * + * * @see org.eclipse.jface.window.Window#configureShell(Shell) */ @Override @@ -223,7 +223,7 @@ public class PathVariableDialog extends TitleAreaDialog { /** * Creates and returns the contents of this dialog (except for the button bar). - * + * * @see org.eclipse.jface.dialogs.TitleAreaDialog#createDialogArea */ @Override @@ -232,11 +232,11 @@ public class PathVariableDialog extends TitleAreaDialog { Composite parentComposite = (Composite) super.createDialogArea(parent); initializeDialogUnits(parentComposite); - + // creates dialog area composite Composite contents = createComposite(parentComposite); - // creates and lay outs dialog area widgets + // creates and lay outs dialog area widgets createWidgets(contents); // validate possibly already incorrect variable definitions @@ -246,13 +246,13 @@ public class PathVariableDialog extends TitleAreaDialog { } Dialog.applyDialogFont(parentComposite); - + return contents; } /** * Creates and configures this dialog's main composite. - * + * * @param parentComposite parent's composite * @return this dialog's main composite */ @@ -275,7 +275,7 @@ public class PathVariableDialog extends TitleAreaDialog { /** * Creates widgets for this dialog. - * + * * @param contents the parent composite where to create widgets */ private void createWidgets(Composite contents) { @@ -301,7 +301,7 @@ public class PathVariableDialog extends TitleAreaDialog { } }); } - + // variable value label variableValueLabel = new Label(contents, SWT.LEAD); variableValueLabel.setText(valueLabelText); @@ -318,7 +318,7 @@ public class PathVariableDialog extends TitleAreaDialog { variableValueModified(); } }); - + Composite buttonsComposite = new Composite(contents, SWT.NONE); buttonsComposite.setLayoutData(new GridData(SWT.END, SWT.CENTER, false, false, 1, 1)); @@ -334,7 +334,7 @@ public class PathVariableDialog extends TitleAreaDialog { fileButton.setText(IDEWorkbenchMessages.PathVariableDialog_file); fileButton.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false)); - + fileButton.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { @@ -351,7 +351,7 @@ public class PathVariableDialog extends TitleAreaDialog { folderButton.setText(IDEWorkbenchMessages.PathVariableDialog_folder); folderButton.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false)); - + folderButton.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { @@ -366,10 +366,10 @@ public class PathVariableDialog extends TitleAreaDialog { layout.numColumns++; variableButton = new Button(buttonsComposite, SWT.PUSH); variableButton.setText(IDEWorkbenchMessages.PathVariableDialog_variable); - + variableButton.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false)); - + variableButton.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { @@ -395,7 +395,7 @@ public class PathVariableDialog extends TitleAreaDialog { return currentResource.getPathVariableManager(); return ResourcesPlugin.getWorkspace().getPathVariableManager(); } - + private String getVariableResolvedValue() { if (currentResource != null) { IPathVariableManager pathVariableManager2 = currentResource.getPathVariableManager(); @@ -405,7 +405,7 @@ public class PathVariableDialog extends TitleAreaDialog { URI resolvedURI = pathVariableManager2.resolveURI(uri); String resolveValue = URIUtil.toPath(resolvedURI).toOSString(); // Delete intermediate variables that might have been created as - // as a side effect of converting arbitrary relative paths to an internal string. + // as a side effect of converting arbitrary relative paths to an internal string. String[] newVariables = pathVariableManager2.getPathVariableNames(); for (int i = 0; i < newVariables.length; i++) { boolean found = false; @@ -427,7 +427,7 @@ public class PathVariableDialog extends TitleAreaDialog { } return variableValue; } - + /** * Fires validations (variable name first) and updates enabled state for the * "Ok" button accordingly. @@ -451,7 +451,7 @@ public class PathVariableDialog extends TitleAreaDialog { okButton.setEnabled(validateVariableValue() && validateVariableName()); locationEntered = true; if (variableResolvedValueField != null) - variableResolvedValueField.setText(TextProcessor.process(getVariableResolvedValue())); + variableResolvedValueField.setText(TextProcessor.process(getVariableResolvedValue())); } /** @@ -512,7 +512,7 @@ public class PathVariableDialog extends TitleAreaDialog { /** * Adds buttons to this dialog's button bar. - * + * * @see org.eclipse.jface.dialogs.Dialog#createButtonsForButtonBar */ @Override @@ -527,7 +527,7 @@ public class PathVariableDialog extends TitleAreaDialog { /** * Validates the current variable name, and updates this dialog's message. - * + * * @return true if the name is valid, false otherwise */ private boolean validateVariableName() { @@ -575,7 +575,7 @@ public class PathVariableDialog extends TitleAreaDialog { validationStatus = newValidationStatus; validationMessage = message; } - // only set the message here if it is not going to be set in + // only set the message here if it is not going to be set in // validateVariableValue to avoid flashing. if (allowFinish == false) { setMessage(validationMessage, validationStatus); @@ -585,7 +585,7 @@ public class PathVariableDialog extends TitleAreaDialog { /** * Validates the current variable value, and updates this dialog's message. - * + * * @return true if the value is valid, false otherwise */ private boolean validateVariableValue() { @@ -661,7 +661,7 @@ public class PathVariableDialog extends TitleAreaDialog { /** * Returns the variable name. - * + * * @return the variable name */ public String getVariableName() { @@ -670,7 +670,7 @@ public class PathVariableDialog extends TitleAreaDialog { /** * Returns the variable value. - * + * * @return the variable value */ public String getVariableValue() { @@ -683,7 +683,7 @@ public class PathVariableDialog extends TitleAreaDialog { /** * Sets the variable name. - * + * * @param variableName the new variable name */ public void setVariableName(String variableName) { @@ -693,7 +693,7 @@ public class PathVariableDialog extends TitleAreaDialog { /** * Sets the variable value. - * + * * @param variable the new variable value */ public void setVariableValue(String variable) { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/PathVariableEditDialog.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/PathVariableEditDialog.java index 1da7adc7e78..5d0522d264b 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/PathVariableEditDialog.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/PathVariableEditDialog.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 * Serge Beauchamp (Freescale Semiconductor) - [229633] Project Path Variable Support @@ -25,7 +25,7 @@ import org.eclipse.ui.internal.ide.IIDEHelpContextIds; /** * A dialog that allows a user to browse, edit, add, and remove path variables * for a given project. - * + * * @since 3.6 */ public class PathVariableEditDialog extends SelectionDialog { @@ -34,7 +34,7 @@ public class PathVariableEditDialog extends SelectionDialog { /** * Creates a path variable selection dialog. - * + * * @param parentShell * the parent shell */ @@ -105,7 +105,7 @@ public class PathVariableEditDialog extends SelectionDialog { /** * Sets the project for which variables are being edited - * + * * @param resource * The project whose variables are being edited */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/PathVariablesGroup.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/PathVariablesGroup.java index a7322d3fa94..69b021a77a0 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/PathVariablesGroup.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/PathVariablesGroup.java @@ -74,9 +74,9 @@ import org.eclipse.ui.internal.ide.IDEWorkbenchPlugin; import org.eclipse.ui.plugin.AbstractUIPlugin; /** - * A widget group that displays path variables. + * A widget group that displays path variables. * Includes buttons to edit, remove existing variables and create new ones. - * + * * @since 2.1 */ public class PathVariablesGroup { @@ -134,7 +134,7 @@ public class PathVariablesGroup { // if set to true, variables will be saved after each change private boolean saveVariablesOnChange = false; - + // file image private final Image FILE_IMG = PlatformUI.getWorkbench().getSharedImages() .getImage(ISharedImages.IMG_OBJ_FILE); @@ -153,12 +153,12 @@ public class PathVariablesGroup { private IResource currentResource = null; private final static String PARENT_VARIABLE_NAME = "PARENT"; //$NON-NLS-1$ - + /** * Creates a new PathVariablesGroup. * * @param multiSelect create a multi select tree - * @param variableType the type of variables that are displayed in + * @param variableType the type of variables that are displayed in * the widget group. <code>IResource.FILE</code> and/or <code>IResource.FOLDER</code> * logically ORed together. */ @@ -177,7 +177,7 @@ public class PathVariablesGroup { * Creates a new PathVariablesGroup. * * @param multiSelect create a multi select tree - * @param variableType the type of variables that are displayed in + * @param variableType the type of variables that are displayed in * the widget group. <code>IResource.FILE</code> and/or <code>IResource.FOLDER</code> * logically ORed together. * @param selectionListener listener notified when the selection changes @@ -217,9 +217,9 @@ public class PathVariablesGroup { /** * Creates the widget group. - * Callers must call <code>dispose</code> when the group is no + * Callers must call <code>dispose</code> when the group is no * longer needed. - * + * * @param parent the widget parent * @return container of the widgets */ @@ -267,7 +267,7 @@ public class PathVariablesGroup { if (multiSelect) { tableStyle |= SWT.MULTI; } - + Composite tableComposite = new Composite(pageComponent, SWT.NONE); data = new GridData(SWT.FILL, SWT.FILL, true, true); data.grabExcessHorizontalSpace = true; @@ -284,7 +284,7 @@ public class PathVariablesGroup { } } }); - + variableTable.getTable().setFont(font); ColumnViewerToolTipSupport.enableFor(variableTable, ToolTip.NO_RECREATE); @@ -295,7 +295,7 @@ public class PathVariablesGroup { TableViewerColumn valueColumn = new TableViewerColumn(variableTable, SWT.NONE); valueColumn.setLabelProvider(new ValueLabelProvider()); valueColumn.getColumn().setText(IDEWorkbenchMessages.PathVariablesBlock_valueColumn); - + TableColumnLayout tableLayout = new TableColumnLayout(); tableComposite.setLayout( tableLayout ); @@ -330,7 +330,7 @@ public class PathVariablesGroup { updateEnabledState(); } }); - + variableTable.getTable().setToolTipText(null); variableTable.setContentProvider(new ContentProvider()); variableTable.setInput(this); @@ -373,9 +373,9 @@ public class PathVariablesGroup { else cell.setImage(BUILTIN_IMG); } - + } - + class ValueLabelProvider extends CellLabelProvider { @Override @@ -406,11 +406,11 @@ public class PathVariablesGroup { IPath value = (IPath) tempPathVariables.get(cell.getElement()); cell.setText(TextProcessor.process(removeParentVariable(value.toOSString()))); } - + } /** - * Disposes the group's resources. + * Disposes the group's resources. */ public void dispose() { if (imageUnkown != null) { @@ -461,9 +461,9 @@ public class PathVariablesGroup { /** * Returns the enabled state of the group's widgets. - * Returns <code>true</code> if called prior to calling + * Returns <code>true</code> if called prior to calling * <code>createContents</code>. - * + * * @return boolean the enabled state of the group's widgets. * <code>true</code> if called prior to calling <code>createContents</code>. */ @@ -476,14 +476,14 @@ public class PathVariablesGroup { /** * Automatically save the path variable list when new variables - * are added, changed, or removed by the user. - * @param value + * are added, changed, or removed by the user. + * @param value * */ public void setSaveVariablesOnChange(boolean value) { saveVariablesOnChange = value; } - + private void saveVariablesIfRequired() { if (saveVariablesOnChange) { performOk(); @@ -491,9 +491,9 @@ public class PathVariablesGroup { } /** * Returns the selected variables. - * - * @return the selected variables. Returns an empty array if - * the widget group has not been created yet by calling + * + * @return the selected variables. Returns an empty array if + * the widget group has not been created yet by calling * <code>createContents</code> */ public PathVariableElement[] getSelection() { @@ -514,7 +514,7 @@ public class PathVariablesGroup { /** * Creates the add/edit/remove buttons - * + * * @param parent the widget parent */ private void createButtonGroup(Composite parent) { @@ -569,7 +569,7 @@ public class PathVariablesGroup { * Initializes the computation of horizontal and vertical dialog units * based on the size of current font. * <p> - * This method must be called before <code>setButtonLayoutData</code> + * This method must be called before <code>setButtonLayoutData</code> * is called. * </p> * @@ -631,10 +631,10 @@ public class PathVariablesGroup { public Object[] getElements(Object inputElement) { return tempPathVariables.keySet().toArray(); } - + @Override public void dispose() { } - + @Override public void inputChanged(Viewer viewer, Object oldInput, Object newInput) { } } @@ -647,7 +647,7 @@ public class PathVariablesGroup { private String removeParentVariable(String value) { return pathVariableManager.convertToUserEditableFormat(value, false); } - + /** * Commits the temporary state to the path variable manager in response to user * confirmation. @@ -656,7 +656,7 @@ public class PathVariablesGroup { */ public boolean performOk() { try { - // first process removed variables + // first process removed variables for (Iterator removed = removedVariableNames.iterator(); removed .hasNext();) { String removedVariableName = (String) removed.next(); @@ -746,7 +746,7 @@ public class PathVariablesGroup { /** * Sets the enabled state of the group's widgets. * Does nothing if called prior to calling <code>createContents</code>. - * + * * @param enabled the new enabled state of the group's widgets */ public void setEnabled(boolean enabled) { @@ -764,11 +764,11 @@ public class PathVariablesGroup { } /** - * Updates the widget's current state: refreshes the table with the current - * defined variables, selects the item corresponding to the given variable - * (selects the first item if <code>null</code> is provided) and updates + * Updates the widget's current state: refreshes the table with the current + * defined variables, selects the item corresponding to the given variable + * (selects the first item if <code>null</code> is provided) and updates * the enabled state for the Add/Remove/Edit buttons. - * + * */ private void updateWidgetState() { variableTable.refresh(); diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/ProjectContentsLocationArea.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/ProjectContentsLocationArea.java index 5baa0b8ab5d..646f8187cd4 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/ProjectContentsLocationArea.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/ProjectContentsLocationArea.java @@ -47,27 +47,27 @@ import org.eclipse.ui.internal.ide.filesystem.FileSystemSupportRegistry; /** * ProjectContentsLocationArea is a convenience class for area that handle entry * of locations using URIs. - * + * * @since 3.2 - * + * */ public class ProjectContentsLocationArea { /** * IErrorMessageReporter is an interface for type that allow message * reporting. - * + * */ public interface IErrorMessageReporter { /** * Report the error message - * + * * @param errorMessage * String or <code>null</code>. If the errorMessage is * null then clear any error state. * @param infoOnly * the message is an informational message, but the dialog * cannot continue - * + * */ public void reportError(String errorMessage, boolean infoOnly); } @@ -100,7 +100,7 @@ public class ProjectContentsLocationArea { /** * Create a new instance of the receiver. - * + * * @param reporter * @param composite * @param startProject @@ -126,7 +126,7 @@ public class ProjectContentsLocationArea { /** * Create a new instance of a ProjectContentsLocationArea. - * + * * @param reporter * @param composite */ @@ -140,7 +140,7 @@ public class ProjectContentsLocationArea { /** * Create the contents of the receiver. - * + * * @param composite * @param defaultEnabled */ @@ -189,7 +189,7 @@ public class ProjectContentsLocationArea { /** * Return whether or not we are currently showing the default location for * the project. - * + * * @return boolean */ public boolean isDefault() { @@ -198,7 +198,7 @@ public class ProjectContentsLocationArea { /** * Create the area for user entry. - * + * * @param composite * @param defaultEnabled */ @@ -249,7 +249,7 @@ public class ProjectContentsLocationArea { /** * Create the file system selection area. - * + * * @param composite */ private void createFileSystemSelection(Composite composite) { @@ -268,7 +268,7 @@ public class ProjectContentsLocationArea { /** * Return the path we are going to display. If it is a file URI then remove * the file prefix. - * + * * @return String */ private String getDefaultPathDisplayString() { @@ -288,7 +288,7 @@ public class ProjectContentsLocationArea { /** * Set the enablement state of the receiver. - * + * * @param enabled */ private void setUserAreaEnabled(boolean enabled) { @@ -304,7 +304,7 @@ public class ProjectContentsLocationArea { /** * Return the browse button. Usually referenced in order to set the layout * data for a dialog. - * + * * @return Button */ public Button getBrowseButton() { @@ -319,7 +319,7 @@ public class ProjectContentsLocationArea { } return result; } - + /** * Open an appropriate directory browser */ @@ -369,7 +369,7 @@ public class ProjectContentsLocationArea { /** * Update the location field based on the selected path. - * + * * @param selectedPath */ private void updateLocationField(String selectedPath) { @@ -378,7 +378,7 @@ public class ProjectContentsLocationArea { /** * Return the path on the location field. - * + * * @return the path or the field's text if the path is invalid */ private String getPathFromLocationField() { @@ -395,7 +395,7 @@ public class ProjectContentsLocationArea { /** * Check if the entry in the widget location is valid. If it is valid return * null. Otherwise return a string that indicates the problem. - * + * * @return String */ public String checkValidLocation() { @@ -431,7 +431,7 @@ public class ProjectContentsLocationArea { /** * Get the URI for the location field if possible. - * + * * @return URI or <code>null</code> if it is not valid. */ public URI getProjectLocationURI() { @@ -448,7 +448,7 @@ public class ProjectContentsLocationArea { /** * Return the selected contributor - * + * * @return FileSystemConfiguration or <code>null</code> if it cannot be * determined. */ @@ -463,7 +463,7 @@ public class ProjectContentsLocationArea { /** * Set the text to the default or clear it if not using the defaults. - * + * * @param newName * the name of the project to use. If <code>null</code> use the * existing project name. @@ -480,7 +480,7 @@ public class ProjectContentsLocationArea { /** * Return the location for the project. If we are using defaults then return * the workspace root so that core creates it with default values. - * + * * @return String */ public String getProjectLocation() { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/ProjectLinkedResourcePage.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/ProjectLinkedResourcePage.java index f01248df91c..3f28580f925 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/ProjectLinkedResourcePage.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/ProjectLinkedResourcePage.java @@ -45,9 +45,9 @@ public class ProjectLinkedResourcePage extends PropertyPage implements private PathVariablesGroup pathVariablesGroup; private LinkedResourceEditor linkedResourceEditor; - + /** - * + * */ public ProjectLinkedResourcePage() { pathVariablesGroup = new PathVariablesGroup(true, IResource.FILE | IResource.FOLDER); @@ -89,7 +89,7 @@ public class ProjectLinkedResourcePage extends PropertyPage implements tabFolder.addSelectionListener(new SelectionListener() { @Override public void widgetDefaultSelected(SelectionEvent e) { - + } @Override public void widgetSelected(SelectionEvent e) { @@ -100,7 +100,7 @@ public class ProjectLinkedResourcePage extends PropertyPage implements switchToPathVariables(); } }); - + pageComponent.setLayout(layout); data = new GridData(); data.verticalAlignment = GridData.FILL; @@ -111,7 +111,7 @@ public class ProjectLinkedResourcePage extends PropertyPage implements tabFolder.setFont(font); TabItem variableItem = new TabItem(tabFolder, SWT.BORDER); - + Composite variableComposite = new Composite(tabFolder, 0); variableComposite.setLayout(new GridLayout()); variableComposite.setFont(font); @@ -181,8 +181,8 @@ public class ProjectLinkedResourcePage extends PropertyPage implements /** * Empty implementation. This page does not use the workbench. - * @param workbench - * + * @param workbench + * * @see IWorkbenchPreferencePage#init(org.eclipse.ui.IWorkbench) */ public void init(IWorkbench workbench) { @@ -191,7 +191,7 @@ public class ProjectLinkedResourcePage extends PropertyPage implements /** * Commits the temporary state to the path variable manager in response to user * confirmation. - * + * * @see PreferencePage#performOk() * @see PathVariablesGroup#performOk() */ @@ -202,7 +202,7 @@ public class ProjectLinkedResourcePage extends PropertyPage implements /** * Set the widget enabled state - * + * * @param enableLinking the new widget enabled state */ protected void updateWidgetState(boolean enableLinking) { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/ProjectReferencePage.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/ProjectReferencePage.java index a4524176c10..bd8fb325ad2 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/ProjectReferencePage.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/ProjectReferencePage.java @@ -63,16 +63,16 @@ public class ProjectReferencePage extends PropertyPage { protected Control createContents(Composite parent) { PlatformUI.getWorkbench().getHelpSystem().setHelp(getControl(), IIDEHelpContextIds.PROJECT_REFERENCE_PROPERTY_PAGE); - + Composite composite = new Composite(parent, SWT.NONE); - + initialize(); createDescriptionLabel(composite); listViewer = CheckboxTableViewer.newCheckList(composite, SWT.TOP | SWT.BORDER); - + if(!project.isOpen()) listViewer.getControl().setEnabled(false); @@ -97,9 +97,9 @@ public class ProjectReferencePage extends PropertyPage { }); applyDialogFont(composite); - + GridLayoutFactory.fillDefaults().generateLayout(composite); - + return composite; } diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/RelativePathVariableGroup.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/RelativePathVariableGroup.java index cce82b683df..6e38c7fcd2b 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/RelativePathVariableGroup.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/RelativePathVariableGroup.java @@ -40,15 +40,15 @@ import org.eclipse.ui.internal.ide.IDEWorkbenchMessages; public class RelativePathVariableGroup { private Button variableCheckbox = null; - + private Combo variableCombo = null; - + private Shell shell; - + private IModel content; - + private String label; - + public interface IModel { /** * @return @@ -66,7 +66,7 @@ public class RelativePathVariableGroup { String getVariable(); } /** - * + * */ public RelativePathVariableGroup(IModel content) { this.content = content; @@ -78,7 +78,7 @@ public class RelativePathVariableGroup { } /** - * @param variableGroup + * @param variableGroup * @return the control */ public Control createContents(Composite variableGroup) { @@ -112,7 +112,7 @@ public class RelativePathVariableGroup { setupVariableCheckboxToolTip(); } }); - + variableCombo = new Combo(variableGroup, SWT.DROP_DOWN | SWT.READ_ONLY); gridData = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING); // GridData.FILL_HORIZONTAL); variableCombo.setLayoutData(gridData); @@ -139,7 +139,7 @@ public class RelativePathVariableGroup { } /** - * + * */ public void setupVariableContent() { IPathVariableManager pathVariableManager; @@ -148,7 +148,7 @@ public class RelativePathVariableGroup { else pathVariableManager = ResourcesPlugin.getWorkspace().getPathVariableManager(); String[] variables = pathVariableManager.getPathVariableNames(); - + ArrayList items = new ArrayList(); for (int i = 0; i < variables.length; i++) { if (variables[i].equals("PARENT")) //$NON-NLS-1$ @@ -232,13 +232,13 @@ public class RelativePathVariableGroup { * A priority is given as to variables enclosing the root, as others * only being enclosed by the root. * - * So if there's two variables, being + * So if there's two variables, being * FOO - c:\foo\ * DIR1 - c:\foo\path\bar\dir1 * And the common root is: * c:\foo\path\bar - * FOO will be selected over DIR1, even through the distance between - * the common root and DIR1 is (1), and the distance between the + * FOO will be selected over DIR1, even through the distance between + * the common root and DIR1 is (1), and the distance between the * common root and FOO is (2). This is because selecting DIR1 would * cause the location to be relative to its parent. @@ -264,14 +264,14 @@ public class RelativePathVariableGroup { } } } - + String mostAppropriate = null; String mostAppropriateToParent = null; int mostAppropriateCount = Integer.MAX_VALUE; int mostAppropriateCountToParent = Integer.MAX_VALUE; IPathVariableManager pathVariableManager = target.getPathVariableManager(); String [] variables = pathVariableManager.getPathVariableNames(); - + for (int i = 0; i < variables.length; i++) { if (isPreferred(variables[i])) { URI rawValue = pathVariableManager.getURIValue(variables[i]); @@ -300,7 +300,7 @@ public class RelativePathVariableGroup { } } } - + if (mostAppropriate == null) { if (mostAppropriateToParent == null) return "PROJECT_LOC"; //$NON-NLS-1$ @@ -308,7 +308,7 @@ public class RelativePathVariableGroup { } return mostAppropriate; } - + private static boolean isPreferred(String variableName) { return !(variableName.equals("WORKSPACE_LOC") || //$NON-NLS-1$ variableName.equals("PARENT_LOC") || //$NON-NLS-1$ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/ResourceComparator.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/ResourceComparator.java index 402b1eff990..b2e0e8ba21e 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/ResourceComparator.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/ResourceComparator.java @@ -49,7 +49,7 @@ public class ResourceComparator extends ViewerComparator { /** * Creates a resource sorter that will use the given sort criteria. * - * @param criteria the sort criterion to use: one of <code>NAME</code> or + * @param criteria the sort criterion to use: one of <code>NAME</code> or * <code>TYPE</code> */ public ResourceComparator(int criteria) { @@ -58,7 +58,7 @@ public class ResourceComparator extends ViewerComparator { } /** - * Returns an integer value representing the relative sort priority of the + * Returns an integer value representing the relative sort priority of the * given element based on its class. * <p> * <ul> @@ -81,7 +81,7 @@ public class ResourceComparator extends ViewerComparator { @Override public int compare(Viewer viewer, Object o1, Object o2) { //have to deal with non-resources in navigator - //if one or both objects are not resources, returned a comparison + //if one or both objects are not resources, returned a comparison //based on class. if (!(o1 instanceof IResource && o2 instanceof IResource)) { return compareClass(o1, o2); @@ -110,7 +110,7 @@ public class ResourceComparator extends ViewerComparator { * * @param element1 the first element to be ordered * @param element2 the second element to be ordered - * @return a negative number if the first element is less than the + * @return a negative number if the first element is less than the * second element; the value <code>0</code> if the first element is * equal to the second element; and a positive number if the first * element is greater than the second element @@ -125,7 +125,7 @@ public class ResourceComparator extends ViewerComparator { * * @param resource1 the first resource element to be ordered * @param resource2 the second resource element to be ordered - * @return a negative number if the first element is less than the + * @return a negative number if the first element is less than the * second element; the value <code>0</code> if the first element is * equal to the second element; and a positive number if the first * element is greater than the second element @@ -141,7 +141,7 @@ public class ResourceComparator extends ViewerComparator { * * @param resource1 the first resource element to be ordered * @param resource2 the second resource element to be ordered - * @return a negative number if the first element is less than the + * @return a negative number if the first element is less than the * second element; the value <code>0</code> if the first element is * equal to the second element; and a positive number if the first * element is greater than the second element diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/ResourceFilterEditDialog.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/ResourceFilterEditDialog.java index 5bfcd8dfae2..5f3c459b40e 100755 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/ResourceFilterEditDialog.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/ResourceFilterEditDialog.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: * Serge Beauchamp (Freescale Semiconductor) - initial API and implementation *******************************************************************************/ @@ -32,7 +32,7 @@ public class ResourceFilterEditDialog extends SelectionDialog { /** * Creates a resource filter edit dialog. - * + * * @param parentShell * the parent shell */ @@ -45,7 +45,7 @@ public class ResourceFilterEditDialog extends SelectionDialog { /** * Set the container resource to be edited. - * + * * @param container */ public void setContainer(IContainer container) { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/ResourceFilterGroup.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/ResourceFilterGroup.java index 3e05002c296..10dd3b9c2ac 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/ResourceFilterGroup.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/ResourceFilterGroup.java @@ -209,7 +209,7 @@ public class ResourceFilterGroup { /** * Set the IContainer resource to edit - * + * * @param res * the container resource */ @@ -357,7 +357,7 @@ public class ResourceFilterGroup { static String excludeAllGroup = "EXCLUDE_ALL_GROUP"; //$NON-NLS-1$ class TreeContentProvider implements ITreeContentProvider { - + @Override public Object[] getChildren(Object parentElement) { if (parentElement == filters) { @@ -485,14 +485,14 @@ public class ResourceFilterGroup { } else { filter = (FilterCopy) element; - + if (column.equals(FilterTypeUtil.MODE)) { StyledString styledString = getStyleColumnText(filter); if (!isPartialFilter(filter)) { Object isInheritable = FilterTypeUtil.getValue(filter, FilterTypeUtil.INHERITABLE); if (((Boolean)isInheritable).booleanValue()) styledString.append(" " + IDEWorkbenchMessages.ResourceFilterPage_recursive); //$NON-NLS-1$ - + } cell.setText(styledString.toString()); cell.setStyleRanges(styledString.getStyleRanges()); @@ -508,7 +508,7 @@ public class ResourceFilterGroup { super.update(cell); } - + private StyledString getStyleColumnText(FilterCopy filter) { if ((filter.getChildrenLimit() > 0)) { String whiteSpace = " "; //$NON-NLS-1$; @@ -554,7 +554,7 @@ public class ResourceFilterGroup { return ""; //$NON-NLS-1$ } } - + class CellModifier implements ICellModifier { @Override public boolean canModify(Object element, String property) { @@ -582,7 +582,7 @@ public class ResourceFilterGroup { /** * Creates the widget group. Callers must call <code>dispose</code> when the * group is no longer needed. - * + * * @param parent * the widget parent * @return container of the widgets @@ -624,7 +624,7 @@ public class ResourceFilterGroup { data.horizontalSpan = 2; label.setLayoutData(data); label.setFont(font); - + createViewerGroup(composite); createButtonGroup(composite); @@ -804,7 +804,7 @@ public class ResourceFilterGroup { class AddSubFilterAction extends Action { boolean createGroupOnly; - + public AddSubFilterAction(boolean createGroupOnly) { this.createGroupOnly = createGroupOnly; setText(NLS @@ -845,7 +845,7 @@ public class ResourceFilterGroup { } handleAdd(selectedObject, createGroupOnly); } - + private void handleAdd(Object selection, boolean createGroupOnly) { if (selection == null) { FilterCopy newFilter = new FilterCopy(); @@ -1013,7 +1013,7 @@ public class ResourceFilterGroup { handleAdd(false); } }); - + addGroupButton = new Button(composite, SWT.PUSH); addGroupButton.setText(NLS.bind( IDEWorkbenchMessages.ResourceFilterPage_addGroupButtonLabel, null)); @@ -1026,7 +1026,7 @@ public class ResourceFilterGroup { handleAdd(true); } }); - + editButton = new Button(composite, SWT.PUSH); editButton.setText(NLS.bind( @@ -1221,7 +1221,7 @@ public class ResourceFilterGroup { /** * Apply the read only state and the encoding to the resource. - * + * * @return true if the filters changed */ public boolean performOk() { @@ -1846,8 +1846,8 @@ class FilterCopy extends UIResourceFilterDescription { @Override public FileInfoMatcherDescription getFileInfoMatcherDescription() { - - + + Object arg = FilterCopy.this.getArguments(); if (arg instanceof FilterCopy []) { FilterCopy [] filterCopies = (FilterCopy []) arg; @@ -1856,7 +1856,7 @@ class FilterCopy extends UIResourceFilterDescription { descriptions[i] = filterCopies[i].getFileInfoMatcherDescription(); arg = descriptions; } - + FileInfoMatcherDescription desc = new FileInfoMatcherDescription(getId(), arg); return desc; } @@ -1960,7 +1960,7 @@ class FilterEditDialog extends TrayDialog { createModeArea(font, topComposite); createTargetArea(font, topComposite); - + createIdArea(font, topComposite); } else { @@ -1989,7 +1989,7 @@ class FilterEditDialog extends TrayDialog { Control helpControl = createHelpControl(composite); ((GridData) helpControl.getLayoutData()).horizontalIndent = convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_MARGIN); } - + Control buttonSection = dialogCreateButtonBar(composite); ((GridData) buttonSection.getLayoutData()).grabExcessHorizontalSpace = true; return composite; @@ -2011,7 +2011,7 @@ class FilterEditDialog extends TrayDialog { | GridData.VERTICAL_ALIGN_CENTER); composite.setLayoutData(data); composite.setFont(parent.getFont()); - + // Add the buttons to the button bar. createButtonsForButtonBar(composite); return composite; @@ -2038,7 +2038,7 @@ class FilterEditDialog extends TrayDialog { inherited = new Button(inheritableComposite, SWT.CHECK); String label; label = IDEWorkbenchMessages.ResourceFilterPage_applyRecursivelyToFolderStructure; - + inherited .setText(NLS .bind( @@ -2159,7 +2159,7 @@ class FilterEditDialog extends TrayDialog { FilterTypeUtil.setValue(filter, FilterTypeUtil.ID, idCombo .getItem(idCombo.getSelectionIndex())); } - + ICustomFilterArgumentUI getUI(String descriptorID) { ICustomFilterArgumentUI result = (ICustomFilterArgumentUI) customfilterArgumentMap.get(descriptorID); @@ -2167,7 +2167,7 @@ class FilterEditDialog extends TrayDialog { return result = (ICustomFilterArgumentUI) customfilterArgumentMap.get(new String()); // default ui return result; } - + private void setupPatternLine() { IFilterMatcherDescriptor descriptor; if (createGroupOnly) { @@ -2186,7 +2186,7 @@ class FilterEditDialog extends TrayDialog { } /** - * + * */ private void selectComboItem(String filterID) { IFilterMatcherDescriptor descriptor = ResourcesPlugin.getWorkspace() @@ -2239,7 +2239,7 @@ class FilterEditDialog extends TrayDialog { GridData data; Composite targetComposite = createGroup(font, composite, NLS.bind(IDEWorkbenchMessages.ResourceFilterPage_columnFilterTarget, null), false, true, 1); - + String[] targets = FilterTypeUtil.getTargets(); filesButton = new Button(targetComposite, SWT.RADIO); filesButton.setText(targets[0]); @@ -2387,12 +2387,12 @@ interface ICustomFilterArgumentUI { /** * @return null if there's no issue - * + * */ String validate(); /** - * + * */ void selectionChanged(); @@ -2403,10 +2403,10 @@ interface ICustomFilterArgumentUI { void create(Composite argumentComposite, Font font); /** - * + * */ void dispose(); - + } class MultiMatcherCustomFilterArgumentUI implements ICustomFilterArgumentUI { @@ -2435,7 +2435,7 @@ class MultiMatcherCustomFilterArgumentUI implements ICustomFilterArgumentUI { protected FilterEditDialog dialog; protected Label dummyLabel1; protected Label dummyLabel2; - + /** * @param dialog * @param parentShell @@ -2494,7 +2494,7 @@ class MultiMatcherCustomFilterArgumentUI implements ICustomFilterArgumentUI { GridData data = new GridData(SWT.FILL, SWT.FILL, true, true); argumentComposite.setLayoutData(data); argumentComposite.setFont(font); - + conditionComposite = new Composite(argumentComposite, SWT.NONE); layout = new GridLayout(); layout.numColumns = 2; @@ -2507,7 +2507,7 @@ class MultiMatcherCustomFilterArgumentUI implements ICustomFilterArgumentUI { conditionComposite.setLayoutData(data); createCustomArgumentsArea(font, conditionComposite); - + descriptionComposite = new Composite(argumentComposite, SWT.NONE); layout = new GridLayout(); layout.numColumns = 1; @@ -2518,11 +2518,11 @@ class MultiMatcherCustomFilterArgumentUI implements ICustomFilterArgumentUI { descriptionComposite.setFont(font); data = new GridData(SWT.FILL, SWT.FILL, true, true); descriptionComposite.setLayoutData(data); - + createDescriptionArea(font, descriptionComposite); initializationComplete = true; } - + /** * @param font * @param composite @@ -2574,7 +2574,7 @@ class MultiMatcherCustomFilterArgumentUI implements ICustomFilterArgumentUI { shell.layout(true, true); } } - + private void createCustomArgumentsArea(Font font, Composite composite) { GridData data; @@ -2589,7 +2589,7 @@ class MultiMatcherCustomFilterArgumentUI implements ICustomFilterArgumentUI { multiArgumentComposite.setFont(font); data = new GridData(SWT.FILL, SWT.FILL, true, true); multiArgumentComposite.setLayoutData(data); - + multiKey = new Combo(multiArgumentComposite, SWT.READ_ONLY); multiKey.setItems(getMultiMatcherKeys()); data = new GridData(SWT.LEFT, SWT.TOP, false, false); @@ -2602,7 +2602,7 @@ class MultiMatcherCustomFilterArgumentUI implements ICustomFilterArgumentUI { storeMultiSelection(); } }); - + // calculate max combo width ArrayList allOperators = new ArrayList(); String[] keys = getMultiMatcherKeys(); @@ -2626,7 +2626,7 @@ class MultiMatcherCustomFilterArgumentUI implements ICustomFilterArgumentUI { storeMultiSelection(); } }); - + FileInfoAttributesMatcher.Argument argument = FileInfoAttributesMatcher.decodeArguments((String) filter.getArguments()); String local = MultiMatcherLocalization.getLocalMultiMatcherKey(argument.key); int index = multiKey.indexOf(local); @@ -2634,7 +2634,7 @@ class MultiMatcherCustomFilterArgumentUI implements ICustomFilterArgumentUI { multiKey.select(index); else multiKey.select(0); - + setupMultiOperatorAndField(true); } @@ -2653,9 +2653,9 @@ class MultiMatcherCustomFilterArgumentUI implements ICustomFilterArgumentUI { multiOperator.select(0); } String selectedOperator = MultiMatcherLocalization.getMultiMatcherKey(multiOperator.getText()); - + Class selectedKeyOperatorType = FileInfoAttributesMatcher.getTypeForKey(selectedKey, selectedOperator); - + if (intiantiatedKeyOperatorType != null) { if (arguments != null) { arguments.dispose(); @@ -2703,7 +2703,7 @@ class MultiMatcherCustomFilterArgumentUI implements ICustomFilterArgumentUI { } if (selectedKeyOperatorType.equals(String.class)) { - + arguments = new Text(multiArgumentComposite, SWT.SINGLE | SWT.BORDER); GridData data= new GridData(SWT.FILL, SWT.FILL, true, false); data.widthHint = 150; @@ -2729,7 +2729,7 @@ class MultiMatcherCustomFilterArgumentUI implements ICustomFilterArgumentUI { dummyLabel2.setLayoutData(data); stringArgumentComposite = new Composite(multiArgumentComposite, SWT.NONE); - + GridLayout layout = new GridLayout(); layout.numColumns = 2; layout.marginWidth = 0; @@ -2818,7 +2818,7 @@ class MultiMatcherCustomFilterArgumentUI implements ICustomFilterArgumentUI { else arguments.setText(convertToEditableLength(argument.pattern)); } - + arguments.addModifyListener(new ModifyListener() { @Override public void modifyText(ModifyEvent e) { @@ -2877,7 +2877,7 @@ class MultiMatcherCustomFilterArgumentUI implements ICustomFilterArgumentUI { } } intiantiatedKeyOperatorType = selectedKeyOperatorType; - + if (fContentAssistField != null) fContentAssistField.setEnabled(isUsingRegularExpression); @@ -2954,7 +2954,7 @@ class MultiMatcherCustomFilterArgumentUI implements ICustomFilterArgumentUI { } return Long.toString(value) + lengthPrefixes[lengthPrefixes.length - 1]; } - + // converts "32k" to "32768" private String convertFromEditableLength(String string) throws NumberFormatException { if (string.length() == 0) @@ -2969,16 +2969,16 @@ class MultiMatcherCustomFilterArgumentUI implements ICustomFilterArgumentUI { // seems equivalent to "return string", but it throws an exception if the string doesn't contain a valid number return Long.toString(Long.parseLong(string)); } - + private void storeMultiSelection() { if (intiantiatedKeyOperatorType != null) { String selectedKey = MultiMatcherLocalization.getMultiMatcherKey(multiKey.getText()); String selectedOperator = MultiMatcherLocalization.getMultiMatcherKey(multiOperator.getText()); - + FileInfoAttributesMatcher.Argument argument = new FileInfoAttributesMatcher.Argument(); argument.key = selectedKey; argument.operator = selectedOperator; - + if (intiantiatedKeyOperatorType.equals(Date.class) && argumentsDate != null) { Calendar calendar = Calendar.getInstance(); calendar.set(argumentsDate.getYear(), argumentsDate.getMonth(), argumentsDate.getDay()); @@ -3046,11 +3046,11 @@ class MultiMatcherCustomFilterArgumentUI implements ICustomFilterArgumentUI { if (intiantiatedKeyOperatorType != null) { String selectedKey = MultiMatcherLocalization.getMultiMatcherKey(multiKey.getText()); String selectedOperator = MultiMatcherLocalization.getMultiMatcherKey(multiOperator.getText()); - + FileInfoAttributesMatcher.Argument argument = new FileInfoAttributesMatcher.Argument(); argument.key = selectedKey; argument.operator = selectedOperator; - + if (intiantiatedKeyOperatorType.equals(Date.class) && argumentsDate != null) { } if (intiantiatedKeyOperatorType.equals(String.class) && arguments != null) { @@ -3092,7 +3092,7 @@ class MultiMatcherCustomFilterArgumentUI implements ICustomFilterArgumentUI { } } if (intiantiatedKeyOperatorType.equals(Boolean.class) && argumentsBoolean != null) { - + } } return message; @@ -3107,7 +3107,7 @@ class MultiMatcherCustomFilterArgumentUI implements ICustomFilterArgumentUI { private String formatMultiMatcherArgument(FilterCopy filter) { String argumentString = (String) filter.getArguments(); FileInfoAttributesMatcher.Argument argument = FileInfoAttributesMatcher.decodeArguments(argumentString); - + StringBuffer builder = new StringBuffer(); builder.append(MultiMatcherLocalization.getLocalMultiMatcherKey(argument.key)); builder.append(' '); @@ -3126,7 +3126,7 @@ class MultiMatcherCustomFilterArgumentUI implements ICustomFilterArgumentUI { } if (type.equals(Date.class)) builder.append(DateFormat.getDateInstance().format(new Date(Long.parseLong(argument.pattern)))); - + return builder.toString(); } } @@ -3192,7 +3192,7 @@ class DefaultCustomFilterArgumentUI implements ICustomFilterArgumentUI { fContentAssistField.setEnabled(filter.getId().equals(REGEX_FILTER_ID)); argumentComposite.layout(true); } - + private void createArgumentsArea(Font font, Composite composite) { GridData data; argumentsLabel = addLabel(composite, NLS.bind( @@ -3288,7 +3288,7 @@ class DefaultCustomFilterArgumentUI implements ICustomFilterArgumentUI { } class MultiMatcherLocalization { - + static String[][] multiMatcherKey = { {FileInfoAttributesMatcher.KEY_NAME, IDEWorkbenchMessages.ResourceFilterPage_multiKeyName}, {FileInfoAttributesMatcher.KEY_PROPJECT_RELATIVE_PATH, IDEWorkbenchMessages.ResourceFilterPage_multiKeyProjectRelativePath}, @@ -3308,7 +3308,7 @@ class MultiMatcherLocalization { {Boolean.TRUE.toString(), IDEWorkbenchMessages.ResourceFilterPage_true}, {Boolean.FALSE.toString(), IDEWorkbenchMessages.ResourceFilterPage_false} }; - + static public String getLocalMultiMatcherKey(String key) { for (int i = 0; i < multiMatcherKey.length; i++) { if (multiMatcherKey[i][0].equals(key)) @@ -3316,7 +3316,7 @@ class MultiMatcherLocalization { } return null; } - + static public String getMultiMatcherKey(String local) { for (int i = 0; i < multiMatcherKey.length; i++) { if (multiMatcherKey[i][1].equals(local)) diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/ResourceFilterPage.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/ResourceFilterPage.java index d62736b841f..93086531ad3 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/ResourceFilterPage.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/ResourceFilterPage.java @@ -28,7 +28,7 @@ public class ResourceFilterPage extends PropertyPage { ResourceFilterGroup groupWidget; /** - * + * */ public ResourceFilterPage() { groupWidget = new ResourceFilterGroup(); diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/ResourceInfoPage.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/ResourceInfoPage.java index ba2378d2732..c6555c442a2 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/ResourceInfoPage.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/ResourceInfoPage.java @@ -154,7 +154,7 @@ public class ResourceInfoPage extends PropertyPage { /** * Create the group that shows the name, location, size and type. - * + * * @param parent * the composite the group will be created in * @param resource @@ -163,7 +163,7 @@ public class ResourceInfoPage extends PropertyPage { */ private Composite createBasicInfoGroup(Composite parent, IResource resource) { initializeDialogUnits(parent); - + Composite basicInfoComposite = new Composite(parent, SWT.NULL); GridLayout layout = new GridLayout(); layout.numColumns = 2; @@ -397,13 +397,13 @@ public class ResourceInfoPage extends PropertyPage { // layout the page IResource resource = (IResource) getElement().getAdapter( IResource.class); - + if (resource == null) { Label label = new Label(parent, SWT.NONE); label.setText(IDEWorkbenchMessages.ResourceInfoPage_noResource); return label; } - + if (resource.getType() != IResource.PROJECT) { ResourceAttributes attrs = resource.getResourceAttributes(); if (attrs != null) { @@ -462,7 +462,7 @@ public class ResourceInfoPage extends PropertyPage { lineDelimiterEditor.doLoad(); } } - + Dialog.applyDialogFont(composite); return composite; @@ -572,7 +572,7 @@ public class ResourceInfoPage extends PropertyPage { /** * Return the label for the encoding field editor for the resource. - * + * * @param resource - * the resource to edit. * @return String @@ -588,7 +588,7 @@ public class ResourceInfoPage extends PropertyPage { * Create the isEditable button and it's associated label as a child of * parent using the editableValue of the receiver. The Composite will be the * parent of the button. - * + * * @param composite * the parent of the button */ @@ -604,7 +604,7 @@ public class ResourceInfoPage extends PropertyPage { * Create the isExecutable button and it's associated label as a child of * parent using the editableValue of the receiver. The Composite will be the * parent of the button. - * + * * @param composite * the parent of the button */ @@ -620,7 +620,7 @@ public class ResourceInfoPage extends PropertyPage { * Create the isLocked button and it's associated label as a child of * parent using the editableValue of the receiver. The Composite will be the * parent of the button. - * + * * @param composite * the parent of the button */ @@ -635,7 +635,7 @@ public class ResourceInfoPage extends PropertyPage { * Create the isArchive button and it's associated label as a child of * parent using the editableValue of the receiver. The Composite will be the * parent of the button. - * + * * @param composite * the parent of the button */ @@ -651,7 +651,7 @@ public class ResourceInfoPage extends PropertyPage { * Create the derived button and it's associated label as a child of parent * using the derived of the receiver. The Composite will be the parent of * the button. - * + * * @param composite * the parent of the button * @param resource @@ -670,7 +670,7 @@ public class ResourceInfoPage extends PropertyPage { /** * Create a separator that goes across the entire page - * + * * @param composite * The parent of the seperator */ @@ -685,7 +685,7 @@ public class ResourceInfoPage extends PropertyPage { /** * Create the group that shows the read only state and the timestamp. - * + * * @param parent * the composite the group will be created in * @param resource @@ -859,7 +859,7 @@ public class ResourceInfoPage extends PropertyPage { IResource resource = (IResource) getElement().getAdapter( IResource.class); - + if (resource == null) return; @@ -886,7 +886,7 @@ public class ResourceInfoPage extends PropertyPage { if (this.executableBox != null) { this.executableBox.setSelection(false); } - + // Nothing to update if we never made the box if (this.archiveBox != null) { this.archiveBox.setSelection(true); @@ -1102,7 +1102,7 @@ public class ResourceInfoPage extends PropertyPage { IResource resource = (IResource) getElement().getAdapter( IResource.class); - + if (resource == null) return true; diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/ResourceWorkingSetPage.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/ResourceWorkingSetPage.java index eaace403c65..58229d4168b 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/ResourceWorkingSetPage.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/ResourceWorkingSetPage.java @@ -6,7 +6,7 @@ * http://www.eclipse.org/legal/epl-v10.html * * Contributors: - * IBM Corporation - initial API and implementation + * IBM Corporation - initial API and implementation * Sebastian Davids <sdavids@gmx.de> - Fix for bug 19346 - Dialog font * should be activated and used by other components. *******************************************************************************/ @@ -63,12 +63,12 @@ import org.eclipse.ui.model.WorkbenchContentProvider; import org.eclipse.ui.model.WorkbenchLabelProvider; /** - * A resource working set page allows the user to edit an + * A resource working set page allows the user to edit an * existing working set and create a new working set. * <p> * Working set elements are presented as a simple resource tree. * </p> - * + * * @since 2.0 */ public class ResourceWorkingSetPage extends WizardPage implements @@ -90,7 +90,7 @@ public class ResourceWorkingSetPage extends WizardPage implements */ public ResourceWorkingSetPage() { super( - "resourceWorkingSetPage", //$NON-NLS-1$ + "resourceWorkingSetPage", //$NON-NLS-1$ IDEWorkbenchMessages.ResourceWorkingSetPage_title, IDEInternalWorkbenchImages .getImageDescriptor(IDEInternalWorkbenchImages.IMG_WIZBAN_RESOURCEWORKINGSET_WIZ)); @@ -100,7 +100,7 @@ public class ResourceWorkingSetPage extends WizardPage implements /** * Adds working set elements contained in the given container to the list * of checked resources. - * + * * @param collectedResources list of collected resources * @param container container to collect working set elements for */ @@ -129,13 +129,13 @@ public class ResourceWorkingSetPage extends WizardPage implements /** * Overrides method in WizardPage. - * + * * @see org.eclipse.jface.wizard.WizardPage#createControl(Composite) */ @Override public void createControl(Composite parent) { initializeDialogUnits(parent); - + Composite composite = new Composite(parent, SWT.NULL); composite.setLayout(new GridLayout()); composite.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL)); @@ -220,7 +220,7 @@ public class ResourceWorkingSetPage extends WizardPage implements layout.horizontalSpacing = convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_SPACING); buttonComposite.setLayout(layout); buttonComposite.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL)); - + Button selectAllButton = new Button(buttonComposite, SWT.PUSH); selectAllButton.setText(IDEWorkbenchMessages.ResourceWorkingSetPage_selectAll_label); selectAllButton.setToolTipText(IDEWorkbenchMessages.ResourceWorkingSetPage_selectAll_toolTip); @@ -260,19 +260,19 @@ public class ResourceWorkingSetPage extends WizardPage implements } }); setButtonLayoutData(deselectAllButton); - + initializeCheckedState(); if (workingSet != null) { text.setText(workingSet.getName()); } setPageComplete(false); - + Dialog.applyDialogFont(composite); } /** * Collects all checked resources in the specified container. - * + * * @param checkedResources the output, list of checked resources * @param container the container to collect checked resources in */ @@ -305,7 +305,7 @@ public class ResourceWorkingSetPage extends WizardPage implements /** * Implements IWorkingSetPage. - * + * * @see org.eclipse.ui.dialogs.IWorkingSetPage#finish() */ @Override @@ -327,7 +327,7 @@ public class ResourceWorkingSetPage extends WizardPage implements /** * Implements IWorkingSetPage. - * + * * @see org.eclipse.ui.dialogs.IWorkingSetPage#getSelection() */ @Override @@ -337,7 +337,7 @@ public class ResourceWorkingSetPage extends WizardPage implements /** * Returns the name entered in the working set name field. - * + * * @return the name entered in the working set name field. */ private String getWorkingSetName() { @@ -346,7 +346,7 @@ public class ResourceWorkingSetPage extends WizardPage implements /** * Called when the checked state of a tree item changes. - * + * * @param event the checked state change event. */ private void handleCheckStateChange(final CheckStateChangedEvent event) { @@ -368,8 +368,8 @@ public class ResourceWorkingSetPage extends WizardPage implements /** * Displays an error message when a CoreException occured. - * - * @param exception the CoreException + * + * @param exception the CoreException * @param shell parent shell for the message box * @param title the mesage box title * @param message additional error message @@ -388,7 +388,7 @@ public class ResourceWorkingSetPage extends WizardPage implements } /** - * Sets the checked state of tree items based on the initial + * Sets the checked state of tree items based on the initial * working set, if any. */ private void initializeCheckedState() { @@ -456,7 +456,7 @@ public class ResourceWorkingSetPage extends WizardPage implements /** * Implements IWorkingSetPage. - * + * * @see org.eclipse.ui.dialogs.IWorkingSetPage#setSelection(IWorkingSet) */ @Override @@ -474,11 +474,11 @@ public class ResourceWorkingSetPage extends WizardPage implements /** * Sets the checked state of the container's members. - * + * * @param container the container whose children should be checked/unchecked - * @param state true=check all members in the container. false=uncheck all + * @param state true=check all members in the container. false=uncheck all * members in the container. - * @param checkExpandedState true=recurse into sub-containers and set the + * @param checkExpandedState true=recurse into sub-containers and set the * checked state. false=only set checked state of members of this container */ private void setSubtreeChecked(IContainer container, boolean state, @@ -509,7 +509,7 @@ public class ResourceWorkingSetPage extends WizardPage implements } else { tree.setGrayChecked(element, false); } - // unchecked state only needs to be set when the container is + // unchecked state only needs to be set when the container is // checked or grayed if (element instanceof IContainer && (state || elementGrayChecked)) { setSubtreeChecked((IContainer) element, state, true); @@ -518,10 +518,10 @@ public class ResourceWorkingSetPage extends WizardPage implements } /** - * Check and gray the resource parent if all resources of the + * Check and gray the resource parent if all resources of the * parent are checked. - * - * @param child the resource whose parent checked state should + * + * @param child the resource whose parent checked state should * be set. */ private void updateParentState(IResource child) { @@ -552,7 +552,7 @@ public class ResourceWorkingSetPage extends WizardPage implements } /** - * Validates the working set name and the checked state of the + * Validates the working set name and the checked state of the * resource tree. */ private void validateInput() { @@ -561,7 +561,7 @@ public class ResourceWorkingSetPage extends WizardPage implements String newText = text.getText(); if (newText.equals(newText.trim()) == false) { - errorMessage = IDEWorkbenchMessages.ResourceWorkingSetPage_warning_nameWhitespace; + errorMessage = IDEWorkbenchMessages.ResourceWorkingSetPage_warning_nameWhitespace; } else if (firstCheck) { firstCheck = false; return; diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/WelcomeEditor.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/WelcomeEditor.java index cf7575d47ff..47d0523130b 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/WelcomeEditor.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/WelcomeEditor.java @@ -83,7 +83,7 @@ public class WelcomeEditor extends EditorPart { private final static int VERT_SCROLL_INCREMENT = 20; - // width at which wrapping will stop and a horizontal scroll bar will be + // width at which wrapping will stop and a horizontal scroll bar will be // introduced private final static int WRAP_MIN_WIDTH = 150; @@ -139,7 +139,7 @@ public class WelcomeEditor extends EditorPart { } /** - * Finds the next text + * Finds the next text */ private StyledText nextText(StyledText text) { int index = 0; @@ -158,7 +158,7 @@ public class WelcomeEditor extends EditorPart { } /** - * Finds the previous text + * Finds the previous text */ private StyledText previousText(StyledText text) { int index = 0; @@ -184,7 +184,7 @@ public class WelcomeEditor extends EditorPart { } /** - * Returns the copy action. + * Returns the copy action. */ protected WelcomeEditorCopyAction getCopyAction() { return copyAction; @@ -441,7 +441,7 @@ public class WelcomeEditor extends EditorPart { return; } - // When page down is pressed, move the cursor to the next item in the + // When page down is pressed, move the cursor to the next item in the // welcome page. Note that this operation wraps (pages to the top item // when the last item is reached). if (event.keyCode == SWT.PAGE_DOWN) { @@ -449,7 +449,7 @@ public class WelcomeEditor extends EditorPart { return; } - // When page up is pressed, move the cursor to the previous item in the + // When page up is pressed, move the cursor to the previous item in the // welcome page. Note that this operation wraps (pages to the bottom item // when the first item is reached). if (event.keyCode == SWT.PAGE_UP) { @@ -485,7 +485,7 @@ public class WelcomeEditor extends EditorPart { styledText.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { - // enable/disable copy action + // enable/disable copy action StyledText text = (StyledText) e.widget; copyAction.setEnabled(text.isTextSelected()); } @@ -645,7 +645,7 @@ public class WelcomeEditor extends EditorPart { Point p = text.computeSize(extent, SWT.DEFAULT, false); ((GridData) text.getLayoutData()).widthHint = p.x; } - // reset the scrolled composite height since the height of the + // reset the scrolled composite height since the height of the // styled text widgets have changed Point p = infoArea.computeSize(SWT.DEFAULT, SWT.DEFAULT, true); @@ -828,7 +828,7 @@ public class WelcomeEditor extends EditorPart { } /** - * The <code>WorkbenchPart</code> implementation of this + * The <code>WorkbenchPart</code> implementation of this * <code>IWorkbenchPart</code> method disposes the title image * loaded by <code>setInitializationData</code>. Subclasses may extend. */ @@ -872,7 +872,7 @@ public class WelcomeEditor extends EditorPart { */ @Override public void doSaveAs() { - // do nothing + // do nothing } /** @@ -968,7 +968,7 @@ public class WelcomeEditor extends EditorPart { /** * Read the contents of the welcome page - * + * * @param is the <code>InputStream</code> to parse * @throws IOException if there is a problem parsing the stream. */ @@ -991,7 +991,7 @@ public class WelcomeEditor extends EditorPart { .getWelcomePageURL(); if (url == null) { - // should not happen + // should not happen return; } diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/WelcomeEditorActionContributor.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/WelcomeEditorActionContributor.java index aac66f98745..877038aaaa7 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/WelcomeEditorActionContributor.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/WelcomeEditorActionContributor.java @@ -17,13 +17,13 @@ import org.eclipse.ui.actions.ActionFactory; import org.eclipse.ui.part.EditorActionBarContributor; /** - * Manages the installation and deinstallation of global actions for + * Manages the installation and deinstallation of global actions for * the welcome editor. */ public class WelcomeEditorActionContributor extends EditorActionBarContributor { /** - * The <code>WelcomeEditorActionContributor</code> implementation of this - * <code>IEditorActionBarContributor</code> method installs the global + * The <code>WelcomeEditorActionContributor</code> implementation of this + * <code>IEditorActionBarContributor</code> method installs the global * action handler for the given editor. */ @Override diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/WelcomeEditorInputFactory.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/WelcomeEditorInputFactory.java index 2c503ff0e3a..9a52a30b474 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/WelcomeEditorInputFactory.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/WelcomeEditorInputFactory.java @@ -27,8 +27,8 @@ public class WelcomeEditorInputFactory implements IElementFactory { } /** - * Re-creates and returns an object from the state captured within the given - * memento. + * Re-creates and returns an object from the state captured within the given + * memento. * <p> * Under normal circumstances, the resulting object can be expected to be * persistable; that is, diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/WelcomeParser.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/WelcomeParser.java index d1f0818c296..0085e52d1e1 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/WelcomeParser.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/WelcomeParser.java @@ -35,27 +35,27 @@ import org.xml.sax.helpers.DefaultHandler; * A parser for the the welcome page */ public class WelcomeParser extends DefaultHandler { - private static final String TAG_WELCOME_PAGE = "welcomePage"; //$NON-NLS-1$ + private static final String TAG_WELCOME_PAGE = "welcomePage"; //$NON-NLS-1$ - private static final String TAG_INTRO = "intro"; //$NON-NLS-1$ + private static final String TAG_INTRO = "intro"; //$NON-NLS-1$ - private static final String TAG_ITEM = "item"; //$NON-NLS-1$ + private static final String TAG_ITEM = "item"; //$NON-NLS-1$ - private static final String TAG_BOLD = "b"; //$NON-NLS-1$ + private static final String TAG_BOLD = "b"; //$NON-NLS-1$ - private static final String TAG_ACTION = "action"; //$NON-NLS-1$ + private static final String TAG_ACTION = "action"; //$NON-NLS-1$ - private static final String TAG_PARAGRAPH = "p"; //$NON-NLS-1$ + private static final String TAG_PARAGRAPH = "p"; //$NON-NLS-1$ - private static final String TAG_TOPIC = "topic"; //$NON-NLS-1$ + private static final String TAG_TOPIC = "topic"; //$NON-NLS-1$ - private static final String ATT_TITLE = "title"; //$NON-NLS-1$ + private static final String ATT_TITLE = "title"; //$NON-NLS-1$ - private static final String ATT_FORMAT = "format"; //$NON-NLS-1$ + private static final String ATT_FORMAT = "format"; //$NON-NLS-1$ - private static final String ATT_PLUGIN_ID = "pluginId"; //$NON-NLS-1$ + private static final String ATT_PLUGIN_ID = "pluginId"; //$NON-NLS-1$ - private static final String ATT_CLASS = "class"; //$NON-NLS-1$ + private static final String ATT_CLASS = "class"; //$NON-NLS-1$ private static final String ATT_ID = "id"; //$NON-NLS-1$ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/filesystem/FileSystemConfiguration.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/filesystem/FileSystemConfiguration.java index 57d615001c5..fad976b4e08 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/filesystem/FileSystemConfiguration.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/filesystem/FileSystemConfiguration.java @@ -16,9 +16,9 @@ import org.eclipse.ui.ide.fileSystem.FileSystemContributor; /** * FileSystemContribution is the representation of the configuration element * defined by - * + * * @since 3.2 - * + * */ public class FileSystemConfiguration { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/filesystem/FileSystemMessages.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/filesystem/FileSystemMessages.java index 33ece12bd6a..f4705b1b448 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/filesystem/FileSystemMessages.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/filesystem/FileSystemMessages.java @@ -14,12 +14,12 @@ package org.eclipse.ui.internal.ide.filesystem; import org.eclipse.osgi.util.NLS; /** - * FileSystemMessages is the class that handles the messages for the + * FileSystemMessages is the class that handles the messages for the * filesystem support. * */ public class FileSystemMessages extends NLS{ - + private static final String BUNDLE_NAME= "org.eclipse.ui.internal.ide.filesystem.messages"; //$NON-NLS-1$ static { @@ -32,7 +32,7 @@ public class FileSystemMessages extends NLS{ * The name of the default file system. */ public static String DefaultFileSystem_name; - + /** * The label for file system selection. */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/filesystem/FileSystemStructureProvider.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/filesystem/FileSystemStructureProvider.java index 978b764445c..2452cc91048 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/filesystem/FileSystemStructureProvider.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/filesystem/FileSystemStructureProvider.java @@ -26,7 +26,7 @@ import org.eclipse.ui.wizards.datatransfer.IImportStructureProvider; /** * This class provides information regarding the structure and * content of specified file system File objects. - * + * * class copied from org.eclipse.ui.wizards.datatransfer.FileSystemStructureProvider as its singleton */ public class FileSystemStructureProvider implements IImportStructureProvider { @@ -46,7 +46,7 @@ public class FileSystemStructureProvider implements IImportStructureProvider { continue; result.add(file); } - + return result; } @@ -55,7 +55,7 @@ public class FileSystemStructureProvider implements IImportStructureProvider { visitedDirs = new HashSet(); } } - + private boolean isRecursiveLink(File childFile) { if (childFile.isDirectory()) { @@ -101,7 +101,7 @@ public class FileSystemStructureProvider implements IImportStructureProvider { public boolean isFolder(Object element) { return ((File) element).isDirectory(); } - + /** * Clears the visited dir information */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/filesystem/FileSystemSupportRegistry.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/filesystem/FileSystemSupportRegistry.java index bfb3213b973..6a9be075089 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/filesystem/FileSystemSupportRegistry.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/filesystem/FileSystemSupportRegistry.java @@ -39,7 +39,7 @@ import org.eclipse.ui.internal.ide.dialogs.IDEResourceInfoUtils; /** * @since 3.2 - * + * */ public class FileSystemSupportRegistry implements IExtensionChangeHandler { @@ -55,7 +55,7 @@ public class FileSystemSupportRegistry implements IExtensionChangeHandler { /** * Get the instance of the registry. - * + * * @return MarkerSupportRegistry */ public static FileSystemSupportRegistry getInstance() { @@ -136,7 +136,7 @@ public class FileSystemSupportRegistry implements IExtensionChangeHandler { /** * Process the extension and register the result with the tracker. - * + * * @param tracker * @param extension */ @@ -155,7 +155,7 @@ public class FileSystemSupportRegistry implements IExtensionChangeHandler { /** * Return a new FileSystemContribution. - * + * * @param element * @return FileSystemContribution or <code>null</code> if there is an * exception. @@ -198,7 +198,7 @@ public class FileSystemSupportRegistry implements IExtensionChangeHandler { /** * Return the FileSystemConfiguration defined in the receiver. - * + * * @return FileSystemConfiguration[] */ public FileSystemConfiguration[] getConfigurations() { @@ -220,7 +220,7 @@ public class FileSystemSupportRegistry implements IExtensionChangeHandler { /** * Return the default file system configuration (the local file system * extension in the ide plug-in). - * + * * @return FileSystemConfiguration */ public FileSystemConfiguration getDefaultConfiguration() { @@ -229,7 +229,7 @@ public class FileSystemSupportRegistry implements IExtensionChangeHandler { /** * Return whether or not there is only one file system registered. - * + * * @return <code>true</code> if there is only one file system. */ public boolean hasOneFileSystem() { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/handlers/BuildAllProjectsHandler.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/handlers/BuildAllProjectsHandler.java index 35221fa822e..98c86ddee7a 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/handlers/BuildAllProjectsHandler.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/handlers/BuildAllProjectsHandler.java @@ -24,13 +24,13 @@ import org.eclipse.ui.internal.ide.actions.BuildUtilities; /** * Default handler for 'Build All' command. - * + * * @since 3.6 */ public class BuildAllProjectsHandler extends AbstractHandler { - + /** - * @throws ExecutionException + * @throws ExecutionException */ @Override public Object execute(ExecutionEvent event) throws ExecutionException { @@ -47,7 +47,7 @@ public class BuildAllProjectsHandler extends AbstractHandler { } return null; } - + /* * @see org.eclipse.core.commands.AbstractHandler#setEnabled(java.lang.Object) */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/handlers/BuildProjectHandler.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/handlers/BuildProjectHandler.java index 2d5c8c7d1fd..ce1161ca164 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/handlers/BuildProjectHandler.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/handlers/BuildProjectHandler.java @@ -30,9 +30,9 @@ import org.eclipse.ui.part.FileEditorInput; /** * Default Handler for 'Build Project' command - * + * * @since 4.3 - * + * */ public class BuildProjectHandler extends AbstractHandler { @@ -80,7 +80,7 @@ public class BuildProjectHandler extends AbstractHandler { return new BuildAction(window, IncrementalProjectBuilder.INCREMENTAL_BUILD); } - + @Override public void setEnabled(Object evaluationContext) { boolean enabled = false; @@ -94,5 +94,5 @@ public class BuildProjectHandler extends AbstractHandler { } setBaseEnabled(enabled); } - + } diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/handlers/OpenResourceHandler.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/handlers/OpenResourceHandler.java index 6bb2188631a..d2edc91d34a 100755 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/handlers/OpenResourceHandler.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/handlers/OpenResourceHandler.java @@ -46,7 +46,7 @@ import org.eclipse.ui.internal.ide.dialogs.OpenResourceDialog; /** * Implements the open resource action. Opens a dialog prompting for a file and * opens the selected file in an editor. - * + * * @since 2.1 */ public final class OpenResourceHandler extends Action implements IHandler, @@ -146,7 +146,7 @@ public final class OpenResourceHandler extends Action implements IHandler, /** * Query the user for the resources that should be opened - * + * * @return the resource that should be opened. */ private final Object[] queryFileResource() { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/handlers/ShowInSystemExplorerHandler.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/handlers/ShowInSystemExplorerHandler.java index eaaf7103eea..352b129885f 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/handlers/ShowInSystemExplorerHandler.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/handlers/ShowInSystemExplorerHandler.java @@ -116,7 +116,7 @@ public class ShowInSystemExplorerHandler extends AbstractHandler { } return resource; } - + private IResource getSelectionResource(ExecutionEvent event) { ISelection selection = HandlerUtil.getCurrentSelection(event); if ((selection == null) || (selection.isEmpty()) @@ -145,7 +145,7 @@ public class ShowInSystemExplorerHandler extends AbstractHandler { /** * Prepare command for launching system explorer to show a path - * + * * @param path * the path to show * @return the command that shows the path @@ -153,7 +153,7 @@ public class ShowInSystemExplorerHandler extends AbstractHandler { private String formShowInSytemExplorerCommand(File path) throws IOException { String command = IDEWorkbenchPlugin.getDefault().getPreferenceStore() .getString(IDEInternalPreferences.WORKBENCH_SYSTEM_EXPLORER); - + command = Util.replaceAll(command, VARIABLE_RESOURCE, quotePath(path.getCanonicalPath())); command = Util.replaceAll(command, VARIABLE_RESOURCE_URI, path.getCanonicalFile().toURI().toString()); File parent = path.getParentFile(); @@ -175,7 +175,7 @@ public class ShowInSystemExplorerHandler extends AbstractHandler { /** * Returns the path used for a resource when showing it in the system * explorer - * + * * @see File#getCanonicalPath() * @param resource * the {@link IResource} object to be used @@ -193,12 +193,12 @@ public class ShowInSystemExplorerHandler extends AbstractHandler { /** * The default command for launching the system explorer on this platform. - * + * * @return The default command which launches the system explorer on this system, or an empty * string if no default exists */ public static String getDefaultCommand() { - // See https://bugs.eclipse.org/419940 why it is implemented in IDEPreferenceInitializer + // See https://bugs.eclipse.org/419940 why it is implemented in IDEPreferenceInitializer return IDEPreferenceInitializer.getShowInSystemExplorerCommand(); } } diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/handlers/ShowResourceByPathHandler.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/handlers/ShowResourceByPathHandler.java index af82b8b3a41..c5460b9cb6d 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/handlers/ShowResourceByPathHandler.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/handlers/ShowResourceByPathHandler.java @@ -28,7 +28,7 @@ import org.eclipse.ui.part.ISetSelectionTarget; /** * A command handler to show a resource in the Navigator view given the resource * path. - * + * * @since 3.2 */ public class ShowResourceByPathHandler extends AbstractHandler { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/misc/CheckboxTreeAndListGroup.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/misc/CheckboxTreeAndListGroup.java index 91535dfa774..53cf241880e 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/misc/CheckboxTreeAndListGroup.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/misc/CheckboxTreeAndListGroup.java @@ -434,13 +434,13 @@ public class CheckboxTreeAndListGroup extends EventManager implements /** * Set the initial checked state of the passed list element to true. - * - * @param element the element in the list to select + * + * @param element the element in the list to select */ public void initialCheckListItem(Object element) { Object parent = treeContentProvider.getParent(element); currentTreeSelection = parent; - //As this is not done from the UI then set the box for updating from the selection to false + //As this is not done from the UI then set the box for updating from the selection to false listItemChecked(element, true, false); updateHierarchy(parent); } @@ -448,7 +448,7 @@ public class CheckboxTreeAndListGroup extends EventManager implements /** * Set the initial checked state of the passed element to true, * as well as to all of its children and associated list elements - * + * * @param element the element in the tree to select */ public void initialCheckTreeItem(Object element) { @@ -568,7 +568,7 @@ public class CheckboxTreeAndListGroup extends EventManager implements /** * Select or deselect all of the elements in the tree depending on the value of the selection * boolean. Be sure to update the displayed files as well. - * + * * @param selection boolean indicating whether or not to select all elements */ public void setAllSelections(final boolean selection) { @@ -608,7 +608,7 @@ public class CheckboxTreeAndListGroup extends EventManager implements /** * Set the root of the widget to be new Root. Regenerate all of the tables and lists from this * value. - * @param newRoot + * @param newRoot */ public void setRoot(Object newRoot) { this.root = newRoot; @@ -723,7 +723,7 @@ public class CheckboxTreeAndListGroup extends EventManager implements return; } - // now update upwards in the tree hierarchy + // now update upwards in the tree hierarchy if (state) { grayCheckHierarchy(parent); } else { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/misc/ContainerContentProvider.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/misc/ContainerContentProvider.java index fb8228778eb..8b5a84f7cfb 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/misc/ContainerContentProvider.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/misc/ContainerContentProvider.java @@ -116,9 +116,9 @@ public class ContainerContentProvider implements ITreeContentProvider { } /** - * Specify whether or not to show closed projects in the tree + * Specify whether or not to show closed projects in the tree * viewer. Default is to show closed projects. - * + * * @param show boolean if false, do not show closed projects in the tree */ public void showClosedProjects(boolean show) { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/misc/ContainerSelectionGroup.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/misc/ContainerSelectionGroup.java index 6b6e10ed26c..c91ab14bde6 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/misc/ContainerSelectionGroup.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/misc/ContainerSelectionGroup.java @@ -7,7 +7,7 @@ * * Contributors: * IBM Corporation - initial API and implementation - * Igor Fedorenko <igorfie@yahoo.com> - + * Igor Fedorenko <igorfie@yahoo.com> - * Fix for Bug 136921 [IDE] New File dialog locks for 20 seconds *******************************************************************************/ package org.eclipse.ui.internal.ide.misc; @@ -77,7 +77,7 @@ public class ContainerSelectionGroup extends Composite { /** * Creates a new instance of the widget. - * + * * @param parent * The parent widget of the group. * @param listener @@ -94,7 +94,7 @@ public class ContainerSelectionGroup extends Composite { /** * Creates a new instance of the widget. - * + * * @param parent * The parent widget of the group. * @param listener @@ -113,7 +113,7 @@ public class ContainerSelectionGroup extends Composite { /** * Creates a new instance of the widget. - * + * * @param parent * The parent widget of the group. * @param listener @@ -137,7 +137,7 @@ public class ContainerSelectionGroup extends Composite { /** * Creates a new instance of the widget. - * + * * @param parent * The parent widget of the group. * @param listener @@ -174,7 +174,7 @@ public class ContainerSelectionGroup extends Composite { /** * The container selection has changed in the tree view. Update the * container name field value and notify all listeners. - * + * * @param container * The container that changed */ @@ -203,7 +203,7 @@ public class ContainerSelectionGroup extends Composite { /** * Creates the contents of the composite. - * + * * @param message */ public void createContents(String message) { @@ -213,7 +213,7 @@ public class ContainerSelectionGroup extends Composite { /** * Creates the contents of the composite. - * + * * @param message * @param heightHint * @param widthHint @@ -247,7 +247,7 @@ public class ContainerSelectionGroup extends Composite { /** * Returns a new drill down viewer for this dialog. - * + * * @param heightHint * height hint for the drill down composite */ @@ -305,7 +305,7 @@ public class ContainerSelectionGroup extends Composite { * Returns the currently entered container name. Null if the field is empty. * Note that the container may not exist yet if the user entered a new * container name in the field. - * + * * @return IPath */ public IPath getContainerFullPath() { @@ -338,7 +338,7 @@ public class ContainerSelectionGroup extends Composite { /** * Sets the selected existing container. - * + * * @param container */ public void setSelectedContainer(IContainer container) { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/misc/DisjointSet.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/misc/DisjointSet.java index dbc6016d091..33fbca862c9 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/misc/DisjointSet.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/misc/DisjointSet.java @@ -15,7 +15,7 @@ import java.util.Iterator; import java.util.List; /** - * A disjoint set is a generic data structure that represents a collection of + * A disjoint set is a generic data structure that represents a collection of * sets that are assumed to be disjoint (no object exists in more than * one set). * <p> @@ -105,7 +105,7 @@ public class DisjointSet { } /** - * Unions the set represented by token x with the set represented by + * Unions the set represented by token x with the set represented by * token y. Has no effect if either x or y is not in the disjoint set, or * if they already belong to the same set. * @param x The first set to union diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/misc/FileInfoAttributesMatcher.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/misc/FileInfoAttributesMatcher.java index d3512bdb0d2..c8c02b977c1 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/misc/FileInfoAttributesMatcher.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/misc/FileInfoAttributesMatcher.java @@ -58,7 +58,7 @@ public class FileInfoAttributesMatcher extends AbstractFileInfoMatcher { public static String OPERATOR_AFTER = "after"; //$NON-NLS-1$ public static String OPERATOR_WITHIN = "within"; //$NON-NLS-1$ public static String OPERATOR_MATCHES = "matches"; //$NON-NLS-1$ - + /** * @param key @@ -73,10 +73,10 @@ public class FileInfoAttributesMatcher extends AbstractFileInfoMatcher { return new String[] {OPERATOR_EQUALS, OPERATOR_BEFORE, OPERATOR_AFTER, OPERATOR_WITHIN}; if (key.equals(KEY_LENGTH)) return new String[] {OPERATOR_EQUALS, OPERATOR_LARGER_THAN, OPERATOR_SMALLER_THAN}; - + return new String[] {OPERATOR_NONE}; } - + /** * @param key * @param operator @@ -96,7 +96,7 @@ public class FileInfoAttributesMatcher extends AbstractFileInfoMatcher { return Integer.class; return String.class; } - + /** * @return */ @@ -117,7 +117,7 @@ public class FileInfoAttributesMatcher extends AbstractFileInfoMatcher { } return false; } - + /** * @since 3.6 * @@ -126,22 +126,22 @@ public class FileInfoAttributesMatcher extends AbstractFileInfoMatcher { public String key = KEY_NAME; public String pattern = new String(); public String operator = OPERATOR_EQUALS; - public boolean caseSensitive = false; + public boolean caseSensitive = false; public boolean regularExpression = false; } - + /** * @param argument * @return */ public static String encodeArguments(Argument argument) { - return VERSION_IMPLEMENTATION + DELIMITER + - argument.key + DELIMITER + - argument.operator + DELIMITER + - Boolean.toString(argument.caseSensitive) + DELIMITER + - Boolean.toString(argument.regularExpression) + DELIMITER + + return VERSION_IMPLEMENTATION + DELIMITER + + argument.key + DELIMITER + + argument.operator + DELIMITER + + Boolean.toString(argument.caseSensitive) + DELIMITER + + Boolean.toString(argument.regularExpression) + DELIMITER + argument.pattern; - + } /** @@ -152,17 +152,17 @@ public class FileInfoAttributesMatcher extends AbstractFileInfoMatcher { Argument result = new Argument(); if (argument == null) return result; - + int index = argument.indexOf(DELIMITER); if (index == -1) return result; - + String version = argument.substring(0, index); argument = argument.substring(index + 1); - + if (!version.equals(VERSION_IMPLEMENTATION)) return result; - + index = argument.indexOf(DELIMITER); if (index == -1) return result; @@ -183,7 +183,7 @@ public class FileInfoAttributesMatcher extends AbstractFileInfoMatcher { result.caseSensitive = Boolean.valueOf(argument.substring(0, index)).booleanValue(); argument = argument.substring(index + 1); - + index = argument.indexOf(DELIMITER); if (index == -1) return result; @@ -213,27 +213,27 @@ public class FileInfoAttributesMatcher extends AbstractFileInfoMatcher { Class fileSystems = Class.forName("java.nio.file.FileSystems"); //$NON-NLS-1$ Method getDefault = fileSystems.getMethod("getDefault"); //$NON-NLS-1$ Object fs = getDefault.invoke(null); - + Class fileRef = Class.forName("java.nio.file.FileRef"); //$NON-NLS-1$ Class fileSystem = Class.forName("java.nio.file.FileSystem"); //$NON-NLS-1$ Method getPath = fileSystem.getMethod("getPath", new Class[] {String.class}); //$NON-NLS-1$ Object fileRefObj = getPath.invoke(fs, new Object[] {fullPath}); - + Class attributes = Class.forName("java.nio.file.attribute.Attributes"); //$NON-NLS-1$ Class linkOptions = Class.forName("java.nio.file.LinkOption"); //$NON-NLS-1$ Object linkOptionsEmptyArray = Array.newInstance(linkOptions, 0); Method readBasicFileAttributes = attributes.getMethod("readBasicFileAttributes", new Class[] {fileRef, linkOptionsEmptyArray.getClass()}); //$NON-NLS-1$ Object attributesObj = readBasicFileAttributes.invoke(null, new Object[] {fileRefObj, linkOptionsEmptyArray}); - + Class basicAttributes = Class.forName("java.nio.file.attribute.BasicFileAttributes"); //$NON-NLS-1$ Method creationTime = basicAttributes.getMethod("creationTime"); //$NON-NLS-1$ Object time = creationTime.invoke(attributesObj); - + Class fileTime = Class.forName("java.nio.file.attribute.FileTime"); //$NON-NLS-1$ Method toMillis = fileTime.getMethod("toMillis"); //$NON-NLS-1$ Object result = toMillis.invoke(time); - + if (result instanceof Long) return ((Long) result).longValue(); } catch (ClassNotFoundException e) { @@ -248,10 +248,10 @@ public class FileInfoAttributesMatcher extends AbstractFileInfoMatcher { e.printStackTrace(); } catch (NoSuchMethodException e) { e.printStackTrace(); - } + } return 0; } - + MatcherCache matcher = null; private boolean fSupportsCreatedKey; @@ -266,7 +266,7 @@ public class FileInfoAttributesMatcher extends AbstractFileInfoMatcher { regExPattern = Pattern.compile(argument.pattern, argument.caseSensitive ? 0:Pattern.CASE_INSENSITIVE); } } - + Argument argument; Class type; @@ -282,7 +282,7 @@ public class FileInfoAttributesMatcher extends AbstractFileInfoMatcher { value = parent.getProjectRelativePath().append(fileInfo.getName()).toPortableString(); if (argument.key.equals(KEY_LOCATION)) value = parent.getLocation().append(fileInfo.getName()).toOSString(); - + if (stringMatcher != null) return stringMatcher.match(value); if (regExPattern != null) { @@ -347,7 +347,7 @@ public class FileInfoAttributesMatcher extends AbstractFileInfoMatcher { Date when = new Date(parameter); Date then = new Date(time); if (argument.operator.equals(OPERATOR_EQUALS)) - return roundToOneDay(time) == roundToOneDay(parameter); + return roundToOneDay(time) == roundToOneDay(parameter); if (argument.operator.equals(OPERATOR_BEFORE)) return then.before(when); if (argument.operator.equals(OPERATOR_AFTER)) @@ -373,7 +373,7 @@ public class FileInfoAttributesMatcher extends AbstractFileInfoMatcher { } private long roundToOneDay(long parameter) { - return parameter / (1000 * 60 * 60 * 24); // 1000 ms in 1 sec, 60 sec in 1 min, 60 min in 1 hour, 24 hours in 1 day + return parameter / (1000 * 60 * 60 * 24); // 1000 ms in 1 sec, 60 sec in 1 min, 60 min in 1 hour, 24 hours in 1 day } private IFileInfo fetchInfo(IContainer parent, IFileInfo fileInfo) { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/misc/ResourceAndContainerGroup.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/misc/ResourceAndContainerGroup.java index f50f6554b82..d420bbc1342 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/misc/ResourceAndContainerGroup.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/misc/ResourceAndContainerGroup.java @@ -43,7 +43,7 @@ import org.eclipse.ui.internal.ide.IDEWorkbenchMessages; */ public class ResourceAndContainerGroup implements Listener { // problem identifiers - + /** * Constant for no problem. */ @@ -78,7 +78,7 @@ public class ResourceAndContainerGroup implements Listener { */ public static final int PROBLEM_NAME_INVALID = 7; - + /** * Constant for path already occupied. */ @@ -108,7 +108,7 @@ public class ResourceAndContainerGroup implements Listener { /** * The resource extension for the resource name field. - * + * * @see ResourceAndContainerGroup#setResourceExtension(String) * @since 3.3 */ @@ -120,7 +120,7 @@ public class ResourceAndContainerGroup implements Listener { /** * Create an instance of the group to allow the user to enter/select a * container and specify a resource name. - * + * * @param parent * composite widget to parent the group * @param client @@ -139,7 +139,7 @@ public class ResourceAndContainerGroup implements Listener { /** * Create an instance of the group to allow the user to enter/select a * container and specify a resource name. - * + * * @param parent * composite widget to parent the group * @param client @@ -162,7 +162,7 @@ public class ResourceAndContainerGroup implements Listener { /** * Create an instance of the group to allow the user to enter/select a * container and specify a resource name. - * + * * @param parent * composite widget to parent the group * @param client @@ -190,7 +190,7 @@ public class ResourceAndContainerGroup implements Listener { /** * Returns a boolean indicating whether all controls in this group contain * valid values. - * + * * @return boolean */ public boolean areAllValuesValid() { @@ -199,7 +199,7 @@ public class ResourceAndContainerGroup implements Listener { /** * Creates this object's visual components. - * + * * @param parent * org.eclipse.swt.widgets.Composite * @param heightHint @@ -264,7 +264,7 @@ public class ResourceAndContainerGroup implements Listener { * Returns the path of the currently selected container or null if no * container has been selected. Note that the container may not exist yet if * the user entered a new container name in the field. - * + * * @return The path of the container, or <code>null</code> */ public IPath getContainerFullPath() { @@ -275,7 +275,7 @@ public class ResourceAndContainerGroup implements Listener { * Returns an error message indicating the current problem with the value of * a control in the group, or an empty message if all controls in the group * contain valid values. - * + * * @return java.lang.String */ public String getProblemMessage() { @@ -284,7 +284,7 @@ public class ResourceAndContainerGroup implements Listener { /** * Returns the type of problem with the value of a control in the group. - * + * * @return one of the PROBLEM_* constants */ public int getProblemType() { @@ -297,9 +297,9 @@ public class ResourceAndContainerGroup implements Listener { * <br> * The name will include the resource extension if the preconditions are * met. - * + * * @see ResourceAndContainerGroup#setResourceExtension(String) - * + * * @return The resource name * @since 3.3 */ @@ -313,7 +313,7 @@ public class ResourceAndContainerGroup implements Listener { /** * Returns the resource extension. - * + * * @return The resource extension or <code>null</code>. * @see ResourceAndContainerGroup#setResourceExtension(String) * @since 3.3 @@ -326,7 +326,7 @@ public class ResourceAndContainerGroup implements Listener { * Determines whether the resource extension should be added to the resource * name field. <br> * <br> - * + * * @see ResourceAndContainerGroup#setResourceExtension(String) * @return <code>true</code> if the preconditions are met; otherwise, * <code>false</code>. @@ -346,7 +346,7 @@ public class ResourceAndContainerGroup implements Listener { * Handle the focus lost event from the resource name field. <br> * Adds the resource extension to the resource name field when it loses * focus (if the preconditions are met). - * + * * @see ResourceAndContainerGroup#setResourceExtension(String) * @since 3.3 */ @@ -358,7 +358,7 @@ public class ResourceAndContainerGroup implements Listener { /** * Handles events for all controls in the group. - * + * * @param e * org.eclipse.swt.widgets.Event */ @@ -380,7 +380,7 @@ public class ResourceAndContainerGroup implements Listener { /** * Sets the value of this page's container. - * + * * @param path * Full path to the container. */ @@ -407,7 +407,7 @@ public class ResourceAndContainerGroup implements Listener { /** * Sets the value of this page's resource name. - * + * * @param value * new value */ @@ -430,7 +430,7 @@ public class ResourceAndContainerGroup implements Listener { * <br> * The resource extension will not be reflected in the actual resource name * field until the resource name field loses focus. - * + * * @param value * The resource extension without the '.' prefix (e.g. 'java', * 'xml') @@ -446,7 +446,7 @@ public class ResourceAndContainerGroup implements Listener { * represents a valid container resource in the workbench. An error message * is stored for future reference if the name does not represent a valid * container. - * + * * @return <code>boolean</code> indicating validity of the container name */ protected boolean validateContainer() { @@ -507,7 +507,7 @@ public class ResourceAndContainerGroup implements Listener { * resource path represents a valid new resource in the workbench. An error * message is stored for future reference if the path does not represent a * valid new resource path. - * + * * @param resourcePath * the path to validate * @return <code>boolean</code> indicating validity of the resource path @@ -540,7 +540,7 @@ public class ResourceAndContainerGroup implements Listener { * rep- resents a valid resource name in the workbench. An error message is * stored for future reference if the name does not represent a valid * resource name. - * + * * @return <code>boolean</code> indicating validity of the resource name */ protected boolean validateResourceName() { @@ -565,7 +565,7 @@ public class ResourceAndContainerGroup implements Listener { /** * Returns the flag indicating whether existing resources are permitted. - * + * * @return The allow existing resources flag. * @see ResourceAndContainerGroup#setAllowExistingResources(boolean) * @since 3.4 diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/misc/StringFileInfoMatcher.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/misc/StringFileInfoMatcher.java index 5645e75d661..8673ee14209 100755 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/misc/StringFileInfoMatcher.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/misc/StringFileInfoMatcher.java @@ -26,7 +26,7 @@ public class StringFileInfoMatcher extends AbstractFileInfoMatcher { /** */ public static String ID = "org.eclipse.ui.ide.patternFilterMatcher"; //$NON-NLS-1$ - + StringMatcher matcher = null; /** * Creates a new factory for this filter type. diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/model/FileInputAdapterFactory.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/model/FileInputAdapterFactory.java index ac74052d4db..616d71c69ac 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/model/FileInputAdapterFactory.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/model/FileInputAdapterFactory.java @@ -27,7 +27,7 @@ import org.eclipse.ui.IFileEditorInput; public class FileInputAdapterFactory implements IAdapterFactory { /* * (non-Javadoc) - * + * * @see org.eclipse.core.runtime.IAdapterFactory#getAdapter(java.lang.Object, * java.lang.Class) */ @@ -42,7 +42,7 @@ public class FileInputAdapterFactory implements IAdapterFactory { /* * (non-Javadoc) - * + * * @see org.eclipse.core.runtime.IAdapterFactory#getAdapterList() */ @Override diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/model/ResourceFactory.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/model/ResourceFactory.java index 773f9d5ef10..548155efa00 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/model/ResourceFactory.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/model/ResourceFactory.java @@ -51,8 +51,8 @@ public class ResourceFactory implements IElementFactory, IPersistableElement { /** * Create a ResourceFactory. This constructor is typically used * for our IPersistableElement side. - * - * @param input the resource of this factory + * + * @param input the resource of this factory */ public ResourceFactory(IResource input) { res = input; @@ -72,7 +72,7 @@ public class ResourceFactory implements IElementFactory, IPersistableElement { IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot(); String type = memento.getString(TAG_TYPE); if (type == null) { - // Old format memento. Create an IResource using findMember. + // Old format memento. Create an IResource using findMember. // Will return null for resources in closed projects. res = root.findMember(new Path(fileName)); } else { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/model/WorkbenchAdapterBuilder.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/model/WorkbenchAdapterBuilder.java index 92f5b902c95..5c76d6e65b2 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/model/WorkbenchAdapterBuilder.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/model/WorkbenchAdapterBuilder.java @@ -14,14 +14,14 @@ import org.eclipse.ui.ide.IDE; /** * Registers the adapters on core constructs used in the workbench UI. - * + * * @deprecated advisors should call the org.eclipse.ui.ide.IDE method */ @Deprecated public final class WorkbenchAdapterBuilder { /** * Creates extenders and registers - * + * * @deprecated advisors should call the org.eclipse.ui.ide.IDE method */ @Deprecated diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/model/WorkbenchAdapterFactory.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/model/WorkbenchAdapterFactory.java index 1b6205392e0..498627af1e9 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/model/WorkbenchAdapterFactory.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/model/WorkbenchAdapterFactory.java @@ -75,8 +75,8 @@ public class WorkbenchAdapterFactory implements IAdapterFactory { * @param o the adaptable object being queried * (usually an instance of <code>IAdaptable</code>) * @param adapterType the type of adapter to look up - * @return a object castable to the given adapter type, - * or <code>null</code> if this adapter provider + * @return a object castable to the given adapter type, + * or <code>null</code> if this adapter provider * does not have an adapter of the given type for the * given object */ @@ -181,7 +181,7 @@ public class WorkbenchAdapterFactory implements IAdapterFactory { } return null; } - + /** * Returns the IUndoContext for an object. */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/model/WorkbenchFile.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/model/WorkbenchFile.java index 5a87070a0e1..b114db6b590 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/model/WorkbenchFile.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/model/WorkbenchFile.java @@ -31,11 +31,11 @@ public class WorkbenchFile extends WorkbenchResource { * to cache the result of doing a proper content type lookup. This will be * set by the ContentTypeDecorator (if enabled) and used instead of the * "guessed" content type in {@link #getBaseImage(IResource)}. - * + * * @since 3.4 */ public static QualifiedName IMAGE_CACHE_KEY = new QualifiedName(WorkbenchPlugin.PI_WORKBENCH, "WorkbenchFileImage"); //$NON-NLS-1$ - + /** * Answer the appropriate base image to use for the passed resource, optionally * considering the passed open status as well iff appropriate for the type of diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/model/WorkbenchResource.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/model/WorkbenchResource.java index 5d265e88889..a05990ff88f 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/model/WorkbenchResource.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/model/WorkbenchResource.java @@ -128,7 +128,7 @@ public abstract class WorkbenchResource extends WorkbenchAdapter implements * <code>contentTypeId</code>. It is possible that this method call could * cause the resource to be read. It is also possible (through poor plug-in * design) for this method to load plug-ins. - * + * * @param resource * The resource for which the content type should be determined; * must not be <code>null</code>. @@ -168,7 +168,7 @@ public abstract class WorkbenchResource extends WorkbenchAdapter implements /** * Tests whether a session or persistent property on the resource or its project * matches the given value. - * + * * @param resource * the resource to check * @param persistentFlag @@ -215,16 +215,16 @@ public abstract class WorkbenchResource extends WorkbenchAdapter implements return false; } return expectedVal == null || expectedVal.equals(actualVal); - } + } Object actualVal = resToCheck.getSessionProperty(key); if (actualVal == null) { return false; } - + return expectedVal == null || expectedVal.equals(actualVal.toString()); - + } catch (CoreException e) { // ignore } diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/model/WorkbenchStatus.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/model/WorkbenchStatus.java index 6109a840fba..c1720bf21c1 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/model/WorkbenchStatus.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/model/WorkbenchStatus.java @@ -26,7 +26,7 @@ public class WorkbenchStatus extends WorkbenchAdapter implements IAdaptable { /** * Creates a workbench status for the given status. - * + * * @param status the status */ public WorkbenchStatus(IStatus status) { @@ -71,7 +71,7 @@ public class WorkbenchStatus extends WorkbenchAdapter implements IAdaptable { /** * Returns the wrapped status object. - * + * * @return the wrapped status object */ public IStatus getStatus() { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/model/WorkingSetAdapterFactory.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/model/WorkingSetAdapterFactory.java index 4bfd9e66c8c..14e10bebc5f 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/model/WorkingSetAdapterFactory.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/model/WorkingSetAdapterFactory.java @@ -108,7 +108,7 @@ public class WorkingSetAdapterFactory implements IAdapterFactory { /* * (non-Javadoc) - * + * * @see org.eclipse.core.runtime.IAdapterFactory#getAdapter(java.lang.Object, * java.lang.Class) */ @@ -142,7 +142,7 @@ public class WorkingSetAdapterFactory implements IAdapterFactory { /* * (non-Javadoc) - * + * * @see org.eclipse.core.runtime.IAdapterFactory#getAdapterList() */ @Override diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/model/WorkingSetResourceMapping.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/model/WorkingSetResourceMapping.java index f9bc2189a0a..76519639a3f 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/model/WorkingSetResourceMapping.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/model/WorkingSetResourceMapping.java @@ -35,7 +35,7 @@ import org.eclipse.ui.IWorkingSet; public class WorkingSetResourceMapping extends ResourceMapping { private IWorkingSet set; - + /** * Create the resource mapping * @param workingSet the working set @@ -118,7 +118,7 @@ public class WorkingSetResourceMapping extends ResourceMapping { } return (ResourceMapping[]) result.toArray(new ResourceMapping[result.size()]); } - + /* (non-Javadoc) * @see org.eclipse.core.resources.mapping.ResourceMapping#contains(org.eclipse.core.resources.mapping.ResourceMapping) */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/registry/IDERegistryReader.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/registry/IDERegistryReader.java index f4112cb849d..3e77888ba6c 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/registry/IDERegistryReader.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/registry/IDERegistryReader.java @@ -130,7 +130,7 @@ public abstract class IDERegistryReader { * Implement this method to read element's attributes. * If children should also be read, then implementor * is responsible for calling <code>readElementChildren</code>. - * Implementor is also responsible for logging missing + * Implementor is also responsible for logging missing * attributes. * * @return true if element was recognized, false if not. diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/registry/MarkerHelpRegistry.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/registry/MarkerHelpRegistry.java index 93d355ad38a..cfb3580d9cb 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/registry/MarkerHelpRegistry.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/registry/MarkerHelpRegistry.java @@ -173,7 +173,7 @@ public class MarkerHelpRegistry implements IMarkerHelpRegistry { /** * Return whether or not this configuration element has a resolution for the * marker. - * + * * @param marker * @param element * @return boolean <code>true</code> if there is a resolution. @@ -271,7 +271,7 @@ public class MarkerHelpRegistry implements IMarkerHelpRegistry { /** * Adds a help query to the registry. - * + * * @param query * a marker query * @param result @@ -287,7 +287,7 @@ public class MarkerHelpRegistry implements IMarkerHelpRegistry { /** * Adds a resolution query to the registry. - * + * * @param query * a marker query * @param result @@ -303,7 +303,7 @@ public class MarkerHelpRegistry implements IMarkerHelpRegistry { /** * Adds a query to the given table. - * + * * @param table * the table to which the query is added * @param query diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/registry/MarkerHelpRegistryReader.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/registry/MarkerHelpRegistryReader.java index ee35d48275a..47663419ee6 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/registry/MarkerHelpRegistryReader.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/registry/MarkerHelpRegistryReader.java @@ -18,7 +18,7 @@ import org.eclipse.core.runtime.Platform; import org.eclipse.ui.internal.ide.IDEWorkbenchPlugin; /** - * This class is used to read marker help context ids and + * This class is used to read marker help context ids and * resolutions from the platform registry. */ public class MarkerHelpRegistryReader extends IDERegistryReader { @@ -32,7 +32,7 @@ public class MarkerHelpRegistryReader extends IDERegistryReader { private static final String TAG_RESOLUTION_GENERATOR = "markerResolutionGenerator";//$NON-NLS-1$ - private static final String TAG_ATTRIBUTE = "attribute";//$NON-NLS-1$ + private static final String TAG_ATTRIBUTE = "attribute";//$NON-NLS-1$ private static final String ATT_TYPE = "markerType";//$NON-NLS-1$ @@ -45,8 +45,8 @@ public class MarkerHelpRegistryReader extends IDERegistryReader { * and add it to the given marker help registry. * <p> * Warning: - * The marker help registry must be passed in because this - * method is called during the process of setting up the + * The marker help registry must be passed in because this + * method is called during the process of setting up the * marker help registry and at this time it has not been * safely setup with the plugin. * </p> diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/registry/MarkerQuery.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/registry/MarkerQuery.java index 85aa0c2f067..dd43711eaaf 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/registry/MarkerQuery.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/registry/MarkerQuery.java @@ -15,14 +15,14 @@ import org.eclipse.core.runtime.CoreException; import org.eclipse.ui.internal.ide.Policy; /** - * Instances of this class hold a marker type id and/or - * a series of marker attributes. This information may be used + * Instances of this class hold a marker type id and/or + * a series of marker attributes. This information may be used * to determine if a given marker is of the same marker * type and determine its values for the attributes. */ public class MarkerQuery { /** - * The marker type targetted by this query. + * The marker type targetted by this query. * May be <code>null</code>. */ private String type; @@ -43,10 +43,10 @@ public class MarkerQuery { * Creates a new marker query with the given type * and attributes. * <p> - * The type may be <code>null</code>. The attributes may + * The type may be <code>null</code>. The attributes may * be empty, but not <code>null</code>. * </p> - * + * * @param markerType the targetted marker type * @param markerAttributes the targetted marker attributes */ @@ -67,7 +67,7 @@ public class MarkerQuery { * is appropriate for this query (correct type and has * all of the query attributes), otherwise <code>null</code> * is returned. - * + * * @param marker the marker to perform the query against * @return a marker query result or <code>null</code> */ @@ -156,9 +156,9 @@ public class MarkerQuery { } /** - * Returns the targetted marker type. May be + * Returns the targetted marker type. May be * <code>null</code> - * + * * @return the targetted marker type */ public String getType() { @@ -168,7 +168,7 @@ public class MarkerQuery { /** * Returns the targetted attributes. * The array may be empty. - * + * * @return the targetted attributes */ public String[] getAttributes() { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/registry/MarkerQueryResult.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/registry/MarkerQueryResult.java index 04e83eeb9a2..48c6b60b175 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/registry/MarkerQueryResult.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/registry/MarkerQueryResult.java @@ -12,7 +12,7 @@ package org.eclipse.ui.internal.ide.registry; /** * Instances of this class represent the result of a specific marker - * query. Specifically they contain an ordered collection of marker + * query. Specifically they contain an ordered collection of marker * attribute values. */ @@ -32,7 +32,7 @@ public class MarkerQueryResult { * <p> * The values may not be empty. * </p> - * + * * @param markerAttributeValues the target marker's attribute values */ public MarkerQueryResult(String[] markerAttributeValues) { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/undo/AbstractResourceDescription.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/undo/AbstractResourceDescription.java index 4e6909d0b31..4085db1d985 100755 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/undo/AbstractResourceDescription.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/undo/AbstractResourceDescription.java @@ -24,11 +24,11 @@ import org.eclipse.ui.ide.undo.ResourceDescription; /** * Base implementation of ResourceDescription that describes the common * attributes of a resource to be created. - * + * * This class is not intended to be instantiated or used by clients. - * + * * @since 3.3 - * + * */ abstract class AbstractResourceDescription extends ResourceDescription { IContainer parent; @@ -50,7 +50,7 @@ abstract class AbstractResourceDescription extends ResourceDescription { /** * Create a resource description from the specified resource. - * + * * @param resource * the resource to be described */ @@ -79,7 +79,7 @@ abstract class AbstractResourceDescription extends ResourceDescription { /* * (non-Javadoc) - * + * * @see * org.eclipse.ui.ide.undo.ResourceDescription#createResource(org.eclipse * .core.runtime.IProgressMonitor) @@ -95,7 +95,7 @@ abstract class AbstractResourceDescription extends ResourceDescription { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.ide.undo.ResourceDescription#isValid() */ @Override @@ -107,7 +107,7 @@ abstract class AbstractResourceDescription extends ResourceDescription { * Restore any saved attributed of the specified resource. This method is * called after the existent resource represented by the receiver has been * created. - * + * * @param resource * the newly created resource * @throws CoreException @@ -140,7 +140,7 @@ abstract class AbstractResourceDescription extends ResourceDescription { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.ide.undo.ResourceDescription#verifyExistence(boolean) */ @Override diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/undo/ContainerDescription.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/undo/ContainerDescription.java index 20ab4640323..d85e6a65507 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/undo/ContainerDescription.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/undo/ContainerDescription.java @@ -31,11 +31,11 @@ import org.eclipse.ui.ide.undo.ResourceDescription; /** * ContainerDescription is a lightweight description that describes a container * to be created. - * + * * This class is not intended to be instantiated or used by clients. - * + * * @since 3.3 - * + * */ public abstract class ContainerDescription extends AbstractResourceDescription { @@ -44,7 +44,7 @@ public abstract class ContainerDescription extends AbstractResourceDescription { URI location; UIResourceFilterDescription[] filters; - + String defaultCharSet; AbstractResourceDescription[] members; @@ -54,7 +54,7 @@ public abstract class ContainerDescription extends AbstractResourceDescription { * can be used to create the container. The returned ContainerDescription * should represent any non-existing parents in addition to the specified * container. - * + * * @param container * the handle of the container to be described * @return a container description describing the container and any @@ -64,13 +64,13 @@ public abstract class ContainerDescription extends AbstractResourceDescription { public static ContainerDescription fromContainer(IContainer container) { return fromContainer(container, false); } - + /** * Create a group container description from the specified container handle that * can be used to create the container. The returned ContainerDescription * should represent any non-existing parents in addition to the specified * container. - * + * * @param container * the handle of the container to be described * @return a container description describing the container and any @@ -80,7 +80,7 @@ public abstract class ContainerDescription extends AbstractResourceDescription { public static ContainerDescription fromVirtualFolderContainer(IContainer container) { return fromContainer(container, true); } - + protected static ContainerDescription fromContainer(IContainer container, boolean usingVirtualFolder) { IPath fullPath = container.getFullPath(); ContainerDescription firstCreatedParent = null; @@ -141,7 +141,7 @@ public abstract class ContainerDescription extends AbstractResourceDescription { * Typically used when the container handle represents a resource that * actually exists, although it will not fail if the resource is * non-existent. - * + * * @param container * the container to be described */ @@ -171,7 +171,7 @@ public abstract class ContainerDescription extends AbstractResourceDescription { /** * Create any child resources known by this container description. - * + * * @param parentHandle * the handle of the created parent * @param monitor @@ -195,7 +195,7 @@ public abstract class ContainerDescription extends AbstractResourceDescription { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.ide.undo.ResourceDescription#recordStateFromHistory(org.eclipse.core.resources.IResource, * org.eclipse.core.runtime.IProgressMonitor) */ @@ -220,7 +220,7 @@ public abstract class ContainerDescription extends AbstractResourceDescription { .getFolder(path); members[i].recordStateFromHistory(folderHandle, new SubProgressMonitor(monitor, 100 / members.length)); - } + } } } monitor.done(); @@ -228,7 +228,7 @@ public abstract class ContainerDescription extends AbstractResourceDescription { /** * Return the name of the container described by this ContainerDescription. - * + * * @return the name of the container. */ @Override @@ -238,7 +238,7 @@ public abstract class ContainerDescription extends AbstractResourceDescription { /** * Return the first folder found that has no child folders. - * + * * @return the container description for the first child in the receiver * that is a leaf, or this container if there are no children. */ @@ -260,7 +260,7 @@ public abstract class ContainerDescription extends AbstractResourceDescription { /** * Add the specified resource description as a member of this resource * description - * + * * @param member * the resource description considered a member of this * container. @@ -278,7 +278,7 @@ public abstract class ContainerDescription extends AbstractResourceDescription { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.ide.undo.ResourceDescription#restoreResourceAttributes(org.eclipse.core.resources.IResource) */ @Override @@ -294,7 +294,7 @@ public abstract class ContainerDescription extends AbstractResourceDescription { /** * Set the location to which this container is linked. - * + * * @param location * the location URI, or <code>null</code> if there is no link */ @@ -304,7 +304,7 @@ public abstract class ContainerDescription extends AbstractResourceDescription { /** * Set the filters to which should be created on this container. - * + * * @param filters * the filters */ @@ -314,7 +314,7 @@ public abstract class ContainerDescription extends AbstractResourceDescription { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.ide.undo.ResourceDescription#verifyExistence(boolean) */ @Override diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/undo/FileDescription.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/undo/FileDescription.java index e5549356a31..1f6a6c2e0bd 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/undo/FileDescription.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/undo/FileDescription.java @@ -30,11 +30,11 @@ import org.eclipse.core.runtime.SubProgressMonitor; /** * FileDescription is a lightweight description that describes a file to be * created. - * + * * This class is not intended to be instantiated or used by clients. - * + * * @since 3.3 - * + * */ public class FileDescription extends AbstractResourceDescription { @@ -50,7 +50,7 @@ public class FileDescription extends AbstractResourceDescription { * Create a FileDescription that can be used to later restore the given * file. The file typically already exists, but this constructor will not * fail if the file does not exist. - * + * * @param file * the file to be restored. */ @@ -74,7 +74,7 @@ public class FileDescription extends AbstractResourceDescription { * path is specified, this file should represent a link to another location. * The content description describes any state that should be used when the * file resource is created. - * + * * @param file * the file to be described * @param linkLocation @@ -95,7 +95,7 @@ public class FileDescription extends AbstractResourceDescription { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.ide.undo.ResourceDescription#recordStateFromHistory(org.eclipse.core.resources.IResource, * org.eclipse.core.runtime.IProgressMonitor) */ @@ -114,7 +114,7 @@ public class FileDescription extends AbstractResourceDescription { this.fileContentDescription = new IFileContentDescription() { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.ide.undo.IFileContentDescription#exists() */ @Override @@ -124,7 +124,7 @@ public class FileDescription extends AbstractResourceDescription { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.ide.undo.IFileContentDescription#getContents() */ @Override @@ -134,7 +134,7 @@ public class FileDescription extends AbstractResourceDescription { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.ide.undo.IFileContentDescription#getCharset() */ @Override @@ -147,7 +147,7 @@ public class FileDescription extends AbstractResourceDescription { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.ide.undo.ResourceDescription#createResourceHandle() */ @Override @@ -159,7 +159,7 @@ public class FileDescription extends AbstractResourceDescription { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.ide.undo.ResourceDescription#createExistentResourceFromHandle(org.eclipse.core.resources.IResource, * org.eclipse.core.runtime.IProgressMonitor) */ @@ -214,7 +214,7 @@ public class FileDescription extends AbstractResourceDescription { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.ide.undo.ResourceDescription#isValid() */ @Override @@ -228,7 +228,7 @@ public class FileDescription extends AbstractResourceDescription { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.ide.undo.ResourceDescription#getName() */ @Override @@ -250,10 +250,10 @@ public class FileDescription extends AbstractResourceDescription { return states[0]; } - + /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.ide.undo.ResourceDescription#restoreResourceAttributes(org.eclipse.core.resources.IResource) */ @Override diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/undo/FolderDescription.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/undo/FolderDescription.java index 0da092fa620..0fc6458deb7 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/undo/FolderDescription.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/undo/FolderDescription.java @@ -26,11 +26,11 @@ import org.eclipse.core.runtime.SubProgressMonitor; /** * FolderDescription is a lightweight description that describes a folder to be * created. - * + * * This class is not intended to be instantiated or used by clients. - * + * * @since 3.3 - * + * */ public class FolderDescription extends ContainerDescription { @@ -39,7 +39,7 @@ public class FolderDescription extends ContainerDescription { * Create a FolderDescription from the specified folder handle. Typically * used when the folder handle represents a resource that actually exists, * although it will not fail if the resource is non-existent. - * + * * @param folder * the folder to be described * @param virtual @@ -54,7 +54,7 @@ public class FolderDescription extends ContainerDescription { * Create a FolderDescription from the specified folder handle. If the * folder to be created should be linked to a different location, specify * the location. - * + * * @param folder * the folder to be described * @param linkLocation @@ -69,7 +69,7 @@ public class FolderDescription extends ContainerDescription { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.ide.undo.ContainerDescription#createResourceHandle() */ @Override @@ -81,7 +81,7 @@ public class FolderDescription extends ContainerDescription { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.ide.undo.ResourceDescription#createExistentResourceFromHandle(org.eclipse.core.resources.IResource, * org.eclipse.core.runtime.IProgressMonitor) */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/undo/IFileContentDescription.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/undo/IFileContentDescription.java index 1b108fab3c5..df6b8fc64fd 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/undo/IFileContentDescription.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/undo/IFileContentDescription.java @@ -16,17 +16,17 @@ import org.eclipse.core.runtime.CoreException; /** * IFileContentDescription is a description of a file's content. - * + * * This class is not intended to be instantiated or used by clients. - * + * * @since 3.3 - * + * */ public interface IFileContentDescription { /** * Returns an open input stream on the contents of the file described. The * client is responsible for closing the stream when finished. - * + * * @return an input stream containing the contents of the file * @throws CoreException * any CoreException encountered retrieving the contents @@ -36,7 +36,7 @@ public interface IFileContentDescription { /** * Returns whether this file content description still exists. If it does * not exist, it will be unable to produce the contents. - * + * * @return <code>true</code> if this description exists, and * <code>false</code> if it does not */ @@ -46,12 +46,12 @@ public interface IFileContentDescription { * Returns the name of a charset encoding to be used when decoding the * contents into characters. Returns <code>null</code> if a charset * has not been explicitly specified. - * + * * @return the name of a charset, or <code>null</code> * @throws CoreException * any CoreException encountered while determining the character * set - * + * */ public String getCharset() throws CoreException; }
\ No newline at end of file diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/undo/MarkerDescription.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/undo/MarkerDescription.java index cb45b597061..5f4e77e30d7 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/undo/MarkerDescription.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/undo/MarkerDescription.java @@ -20,11 +20,11 @@ import org.eclipse.core.runtime.CoreException; /** * MarkerDescription is a lightweight description of a marker that can be used * to describe a marker to be created or updated. - * + * * This class is not intended to be instantiated or used by clients. - * + * * @since 3.3 - * + * */ public class MarkerDescription { String type; @@ -34,9 +34,9 @@ public class MarkerDescription { IResource resource; /** - * + * * Create a marker description from the specified marker. - * + * * @param marker * the marker to be described * @throws CoreException @@ -51,7 +51,7 @@ public class MarkerDescription { /** * Create a marker description from the specified marker type, attributes, * and resource. - * + * * @param type * the type of marker to be created. * @param attributes @@ -67,7 +67,7 @@ public class MarkerDescription { /** * Create a marker from the marker description. - * + * * @return the created marker * @throws CoreException */ @@ -79,7 +79,7 @@ public class MarkerDescription { /** * Update an existing marker using the attributes in the marker description. - * + * * @param marker * the marker to be updated * @throws CoreException @@ -90,7 +90,7 @@ public class MarkerDescription { /** * Return the resource associated with this marker. - * + * * @return the resource associated with this marker */ public IResource getResource() { @@ -99,7 +99,7 @@ public class MarkerDescription { /** * Return the marker type associated with this marker. - * + * * @return the string marker type of this marker */ public String getType() { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/undo/ProjectDescription.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/undo/ProjectDescription.java index 6114a37df86..bdb923b6b44 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/undo/ProjectDescription.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/undo/ProjectDescription.java @@ -24,11 +24,11 @@ import org.eclipse.core.runtime.SubProgressMonitor; /** * ProjectDescription is a lightweight description that describes a project to * be created. - * + * * This class is not intended to be instantiated or used by clients. - * + * * @since 3.3 - * + * */ public class ProjectDescription extends ContainerDescription { @@ -37,7 +37,7 @@ public class ProjectDescription extends ContainerDescription { /** * Create a project description from a specified project. - * + * * @param project * The project to be described. The project must exist. */ @@ -62,7 +62,7 @@ public class ProjectDescription extends ContainerDescription { /** * Create a project description from a specified IProjectDescription. Used * when the project does not yet exist. - * + * * @param projectDescription * the project description for the future project */ @@ -73,7 +73,7 @@ public class ProjectDescription extends ContainerDescription { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.ide.undo.ContainerDescription#createResourceHandle() */ @Override @@ -83,7 +83,7 @@ public class ProjectDescription extends ContainerDescription { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.ide.undo.ResourceDescription#createExistentResourceFromHandle(org.eclipse.core.resources.IResource, * org.eclipse.core.runtime.IProgressMonitor) */ @@ -116,7 +116,7 @@ public class ProjectDescription extends ContainerDescription { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.ide.undo.ContainerDescription#getName() */ @Override @@ -129,7 +129,7 @@ public class ProjectDescription extends ContainerDescription { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.ide.undo.ResourceDescription#verifyExistence(boolean) */ @Override diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/undo/UndoMessages.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/undo/UndoMessages.java index 49e77b3cdd0..bb446340935 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/undo/UndoMessages.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/undo/UndoMessages.java @@ -16,7 +16,7 @@ import org.eclipse.osgi.util.NLS; /** * UndoMessages is the class that handles the messages for performing workspace * undo and redo. - * + * * @since 3.3 */ public class UndoMessages extends NLS { @@ -37,7 +37,7 @@ public class UndoMessages extends NLS { public static String AbstractWorkspaceOperation_RedoSideEffectsWarningMessage; public static String AbstractWorkspaceOperation_ErrorInvalidMessage; public static String AbstractWorkspaceOperation_GenericWarningMessage; - + public static String AbstractResourcesOperation_ResourcesDoNotExist; public static String AbstractResourcesOperation_ResourcesAlreadyExist; public static String AbstractResourcesOperation_NotEnoughInfo; @@ -50,14 +50,14 @@ public class UndoMessages extends NLS { public static String AbstractResourcesOperation_outOfSyncQuestion; public static String AbstractResourcesOperation_deletionMessageTitle; public static String AbstractResourcesOperation_deletionExceptionMessage; - + public static String AbstractCopyOrMoveResourcesOperation_SameNameOrLocation; public static String AbstractCopyOrMoveResourcesOperation_ResourceDoesNotExist; public static String AbstractCopyOrMoveResourcesOperation_copyProjectProgress; public static String AbstractCopyOrMoveResourcesOperation_moveProjectProgress; - + public static String CopyResourcesOperation_NotAllowedDueToDataLoss; - + public static String ProjectDescription_NewProjectProgress; public static String FileDescription_NewFileProgress; public static String GroupDescription_NewGroupProgress; @@ -65,11 +65,11 @@ public class UndoMessages extends NLS { public static String FileDescription_ContentsCouldNotBeRestored; public static String FolderDescription_NewFolderProgress; public static String FolderDescription_SavingUndoInfoProgress; - + public static String MarkerOperation_ResourceDoesNotExist; public static String MarkerOperation_MarkerDoesNotExist; - public static String MarkerOperation_NotEnoughInfo; + public static String MarkerOperation_NotEnoughInfo; public static String MarkerOperation_CreateProgress; public static String MarkerOperation_DeleteProgress; public static String MarkerOperation_UpdateProgress; diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/undo/WorkspaceUndoMonitor.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/undo/WorkspaceUndoMonitor.java index 66e461ea7e0..7c3c47a8b67 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/undo/WorkspaceUndoMonitor.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/undo/WorkspaceUndoMonitor.java @@ -30,11 +30,11 @@ import org.eclipse.ui.internal.ide.Policy; /** * WorkspaceUndoMonitor monitors the workspace for resource changes and * periodically checks the undo history to make sure it is valid. - * + * * This class is not intended to be instantiated or used by clients. - * + * * @since 3.3 - * + * */ public class WorkspaceUndoMonitor { @@ -55,7 +55,7 @@ public class WorkspaceUndoMonitor { /** * Get the singleton instance of this class. - * + * * @return the singleton instance of this class. */ public static WorkspaceUndoMonitor getInstance() { @@ -107,14 +107,14 @@ public class WorkspaceUndoMonitor { /** * Get a change listener for listening to resource changes. - * + * * @return the resource change listeners */ private IResourceChangeListener getResourceChangeListener() { return new IResourceChangeListener() { /* * (non-Javadoc) - * + * * @see org.eclipse.core.resources.IResourceChangeListener#resourceChanged(org.eclipse.core.resources.IResourceChangeEvent) */ @Override @@ -139,7 +139,7 @@ public class WorkspaceUndoMonitor { /** * Get a change listener for listening to operation history changes. - * + * * @return the resource change listeners */ private IOperationHistoryListener getOperationHistoryListener() { @@ -147,7 +147,7 @@ public class WorkspaceUndoMonitor { /* * (non-Javadoc) - * + * * @see org.eclipse.core.commands.operations.IOperationHistoryListener#historyNotification(org.eclipse.core.commands.operations.OperationHistoryEvent) */ @Override diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/bookmarkexplorer/BookmarkMessages.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/bookmarkexplorer/BookmarkMessages.java index 5c9a1a26c63..d184d3fb9b3 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/bookmarkexplorer/BookmarkMessages.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/bookmarkexplorer/BookmarkMessages.java @@ -53,7 +53,7 @@ public class BookmarkMessages extends NLS { public static String ColumnFolder_text; public static String ColumnLocation_text; public static String ColumnCreationTime_text; - + public static String Error_text; public static String LineIndicator_text; @@ -80,7 +80,7 @@ public class BookmarkMessages extends NLS { public static String CopyToClipboardProblemDialog_message; public static String CreateBookmark_undoText; - public static String ModifyBookmark_undoText; + public static String ModifyBookmark_undoText; static { // load message values from bundle file diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/framelist/FrameListMessages.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/framelist/FrameListMessages.java index a08606c0415..7f5dbe9af6a 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/framelist/FrameListMessages.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/framelist/FrameListMessages.java @@ -3,8 +3,8 @@ * 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: + * + * Contributors: * IBM - Initial API and implementation **********************************************************************/ package org.eclipse.ui.internal.views.framelist; diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/AddTaskHandler.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/AddTaskHandler.java index c0cc95771e3..e34e78ef916 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/AddTaskHandler.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/AddTaskHandler.java @@ -17,15 +17,15 @@ import org.eclipse.ui.views.markers.internal.MarkerMessages; /** * AddTaskHandler is the handler for adding a new task to the task list. - * + * * @since 3.4 - * + * */ public class AddTaskHandler extends MarkerViewHandler { /* * (non-Javadoc) - * + * * @see org.eclipse.core.commands.IHandler#execute(org.eclipse.core.commands.ExecutionEvent) */ @Override diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/AllErrorsParameters.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/AllErrorsParameters.java index 99a040d622c..16c581e2e73 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/AllErrorsParameters.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/AllErrorsParameters.java @@ -18,9 +18,9 @@ import org.eclipse.ui.views.markers.FiltersContributionParameters; /** * AllErrorsParameters is the parameters for the error severity type. - * + * * @since 3.4 - * + * */ public class AllErrorsParameters extends FiltersContributionParameters { @@ -40,7 +40,7 @@ public class AllErrorsParameters extends FiltersContributionParameters { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.FiltersContributionParameters#getParameterValues() */ @Override diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/AllMarkersSeverityAndDescriptionConfigurationArea.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/AllMarkersSeverityAndDescriptionConfigurationArea.java index 30400a4a0f3..3b9dfea511b 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/AllMarkersSeverityAndDescriptionConfigurationArea.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/AllMarkersSeverityAndDescriptionConfigurationArea.java @@ -24,9 +24,9 @@ import org.eclipse.ui.views.markers.internal.MarkerMessages; /** * {@link ProblemsSeverityAndDescriptionConfigurationArea} is the configuration * area for the all markers view. - * + * * @since 3.4 - * + * */ public class AllMarkersSeverityAndDescriptionConfigurationArea extends SeverityAndDescriptionConfigurationArea { @@ -36,7 +36,7 @@ public class AllMarkersSeverityAndDescriptionConfigurationArea extends /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.views.markers.DescriptionConfigurationArea#createContents(org.eclipse.swt.widgets.Composite) */ @Override @@ -63,7 +63,7 @@ public class AllMarkersSeverityAndDescriptionConfigurationArea extends enablementButton.addSelectionListener(new SelectionAdapter() { /* * (non-Javadoc) - * + * * @see org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent) */ @Override @@ -76,7 +76,7 @@ public class AllMarkersSeverityAndDescriptionConfigurationArea extends /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.views.markers.SeverityAndDescriptionConfigurationArea#apply(org.eclipse.ui.views.markers.MarkerFieldFilter) */ @Override @@ -88,13 +88,13 @@ public class AllMarkersSeverityAndDescriptionConfigurationArea extends /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.views.markers.SeverityAndDescriptionConfigurationArea#initialize(org.eclipse.ui.views.markers.MarkerFieldFilter) */ @Override public void initialize(MarkerFieldFilter filter) { super.initialize(filter); - + setFilterOnSeverity(((AllMarkersSeverityAndDescriptionFieldFilter) filter) .getFilterOnSeverity()); } @@ -107,7 +107,7 @@ public class AllMarkersSeverityAndDescriptionConfigurationArea extends filterOnSeverity = filtering; enablementButton.setSelection(filtering); setSeverityButtonsEnabled(filterOnSeverity); - + } } diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/AllMarkersSeverityAndDescriptionFieldFilter.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/AllMarkersSeverityAndDescriptionFieldFilter.java index dd5f59c36b8..80467503f8d 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/AllMarkersSeverityAndDescriptionFieldFilter.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/AllMarkersSeverityAndDescriptionFieldFilter.java @@ -19,9 +19,9 @@ import org.eclipse.ui.views.markers.MarkerItem; /** * AllMarkersSeverityAndDescriptionFieldFilter is a * {@link SeverityAndDescriptionFieldFilter} that handles the no severity case. - * + * * @since 3.4 - * + * */ public class AllMarkersSeverityAndDescriptionFieldFilter extends SeverityAndDescriptionFieldFilter { @@ -38,7 +38,7 @@ public class AllMarkersSeverityAndDescriptionFieldFilter extends /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.views.markers.SeverityAndDescriptionFieldFilter#select(org.eclipse.ui.views.markers.MarkerItem) */ @Override @@ -57,7 +57,7 @@ public class AllMarkersSeverityAndDescriptionFieldFilter extends /** * Return whether or not we are filtering on severity. - * + * * @return boolean */ boolean getFilterOnSeverity() { @@ -66,7 +66,7 @@ public class AllMarkersSeverityAndDescriptionFieldFilter extends /** * Set the whether or not we are filtering on severity - * + * * @param filter */ void setFilterOnSeverity(boolean filter) { @@ -76,7 +76,7 @@ public class AllMarkersSeverityAndDescriptionFieldFilter extends /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.views.markers.SeverityAndDescriptionFieldFilter#loadSettings(org.eclipse.ui.IMemento) */ @Override @@ -90,7 +90,7 @@ public class AllMarkersSeverityAndDescriptionFieldFilter extends /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.views.markers.SeverityAndDescriptionFieldFilter#saveSettings(org.eclipse.ui.IMemento) */ @Override @@ -101,7 +101,7 @@ public class AllMarkersSeverityAndDescriptionFieldFilter extends /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.views.markers.SeverityAndDescriptionFieldFilter#populateWorkingCopy(org.eclipse.ui.views.markers.MarkerFieldFilter) */ @Override diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/BookmarksView.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/BookmarksView.java index 488c1d9d773..aa7e51814a9 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/BookmarksView.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/BookmarksView.java @@ -31,7 +31,7 @@ public class BookmarksView extends MarkerSupportView { */ public BookmarksView() { super(MarkerSupportRegistry.BOOKMARKS_GENERATOR); - + } /* diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/CachedMarkerBuilder.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/CachedMarkerBuilder.java index 0435cbb42b5..7ade40cfd01 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/CachedMarkerBuilder.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/CachedMarkerBuilder.java @@ -33,9 +33,9 @@ import org.eclipse.ui.views.markers.internal.MarkerGroup; /** * The CachedMarkerBuilder is the object that generates the list of markers from * a generator. - * + * * @since 3.4 - * + * */ public class CachedMarkerBuilder { @@ -43,38 +43,38 @@ public class CachedMarkerBuilder { private static final String VALUE_NONE = "none"; //$NON-NLS-1$ // The MarkerContentGenerator we are using for building - private MarkerContentGenerator generator; + private MarkerContentGenerator generator; private MarkerUpdateJob updateJob; private MarkersChangeListener markerListener; private MarkerUpdateScheduler scheduler; - + private Markers markers; private Markers markersClone; - + final Object MARKER_INCREMENTAL_UPDATE_FAMILY =new Object(); final Object CACHE_UPDATE_FAMILY = new Object(); final Object MARKERSVIEW_UPDATE_JOB_FAMILY; - + private IWorkbenchSiteProgressService progressService; private MarkerGroup categoryGroup; - + private MarkerComparator comparator; - + private boolean[] changeFlags; private IPropertyChangeListener workingSetListener; private boolean active; - + private boolean building; - + private IMemento memento; - + /** * Create a new instance of the receiver. Update using the updateJob. - * @param view + * @param view */ public CachedMarkerBuilder(ExtendedMarkersView view) { active = false; @@ -84,7 +84,7 @@ public class CachedMarkerBuilder { markerListener = new MarkersChangeListener(view, this); scheduler = new MarkerUpdateScheduler(view, this); } - + void restoreState(IMemento memento) { if (memento == null) setDefaultCategoryGroup(getGenerator()); @@ -109,14 +109,14 @@ public class CachedMarkerBuilder { this.memento=memento; } /** - * + * */ void start() { active = true; registerTypesToListener(); PlatformUI.getWorkbench().getWorkingSetManager() .addPropertyChangeListener(getWorkingSetListener()); - + markerListener.start(); scheduleUpdate(); } @@ -128,12 +128,12 @@ public class CachedMarkerBuilder { markerListener.stop(); active=false; Job.getJobManager().cancel(MARKERSVIEW_UPDATE_JOB_FAMILY); - + if(workingSetListener!=null){ PlatformUI.getWorkbench().getWorkingSetManager() .removePropertyChangeListener(getWorkingSetListener()); } - + if (isIncremental()) { if(incrementJob!=null){ incrementJob.clearEntries(); @@ -143,7 +143,7 @@ public class CachedMarkerBuilder { /** * Return the group used to generate categories. - * + * * @return MarkerGroup or <code>null</code>. */ MarkerGroup getCategoryGroup() { @@ -152,7 +152,7 @@ public class CachedMarkerBuilder { /** * Return a new instance of the receiver with the field - * + * * @return MarkerComparator */ MarkerComparator getComparator() { @@ -170,7 +170,7 @@ public class CachedMarkerBuilder { /** * Return the generator for the receiver. - * + * * @return MarkerContentGenerator */ MarkerContentGenerator getGenerator() { @@ -179,7 +179,7 @@ public class CachedMarkerBuilder { /** * Return the primary sort field - * + * * @return MarkerField */ MarkerField getPrimarySortField() { @@ -188,7 +188,7 @@ public class CachedMarkerBuilder { /** * Get the sort direction of field - * + * * @param field * @return int one of {@link MarkerComparator#ASCENDING} or * {@link MarkerComparator#DESCENDING} @@ -201,7 +201,7 @@ public class CachedMarkerBuilder { /** * Return the total number of markers. - * + * * @return int */ int getTotalMarkerCount() { @@ -210,7 +210,7 @@ public class CachedMarkerBuilder { /** * Return the total number of markers. - * + * * @return int */ int getTotalMarkerCount(Markers markers) { @@ -227,7 +227,7 @@ public class CachedMarkerBuilder { /** * Return whether or not the receiver is building. - * + * * @return boolean */ boolean isBuilding() { @@ -240,10 +240,10 @@ public class CachedMarkerBuilder { void setBuilding(boolean building) { this.building =building; } - + /** * Return whether or not we are showing a hierarchy. - * + * * @return <code>true</code> if a hierarchy is being shown. */ boolean isShowingHierarchy() { @@ -252,7 +252,7 @@ public class CachedMarkerBuilder { /** * Refresh the sort order and categories of the receiver. - * + * */ void refreshContents(IWorkbenchSiteProgressService service) { try { @@ -275,7 +275,7 @@ public class CachedMarkerBuilder { } /** * Refresh the sort order and categories of the receiver. - * + * */ void refreshContents() { SortingJob job=new SortingJob(CachedMarkerBuilder.this); @@ -287,11 +287,11 @@ public class CachedMarkerBuilder { job.schedule(MarkerUpdateScheduler.SHORT_DELAY); } } - - + + /** * Save the state of the receiver to memento - * + * * @param memento */ void saveState(IMemento memento) { @@ -304,17 +304,17 @@ public class CachedMarkerBuilder { /** * Schedule an update of the markers with a delay. - * + * */ void scheduleUpdate() { if (active) { scheduler.scheduleUpdate(MarkerUpdateScheduler.SHORT_DELAY,true); } } - + /** * Schedule an update of the markers with a delay. - * + * */ void scheduleUpdate(long delay) { if (active) { @@ -334,17 +334,17 @@ public class CachedMarkerBuilder { /** * Schedule pending updates to happen quickly. - * + * */ void speedUpPendingUpdates() { if (active) { scheduler.speedUpPendingUpdates(); } } - + /** * Set the category group. - * + * * @param group * {@link MarkerGroup} or <code>null</code>. */ @@ -360,7 +360,7 @@ public class CachedMarkerBuilder { /** * Categorise by the default setting for contentGenerator. - * + * * @param contentGenerator */ private void setDefaultCategoryGroup(MarkerContentGenerator contentGenerator) { @@ -375,7 +375,7 @@ public class CachedMarkerBuilder { /** * Set the generator and update the contents. - * + * * @param newGenerator */ void setGenerator(MarkerContentGenerator newGenerator) { @@ -389,7 +389,7 @@ public class CachedMarkerBuilder { /** * Set the primary sort field for the receiver. - * + * * @param field */ void setPrimarySortField(MarkerField field) { @@ -403,7 +403,7 @@ public class CachedMarkerBuilder { } /** * Set the progress service for the receiver. - * + * * @param service */ void setProgressService(IWorkbenchSiteProgressService service) { @@ -425,11 +425,11 @@ public class CachedMarkerBuilder { IWorkbenchSiteProgressService getProgressService() { return progressService; } - + /** * The method should not be called directly, see * {@link MarkerUpdateScheduler} - * + * * schedules marker update job */ MarkerUpdateJob scheduleUpdateJob(long delay) { @@ -439,7 +439,7 @@ public class CachedMarkerBuilder { /** * The method should not be called directly, see * {@link MarkerUpdateScheduler} - * + * * schedules marker update job */ MarkerUpdateJob scheduleUpdateJob(long delay, boolean clean) { @@ -450,15 +450,15 @@ public class CachedMarkerBuilder { /** * The method should not be called directly, see * {@link MarkerUpdateScheduler} - * + * * schedules marker update job */ MarkerUpdateJob scheduleUpdateJob(long delay, boolean clean, boolean[] changeFlags) { - + setBuilding(true); updateChangeFlags(changeFlags); - + synchronized (getUpdateScheduler().getSchedulingLock()) { if (generator == null || !active) { return null; @@ -486,11 +486,11 @@ public class CachedMarkerBuilder { return updateJob; } } - + /** * The method should not be called directly, see * {@link MarkerUpdateScheduler} - * + * * Cancel a scheduled update */ void cancelUpdate() { @@ -506,7 +506,7 @@ public class CachedMarkerBuilder { MarkersChangeListener getMarkerListener() { return markerListener; } - + /** * @param markerListener The {@link MarkersChangeListener} to set. */ @@ -519,13 +519,13 @@ public class CachedMarkerBuilder { */ boolean includeMarkerSubTypes(){ /* - * TODO: sub-types included (hard-code?): generator(actually - * {@link ContentGeneratorDescriptor#getMarkerTypes()}) would + * TODO: sub-types included (hard-code?): generator(actually + * {@link ContentGeneratorDescriptor#getMarkerTypes()}) would * need changes if this is to become a variable. */ return true; } - + /** * Lets reset the types for listen at every update, fetching them during * every delta is wasteful. @@ -538,7 +538,7 @@ public class CachedMarkerBuilder { getMarkerListener().listenToTypes(generator.getTypes(), includeMarkerSubTypes()); } - + /** * @return Returns the markers. */ @@ -547,7 +547,7 @@ public class CachedMarkerBuilder { } /** * Create a listener for working set changes. - * + * * @return IPropertyChangeListener */ private IPropertyChangeListener getWorkingSetListener() { @@ -556,12 +556,12 @@ public class CachedMarkerBuilder { } return workingSetListener; } - - - + + + /** * Get the name for the preferences for the receiver. - * + * * @return String */ static String getMementoPreferenceName(String viewId) { @@ -577,7 +577,7 @@ public class CachedMarkerBuilder { /** * @return lastUpdateTime - * + * */ long getLastUpdateTime() { if (updateJob != null) { @@ -612,24 +612,24 @@ public class CachedMarkerBuilder { markersClone =markers.getClone(); return markersClone; } - + /////// <Incremental update code>/////// private IncrementUpdateJob incrementJob; /** * Checks whether the builder should perform incrementally Note : Incremental * updating method is NOT used and tested yet but left out for further * investigation(*). - * + * * @return Returns true if we should collect markers incrementally. */ boolean isIncremental() { /* - * We do not update incrementally. We have + * We do not update incrementally. We have * code for further investigation(*) for this anyway. */ return false; } - + /** * @return Returns the changeFlags {added,removed,changed}. */ @@ -644,7 +644,7 @@ public class CachedMarkerBuilder { /** * @param changeFlags - * + * */ void updateChangeFlags(boolean[] changeFlags) { for (int i = 0; i < changeFlags.length; i++) { @@ -665,9 +665,9 @@ public class CachedMarkerBuilder { incrementJob.addUpdate(update); } /////// </Incremental update code>/////// - + ///helpers// - + /** * The WorkingSet listener, since marker filters can be scoped to * workingsets; listen for changes to them. @@ -676,7 +676,7 @@ public class CachedMarkerBuilder { private class WorkingSetListener implements IPropertyChangeListener{ /* * (non-Javadoc) - * + * * @see * org.eclipse.jface.util.IPropertyChangeListener#propertyChange * (org.eclipse.jface.util.PropertyChangeEvent) diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/CompatibilityMarkerFieldFilterGroup.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/CompatibilityMarkerFieldFilterGroup.java index de8c89f1129..fdec9212d94 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/CompatibilityMarkerFieldFilterGroup.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/CompatibilityMarkerFieldFilterGroup.java @@ -16,9 +16,9 @@ import org.eclipse.ui.views.markers.internal.ProblemFilter; /** * CompatibilityMarkerFieldFilterGroup is a filter group that uses a * {@link ProblemFilter}. - * + * * @since 3.4 - * + * */ public class CompatibilityMarkerFieldFilterGroup extends MarkerFieldFilterGroup { @@ -26,7 +26,7 @@ public class CompatibilityMarkerFieldFilterGroup extends MarkerFieldFilterGroup /** * Create a new instance of the receiver based on the ProblemFilter. - * + * * @param filter * @param cachedMarkerBuilder */ @@ -40,7 +40,7 @@ public class CompatibilityMarkerFieldFilterGroup extends MarkerFieldFilterGroup /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.views.markers.MarkerFieldFilterGroup#getID() */ @Override @@ -50,7 +50,7 @@ public class CompatibilityMarkerFieldFilterGroup extends MarkerFieldFilterGroup /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.views.markers.MarkerFieldFilterGroup#getName() */ @Override @@ -60,7 +60,7 @@ public class CompatibilityMarkerFieldFilterGroup extends MarkerFieldFilterGroup /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.views.markers.MarkerFieldFilterGroup#isSystem() */ @Override @@ -70,7 +70,7 @@ public class CompatibilityMarkerFieldFilterGroup extends MarkerFieldFilterGroup /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.views.markers.MarkerFieldFilterGroup#makeWorkingCopy() */ @Override @@ -86,7 +86,7 @@ public class CompatibilityMarkerFieldFilterGroup extends MarkerFieldFilterGroup /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.views.markers.MarkerFieldFilterGroup#calculateFilters() */ @Override diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/CompletionConfigurationArea.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/CompletionConfigurationArea.java index b73b7df1b89..85d52ad766a 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/CompletionConfigurationArea.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/CompletionConfigurationArea.java @@ -23,9 +23,9 @@ import org.eclipse.ui.views.markers.internal.MarkerMessages; /** * CompletionConfigurationField is the field for the configuration of filters * based on configurations. - * + * * @since 3.4 - * + * */ public class CompletionConfigurationArea extends FilterConfigurationArea { @@ -51,7 +51,7 @@ public class CompletionConfigurationArea extends FilterConfigurationArea { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.api.FilterConfigurationArea#createContents(org.eclipse.swt.widgets.Composite) */ @Override @@ -67,7 +67,7 @@ public class CompletionConfigurationArea extends FilterConfigurationArea { completeButton.addSelectionListener(new SelectionAdapter() { /* * (non-Javadoc) - * + * * @see org.eclipse.swt.events.SelectionListener#widgetSelected(org.eclipse.swt.events.SelectionEvent) */ @Override @@ -83,7 +83,7 @@ public class CompletionConfigurationArea extends FilterConfigurationArea { incompleteButton.addSelectionListener(new SelectionAdapter() { /* * (non-Javadoc) - * + * * @see org.eclipse.swt.events.SelectionListener#widgetSelected(org.eclipse.swt.events.SelectionEvent) */ @Override @@ -98,7 +98,7 @@ public class CompletionConfigurationArea extends FilterConfigurationArea { /** * Update the completion value based on the constant and the selection * value. - * + * * @param constant * @param enabled */ @@ -113,7 +113,7 @@ public class CompletionConfigurationArea extends FilterConfigurationArea { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.api.FilterConfigurationArea#initialize(org.eclipse.ui.internal.provisional.views.markers.api.MarkerFieldFilter) */ @Override @@ -126,7 +126,7 @@ public class CompletionConfigurationArea extends FilterConfigurationArea { .setSelection((CompletionFieldFilter.NOT_COMPLETED & completionState) > 0); } - + /* (non-Javadoc) * @see org.eclipse.ui.internal.provisional.views.markers.api.FilterConfigurationArea#getTitle() */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/CompletionFieldFilter.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/CompletionFieldFilter.java index 66cd74deaa9..072d793c0f4 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/CompletionFieldFilter.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/CompletionFieldFilter.java @@ -19,9 +19,9 @@ import org.eclipse.ui.views.markers.internal.TaskFilter; /** * CompletionFieldFilter is the field filter for marker fields. - * + * * @since 3.4 - * + * */ public class CompletionFieldFilter extends CompatibilityFieldFilter { @@ -49,7 +49,7 @@ public class CompletionFieldFilter extends CompatibilityFieldFilter { completion = completionValue.intValue(); } - + /* (non-Javadoc) * @see org.eclipse.ui.internal.views.markers.CompatibilityFieldFilter#loadLegacySettings(org.eclipse.ui.IMemento, org.eclipse.ui.internal.views.markers.MarkerContentGenerator) */ @@ -61,19 +61,19 @@ public class CompletionFieldFilter extends CompatibilityFieldFilter { if (setting != null) { completion = Boolean.valueOf(setting).booleanValue() ? COMPLETED : NOT_COMPLETED; } - + } - + /* (non-Javadoc) * @see org.eclipse.ui.internal.views.markers.CompatibilityFieldFilter#initialize(org.eclipse.ui.views.markers.internal.ProblemFilter) */ @Override public void initialize(ProblemFilter problemFilter) { //Problem filters have no completion value - + } - + /* (non-Javadoc) * @see org.eclipse.ui.views.markers.MarkerFieldFilter#saveSettings(org.eclipse.ui.IMemento) */ @@ -104,7 +104,7 @@ public class CompletionFieldFilter extends CompatibilityFieldFilter { /** * Get the completion settings. - * @return int + * @return int * @see #COMPLETED * @see #NOT_COMPLETED */ @@ -121,7 +121,7 @@ public class CompletionFieldFilter extends CompatibilityFieldFilter { void setCompletion(int completion) { this.completion = completion; } - + /* (non-Javadoc) * @see org.eclipse.ui.views.markers.MarkerFieldFilter#populateWorkingCopy(org.eclipse.ui.views.markers.MarkerFieldFilter) diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/ConfigureColumnsHandler.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/ConfigureColumnsHandler.java index 67a3c698343..f407add1cdf 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/ConfigureColumnsHandler.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/ConfigureColumnsHandler.java @@ -17,15 +17,15 @@ import org.eclipse.ui.views.markers.MarkerViewHandler; /** * The ConfigureContentsDialogHandler is the handler for opening the contents * configuration dialog - * + * * @since 3.4 - * + * */ public class ConfigureColumnsHandler extends MarkerViewHandler implements IHandler { /* * (non-Javadoc) - * + * * @see org.eclipse.core.commands.IHandler#execute(org.eclipse.core.commands.ExecutionEvent) */ @Override diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/ConfigureContentsDialogHandler.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/ConfigureContentsDialogHandler.java index d5a4a6efb2c..05b631f6b56 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/ConfigureContentsDialogHandler.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/ConfigureContentsDialogHandler.java @@ -17,15 +17,15 @@ import org.eclipse.ui.views.markers.MarkerViewHandler; /** * The ConfigureContentsDialogHandler is the handler for opening the contents * configuration dialog - * + * * @since 3.4 - * + * */ public class ConfigureContentsDialogHandler extends MarkerViewHandler implements IHandler { /* * (non-Javadoc) - * + * * @see org.eclipse.core.commands.IHandler#execute(org.eclipse.core.commands.ExecutionEvent) */ @Override diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/DeleteCompletedHandler.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/DeleteCompletedHandler.java index 526c3692a2f..d5f48adb7af 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/DeleteCompletedHandler.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/DeleteCompletedHandler.java @@ -34,7 +34,7 @@ public class DeleteCompletedHandler extends MarkerViewHandler { /* * (non-Javadoc) - * + * * @see org.eclipse.core.commands.IHandler#execute(org.eclipse.core.commands.ExecutionEvent) */ @Override @@ -73,14 +73,14 @@ public class DeleteCompletedHandler extends MarkerViewHandler { MarkerMessages.deleteCompletedAction_title); execute(op, MarkerMessages.deleteCompletedTasks_errorMessage, null, WorkspaceUndoUtil.getUIInfoAdapter(view.getSite().getShell())); - + return this; } /** * Get the list of completed tasks from the view. - * + * * @param view * @return List of {@link IMarker} */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/DeleteHandler.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/DeleteHandler.java index aab9c57276f..852a8fb7296 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/DeleteHandler.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/DeleteHandler.java @@ -28,15 +28,15 @@ import org.eclipse.ui.views.markers.internal.MarkerMessages; /** * DeleteHandler is the handler for the deletion of a marker. - * + * * @since 3.4 - * + * */ public class DeleteHandler extends MarkerViewHandler { /* * (non-Javadoc) - * + * * @see org.eclipse.core.commands.IHandler#execute(org.eclipse.core.commands.ExecutionEvent) */ @Override @@ -47,7 +47,7 @@ public class DeleteHandler extends MarkerViewHandler { return this; final IMarker[] selected = getSelectedMarkers(event); - + // Verify. MessageDialog dialog = new MessageDialog( view.getSite().getShell(), @@ -61,7 +61,7 @@ public class DeleteHandler extends MarkerViewHandler { if (dialog.open() != 0) { return view; } - + WorkspaceJob deleteJob= new WorkspaceJob(IDEWorkbenchMessages.MarkerDeleteHandler_JobTitle) { //See Bug#250807 @Override public IStatus runInWorkspace(IProgressMonitor monitor) { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/DeltaMarkerEntry.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/DeltaMarkerEntry.java index 9e5e34e982e..ed5dbcb736e 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/DeltaMarkerEntry.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/DeltaMarkerEntry.java @@ -21,9 +21,9 @@ import com.ibm.icu.text.CollationKey; /** * The DeltaMarkerEntry is the class that wraps an {@link IMarkerDelta} for testing. - * + * * @since 3.6 - * + * */ class DeltaMarkerEntry extends MarkerEntry { @@ -31,8 +31,8 @@ class DeltaMarkerEntry extends MarkerEntry { /** * Create a new instance of the receiver. - * @param markerDelta - * + * @param markerDelta + * */ public DeltaMarkerEntry(IMarkerDelta markerDelta) { super(markerDelta.getMarker()); @@ -55,7 +55,7 @@ class DeltaMarkerEntry extends MarkerEntry { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.views.markers.MarkerSupportItem#getCreationTime() */ @Override @@ -66,7 +66,7 @@ class DeltaMarkerEntry extends MarkerEntry { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.views.markers.MarkerSupportItem#getID() */ @Override @@ -76,7 +76,7 @@ class DeltaMarkerEntry extends MarkerEntry { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.views.markers.MarkerSupportItem#getMarkerTypeName() */ @Override @@ -87,7 +87,7 @@ class DeltaMarkerEntry extends MarkerEntry { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.MarkerItem#getPath() */ @Override diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/DescriptionConfigurationArea.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/DescriptionConfigurationArea.java index 07f3abb1187..0d10370052c 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/DescriptionConfigurationArea.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/DescriptionConfigurationArea.java @@ -31,7 +31,7 @@ import org.eclipse.ui.views.markers.internal.MarkerMessages; /** * DescriptionConfigurationArea is the configuration area for description * configuration fields. - * + * */ public class DescriptionConfigurationArea extends FilterConfigurationArea { @@ -47,7 +47,7 @@ public class DescriptionConfigurationArea extends FilterConfigurationArea { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.api.FilterConfigurationArea#apply(org.eclipse.ui.internal.provisional.views.markers.api.MarkerFieldFilter) */ @Override @@ -64,7 +64,7 @@ public class DescriptionConfigurationArea extends FilterConfigurationArea { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.api.FilterConfigurationArea#createContents(org.eclipse.swt.widgets.Composite) */ @Override @@ -74,7 +74,7 @@ public class DescriptionConfigurationArea extends FilterConfigurationArea { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.api.FilterConfigurationArea#initialize(org.eclipse.ui.internal.provisional.views.markers.api.MarkerFieldFilter) */ @Override @@ -92,7 +92,7 @@ public class DescriptionConfigurationArea extends FilterConfigurationArea { /** * Create the group for the description filter. - * + * * @param parent */ private void createDescriptionGroup(Composite parent) { @@ -134,7 +134,7 @@ public class DescriptionConfigurationArea extends FilterConfigurationArea { descriptionText.setLayoutData(data); } - + /* (non-Javadoc) * @see org.eclipse.ui.views.markers.FilterConfigurationArea#getTitle() */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/DescriptionFieldFilter.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/DescriptionFieldFilter.java index d39dbf36793..54279081fb2 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/DescriptionFieldFilter.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/DescriptionFieldFilter.java @@ -20,9 +20,9 @@ import org.eclipse.ui.views.markers.internal.ProblemFilter; /** * DescriptionFieldFilter is the filter for descriptions. - * + * * @since 3.4 - * + * */ public class DescriptionFieldFilter extends CompatibilityFieldFilter { @@ -41,7 +41,7 @@ public class DescriptionFieldFilter extends CompatibilityFieldFilter { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.api.MarkerFieldFilter#loadSettings(org.eclipse.ui.IMemento) */ @Override @@ -78,7 +78,7 @@ public class DescriptionFieldFilter extends CompatibilityFieldFilter { } } - + /* (non-Javadoc) * @see org.eclipse.ui.views.markers.MarkerFieldFilter#saveSettings(org.eclipse.ui.IMemento) */ @@ -104,7 +104,7 @@ public class DescriptionFieldFilter extends CompatibilityFieldFilter { } - + /* (non-Javadoc) * @see org.eclipse.ui.views.markers.MarkerFieldFilter#populateWorkingCopy(org.eclipse.ui.views.markers.MarkerFieldFilter) */ @@ -118,7 +118,7 @@ public class DescriptionFieldFilter extends CompatibilityFieldFilter { /** * Return the contains modifier. - * + * * @return One of {@link MarkerSupportConstants#CONTAINS_KEY} or * {@link MarkerSupportConstants#DOES_NOT_CONTAIN_KEY} */ @@ -128,7 +128,7 @@ public class DescriptionFieldFilter extends CompatibilityFieldFilter { /** * Set the contains modifier. - * + * * @param containsString * One of {@link MarkerSupportConstants#CONTAINS_KEY} or * {@link MarkerSupportConstants#DOES_NOT_CONTAIN_KEY} @@ -139,7 +139,7 @@ public class DescriptionFieldFilter extends CompatibilityFieldFilter { /** * Return the text to apply the containsModifier to. - * + * * @return String */ String getContainsText() { @@ -148,7 +148,7 @@ public class DescriptionFieldFilter extends CompatibilityFieldFilter { /** * Set the text to apply the containsModifier to. - * + * * @param containsText * String */ @@ -177,7 +177,7 @@ public class DescriptionFieldFilter extends CompatibilityFieldFilter { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.views.markers.CompatibilityFieldFilter#initialize(org.eclipse.ui.views.markers.internal.ProblemFilter) */ @Override diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/EditablePropertyTester.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/EditablePropertyTester.java index f16f3b47e93..643e0cde4f7 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/EditablePropertyTester.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/EditablePropertyTester.java @@ -21,9 +21,9 @@ import org.eclipse.core.resources.IMarker; /** * EditablePropertyTester is a property tester for the editable property of the * selected marker. - * + * * @since 3.4 - * + * */ public class EditablePropertyTester extends PropertyTester { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/ErrorsWarningsParameters.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/ErrorsWarningsParameters.java index 1fd51ae23cb..013fb35d266 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/ErrorsWarningsParameters.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/ErrorsWarningsParameters.java @@ -19,9 +19,9 @@ import org.eclipse.ui.views.markers.FiltersContributionParameters; /** * ErrorsWarningsParameters is the parameters for errors and warnings. - * + * * @since 3.5 - * + * */ public class ErrorsWarningsParameters extends FiltersContributionParameters { @@ -41,7 +41,7 @@ public class ErrorsWarningsParameters extends FiltersContributionParameters { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.FiltersContributionParameters#getParameterValues() */ @Override diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/ExtendedMarkersView.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/ExtendedMarkersView.java index 8a50e1de9e3..0149898f04d 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/ExtendedMarkersView.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/ExtendedMarkersView.java @@ -1750,7 +1750,7 @@ public class ExtendedMarkersView extends ViewPart { * <p> * See bug 401632 why we can't use {@link IWorkbenchPage#isPartVisible(IWorkbenchPart)}. * </p> - * + * * @return <code>true</code> if this view is visible, <code>false</code> otherwise */ boolean isVisible() { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/FileMarkerPropertyTester.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/FileMarkerPropertyTester.java index 8563facf62a..47779d47aaa 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/FileMarkerPropertyTester.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/FileMarkerPropertyTester.java @@ -17,9 +17,9 @@ import org.eclipse.core.resources.IResource; /** * FileMarkerPropertyTester is a property tester for a marker entry to see if it * is a marker that has a file behind it. - * + * * @since 3.4 - * + * */ public class FileMarkerPropertyTester extends PropertyTester { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/FiltersConfigurationDialog.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/FiltersConfigurationDialog.java index 3a2bcb18d90..ab8527f476a 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/FiltersConfigurationDialog.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/FiltersConfigurationDialog.java @@ -7,7 +7,7 @@ * * Contributors: * IBM Corporation - initial API and implementation - * Remy Chi Jian Suen <remy.suen@gmail.com> + * Remy Chi Jian Suen <remy.suen@gmail.com> * - Fix for Bug 214443 Problem view filter created even if I hit Cancel ******************************************************************************/ @@ -67,9 +67,9 @@ import org.eclipse.ui.views.markers.internal.MarkerMessages; /** * FiltersConfigurationDialog is the dialog for configuring the filters for the - * + * * @since 3.3 - * + * */ public class FiltersConfigurationDialog extends ViewSettingsDialog { @@ -88,7 +88,7 @@ public class FiltersConfigurationDialog extends ViewSettingsDialog { private Button removeButton; private Button renameButton; - + private Button allButton; private Button andButton; private Button orButton; @@ -101,12 +101,12 @@ public class FiltersConfigurationDialog extends ViewSettingsDialog { private Collection configAreas; private Label limitsLabel; - + private Object[] previouslyChecked = new Object[0]; /** * Create a new instance of the receiver on builder. - * + * * @param parentShell * @param generator */ @@ -120,7 +120,7 @@ public class FiltersConfigurationDialog extends ViewSettingsDialog { /** * Return whether or not to AND the filters - * + * * @return boolean */ boolean andFilters() { @@ -129,7 +129,7 @@ public class FiltersConfigurationDialog extends ViewSettingsDialog { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.views.markers.ViewerSettingsAndStatusDialog# * configureShell(org.eclipse.swt.widgets.Shell) */ @@ -141,7 +141,7 @@ public class FiltersConfigurationDialog extends ViewSettingsDialog { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.dialogs.Dialog#isResizable() */ @Override @@ -151,7 +151,7 @@ public class FiltersConfigurationDialog extends ViewSettingsDialog { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.views.markers.ViewerSettingsAndStatusDialog# * createDialogContentArea(org.eclipse.swt.widgets.Composite) */ @@ -162,7 +162,7 @@ public class FiltersConfigurationDialog extends ViewSettingsDialog { container.setLayout(new GridLayout()); container.setLayoutData(new GridData(GridData.FILL_BOTH)); container.setFont(parent.getFont()); - + Composite composite = new Composite(container, SWT.NONE); GridLayout layout = new GridLayout(); layout.marginHeight = 0; @@ -275,7 +275,7 @@ public class FiltersConfigurationDialog extends ViewSettingsDialog { limitText.setEnabled(limitButton.getSelection()); } }); - + GridData limitData = new GridData(); limitData.verticalIndent = 5; limitButton.setLayoutData(limitData); @@ -449,7 +449,7 @@ public class FiltersConfigurationDialog extends ViewSettingsDialog { /** * Create a field area in the form for the FilterConfigurationArea - * + * * @param toolkit * @param form * @param area @@ -520,7 +520,7 @@ public class FiltersConfigurationDialog extends ViewSettingsDialog { }); removeButton.setEnabled(false); setButtonLayoutData(removeButton); - + renameButton = new Button(buttons, SWT.PUSH); renameButton.setText(MarkerMessages.MarkerFilter_renameName); renameButton.addSelectionListener(new SelectionAdapter() { @@ -535,26 +535,26 @@ public class FiltersConfigurationDialog extends ViewSettingsDialog { } private void renameFilter() { - + MarkerFieldFilterGroup filterGroup = getSelectionFromTable(); IInputValidator nameValidator = getNameValidator(filterGroup.getName(), getCurrentConfigurationNames()); - + InputDialog inputDialog = new InputDialog(getShell(), MarkerMessages.MarkerFilterDialog_title, MarkerMessages.MarkerFilterDialog_message, filterGroup.getName(), nameValidator); - + if(inputDialog.open() == Window.OK) { filterGroup.setName(inputDialog.getValue()); configsTable.refresh(filterGroup); } - + } private IInputValidator getNameValidator(final String currentName, final Collection existingNames) { return new IInputValidator() { - + @Override public String isValid(String newText) { newText = newText.trim(); @@ -607,7 +607,7 @@ public class FiltersConfigurationDialog extends ViewSettingsDialog { /** * Get a collection of names of the filters currently in the list - * + * * @return Collection */ private Collection getCurrentConfigurationNames() { @@ -652,7 +652,7 @@ public class FiltersConfigurationDialog extends ViewSettingsDialog { /** * Return the dialog settings for the receiver. - * + * * @return IDialogSettings */ private IDialogSettings getDialogSettings() { @@ -669,7 +669,7 @@ public class FiltersConfigurationDialog extends ViewSettingsDialog { /** * Return the filter groups modified by the receiver. - * + * * @return Collection of {@link MarkerFieldFilterGroup} */ Collection getFilters() { @@ -725,7 +725,7 @@ public class FiltersConfigurationDialog extends ViewSettingsDialog { /** * Make a working copy of the groups. - * + * * @param groups * @return Collection of MarkerFieldFilterGroup */ @@ -744,7 +744,7 @@ public class FiltersConfigurationDialog extends ViewSettingsDialog { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.dialogs.Dialog#okPressed() */ @Override @@ -798,7 +798,7 @@ public class FiltersConfigurationDialog extends ViewSettingsDialog { /** * Remove the filters in selection. - * + * * @param selection */ private void removeFilters(ISelection selection) { @@ -812,7 +812,7 @@ public class FiltersConfigurationDialog extends ViewSettingsDialog { * Save the dialog settings for the receiver. */ private void saveDialogSettings() { - + IDialogSettings settings = getDialogSettings(); if (selectedFilterGroup != null) @@ -823,7 +823,7 @@ public class FiltersConfigurationDialog extends ViewSettingsDialog { selectedNames[i] = ((MarkerFieldFilterGroup)previouslyChecked[i]).getName(); } settings.put(PREV_SELECTED_ELEMENTS, selectedNames); - + } private void updateButtonEnablement(MarkerFieldFilterGroup group) { @@ -840,7 +840,7 @@ public class FiltersConfigurationDialog extends ViewSettingsDialog { /** * Set the control and all of it's visibility state to visible. - * + * * @param enabled * @param control */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/FiltersContribution.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/FiltersContribution.java index 871878f834c..a1eef9eaeb0 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/FiltersContribution.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/FiltersContribution.java @@ -26,15 +26,15 @@ import org.eclipse.ui.views.markers.internal.MarkerMessages; /** * FiltersContribution is the contribution for the filters menu. - * + * * @since 3.4 - * + * */ public class FiltersContribution extends MarkersContribution { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.actions.CompoundContributionItem#getContributionItems() */ @Override @@ -57,7 +57,7 @@ public class FiltersContribution extends MarkersContribution { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.action.ContributionItem#fill(org.eclipse.swt.widgets.Menu, * int) */ @@ -75,7 +75,7 @@ public class FiltersContribution extends MarkersContribution { /** * Return the menu item listener for selection of a filter. - * + * * @param group * @param view * @return Listener @@ -86,7 +86,7 @@ public class FiltersContribution extends MarkersContribution { return new Listener() { /* * (non-Javadoc) - * + * * @see org.eclipse.swt.widgets.Listener#handleEvent(org.eclipse.swt.widgets.Event) */ @Override @@ -108,14 +108,14 @@ public class FiltersContribution extends MarkersContribution { /** * Return the show all contribution. - * + * * @return IContributionItem */ private IContributionItem getShowAllContribution() { return new ContributionItem() { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.action.ContributionItem#fill(org.eclipse.swt.widgets.Menu, * int) */ @@ -128,7 +128,7 @@ public class FiltersContribution extends MarkersContribution { item.addListener(SWT.Selection, new Listener() { /* * (non-Javadoc) - * + * * @see org.eclipse.swt.widgets.Listener#handleEvent(org.eclipse.swt.widgets.Event) */ @Override @@ -142,7 +142,7 @@ public class FiltersContribution extends MarkersContribution { /** * Return whether or not any filters are selected. - * + * * @return boolean <code>true</code> if none of the current * filters are selected. */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/GroupFilterConfigurationArea.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/GroupFilterConfigurationArea.java index eb5106fa558..87d5fddc1cf 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/GroupFilterConfigurationArea.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/GroupFilterConfigurationArea.java @@ -20,13 +20,13 @@ import org.eclipse.ui.views.markers.FilterConfigurationArea; * */ abstract class GroupFilterConfigurationArea extends FilterConfigurationArea { - + /** * Apply to the group * @param group */ public abstract void applyToGroup(MarkerFieldFilterGroup group); - + /** * Initialise from the group * @param group diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/GroupsContribution.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/GroupsContribution.java index 8297c2c59c9..ad15841db7e 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/GroupsContribution.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/GroupsContribution.java @@ -25,9 +25,9 @@ import org.eclipse.ui.views.markers.internal.MarkerMessages; /** * GroupsContribution is the contribution for the marker groupings. - * + * * @since 3.4 - * + * */ public class GroupsContribution extends MarkersContribution { @@ -40,7 +40,7 @@ public class GroupsContribution extends MarkersContribution { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.actions.CompoundContributionItem#getContributionItems() */ @Override @@ -69,7 +69,7 @@ public class GroupsContribution extends MarkersContribution { /** * Return the IContributionItem for group. - * + * * @param group * @return IContributionItem */ @@ -78,7 +78,7 @@ public class GroupsContribution extends MarkersContribution { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.action.ContributionItem#fill(org.eclipse.swt.widgets.Menu, * int) */ @@ -104,7 +104,7 @@ public class GroupsContribution extends MarkersContribution { /** * Return the menu item listener for selection of a filter. - * + * * @param group * @param view * @return Listener @@ -114,7 +114,7 @@ public class GroupsContribution extends MarkersContribution { return new Listener() { /* * (non-Javadoc) - * + * * @see org.eclipse.swt.widgets.Listener#handleEvent(org.eclipse.swt.widgets.Event) */ @Override diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/IncrementUpdateJob.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/IncrementUpdateJob.java index 90e5802e57f..3116b15dae0 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/IncrementUpdateJob.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/IncrementUpdateJob.java @@ -25,9 +25,9 @@ import org.eclipse.ui.views.markers.internal.MarkerMessages; * schedules an UI update. If it'll be possible and beneficial switch to * incremental updatation, this has been left out for further investigation(*). * only, and not used currently. - * + * * @since 3.6 - * + * */ class IncrementUpdateJob extends MarkerUpdateJob { @@ -44,7 +44,7 @@ class IncrementUpdateJob extends MarkerUpdateJob { /* * (non-Javadoc) - * + * * @seeorg.eclipse.core.runtime.jobs.Job#run(org.eclipse.core.runtime. * IProgressMonitor) */ @@ -102,7 +102,7 @@ class IncrementUpdateJob extends MarkerUpdateJob { /** * Update the list - * + * * @param markerEntries */ private boolean updateIncrementalList(Collection markerEntries) { @@ -120,7 +120,7 @@ class IncrementUpdateJob extends MarkerUpdateJob { /** * Process the incremental updates - * + * * @param monitor */ private boolean processUpdates(IProgressMonitor monitor) { @@ -282,7 +282,7 @@ class IncrementUpdateJob extends MarkerUpdateJob { /** * Add update to the list - * + * * @param update */ void addUpdate(MarkerUpdate update) { @@ -294,7 +294,7 @@ class IncrementUpdateJob extends MarkerUpdateJob { /* * (non-Javadoc) - * + * * @see org.eclipse.core.runtime.jobs.Job#belongsTo(java.lang.Object) */ @Override diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkCompletedHandler.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkCompletedHandler.java index a3ed60c2df4..e393ac6d55d 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkCompletedHandler.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkCompletedHandler.java @@ -31,15 +31,15 @@ import org.eclipse.ui.views.markers.internal.MarkerMessages; /** * MarkCompletedHandler is the handler for marking the current selection as * completed. - * + * * @since 3.4 - * + * */ public class MarkCompletedHandler extends MarkerViewHandler { /* * (non-Javadoc) - * + * * @see org.eclipse.core.commands.IHandler#execute(org.eclipse.core.commands.ExecutionEvent) */ @Override @@ -51,7 +51,7 @@ public class MarkCompletedHandler extends MarkerViewHandler { new IRunnableWithProgress() { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.operation.IRunnableWithProgress#run(org.eclipse.core.runtime.IProgressMonitor) */ @Override diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerCategory.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerCategory.java index 6486a051f5a..423b316efa2 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerCategory.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerCategory.java @@ -17,9 +17,9 @@ import org.eclipse.ui.views.markers.MarkerItem; import org.eclipse.ui.views.markers.internal.MarkerMessages; class MarkerCategory extends MarkerSupportItem { - + boolean refreshing; - + int start; int end; @@ -35,7 +35,7 @@ class MarkerCategory extends MarkerSupportItem { /** * Create a new instance of the receiver that has the markers between * startIndex and endIndex showing. - * + * * @param markers * @param startIndex * @param endIndex @@ -52,7 +52,7 @@ class MarkerCategory extends MarkerSupportItem { /* * (non-Javadoc) - * + * * @see * org.eclipse.ui.internal.views.markers.MarkerSupportItem#getChildren() */ @@ -72,7 +72,7 @@ class MarkerCategory extends MarkerSupportItem { /* * (non-Javadoc) - * + * * @see * org.eclipse.ui.internal.views.markers.MarkerSupportItem#getChildrenCount * () @@ -84,7 +84,7 @@ class MarkerCategory extends MarkerSupportItem { /* * (non-Javadoc) - * + * * @see * org.eclipse.ui.internal.views.markers.MarkerSupportItem#getDescription() */ @@ -118,7 +118,7 @@ class MarkerCategory extends MarkerSupportItem { /** * Get the highest severity in the receiver. - * + * * @return int */ int getHighestSeverity() { @@ -141,7 +141,7 @@ class MarkerCategory extends MarkerSupportItem { /** * Return the name of the receiver. - * + * * @return String */ String getName() { @@ -150,7 +150,7 @@ class MarkerCategory extends MarkerSupportItem { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.views.markers.MarkerSupportItem#getParent() */ @Override @@ -160,7 +160,7 @@ class MarkerCategory extends MarkerSupportItem { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.views.markers.MarkerSupportItem#isConcrete() */ @Override diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerColumnLabelProvider.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerColumnLabelProvider.java index b8a7037b1e6..ca1558bb886 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerColumnLabelProvider.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerColumnLabelProvider.java @@ -21,9 +21,9 @@ import org.eclipse.ui.views.markers.MarkerField; /** * The MarkerColumnLabelProvider is a label provider for an individual column. - * + * * @since 3.4 - * + * */ public class MarkerColumnLabelProvider extends ColumnLabelProvider { @@ -32,7 +32,7 @@ public class MarkerColumnLabelProvider extends ColumnLabelProvider { /** * Create a MarkerViewLabelProvider on a field. - * + * * @param field */ MarkerColumnLabelProvider(MarkerField field) { @@ -45,7 +45,7 @@ public class MarkerColumnLabelProvider extends ColumnLabelProvider { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.BaseLabelProvider#dispose() */ @Override @@ -56,7 +56,7 @@ public class MarkerColumnLabelProvider extends ColumnLabelProvider { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.ColumnLabelProvider#update(org.eclipse.jface.viewers.ViewerCell) */ @Override diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerComparator.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerComparator.java index a32957cf7f1..62c3851205c 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerComparator.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerComparator.java @@ -22,9 +22,9 @@ import org.eclipse.ui.views.markers.MarkerItem; /** * The MarkerComparator is the class that handles the comparison of markers for * a specific content provider. - * + * * @since 3.4 - * + * */ class MarkerComparator implements Comparator { @@ -49,7 +49,7 @@ class MarkerComparator implements Comparator { /** * Create a new instance of the receiver categorised by categoryField - * + * * @param categoryField * May be <code>null/<code> * @param mainFields in order of compare significance @@ -61,7 +61,7 @@ class MarkerComparator implements Comparator { /** * Compare the two objects to see if they have the same category value - * + * * @param object1 * @param object2 * @return int @@ -72,11 +72,11 @@ class MarkerComparator implements Comparator { return 0; return category.compare((MarkerItem) object1, (MarkerItem) object2); } - + /** * Comparator to compare the two MarkerEntry(s) to see if they have the same * category value - * + * * @return Comparator */ Comparator getCategoryComparator(){ @@ -84,13 +84,13 @@ class MarkerComparator implements Comparator { @Override public int compare(Object o1, Object o2) { return compareCategory(o1, o2); - } + } }; } /* * (non-Javadoc) - * + * * @see java.util.Comparator#compare(java.lang.Object, java.lang.Object) */ @Override @@ -106,7 +106,7 @@ class MarkerComparator implements Comparator { /** * Compare the two objects by various fields - * + * * @param item0 * @param item1 * @return int @@ -126,7 +126,7 @@ class MarkerComparator implements Comparator { } /** * Comparator to compare the two MarkerEntry(s) by various fields - * + * * @return Comparator */ Comparator getFieldsComparator(){ @@ -134,14 +134,14 @@ class MarkerComparator implements Comparator { @Override public int compare(Object o1, Object o2) { return compareFields(o1, o2); - } + } }; } /** * Switch the priority of the field from ascending to descending or vice * versa. - * + * * @param field */ public void reversePriority(MarkerField field) { @@ -153,7 +153,7 @@ class MarkerComparator implements Comparator { /** * Set field to be the first sort field. - * + * * @param field */ void setPrimarySortField(MarkerField field) { @@ -178,7 +178,7 @@ class MarkerComparator implements Comparator { /** * Restore the receiver's state from memento. - * + * * @param memento */ void restore(IMemento memento) { @@ -214,7 +214,7 @@ class MarkerComparator implements Comparator { /** * Save the current sort field in the memento. - * + * * @param memento */ void saveState(IMemento memento) { @@ -231,7 +231,7 @@ class MarkerComparator implements Comparator { /** * Get the field that is the main sort field - * + * * @return MarkerField */ MarkerField getPrimarySortField() { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerCompletionField.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerCompletionField.java index f83600958bb..2665b6e2d41 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerCompletionField.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerCompletionField.java @@ -27,9 +27,9 @@ import org.eclipse.ui.views.markers.MarkerItem; /** * MarkerCompletionField is the class that specifies the completion entry. - * + * * @since 3.4 - * + * */ public class MarkerCompletionField extends MarkerField { @@ -39,7 +39,7 @@ public class MarkerCompletionField extends MarkerField { /** * Create a new instance of the receiver. - * + * * @param viewer */ public CompletionEditingSupport(ColumnViewer viewer) { @@ -50,7 +50,7 @@ public class MarkerCompletionField extends MarkerField { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.EditingSupport#canEdit(java.lang.Object) */ @Override @@ -63,7 +63,7 @@ public class MarkerCompletionField extends MarkerField { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.EditingSupport#getCellEditor(java.lang.Object) */ @Override @@ -73,7 +73,7 @@ public class MarkerCompletionField extends MarkerField { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.EditingSupport#getValue(java.lang.Object) */ @Override @@ -84,7 +84,7 @@ public class MarkerCompletionField extends MarkerField { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.EditingSupport#setValue(java.lang.Object, * java.lang.Object) */ @@ -119,7 +119,7 @@ public class MarkerCompletionField extends MarkerField { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.api.MarkerField#compare(org.eclipse.ui.internal.provisional.views.markers.api.MarkerItem, * org.eclipse.ui.internal.provisional.views.markers.api.MarkerItem) */ @@ -130,7 +130,7 @@ public class MarkerCompletionField extends MarkerField { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.MarkerField#getColumnHeaderText() */ @Override @@ -140,7 +140,7 @@ public class MarkerCompletionField extends MarkerField { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.api.MarkerField#getColumnTooltipText() */ @Override @@ -150,7 +150,7 @@ public class MarkerCompletionField extends MarkerField { /** * Return the image for task completion. - * + * * @return Image */ private Image getCompleteImage() { @@ -160,7 +160,7 @@ public class MarkerCompletionField extends MarkerField { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.api.MarkerField#getDefaultColumnWidth(org.eclipse.swt.widgets.Control) */ @Override @@ -170,7 +170,7 @@ public class MarkerCompletionField extends MarkerField { /** * Return the constant that indicates whether or not the receiver is done - * + * * @param item * @return 1 if it is done, 0 if it not and -1 if it cannot be determined. */ @@ -190,7 +190,7 @@ public class MarkerCompletionField extends MarkerField { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.api.MarkerField#getEditingSupport(org.eclipse.jface.viewers.ColumnViewer) */ @Override @@ -201,7 +201,7 @@ public class MarkerCompletionField extends MarkerField { /** * Get the image for item. - * + * * @param element * @return Image */ @@ -220,7 +220,7 @@ public class MarkerCompletionField extends MarkerField { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.MarkerField#getValue(org.eclipse.ui.internal.provisional.views.markers.MarkerItem) */ @Override @@ -230,7 +230,7 @@ public class MarkerCompletionField extends MarkerField { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.MarkerField#update(org.eclipse.jface.viewers.ViewerCell) */ @Override diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerContentGenerator.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerContentGenerator.java index 3a8339b3e5b..6abfc8287d1 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerContentGenerator.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerContentGenerator.java @@ -53,9 +53,9 @@ import org.eclipse.ui.views.markers.internal.Util; /** * MarkerContentGenerator is the representation of the markerContentGenerator * extension point. - * + * * @since 3.4 - * + * */ public class MarkerContentGenerator { @@ -69,7 +69,7 @@ public class MarkerContentGenerator { private static final String TAG_LEGACY_FILTER_ENTRY = "filter"; //$NON-NLS-1$ private static final String TAG_MARKER_LIMIT = "markerLimit"; //$NON-NLS-1$ private static final String TAG_MARKER_LIMIT_ENABLED = "markerLimitEnabled"; //$NON-NLS-1$ - + /*Use this to indicate filter change rather than a null*/ private final Collection FILTERS_CHANGED = Collections.EMPTY_SET; @@ -88,20 +88,20 @@ public class MarkerContentGenerator { /** * focusResources - * + * */ private IResource[] selectedResources = MarkerSupportInternalUtilities.EMPTY_RESOURCE_ARRAY; - + private Collection currentResources = Collections.EMPTY_SET; private CachedMarkerBuilder builder; private String viewId; private IPropertyChangeListener filterPreferenceListener; - + /** * Create a new MarkerContentGenerator - * + * * @param generatorDescriptor * @param builder * @param viewId @@ -117,7 +117,7 @@ public class MarkerContentGenerator { /** * Attach the generator to a builder - * + * * @param builder */ void setBuilder(CachedMarkerBuilder builder) { @@ -145,7 +145,7 @@ public class MarkerContentGenerator { /** * Return whether or not all of {@link MarkerTypesModel} arein the * selectedTypes. - * + * * @param selectedTypes * @return boolean */ @@ -155,7 +155,7 @@ public class MarkerContentGenerator { /** * Get the all of the fields that this content generator is using. - * + * * @return {@link MarkerField}[] */ MarkerField[] getAllFields() { @@ -164,7 +164,7 @@ public class MarkerContentGenerator { /** * Get the fields that this content generator is displaying. - * + * * @return {@link MarkerField}[] */ MarkerField[] getVisibleFields() { @@ -173,7 +173,7 @@ public class MarkerContentGenerator { /** * Set the visible fields. - * + * * @param visible */ void setVisibleFields(Collection visible) { @@ -186,7 +186,7 @@ public class MarkerContentGenerator { /** * Return the fields not being shown currently. - * + * * @return Object[] */ Object[] getHiddenFields() { @@ -219,7 +219,7 @@ public class MarkerContentGenerator { if (memento == null) { return; } - + Integer limits = memento.getInteger(TAG_MARKER_LIMIT); if (limits != null) { markerLimits = limits.intValue(); @@ -229,34 +229,34 @@ public class MarkerContentGenerator { if (limitsEnabled != null) { markerLimitsEnabled = limitsEnabled.booleanValue(); } - + if (memento.getChildren(TAG_COLUMN_VISIBILITY).length != 0) { IMemento[] visible = memento.getChildren(TAG_COLUMN_VISIBILITY); Collection newVisible = new ArrayList(); - + MarkerField[] all = getAllFields(); Hashtable allTable = new Hashtable(); - + for (int i = 0; i < all.length; i++) { allTable.put(all[i].getConfigurationElement().getAttribute( MarkerSupportInternalUtilities.ATTRIBUTE_ID), all[i]); } - + for (int i = 0; i < visible.length; i++) { String key = visible[i].getID(); if (allTable.containsKey(key)) { newVisible.add(allTable.get(key)); } } - + visibleFields = new MarkerField[newVisible.size()]; newVisible.toArray(visibleFields); } } private void initDefaults() { - + IPreferenceStore store = IDEWorkbenchPlugin.getDefault() .getPreferenceStore(); markerLimitsEnabled = store @@ -273,7 +273,7 @@ public class MarkerContentGenerator { /** * Return a collection of all of the configuration fields for this generator - * + * * @return Collection of {@link FilterConfigurationArea} */ Collection createFilterConfigurationFields() { @@ -298,7 +298,7 @@ public class MarkerContentGenerator { /** * Return all of the filters for the receiver. - * + * * @return Collection of MarkerFieldFilterGroup */ Collection getAllFilters() { @@ -313,7 +313,7 @@ public class MarkerContentGenerator { /** * Return the currently enabled filters. - * + * * @return Collection of MarkerFieldFilterGroup */ Collection getEnabledFilters() { @@ -358,7 +358,7 @@ public class MarkerContentGenerator { /** * Add group to the enabled filters. - * + * * @param group */ void toggleFilter(MarkerFieldFilterGroup group) { @@ -376,7 +376,7 @@ public class MarkerContentGenerator { /** * Update the filters. - * + * * @param filters * @param andFilters */ @@ -390,7 +390,7 @@ public class MarkerContentGenerator { /** * Set whether the filters are being ANDed or ORed. - * + * * @param and */ void setAndFilters(boolean and) { @@ -399,34 +399,34 @@ public class MarkerContentGenerator { /** * Return whether the filters are being ANDed or ORed. - * + * * @return boolean */ boolean andFilters() { return andFilters; } - + /** * @return Returns the markerLimits. */ public int getMarkerLimits() { return markerLimits; } - + /** * @param markerLimits The markerLimits to set. */ public void setMarkerLimits(int markerLimits) { this.markerLimits = markerLimits; } - + /** * @return Returns the markerLimitsEnabled. */ public boolean isMarkerLimitsEnabled() { return markerLimitsEnabled; } - + /** * @param markerLimitsEnabled The markerLimitsEnabled to set. */ @@ -457,7 +457,7 @@ public class MarkerContentGenerator { /** * Get the name of the filters preference for the receiver, - * + * * @return String */ private String getLegacyFiltersPreferenceName() { @@ -470,7 +470,7 @@ public class MarkerContentGenerator { } private void loadLimitSettings(IMemento memento) { - + if (memento == null) return; @@ -483,12 +483,12 @@ public class MarkerContentGenerator { if (limitsEnabled != null) { markerLimitsEnabled = limitsEnabled.booleanValue(); } - + } - + /** * Load the settings from the memento. - * + * * @param memento */ private void loadFilterSettings(IMemento memento) { @@ -516,7 +516,7 @@ public class MarkerContentGenerator { /** * Load the filters defined in memento string. - * + * * @param mementoString */ private void loadFiltersFrom(String mementoString) { @@ -568,7 +568,7 @@ public class MarkerContentGenerator { /** * Load the group with id from the child if there is a matching system group * registered. - * + * * @param child * @param id * @return <code>true</code> if a matching group was found @@ -589,7 +589,7 @@ public class MarkerContentGenerator { /** * Load the legacy filter into the system. - * + * * @param child */ private void loadLegacyFilter(IMemento child) { @@ -601,7 +601,7 @@ public class MarkerContentGenerator { /** * Load the pre-3.4 filters. - * + * * @param mementoString */ private void loadLegacyFiltersFrom(String mementoString) { @@ -622,7 +622,7 @@ public class MarkerContentGenerator { /** * Load the user supplied filter - * + * * @param child */ private void loadUserFilter(IMemento child) { @@ -633,7 +633,7 @@ public class MarkerContentGenerator { /** * Restore the pre-3.4 filters. - * + * * @param memento */ private void restoreLegacyFilters(IMemento memento) { @@ -653,7 +653,7 @@ public class MarkerContentGenerator { } /** - * + * */ private void writeFiltersPreference() { XMLMemento memento = XMLMemento.createWriteRoot(TAG_FILTERS_SECTION); @@ -695,15 +695,15 @@ public class MarkerContentGenerator { } private void writeLimitSettings(XMLMemento memento) { - + memento.putInteger(TAG_MARKER_LIMIT, markerLimits); memento.putBoolean(TAG_MARKER_LIMIT_ENABLED, markerLimitsEnabled); } - + /** * Write the settings for the filters to the memento. - * + * * @param memento */ private void writeFiltersSettings(XMLMemento memento) { @@ -723,7 +723,7 @@ public class MarkerContentGenerator { /** * Return the id of the receiver. - * + * * @return String */ public String getId() { @@ -747,7 +747,7 @@ public class MarkerContentGenerator { /** * Get the list of initially visible fields - * + * * @return {@link MarkerField}[] */ MarkerField[] getInitialVisible() { @@ -756,7 +756,7 @@ public class MarkerContentGenerator { /** * Get the group called groupName from the receiver - * + * * @param groupName * @return MarkerGroup or <code>null</code> */ @@ -772,7 +772,7 @@ public class MarkerContentGenerator { /** * Get the markerGroups associated with the receiver. - * + * * @return Collection of {@link MarkerGroup} */ Collection getMarkerGroups() { @@ -781,7 +781,7 @@ public class MarkerContentGenerator { /** * Return the markerTypes for the receiver. - * + * * @return Collection of {@link MarkerType} */ public Collection getMarkerTypes() { @@ -790,7 +790,7 @@ public class MarkerContentGenerator { /** * Return the markerTypes for the receiver. - * + * * @return Array of type Ids */ public String[] getTypes() { @@ -806,7 +806,7 @@ public class MarkerContentGenerator { /** * Return the name for the receiver. - * + * * @return String */ String getName() { @@ -815,7 +815,7 @@ public class MarkerContentGenerator { /** * Return the type for typeId. - * + * * @param typeId * @return {@link MarkerType} or <code>null</code> if it is not found. */ @@ -868,7 +868,7 @@ public class MarkerContentGenerator { * Update the focus resources from list. If there is an update required * return <code>true</code>. This method assumes that there are filters on * resources enabled. - * + * * @param elements */ void internalUpdateSelectedElements(Object[] elements) { @@ -888,7 +888,7 @@ public class MarkerContentGenerator { /** * Update the receiver for a change in selection. - * + * * @param newElements * @param forceUpdate <code>true</code> if update must be done, <code>false</code> to only update when needed */ @@ -905,7 +905,7 @@ public class MarkerContentGenerator { /** * Return whether or not the list contains a resource that will require * update. - * + * * @return boolean <code>true</code> if update is required. */ boolean updateNeededForSelection(Object[] newElements) { @@ -968,17 +968,17 @@ public class MarkerContentGenerator { * which happens real quickly.Also when filters are Anded we get a chance to * gather only on resources that actually matter.And we get a tool to check * at various places. - * + * * @return list of resource we want to collect markers for taking various * enabled filters into account. - * + * */ Collection getResourcesForBuild() { currentResources = MarkerResourceUtil.computeResources( getSelectedResources(), getEnabledFilters(), andFilters()); return currentResources; } - + /* * See Bug 296695: This method is trickier than it may seem/appears to be.If * it is ever desired to use this, it would need to be *RE-IMPLEMENTED* and @@ -1039,7 +1039,7 @@ public class MarkerContentGenerator { /** * Refresh gathered markers entries - * + * * @param monitor */ Collection generateMarkerEntries(IProgressMonitor monitor) { @@ -1111,7 +1111,7 @@ public class MarkerContentGenerator { /** * A helper to the * {@link #gatherMarkers(String[], boolean, Collection, IProgressMonitor)} - * + * * @param resources * @param typeId * @param includeSubTypes diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerCopyHandler.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerCopyHandler.java index 4ac8f786457..37bc6647a82 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerCopyHandler.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerCopyHandler.java @@ -7,7 +7,7 @@ * * Contributors: * IBM Corporation - initial API and implementation - * Benjamin Cabe <benjamin.cabe@anyware-tech.com> - + * Benjamin Cabe <benjamin.cabe@anyware-tech.com> - * Fix for Bug 222375 [Markers] copy markers from markers view should 'pretty print' *******************************************************************************/ package org.eclipse.ui.internal.views.markers; @@ -23,15 +23,15 @@ import org.eclipse.ui.views.markers.MarkerViewHandler; /** * MarkerCopyHandler is the handler for the copy action when the markers view is * selected. - * + * * @since 3.4 - * + * */ public class MarkerCopyHandler extends MarkerViewHandler { /* * (non-Javadoc) - * + * * @see org.eclipse.core.commands.IHandler#execute(org.eclipse.core.commands.ExecutionEvent) */ @Override @@ -46,7 +46,7 @@ public class MarkerCopyHandler extends MarkerViewHandler { /** * Set the workbench clipboard for the markers. - * + * * @param view */ private void setClipboard(ExtendedMarkersView view) { @@ -74,7 +74,7 @@ public class MarkerCopyHandler extends MarkerViewHandler { /** * Creates a plain-text report of the selected markers based on predefined * properties. - * + * * @param view * the view being copied * @param markers @@ -84,7 +84,7 @@ public class MarkerCopyHandler extends MarkerViewHandler { StringBuffer report = new StringBuffer(); MarkerField[] fields = view.getVisibleFields(); - + final String NEWLINE = System.getProperty("line.separator"); //$NON-NLS-1$ final char DELIMITER = '\t'; diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerCreationTimeField.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerCreationTimeField.java index e2821eaa053..f750e87bfd7 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerCreationTimeField.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerCreationTimeField.java @@ -21,16 +21,16 @@ import com.ibm.icu.text.DateFormat; /** * MarkerCreationTimeField is the field that shows the creation time of a field. - * + * * @since 3.4 - * + * */ public class MarkerCreationTimeField extends MarkerField { private DateFormat dateFormat=DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.SHORT); /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.MarkerField#getValue(org.eclipse.ui.internal.provisional.views.markers.MarkerItem) */ @Override @@ -44,7 +44,7 @@ public class MarkerCreationTimeField extends MarkerField { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.MarkerField#compare(org.eclipse.ui.internal.provisional.views.markers.MarkerItem, * org.eclipse.ui.internal.provisional.views.markers.MarkerItem) */ @@ -56,7 +56,7 @@ public class MarkerCreationTimeField extends MarkerField { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.MarkerField#update(org.eclipse.jface.viewers.ViewerCell) */ @Override diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerDescriptionField.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerDescriptionField.java index 6c361d05eae..4ece7e73ab3 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerDescriptionField.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerDescriptionField.java @@ -26,9 +26,9 @@ import com.ibm.icu.text.CollationKey; /** * MarkerDescriptionField is the field for showing the description of a marker. - * + * * @since 3.4 - * + * */ public class MarkerDescriptionField extends MarkerField { @@ -38,7 +38,7 @@ public class MarkerDescriptionField extends MarkerField { /** * Create a new instance of the receiver. - * + * * @param viewer */ public DescriptionEditingSupport(ColumnViewer viewer) { @@ -48,7 +48,7 @@ public class MarkerDescriptionField extends MarkerField { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.EditingSupport#canEdit(java.lang.Object) */ @Override @@ -72,7 +72,7 @@ public class MarkerDescriptionField extends MarkerField { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.EditingSupport#getCellEditor(java.lang.Object) */ @Override @@ -82,7 +82,7 @@ public class MarkerDescriptionField extends MarkerField { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.EditingSupport#getValue(java.lang.Object) */ @Override @@ -93,7 +93,7 @@ public class MarkerDescriptionField extends MarkerField { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.EditingSupport#setValue(java.lang.Object, * java.lang.Object) */ @@ -119,7 +119,7 @@ public class MarkerDescriptionField extends MarkerField { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.MarkerField#compare(org.eclipse.ui.internal.provisional.views.markers.MarkerItem, * org.eclipse.ui.internal.provisional.views.markers.MarkerItem) */ @@ -130,7 +130,7 @@ public class MarkerDescriptionField extends MarkerField { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.api.MarkerField#getDefaultColumnWidth(org.eclipse.swt.widgets.Control) */ @Override @@ -140,7 +140,7 @@ public class MarkerDescriptionField extends MarkerField { /** * Return the collation key for the description. - * + * * @param element * @return CollationKey */ @@ -153,7 +153,7 @@ public class MarkerDescriptionField extends MarkerField { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.MarkerField#getValue(org.eclipse.ui.internal.provisional.views.markers.MarkerItem) */ @Override @@ -164,7 +164,7 @@ public class MarkerDescriptionField extends MarkerField { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.api.MarkerField#getEditingSupport() */ @Override diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerEntry.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerEntry.java index 6a0f3b5816f..e317d280d32 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerEntry.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerEntry.java @@ -32,16 +32,16 @@ import com.ibm.icu.text.Collator; /** * The MarkerEntry is the class that wrappers an {@link IMarker} for display in * an {@link ExtendedMarkersView}. - * + * * @since 3.4 - * + * */ class MarkerEntry extends MarkerSupportItem implements IAdaptable { static { Platform.getAdapterManager().registerAdapters(new IAdapterFactory() { /* * (non-Javadoc) - * + * * @see * org.eclipse.core.runtime.IAdapterFactory#getAdapter(java.lang * .Object, java.lang.Class) @@ -57,7 +57,7 @@ class MarkerEntry extends MarkerSupportItem implements IAdaptable { /* * (non-Javadoc) - * + * * @see org.eclipse.core.runtime.IAdapterFactory#getAdapterList() */ @Override @@ -70,7 +70,7 @@ class MarkerEntry extends MarkerSupportItem implements IAdaptable { private static final Object LOCATION_STRING = "LOCATION_STRING"; //$NON-NLS-1$ private MarkerCategory category; private Map cache = null; - + /** * Set the MarkerEntry to be stale, if discovered at any point of time * of its use.This will greatly speed up a lot of parts of the view. @@ -86,7 +86,7 @@ class MarkerEntry extends MarkerSupportItem implements IAdaptable { /** * Create a new instance of the receiver. - * + * * @param marker */ public MarkerEntry(IMarker marker) { @@ -96,7 +96,7 @@ class MarkerEntry extends MarkerSupportItem implements IAdaptable { /* * (non-Javadoc) - * + * * @see org.eclipse.core.runtime.IAdaptable#getAdapter(java.lang.Class) */ @Override @@ -108,7 +108,7 @@ class MarkerEntry extends MarkerSupportItem implements IAdaptable { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.MarkerItem#getAttributeValue(java.lang.String, * boolean) */ @@ -122,7 +122,7 @@ class MarkerEntry extends MarkerSupportItem implements IAdaptable { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.MarkerItem#getAttributeValue(java.lang.String, * int) */ @@ -139,7 +139,7 @@ class MarkerEntry extends MarkerSupportItem implements IAdaptable { /** * Return the Object that is the marker value for attribute. Return null if * it is not found. - * + * * @param attribute * @return Object or <code>null</code> */ @@ -164,7 +164,7 @@ class MarkerEntry extends MarkerSupportItem implements IAdaptable { return value; } - + /* (non-Javadoc) * @see org.eclipse.ui.internal.views.markers.MarkerSupportItem#getAttributeValue(java.lang.String, java.lang.String) */ @@ -177,13 +177,13 @@ class MarkerEntry extends MarkerSupportItem implements IAdaptable { // The following toString() is a no-op for string attribute // values (which we expect!), but safeguards against clients // who used non-String objects (e.g. Integer) as attribute values, - // see bug 218249. + // see bug 218249. return value.toString(); } /** * Get the category of the receiver. - * + * * @return {@link MarkerCategory} */ MarkerCategory getCategory() { @@ -192,7 +192,7 @@ class MarkerEntry extends MarkerSupportItem implements IAdaptable { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.views.markers.MarkerSupportItem#getChildren() */ @Override @@ -202,7 +202,7 @@ class MarkerEntry extends MarkerSupportItem implements IAdaptable { /** * Get the CollationKey for the string attribute. - * + * * @param attribute * @param defaultValue * the defaultValue if the value is not set @@ -212,7 +212,7 @@ class MarkerEntry extends MarkerSupportItem implements IAdaptable { String attributeValue; Object value = getCache().get(attribute); if (value != null) { - // Only return a collation key otherwise + // Only return a collation key otherwise //use the value to generate it if (value instanceof CollationKey) return (CollationKey) value; @@ -232,7 +232,7 @@ class MarkerEntry extends MarkerSupportItem implements IAdaptable { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.views.markers.MarkerSupportItem#getCreationTime() */ @Override @@ -251,7 +251,7 @@ class MarkerEntry extends MarkerSupportItem implements IAdaptable { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.views.markers.MarkerSupportItem#getDescription() */ @Override @@ -262,7 +262,7 @@ class MarkerEntry extends MarkerSupportItem implements IAdaptable { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.views.markers.MarkerSupportItem#getID() */ @Override @@ -272,7 +272,7 @@ class MarkerEntry extends MarkerSupportItem implements IAdaptable { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.MarkerItem#getLocation() */ @Override @@ -312,7 +312,7 @@ class MarkerEntry extends MarkerSupportItem implements IAdaptable { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.MarkerItem#getMarker() */ @Override @@ -322,7 +322,7 @@ class MarkerEntry extends MarkerSupportItem implements IAdaptable { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.views.markers.MarkerSupportItem#getMarkerTypeName() */ @Override @@ -358,7 +358,7 @@ class MarkerEntry extends MarkerSupportItem implements IAdaptable { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.views.markers.MarkerSupportItem#getParent() */ @Override @@ -368,7 +368,7 @@ class MarkerEntry extends MarkerSupportItem implements IAdaptable { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.MarkerItem#getPath() */ @Override @@ -394,7 +394,7 @@ class MarkerEntry extends MarkerSupportItem implements IAdaptable { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.views.markers.MarkerSupportItem#isConcrete() */ @Override @@ -404,7 +404,7 @@ class MarkerEntry extends MarkerSupportItem implements IAdaptable { /** * Set the category to markerCategory. - * + * * @param markerCategory */ void setCategory(MarkerCategory markerCategory) { @@ -414,7 +414,7 @@ class MarkerEntry extends MarkerSupportItem implements IAdaptable { /** * Set the marker for the receiver. - * + * * @param marker * The marker to set. */ @@ -427,7 +427,7 @@ class MarkerEntry extends MarkerSupportItem implements IAdaptable { /** * Get the cache for the receiver. Create if neccessary. - * + * * @return {@link HashMap} */ Map getCache() { @@ -441,7 +441,7 @@ class MarkerEntry extends MarkerSupportItem implements IAdaptable { */ @Override void clearCache() { - cache = null; + cache = null; } /** @@ -459,7 +459,7 @@ class MarkerEntry extends MarkerSupportItem implements IAdaptable { } /** - * + * * @return true if the {@link MarkerEntry} is stale,i.e. the marker does not * exist. A false value can mean that marker's state of existence was * never captured or that it exists.#checkIfMarkerExists() will @@ -468,7 +468,7 @@ class MarkerEntry extends MarkerSupportItem implements IAdaptable { boolean getStaleState() { return stale; } - + /* (non-Javadoc) * @see java.lang.Object#hashCode() */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerFieldFilterGroup.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerFieldFilterGroup.java index 034ca1dbb1a..22adbcbdcf4 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerFieldFilterGroup.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerFieldFilterGroup.java @@ -7,7 +7,7 @@ * * Contributors: * IBM Corporation - initial API and implementation - * Broadcom Corp. - James Blackburn - Fix for Bug 305529 - + * Broadcom Corp. - James Blackburn - Fix for Bug 305529 - * [Markers] NPE in MarkerFieldEditor if MarkerFieldConfiguration scope is unset *******************************************************************************/ @@ -48,9 +48,9 @@ import org.eclipse.ui.views.markers.internal.MarkerType; /** * MarkerFieldFilterGroup is the representation of a grouping of marker filters. - * + * * @since 3.4 - * + * */ class MarkerFieldFilterGroup { @@ -60,7 +60,7 @@ class MarkerFieldFilterGroup { /** * The attribute values for the scope - * + * */ private static final String ATTRIBUTE_SCOPE = "scope"; //$NON-NLS-1$ @@ -90,7 +90,7 @@ class MarkerFieldFilterGroup { * Constant for on working set. */ static final int ON_WORKING_SET = 4; - + static final String TAG_ENABLED = "enabled"; //$NON-NLS-1$ private static final String TAG_SCOPE = "scope"; //$NON-NLS-1$ private static final String TAG_FIELD_FILTER_ENTRY = "fieldFilter"; //$NON-NLS-1$ @@ -108,7 +108,7 @@ class MarkerFieldFilterGroup { protected MarkerFieldFilter[] fieldFilters; private int scope; private int limit; - + private String name; private String id; @@ -121,7 +121,7 @@ class MarkerFieldFilterGroup { /** * Create a new instance of the receiver. - * + * * @param configurationElement * @param markerBuilder */ @@ -148,7 +148,7 @@ class MarkerFieldFilterGroup { /** * Get the root types for the receiver - * + * * @return Collection of {@link MarkerType} */ Collection getAllTypes() { @@ -157,7 +157,7 @@ class MarkerFieldFilterGroup { /** * Get the filters registered on the receiver. - * + * * @return MarkerFieldFilter[] */ private MarkerFieldFilter[] getFieldFilters() { @@ -197,7 +197,7 @@ class MarkerFieldFilterGroup { /** * Return the MarkerFieldFilter for field or <code>null</code> if there * isn't one. - * + * * @param field * @return MarkerFieldFilter */ @@ -212,7 +212,7 @@ class MarkerFieldFilterGroup { /** * Return the id of the receiver. - * + * * @return String */ public String getID() { @@ -228,7 +228,7 @@ class MarkerFieldFilterGroup { /** * Return the name of the receiver. - * + * * @return String */ public String getName() { @@ -245,7 +245,7 @@ class MarkerFieldFilterGroup { /** * Return the resources in the working set. If it is empty then return the * workspace root. - * + * * @return IResource[] */ IResource[] getResourcesInWorkingSet() { @@ -258,7 +258,7 @@ class MarkerFieldFilterGroup { if(((AggregateWorkingSet) workingSet).getComponents().length==0) return new IResource[] { ResourcesPlugin.getWorkspace().getRoot()}; } - + IAdaptable[] elements = workingSet.getElements(); List result = new ArrayList(elements.length); @@ -276,7 +276,7 @@ class MarkerFieldFilterGroup { /** * Return the value of the scope. - * + * * @return int * @see #ON_ANY * @see #ON_ANY_IN_SAME_CONTAINER @@ -290,7 +290,7 @@ class MarkerFieldFilterGroup { /** * Get the values defined for the receiver. - * + * * @return Map of values to apply to a {@link MarkerFieldFilter} */ private Map getValues() { @@ -315,7 +315,7 @@ class MarkerFieldFilterGroup { /** * Get the working set for the receiver. - * + * * @return IWorkingSet */ IWorkingSet getWorkingSet() { @@ -327,12 +327,12 @@ class MarkerFieldFilterGroup { */ private void computeWorkingSetResources() { if(workingSet!=null){ - /* MarkerFieldFilterGroup will have to re-get the resources in + /* MarkerFieldFilterGroup will have to re-get the resources in * a working set for every marker it filters using the select method - * Or we may do this once before the markers are filtered. + * Or we may do this once before the markers are filtered. */ wSetResources=getResourcesInWorkingSet(); - }else{ + }else{ wSetResources = new IResource[] { ResourcesPlugin.getWorkspace() .getRoot() }; } @@ -375,7 +375,7 @@ class MarkerFieldFilterGroup { /** * Return whether or not the receiver is enabled. - * + * * @return boolean */ public boolean isEnabled() { @@ -384,7 +384,7 @@ class MarkerFieldFilterGroup { /** * Return whether or not this is a system or user group. - * + * * @return boolean <code>true</code> if it is a system group. */ public boolean isSystem() { @@ -393,7 +393,7 @@ class MarkerFieldFilterGroup { /** * Load the settings from the legacy child. - * + * * @param memento */ void legacyLoadSettings(IMemento memento) { @@ -435,7 +435,7 @@ class MarkerFieldFilterGroup { /** * Load the current settings from the child. - * + * * @param memento - * the memento to load from */ @@ -457,7 +457,7 @@ class MarkerFieldFilterGroup { if (stringValue != null && stringValue.length() > 0) { setLimit(Integer.parseInt(stringValue)); } - + Map filterMap = new HashMap(); MarkerFieldFilter[] filters = getFieldFilters(); for (int i = 0; i < filters.length; i++) { @@ -497,7 +497,7 @@ class MarkerFieldFilterGroup { /** * Make a working copy of the receiver. - * + * * @return MarkerFieldFilterGroup or <code> null</code> if it failed. */ MarkerFieldFilterGroup makeWorkingCopy() { @@ -511,7 +511,7 @@ class MarkerFieldFilterGroup { /** * Populate the clone and return true if successful. - * + * * @param clone */ protected boolean populateClone(MarkerFieldFilterGroup clone) { @@ -545,7 +545,7 @@ class MarkerFieldFilterGroup { /** * Process the scope attribute. - * + * * @return int */ private int processScope() { @@ -569,7 +569,7 @@ class MarkerFieldFilterGroup { /** * Save the settings for the receiver in the memento. - * + * * @param memento */ void saveFilterSettings(IMemento memento) { @@ -601,10 +601,10 @@ class MarkerFieldFilterGroup { /** * Return whether or not this IMarker is being shown. - * + * * @param marker * @return <code>true</code> if it is being shown - */ + */ public boolean select(IMarker marker) { testEntry.setMarker(marker); return select(testEntry); @@ -612,10 +612,10 @@ class MarkerFieldFilterGroup { /** * Return whether or not this MarkerEntry can be shown. - * @param testEntry - * + * @param testEntry + * * @return <code>true</code> if it can be shown - */ + */ public boolean select(MarkerEntry testEntry) { MarkerFieldFilter[] filters = getFieldFilters(); if (scope == ON_WORKING_SET && workingSet != null) { @@ -642,7 +642,7 @@ class MarkerFieldFilterGroup { /** * Set whether or not the receiver is enabled. - * + * * @param enabled * The enabled to set. */ @@ -652,7 +652,7 @@ class MarkerFieldFilterGroup { /** * Set the name of the receiver. - * + * * @param newName */ public void setName(String newName) { @@ -662,7 +662,7 @@ class MarkerFieldFilterGroup { /** * Set the scope of the receiver. - * + * * @param newScope */ public void setScope(int newScope) { @@ -671,13 +671,13 @@ class MarkerFieldFilterGroup { /** * Set the working set of the receiver. - * + * * @param workingSet */ void setWorkingSet(IWorkingSet workingSet) { this.workingSet = workingSet; } - + /** * @return Returns -1 for no limit else the limit. */ @@ -695,17 +695,17 @@ class MarkerFieldFilterGroup { /** * Refresh the MarkerFieldFilterGroup . - */ + */ void refresh() { if (getScope() == ON_WORKING_SET) { computeWorkingSetResources(); } } - + public boolean selectByFilters(MarkerEntry entry) { return select(entry); } - + public boolean selectByScope(MarkerEntry entry, IResource[] resources) { int scopeVal = getScope(); switch (scopeVal) { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerGoToHandler.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerGoToHandler.java index 69e8f38dedc..2dfbb415bd0 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerGoToHandler.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerGoToHandler.java @@ -31,7 +31,7 @@ public class MarkerGoToHandler extends MarkerViewHandler { view.openSelectedMarkers(); return this; } - + } diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerHelpAdapterFactory.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerHelpAdapterFactory.java index 14ca0602248..793e6d8b154 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerHelpAdapterFactory.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerHelpAdapterFactory.java @@ -52,24 +52,24 @@ public class MarkerHelpAdapterFactory implements IAdapterFactory { } //TODO this needs to be migrated to the ide plug-in - if (contextId == null) + if (contextId == null) contextId = PlatformUI.PLUGIN_ID + ".problem_view_context";//$NON-NLS-1$ - + return HelpSystem.getContext(contextId); } - + /* * (non-Javadoc) - * + * * @see org.eclipse.help.IContextProvider#getSearchExpression(java.lang.Object) */ @Override public String getSearchExpression(Object target) { return null; } - + }; } diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerIDField.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerIDField.java index 211184c37b5..0969f2abd5b 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerIDField.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerIDField.java @@ -17,13 +17,13 @@ import org.eclipse.ui.views.markers.MarkerItem; /** * @since 3.4 - * + * */ public class MarkerIDField extends MarkerField { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.MarkerField#getValue(org.eclipse.ui.internal.provisional.views.markers.MarkerItem) */ @Override @@ -35,7 +35,7 @@ public class MarkerIDField extends MarkerField { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.MarkerField#compare(org.eclipse.ui.internal.provisional.views.markers.MarkerItem, * org.eclipse.ui.internal.provisional.views.markers.MarkerItem) */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerLocationField.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerLocationField.java index c2e5b6d3337..bd6196d47cc 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerLocationField.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerLocationField.java @@ -18,15 +18,15 @@ import org.eclipse.ui.views.markers.MarkerItem; /** * MarkerLocationField is the field for the location field. - * + * * @since 3.4 - * + * */ public class MarkerLocationField extends MarkerField { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.MarkerField#getValue(org.eclipse.ui.internal.provisional.views.markers.MarkerItem) */ @Override @@ -36,7 +36,7 @@ public class MarkerLocationField extends MarkerField { /** * Get the number of characters that should be reserved for the receiver. - * + * * @param control * the control to scale from * @return int @@ -48,7 +48,7 @@ public class MarkerLocationField extends MarkerField { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.MarkerField#compare(org.eclipse.ui.views.markers.MarkerItem, * org.eclipse.ui.views.markers.MarkerItem) */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerPathField.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerPathField.java index 4df929fa72c..decc85b3145 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerPathField.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerPathField.java @@ -18,15 +18,15 @@ import org.eclipse.ui.views.markers.MarkerItem; /** * MarkerPathField is the field for the paths column. - * + * * @since 3.4 - * + * */ public class MarkerPathField extends MarkerField { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.IMarkerField#compare(org.eclipse.ui.internal.provisional.views.markers.MarkerItem, * org.eclipse.ui.internal.provisional.views.markers.MarkerItem) */ @@ -40,7 +40,7 @@ public class MarkerPathField extends MarkerField { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.api.MarkerField#getDefaultColumnWidth(org.eclipse.swt.widgets.Control) */ @Override @@ -50,7 +50,7 @@ public class MarkerPathField extends MarkerField { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.IMarkerField#getValue(org.eclipse.ui.internal.provisional.views.markers.MarkerItem) */ @Override diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerPriorityField.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerPriorityField.java index b6d19ce802f..05213e6150e 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerPriorityField.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerPriorityField.java @@ -29,9 +29,9 @@ import org.eclipse.ui.views.markers.internal.MarkerMessages; /** * MarkerPriorityField is the field for task priority. - * + * * @since 3.4 - * + * */ public class MarkerPriorityField extends MarkerField { @@ -41,7 +41,7 @@ public class MarkerPriorityField extends MarkerField { /** * Create a new instance of the receiver. - * + * * @param viewer */ public PriorityEditingSupport(ColumnViewer viewer) { @@ -52,7 +52,7 @@ public class MarkerPriorityField extends MarkerField { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.EditingSupport#canEdit(java.lang.Object) */ @Override @@ -65,7 +65,7 @@ public class MarkerPriorityField extends MarkerField { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.EditingSupport#getCellEditor(java.lang.Object) */ @Override @@ -75,7 +75,7 @@ public class MarkerPriorityField extends MarkerField { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.EditingSupport#getValue(java.lang.Object) */ @Override @@ -86,7 +86,7 @@ public class MarkerPriorityField extends MarkerField { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.EditingSupport#setValue(java.lang.Object, * java.lang.Object) */ @@ -121,7 +121,7 @@ public class MarkerPriorityField extends MarkerField { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.api.MarkerField#compare(org.eclipse.ui.internal.provisional.views.markers.api.MarkerItem, * org.eclipse.ui.internal.provisional.views.markers.api.MarkerItem) */ @@ -135,7 +135,7 @@ public class MarkerPriorityField extends MarkerField { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.MarkerField#getColumnHeaderText() */ @Override @@ -145,7 +145,7 @@ public class MarkerPriorityField extends MarkerField { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.api.MarkerField#getColumnTooltipText() */ @Override @@ -155,7 +155,7 @@ public class MarkerPriorityField extends MarkerField { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.api.MarkerField#getDefaultColumnWidth(org.eclipse.swt.widgets.Control) */ @Override @@ -165,7 +165,7 @@ public class MarkerPriorityField extends MarkerField { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.api.MarkerField#getEditingSupport(org.eclipse.jface.viewers.ColumnViewer) */ @Override @@ -175,7 +175,7 @@ public class MarkerPriorityField extends MarkerField { /** * Get the image for high priority - * + * * @return Image */ private Image getHighPriorityImage() { @@ -185,7 +185,7 @@ public class MarkerPriorityField extends MarkerField { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.MarkerField#getValue(org.eclipse.ui.internal.provisional.views.markers.MarkerItem) */ @Override @@ -195,7 +195,7 @@ public class MarkerPriorityField extends MarkerField { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.MarkerField#update(org.eclipse.jface.viewers.ViewerCell) */ @Override diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerProblemSeverityAndMessageField.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerProblemSeverityAndMessageField.java index b33c46e91f5..ea8d08f5e53 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerProblemSeverityAndMessageField.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerProblemSeverityAndMessageField.java @@ -20,16 +20,16 @@ import org.eclipse.ui.views.markers.MarkerItem; /** * MarkerSeverityAndMessageField is the field for severity and messages. - * + * * @since 3.4 - * + * */ public class MarkerProblemSeverityAndMessageField extends MarkerDescriptionField { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.provisional.views.markers.IMarkerField#compare(org.eclipse.ui.provisional.views.markers.MarkerItem, * org.eclipse.ui.provisional.views.markers.MarkerItem) */ @@ -45,7 +45,7 @@ public class MarkerProblemSeverityAndMessageField extends /** * Return the image for the receiver. - * + * * @param item * @return Image or <code>null</code> */ @@ -77,7 +77,7 @@ public class MarkerProblemSeverityAndMessageField extends /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.MarkerField#update(org.eclipse.jface.viewers.ViewerCell) */ @Override diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerPropertyTester.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerPropertyTester.java index 79c8de56d26..131bcf5f794 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerPropertyTester.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerPropertyTester.java @@ -19,17 +19,17 @@ import org.eclipse.ui.actions.SimpleWildcardTester; /** * The property tester used to test the attributes of the Marker - * + * * @since 3.5 * @author Prakash G.R. - * + * */ public class MarkerPropertyTester extends PropertyTester { /** * An attribute indicating the marker priority (value * <code>"priority"</code>). The attribute value in xml must be one of - * <code>IMarker.PRIORITY_LOW, + * <code>IMarker.PRIORITY_LOW, * IMarker.PRIORITY_NORMAL, or IMarker.PRIORITY_HIGH</code> */ public static final String PRIORITY = IMarker.PRIORITY; @@ -37,7 +37,7 @@ public class MarkerPropertyTester extends PropertyTester { /** * An attribute indicating the marker severity (value * <code>"severity"</code>). The attribute value in xml in xml must be one - * of <code>IMarker.SEVERITY_ERROR, + * of <code>IMarker.SEVERITY_ERROR, * IMarker.SEVERITY_WARNING, or IMarker.SEVERITY_INFO</code> */ public static final String SEVERITY = IMarker.SEVERITY; @@ -118,7 +118,7 @@ public class MarkerPropertyTester extends PropertyTester { /** * Tests the attribute's value for the given marker - * + * * @param marker * - The marker * @param attributeName diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerResourceField.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerResourceField.java index bc598dd9e7c..baefefb2402 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerResourceField.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerResourceField.java @@ -18,15 +18,15 @@ import org.eclipse.ui.views.markers.MarkerViewUtil; /** * MarkerResourceField is the field that specifies the resource column. - * + * * @since 3.4 - * + * */ public class MarkerResourceField extends MarkerField { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.provisional.views.markers.IMarkerField#getValue(org.eclipse.ui.provisional.views.markers.MarkerItem) */ @Override diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerResourceUtil.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerResourceUtil.java index ac4cc37b90a..b82089029a2 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerResourceUtil.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerResourceUtil.java @@ -36,10 +36,10 @@ import org.eclipse.ui.views.tasklist.ITaskListResourceAdapter; /** * A Resource helper class for the markers view code. - * + * * @author hitesh soliwal * @since 3.6 - * + * */ class MarkerResourceUtil { @@ -49,7 +49,7 @@ class MarkerResourceUtil { * Optimally gets the resources applicable to the current state of filters, * the smaller the resources and more specific they are the less the * filtering we have to do during processing. - * + * * @return collection of resource we want to collect markers for, taking * various enabled filters into account. */ @@ -65,7 +65,7 @@ class MarkerResourceUtil { Set resourceSet = andFilters ? getResourcesFiltersAnded(enabledFilters, selectedResources, root) : getResourcesFiltersOred( enabledFilters, selectedResources, root); - + //remove duplicates return trim2ParentResources(root, resourceSet); } @@ -74,7 +74,7 @@ class MarkerResourceUtil { * (optimization as side-effect): Compute common parents, if any. Remove further * duplicates. We collect markers with a flag of DEPTH_INFINITE; so, * effectively the children of a resource are also its duplicates. - * + * * @param root * @param resourceSet * @return set @@ -116,7 +116,7 @@ class MarkerResourceUtil { * computing markers on filters individually and then ORing the markers; we * would save a good amount of system-resources if we ORed them before * gathering phase,removing duplicates. - * + * * @param enabledFilters * @param root * @return set @@ -148,7 +148,7 @@ class MarkerResourceUtil { * The method may look long and a little time-consuming, but it actually * performs a short-circuit AND operation on the resources, and therefore * quick. - * + * * Note: This is an optimization; we could have ORed the resources instead. * Let us say, for example, we had a filter of workspace-scope(ANY), and * others of scope on Selected element and maybe others.Now, if we computed @@ -158,7 +158,7 @@ class MarkerResourceUtil { * we spend more system-resources in both gathering and filtering.If we * ANDed the scopes(resources) we'd, save a good amount of system-resources * in both phases. - * + * * @param enabledFilters * @param selectedResources * @param root @@ -172,7 +172,7 @@ class MarkerResourceUtil { return set; } Set resourceSet = new HashSet(); - + Iterator filtersIterator = enabledFilters.iterator(); Set removeMain = new HashSet(); while (filtersIterator.hasNext()) { @@ -239,7 +239,7 @@ class MarkerResourceUtil { /** * Get the resources indicated by the filter's scope. - * + * * @param group * @param selectedResources * @param root @@ -280,7 +280,7 @@ class MarkerResourceUtil { /** * Returns the set of projects that contain the given set of resources. - * + * * @param resources * @return IProject[] */ @@ -295,7 +295,7 @@ class MarkerResourceUtil { /** * Return the projects for the elements. - * + * * @param elements * collection of IResource or IResourceMapping * @return Collection of IProject @@ -321,7 +321,7 @@ class MarkerResourceUtil { /** * Add the resources in resourceMapping to the resourceCollection - * + * * @param resourceCollection * @param resourceMapping */ @@ -343,7 +343,7 @@ class MarkerResourceUtil { Policy.handle(e); } } - + /** * Adapts an object to a resource or resource mapping; * If the object cannot be adapted,it return null. @@ -354,7 +354,7 @@ class MarkerResourceUtil { * Try to adapt to an IResource * Try to adapt to an IFile * Finally try adapting to a ResourceMapping - * + * * @param object */ static Object adapt2ResourceElement(Object object) { @@ -386,7 +386,7 @@ class MarkerResourceUtil { /** * Gets all sub-type id(s) including self, for the list of marker typeIds - * + * * @param typeIds */ static String[] getAllSubTypesIds(String[] typeIds) { @@ -397,7 +397,7 @@ class MarkerResourceUtil { /** * Gets all sub-types {@link MarkerType} including self for the list of * marker typeIds - * + * * @param typeIds */ static HashSet getAllSubTypes(String[] typeIds) { @@ -417,7 +417,7 @@ class MarkerResourceUtil { /** * Gets mutually exclusive super-types ids for the list of * marker typeIds - * + * * @param typeIds */ static String[] getMutuallyExclusiveSupersIds(String[] typeIds) { @@ -428,7 +428,7 @@ class MarkerResourceUtil { /** * Gets mutually exclusive super-types {@link MarkerType} for the list of * marker typeIds - * + * * @param typeIds */ static HashSet getMutuallyExclusiveSupers(String[] typeIds) { @@ -451,7 +451,7 @@ class MarkerResourceUtil { /** * Converts a collection of {@link MarkerType} into an array of marker * typeIds - * + * * @param collection */ private static String[] toTypeStrings(Collection collection) { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerSeverityAndDescriptionField.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerSeverityAndDescriptionField.java index bb2efb2a7b8..a88d29f0389 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerSeverityAndDescriptionField.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerSeverityAndDescriptionField.java @@ -18,9 +18,9 @@ import org.eclipse.ui.views.markers.MarkerItem; /** * MarkerSeverityAndDescriptionField can handle severities for all markers. - * + * * @since 3.4 - * + * */ public class MarkerSeverityAndDescriptionField extends MarkerDescriptionField { @@ -33,7 +33,7 @@ public class MarkerSeverityAndDescriptionField extends MarkerDescriptionField { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.provisional.views.markers.IMarkerField#compare(org.eclipse.ui.provisional.views.markers.MarkerItem, * org.eclipse.ui.provisional.views.markers.MarkerItem) */ @@ -49,7 +49,7 @@ public class MarkerSeverityAndDescriptionField extends MarkerDescriptionField { /** * Return the image for item. - * + * * @param item * @return Image or <code>null</code> */ @@ -59,7 +59,7 @@ public class MarkerSeverityAndDescriptionField extends MarkerDescriptionField { if (item.getMarker() == null) severity = ((MarkerCategory) item).getHighestSeverity(); else - severity = MarkerSupportInternalUtilities.getSeverity(item); + severity = MarkerSupportInternalUtilities.getSeverity(item); if (severity >= IMarker.SEVERITY_WARNING) return MarkerSupportInternalUtilities.getSeverityImage(severity); @@ -69,7 +69,7 @@ public class MarkerSeverityAndDescriptionField extends MarkerDescriptionField { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.MarkerField#update(org.eclipse.jface.viewers.ViewerCell) */ @Override diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerSeverityField.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerSeverityField.java index 3355a5a0a9a..1057378771c 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerSeverityField.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerSeverityField.java @@ -18,15 +18,15 @@ import org.eclipse.ui.views.markers.internal.MarkerMessages; /** * MarkerSeverityField is the field for showing severity categories. - * + * * @since 3.4 - * + * */ public class MarkerSeverityField extends MarkerField { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.MarkerField#getValue(org.eclipse.ui.internal.provisional.views.markers.MarkerItem) */ @Override @@ -46,7 +46,7 @@ public class MarkerSeverityField extends MarkerField { } - + /* (non-Javadoc) * @see org.eclipse.ui.views.markers.MarkerField#compare(org.eclipse.ui.views.markers.MarkerItem, org.eclipse.ui.views.markers.MarkerItem) */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerShowInAdapter.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerShowInAdapter.java index 84db390c70f..7429ab5e99d 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerShowInAdapter.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerShowInAdapter.java @@ -22,9 +22,9 @@ import org.eclipse.ui.part.ShowInContext; /** * MarkerShowInAdapter is the adapter for ExtendedMarkersViews to get an * IShowInSource. - * + * * @since 3.4 - * + * */ public class MarkerShowInAdapter implements IAdapterFactory { @@ -32,7 +32,7 @@ public class MarkerShowInAdapter implements IAdapterFactory { /* * (non-Javadoc) - * + * * @see org.eclipse.core.runtime.IAdapterFactory#getAdapter(java.lang.Object, * java.lang.Class) */ @@ -61,7 +61,7 @@ public class MarkerShowInAdapter implements IAdapterFactory { /* * (non-Javadoc) - * + * * @see org.eclipse.core.runtime.IAdapterFactory#getAdapterList() */ @Override diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerSortUtil.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerSortUtil.java index 57cc09b456d..eedabd3b67a 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerSortUtil.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerSortUtil.java @@ -21,7 +21,7 @@ * in supporting documentation. Silicon Graphics makes no * representations about the suitability of this software for any * purpose. It is provided "as is" without express or implied warranty. - * + * * Contributions: * IBM - Ported the code to Java */ @@ -36,11 +36,11 @@ import org.eclipse.core.runtime.NullProgressMonitor; /** * @since 3.5 - * + * * @author Hitesh */ public class MarkerSortUtil { - + /* * Note: partial quicksort or introsort would not be of much use here as the * sorting direction can be reversed easily from the UI. These would perform @@ -57,9 +57,9 @@ public class MarkerSortUtil { /* * For n/k ratios less than this , we will use Arrays.Sort(). The heapsort - * performs nearly as good as mergesort for small data.We can still benefit + * performs nearly as good as mergesort for small data.We can still benefit * from the mergesort - Arrays.Sort(). When the number of elements to be sorted, - * are almost as much as the elements we have. + * are almost as much as the elements we have. */ private static float MERGE_OR_HEAP_SWITCH=1.5f; @@ -68,7 +68,7 @@ public class MarkerSortUtil { * modified heapsort, such that * array[first]<array[first+1]<...<array[middle] and * array[middle]<arra[middle+1||middle+2|| ....last] - * + * * @param array * @param first * @param middle @@ -80,13 +80,13 @@ public class MarkerSortUtil { heapify(array, first, middle, comparator); adjustMaxElement(array, first, middle, last, comparator); - + heapToSortedArray(array, first, middle, comparator); } /** * Swap the max heap element with any greater elements in rest of the array - * + * * @param heapArray * @param first * @param heapSize @@ -116,10 +116,10 @@ public class MarkerSortUtil { /** * Re-adjust the elements in the heap to maintain heap-property - * + * * Note: caches are not cleared in this method, as it would offset * to a certain extent the benefit of caching in sorting. - * + * * @param array * @param first * @param position @@ -137,8 +137,8 @@ public class MarkerSortUtil { /** * Percolate down the Heap: adjust left ,right, self nodes for heap starting - * from hole all the way down the heap - * + * from hole all the way down the heap + * * @param array * @param first * @param position @@ -151,7 +151,7 @@ public class MarkerSortUtil { int holeOffset = position - first; int len = last - first; int childOffset = 2 * holeOffset + 2; - // + // while (childOffset < len) { if (comparator.compare(array[first + childOffset], array[first + (childOffset - 1)]) < 0) @@ -170,7 +170,7 @@ public class MarkerSortUtil { /** * percolate up the Heap: add the hole element back to heap at the right * position, all the way up the heap between fromIndex and toIndex - * + * * @param array * @param first * @param fromIndex @@ -193,12 +193,12 @@ public class MarkerSortUtil { parent = (holeOffset - 1) / 2; } - /* + /* * Using Binary search to locate the parent to replace. - * This is worse compared to linear search as most of the + * This is worse compared to linear search as most of the * holes would replace only a few parents above them. * This code has been left commented for future examination. - * */ + * */ /* int top = position - first; int lowParent = 1; @@ -245,7 +245,7 @@ public class MarkerSortUtil { return first + holeOffset; } - + /** * Makes a heap in the array @@ -271,12 +271,12 @@ public class MarkerSortUtil { * @param first * @param last * @param comparator - * + * */ private static void heapToSortedArray(MarkerEntry[] array, int first, int last, Comparator comparator) { //TODO:Use mergesort to convert the heap to sorted array? - + while (last - first > 1) { // clear cache sorted and present at the end array[last].clearCache(); @@ -296,16 +296,16 @@ public class MarkerSortUtil { * modified heapsort, such that * array[from]<array[from+1]<...<array[from+k-1] and * array[from+k-1]<arra[from+k||from+k+1||from+k+2|| ....to] - * + * * Note: if k is greater than a number,the sorting happens in batches of * that number, this for performance reasons. - * + * * @param entries * @param comparator * @param from * @param to * @param k - * @param monitor + * @param monitor */ public static void sortStartingKElement(MarkerEntry[] entries, Comparator comparator, int from, int to, int k,IProgressMonitor monitor) { @@ -316,7 +316,7 @@ public class MarkerSortUtil { return; int n=to-from+1; if (n <= BATCH_SIZE && (((float) n / k) <= MERGE_OR_HEAP_SWITCH) - /*|| ((float) n / k) <= MERGE_OR_HEAP_SWITCH*/) { + /*|| ((float) n / k) <= MERGE_OR_HEAP_SWITCH*/) { // use arrays sort Arrays.sort(entries, from, to + 1, comparator); // clear cache for first to middle since we are done with sort @@ -325,13 +325,13 @@ public class MarkerSortUtil { } return; } - + // do it in blocks of BATCH_SIZE so we get a chance // of clearing caches to keep memory usage to a minimum - //we choose k-1 so that last batch includes last element + //we choose k-1 so that last batch includes last element //in case k is a multiple of BATCH_SIZE - int totalBatches = (k-1) / BATCH_SIZE; + int totalBatches = (k-1) / BATCH_SIZE; int batchCount = 0; while (totalBatches > 0) { if(monitor.isCanceled()){ @@ -367,21 +367,21 @@ public class MarkerSortUtil { */ public static void sortStartingKElement(MockMarkerEntry[] fArray1, Comparator comparator, int from, int k, int limit) { - sortStartingKElement(fArray1, comparator, from, k, limit,new NullProgressMonitor()); + sortStartingKElement(fArray1, comparator, from, k, limit,new NullProgressMonitor()); } /** * Sorts [0,k-1] in the array of [0,entries.length-1] using a variant of * modified heapsort, such that * array[0]<array[1]<...<array[k-1] and * array[k-1]<arra[k||k+1||k+2|| ....entries.length-1] - * + * * Note: if k is greater than a number,the sorting happens in batches of * that number, this for performance reasons. - * + * * @param entries * @param comparator * @param k - * @param monitor + * @param monitor */ public static void sortStartingKElement(MarkerEntry[] entries, Comparator comparator, int k,IProgressMonitor monitor) { @@ -389,12 +389,12 @@ public class MarkerSortUtil { } /** - * + * * Sorts [from,first+k-1] in the array of [from,entries.length-1] using a variant of * modified heapsort, such that * array[from]<array[from+1]<...<array[from+k-1] and * array[from+k-1]<arra[from+k||from+k+1||from+k+2|| ....entries.length-1] - * + * * Note: if k is greater than a number,the sorting happens in batches of * that number, this for performance reasons. * @@ -402,11 +402,11 @@ public class MarkerSortUtil { * @param comparator * @param from * @param k - * @param monitor + * @param monitor */ public static void sortStartingKElement(MarkerEntry[] entries, Comparator comparator, int from, int k, IProgressMonitor monitor) { sortStartingKElement(entries, comparator, from, entries.length - 1, k,monitor); } - + }
\ No newline at end of file diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerSupportInternalUtilities.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerSupportInternalUtilities.java index 6a5ea4dd2eb..7ea5ee4dd0d 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerSupportInternalUtilities.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerSupportInternalUtilities.java @@ -51,9 +51,9 @@ import com.ibm.icu.text.Collator; /** * MarkerSupportUtilities is the class that maintains constants and * functionality used by multiple classes. - * + * * @since 3.4 - * + * */ public class MarkerSupportInternalUtilities { @@ -93,7 +93,7 @@ public class MarkerSupportInternalUtilities { * A reusable empty {@link String} */ public static final String EMPTY_STRING = ""; //$NON-NLS-1$ - + public static final String UNKNOWN_ATRRIBTE_VALUE_STRING = MarkerMessages.Unknown; /** @@ -145,7 +145,7 @@ public class MarkerSupportInternalUtilities { /** * Create the image at the supplied path. - * + * * @param completeImagePath * @param manager the resource manager to allocate the image in * @return Image or <code>null</code>. @@ -160,7 +160,7 @@ public class MarkerSupportInternalUtilities { /** * Return a StatusAdapter for the error - * + * * @param exception * @return StatusAdapter */ @@ -173,7 +173,7 @@ public class MarkerSupportInternalUtilities { /** * Generate the filter for the receiver from the configurationElement. - * + * * @param field * the field being generated * @return MarkerFieldFilter or <code>null</code>. @@ -199,7 +199,7 @@ public class MarkerSupportInternalUtilities { /** * Create a FilterConfigurationArea for the receiver. - * + * * @param field * the field with the specified area * @return FilterConfigurationArea or <code>null</code> @@ -226,7 +226,7 @@ public class MarkerSupportInternalUtilities { /** * Return the children of the given marker item (may return an array of * length 0) - * + * * @param markerItem * @return the children */ @@ -239,7 +239,7 @@ public class MarkerSupportInternalUtilities { /** * Determine the average width of font used by the control. - * + * * @param control * @return int */ @@ -252,7 +252,7 @@ public class MarkerSupportInternalUtilities { /** * Return the group value of the item in group. - * + * * @param group * @param item * @return String @@ -273,7 +273,7 @@ public class MarkerSupportInternalUtilities { /** * Returns the highest severity of the given marker item and all its * children. - * + * * @param markerItem * @return the severity */ @@ -289,7 +289,7 @@ public class MarkerSupportInternalUtilities { /** * Return the id for the field. - * + * * @param field * @return String */ @@ -300,7 +300,7 @@ public class MarkerSupportInternalUtilities { /** * Get the IDE image at path. - * + * * @param constantName * @return Image */ @@ -315,7 +315,7 @@ public class MarkerSupportInternalUtilities { /** * Return the severity value for item. A value of -1 indicates * that there is no severity value. - * + * * @param item * @return int */ @@ -325,7 +325,7 @@ public class MarkerSupportInternalUtilities { /** * Get the image for the supplied severity - * + * * @param severity * @return {@link Image} */ @@ -347,7 +347,7 @@ public class MarkerSupportInternalUtilities { /** * Create the MarkerItem that wraps marker. - * + * * @param marker * @return {@link MarkerItem} */ @@ -357,7 +357,7 @@ public class MarkerSupportInternalUtilities { /** * Show the marker in view if possible. - * + * * @param view * @param marker * @return <code>true</code> if the marker is shown @@ -375,7 +375,7 @@ public class MarkerSupportInternalUtilities { /** * Log an exception from a markers view. - * + * * @param exception */ public static void logViewError(Exception exception) { @@ -384,7 +384,7 @@ public class MarkerSupportInternalUtilities { /** * Show an exception from a markers view. - * + * * @param exception */ public static void showViewError(Exception exception) { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerSupportItem.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerSupportItem.java index 3f999dd5a8e..b2eecc51a3f 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerSupportItem.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerSupportItem.java @@ -23,7 +23,7 @@ abstract class MarkerSupportItem extends MarkerItem { /** * Get the String value of the attribute in the enclosed marker. - * + * * @param attribute * @param defaultValue * the defaultValue if the value is not set @@ -40,7 +40,7 @@ abstract class MarkerSupportItem extends MarkerItem { /** * Get the children of the node. - * + * * @return MarkerNode[] */ abstract MarkerSupportItem[] getChildren(); @@ -63,7 +63,7 @@ abstract class MarkerSupportItem extends MarkerItem { /** * Return the description of the receiver. - * + * * @return String */ abstract String getDescription(); @@ -74,7 +74,7 @@ abstract class MarkerSupportItem extends MarkerItem { */ long getID() { return -1; - + } /** @@ -88,21 +88,21 @@ abstract class MarkerSupportItem extends MarkerItem { /** * Return the parent node or <code>null</code> if this is a top level * element. - * + * * @return MarkerSupportItem */ abstract MarkerSupportItem getParent(); - + /** * Return whether or not this is a concrete node - * + * * @return boolean */ abstract boolean isConcrete(); - + /** * Clear the cached values for performance reasons. */ abstract void clearCache(); - + } diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerTypeField.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerTypeField.java index 438ad368bce..fa1bceb350f 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerTypeField.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerTypeField.java @@ -17,15 +17,15 @@ import org.eclipse.ui.views.markers.MarkerItem; /** * MarkerTypeField is the field that defines the marker type. - * + * * @since 3.3 - * + * */ public class MarkerTypeField extends MarkerField { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.MarkerField#getValue(org.eclipse.ui.internal.provisional.views.markers.MarkerItem) */ @Override diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerTypeFieldFilter.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerTypeFieldFilter.java index 22d0bf45dfb..b16bf79f428 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerTypeFieldFilter.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerTypeFieldFilter.java @@ -30,9 +30,9 @@ import org.eclipse.ui.views.markers.internal.ProblemFilter; /** * MarkerTypeFieldFilter is the field filter for filtering on types. - * + * * @since 3.4 - * + * */ public class MarkerTypeFieldFilter extends CompatibilityFieldFilter { @@ -43,7 +43,7 @@ public class MarkerTypeFieldFilter extends CompatibilityFieldFilter { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.api.MarkerFieldFilter#select(org.eclipse.ui.internal.provisional.views.markers.api.MarkerItem) */ @Override @@ -64,7 +64,7 @@ public class MarkerTypeFieldFilter extends CompatibilityFieldFilter { /** * Set the selected types in the receiver based on the values in * contentGenerator. - * + * * @param markerTypes * Collection of MarkerType * @param generator @@ -79,7 +79,7 @@ public class MarkerTypeFieldFilter extends CompatibilityFieldFilter { /** * Return the selectedTypes. - * + * * @return Collection of MarkerType */ Collection getSelectedTypes() { @@ -88,7 +88,7 @@ public class MarkerTypeFieldFilter extends CompatibilityFieldFilter { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.MarkerFieldFilter#saveSettings(org.eclipse.ui.IMemento) */ @Override @@ -111,7 +111,7 @@ public class MarkerTypeFieldFilter extends CompatibilityFieldFilter { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.MarkerFieldFilter#loadSettings(org.eclipse.ui.IMemento) */ @Override @@ -177,13 +177,13 @@ public class MarkerTypeFieldFilter extends CompatibilityFieldFilter { } } - - + + } /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.views.markers.CompatibilityFieldFilter#initialize(org.eclipse.ui.views.markers.internal.ProblemFilter) */ @Override @@ -195,7 +195,7 @@ public class MarkerTypeFieldFilter extends CompatibilityFieldFilter { /** * Set the content generator that is being configured. - * + * * @param generator */ void setContentGenerator(MarkerContentGenerator generator) { @@ -208,13 +208,13 @@ public class MarkerTypeFieldFilter extends CompatibilityFieldFilter { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.MarkerFieldFilter#populateWorkingCopy(org.eclipse.ui.views.markers.MarkerFieldFilter) */ @Override public void populateWorkingCopy(MarkerFieldFilter copy) { super.populateWorkingCopy(copy); - + ((MarkerTypeFieldFilter) copy).selectedTypes = new HashSet( selectedTypes); ((MarkerTypeFieldFilter) copy).contentGenerator = contentGenerator; diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerUpdateJob.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerUpdateJob.java index 9d24ca7df7a..5cf4bbf9b62 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerUpdateJob.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerUpdateJob.java @@ -27,9 +27,9 @@ import org.osgi.framework.Bundle; * The MarkerUpdateJob processes marker updates. * Once the processing is complete it schedules an UI * update. - * + * * @since 3.6 - * + * */ class MarkerUpdateJob extends Job { @@ -47,7 +47,7 @@ class MarkerUpdateJob extends Job { /* * (non-Javadoc) - * + * * @seeorg.eclipse.core.runtime.jobs.Job#run(org.eclipse.core.runtime. * IProgressMonitor) */ @@ -61,7 +61,7 @@ class MarkerUpdateJob extends Job { /** * gather all markers needed by the view. - * + * * @param monitor */ void buildMarkers(IProgressMonitor monitor) { @@ -81,7 +81,7 @@ class MarkerUpdateJob extends Job { } // builder.getUpdateScheduler().indicateStatus( // MarkerMessages.MarkerView_processUpdates, false); - + monitor.setTaskName(MarkerMessages.MarkerView_processUpdates); if (!processMarkerEntries(markerEntries, monitor)) { return; @@ -107,7 +107,7 @@ class MarkerUpdateJob extends Job { /** * Collect the markers starting clean, all over again. - * @param markerEntries + * @param markerEntries */ boolean clean(Collection markerEntries, IProgressMonitor monitor) { MarkerContentGenerator generator = builder.getGenerator(); @@ -121,7 +121,7 @@ class MarkerUpdateJob extends Job { /** * Process,sort and group the new marker entries in markerEntryList and * update the Markers object - * + * * @param markerEntries * the collection of new MarkerEntry(s) */ @@ -136,7 +136,7 @@ class MarkerUpdateJob extends Job { /* * (non-Javadoc) - * + * * @see org.eclipse.core.runtime.jobs.Job#shouldRun() */ @Override @@ -151,7 +151,7 @@ class MarkerUpdateJob extends Job { /* * (non-Javadoc) - * + * * @see org.eclipse.core.runtime.jobs.Job#belongsTo(java.lang.Object) */ @Override @@ -190,9 +190,9 @@ class MarkerUpdateJob extends Job { /** * The SortingJob is used to resort the existing markers. Once the sorting is * complete it schedules the an UI update - * + * * @since 3.6 - * + * */ class SortingJob extends MarkerUpdateJob { public SortingJob(CachedMarkerBuilder builder) { @@ -202,7 +202,7 @@ class SortingJob extends MarkerUpdateJob { /* * (non-Javadoc) - * + * * @see * org.eclipse.ui.internal.views.markers.MarkerUpdateJob#run(org.eclipse * .core.runtime.IProgressMonitor) diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerViewerContentProvider.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerViewerContentProvider.java index 71085210f2e..37c0767fa5e 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerViewerContentProvider.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerViewerContentProvider.java @@ -16,9 +16,9 @@ import org.eclipse.jface.viewers.Viewer; /** * The ContentProvider to the TreeViewer used in Markers View. - * + * * @since 3.6 - * + * */ class MarkerViewerContentProvider implements ITreeContentProvider { @@ -35,7 +35,7 @@ class MarkerViewerContentProvider implements ITreeContentProvider { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.IContentProvider#inputChanged(org.eclipse * .jface.viewers.Viewer, java.lang.Object, java.lang.Object) */ @@ -47,7 +47,7 @@ class MarkerViewerContentProvider implements ITreeContentProvider { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.IContentProvider#dispose() */ @Override @@ -57,7 +57,7 @@ class MarkerViewerContentProvider implements ITreeContentProvider { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.ITreeContentProvider#getChildren(java * .lang.Object) */ @@ -71,30 +71,30 @@ class MarkerViewerContentProvider implements ITreeContentProvider { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.IStructuredContentProvider#getElements * (java.lang.Object) */ @Override public Object[] getElements(Object inputElement) { - //use clone + //use clone return getLimitedChildren(((Markers) input).getElements()); } /** * Get the children limited by the marker limits. - * + * * @param children * @return Object[] */ private Object[] getLimitedChildren(Object[] children) { - + boolean limitsEnabled = markersView.getGenerator().isMarkerLimitsEnabled(); int limits = markersView.getGenerator().getMarkerLimits(); - + if (!limitsEnabled || limits <= 0 || limits > children.length) return children; - + Object[] newChildren = new Object[limits]; System.arraycopy(children, 0, newChildren, 0, limits); return newChildren; @@ -102,7 +102,7 @@ class MarkerViewerContentProvider implements ITreeContentProvider { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.ILazyTreeContentProvider#getParent( * java.lang.Object) */ @@ -116,7 +116,7 @@ class MarkerViewerContentProvider implements ITreeContentProvider { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.ITreeContentProvider#hasChildren(java * .lang.Object) */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/Markers.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/Markers.java index 5c58369176b..c1a8890103e 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/Markers.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/Markers.java @@ -31,9 +31,9 @@ import org.eclipse.ui.views.markers.internal.MarkerMessages; /** * The Markers object contains the MarkerEntry(s) collected and updated by the * system, also maintains the categories that markers are grouped into. - * + * * @since 3.6 - * + * */ class Markers { @@ -61,7 +61,7 @@ class Markers { /** * Update with newly collected markers - * + * * @param markerEntries * the new marker entries * @param sortAndGroup @@ -108,7 +108,7 @@ class Markers { /** * Sort the contained marker entries and build categories if required. - * + * * @param monitor */ synchronized boolean sortAndMakeCategories(IProgressMonitor monitor) { @@ -182,15 +182,15 @@ class Markers { /** * get marker limit to show, if any. - * + * * @param available */ private int getShowingLimit(int available) { - + boolean limitsEnabled = builder.getGenerator().isMarkerLimitsEnabled(); if(!limitsEnabled) return available; - + int limit = builder.getGenerator().getMarkerLimits(); int effLimit = limit; if (available < effLimit || limit <= 0) { @@ -201,7 +201,7 @@ class Markers { /** * Sort Markers according to groups, and Group them into categories - * + * * @param monitor * @param newMarkers * @return MarkerCategory @@ -232,12 +232,12 @@ class Markers { * indices in the map. The O(N) complexity requires the use of a few data * structures. But the speed benefit is tremendous at a very small price of * few extra references. - * + * * @param entries * @param group * @param k * @return {@link Map} - * + * */ private Map groupMarkerEntries(MarkerEntry[] entries, MarkerGroup group, int k, IProgressMonitor monitor) { @@ -286,7 +286,7 @@ class Markers { /** * Returns an array of marker counts where getMarkerCounts()[severity] is * the number of markers in the list with the given severity. - * + * * @return an array of {@link Integer} where index indicates * [errors,warnings,infos,others] */ @@ -302,7 +302,7 @@ class Markers { * Returns an array of marker counts for the given MarkerEntry array , where * getMarkerCounts()[severity] is the number of markers in the list with the * given severity. - * + * * @return an array of {@link Integer} where index indicates * [errors,warnings,infos,others] */ @@ -333,7 +333,7 @@ class Markers { /** * Return the {@link MarkerItem} that maps to marker. - * + * * @param marker * @return {@link MarkerItem} */ @@ -405,7 +405,7 @@ class Markers { /* * (non-Javadoc) - * + * * @see java.lang.Object#hashCode() */ @Override @@ -418,7 +418,7 @@ class Markers { /* * (non-Javadoc) - * + * * @see java.lang.Object#equals(java.lang.Object) */ @Override diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkersChangeListener.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkersChangeListener.java index 25eda2d6e0c..5da726f75a4 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkersChangeListener.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkersChangeListener.java @@ -26,7 +26,7 @@ import org.eclipse.core.runtime.jobs.Job; * The MarkersChangeListener is IResourceChangeListener that waits for any * change in the markers in workspace that are of the view's interest. Schedules * an update if we have a change that affects the view. - * + * * @since 3.6 */ class MarkersChangeListener implements IResourceChangeListener { @@ -38,12 +38,12 @@ class MarkersChangeListener implements IResourceChangeListener { private boolean receiving; //private static final int UPDATE_TEST_CHECK_LIMIT = 1500; - + // The time the build started. A -1 indicates no build in progress. private long preBuildTime; - + /** - * + * * @param view * the marker view the listener is listening for * @param builder @@ -78,16 +78,16 @@ class MarkersChangeListener implements IResourceChangeListener { /** * Checks if the workspace is building - * + * */ boolean workspaceBuilding() { return preBuildTime > 0; } - + /** * Tells the listener to become responsive to changes for the specified * types of markers. - * + * * @param typeIds * the ids of the IMarker types * @param includeSubTypes @@ -109,7 +109,7 @@ class MarkersChangeListener implements IResourceChangeListener { /* * (non-Javadoc) - * + * * @see * org.eclipse.core.resources.IResourceChangeListener#resourceChanged(org * .eclipse.core.resources.IResourceChangeEvent) @@ -138,7 +138,7 @@ class MarkersChangeListener implements IResourceChangeListener { // if (!needsUpdate(event)) { // return; // } - + if (!builder.isIncremental()) { handleMarkerChange(event); return; @@ -171,7 +171,7 @@ class MarkersChangeListener implements IResourceChangeListener { private void handleMarkerChange(IResourceChangeEvent event) { builder.getUpdateScheduler().scheduleUpdate(); } - + /** * Markers have not changed */ @@ -180,16 +180,16 @@ class MarkersChangeListener implements IResourceChangeListener { } /** - * Handle changes incrementally. + * Handle changes incrementally. * The following performs incremental updation * of the markers that were gathered initially, and keeps them synched at * any point with the markers of interest in Workspace. Unfortunately marker * operations cannot be locked so locking between gathering of markers and * marker deltas is not possible. - * + * * Note : this method of updating is NOT used and tested yet and has holes * but left out SOLELY for further investigation(*). - * + * * @param event */ private void handleIncrementalChange(IResourceChangeEvent event) { @@ -260,7 +260,7 @@ class MarkersChangeListener implements IResourceChangeListener { /** * Helper to {@link #hasApplicableTypes(IResourceChangeEvent)} - * + * * @param types * @param typeId */ @@ -272,7 +272,7 @@ class MarkersChangeListener implements IResourceChangeListener { } return false; } - + // /** // * Note: This has been left commented out for further // * investigation(*),instead we we use the above for just checking types. @@ -280,7 +280,7 @@ class MarkersChangeListener implements IResourceChangeListener { // * But again in such a case, the view would be a contributed as well.And, it // * is the responsibility of the field filter code to ensure the select // * method of filter remains fast. -// * +// * // */ // private boolean needsUpdate(IResourceChangeEvent event) { // IMarkerDelta[] markerDeltas = event.findMarkerDeltas(null, true); @@ -321,15 +321,15 @@ class MarkersChangeListener implements IResourceChangeListener { // /** // * Check if a marker change, removal, or addition is of interest to the // * view. -// * +// * // * <ul> // * <li>Set the MarkerEntry to be stale, if discovered at any point of time // * of its use.This will greatly speed up lot of parts of the view.</li> // * <li>Instead of testing all marker changes, test only upto a maximum limit // * beyond which we schedule an update anyway.</li> -// * +// * // * </ul> -// * +// * // * @param marker // * @param kind // */ @@ -354,7 +354,7 @@ class MarkersChangeListener implements IResourceChangeListener { // /** // * Returns whether or not the given marker addition is of interest to the // * view. -// * +// * // * @param presentEntries // * current marker entries // * @param marker @@ -373,7 +373,7 @@ class MarkersChangeListener implements IResourceChangeListener { // // /** // * Returns whether or not markers were removed from the view. -// * +// * // * @param presentEntriest // * current marker entries // * @param marker @@ -399,7 +399,7 @@ class MarkersChangeListener implements IResourceChangeListener { // // /** // * Returns whether or not markers were removed from the view. -// * +// * // * @param presentEntriest // * current marker entries // * @param marker @@ -428,14 +428,14 @@ class MarkersChangeListener implements IResourceChangeListener { private void preBuild() { preBuildTime = System.currentTimeMillis(); } - + /** * Post-build has happened. */ private void postBuild() { preBuildTime = -1; } - + /** * @return Returns the view. */ @@ -473,31 +473,31 @@ class MarkerUpdate { * Manages scheduling of marker updates and the view ,also various other methods * related to scheduling updates.This class should be used for update * scheduling to avoid confusion. - * + * * Note: the reason for keeping this class is because the update scheduling is * so closely related to Marker change events. - * + * * @since 3.6 */ class MarkerUpdateScheduler { - + static final int SHORT_DELAY = 150; static final int LONG_DELAY = 10000; static final long TIME_OUT = 30000; private CachedMarkerBuilder builder; private ExtendedMarkersView view; - + private MarkerUpdateJob updateJob; private UIUpdateJob uiUpdateJob; - + private final Object schedulingLock; - + private MarkerUpdateTimer updateTimer; /** - * @param view - * @param builder + * @param view + * @param builder */ public MarkerUpdateScheduler(ExtendedMarkersView view, CachedMarkerBuilder builder) { @@ -506,7 +506,7 @@ class MarkerUpdateScheduler { schedulingLock = new Object(); updateTimer = new MarkerUpdateTimer(); } - + /** * Always use this to schedule update job * @return Returns the schedulingLock. @@ -609,9 +609,9 @@ class MarkerUpdateScheduler { /** * Schedule only an UI update - * + * * @param delay - * + * */ void scheduleUIUpdate(long delay) { uiUpdateJob = view.scheduleUpdate(delay); @@ -619,7 +619,7 @@ class MarkerUpdateScheduler { /** * Cancel any marker update if pending. - * + * */ void cancelUpdate() { builder.cancelUpdate(); @@ -627,15 +627,15 @@ class MarkerUpdateScheduler { /** * Cancel any UI update if pending. - * + * */ void cancelQueuedUIUpdates() { view.cancelQueuedUpdates(); } - + ///** // * Indicate the status message on UI. - // * + // * // * @param messsage // * the status to display // */ @@ -645,7 +645,7 @@ class MarkerUpdateScheduler { ////See Bug 294303 ///** // * Indicate the status message on UI. - // * + // * // * @param messsage // * the status to display // * @param updateUI @@ -656,7 +656,7 @@ class MarkerUpdateScheduler { // view.indicateUpdating(messsage != null ? messsage // : MarkerMessages.MarkerView_queueing_updates, updateUI); //} - + /** * //Fix for Bug 294959.There is another patch(more exhaustive in terms @@ -666,18 +666,18 @@ class MarkerUpdateScheduler { * problems on a machine It would be worth looking at that.An * optimization to ensure we do not update too often, yet be responsive * and not miss any change. - * + * * Note that we re-schedule the update every time.This is to ensure we * do not miss out an update even if another update was externally(UI) * scheduled, and finished much earlier(The changes before that have * been taken care of by the that update).Also we mandate updating once * in TIME-OUT.To change behaviour, changes in the DELAY parameters will * suffice. For example, setting TIME_OUT much larger value, and so on. - * + * * @since 3.6 */ class MarkerUpdateTimer { - + /** * This is to allow batching together any changes that may arrive in * after a post-build, in a short interval.This controls how we @@ -689,7 +689,7 @@ class MarkerUpdateScheduler { //this to account for an ordinary change that may come in //after post build private static final long AFTER_MARGIN = 2; - + private long timeB4Update; private long timerValidStart; diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkersContribution.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkersContribution.java index 84c0b251642..58af9146f53 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkersContribution.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkersContribution.java @@ -20,9 +20,9 @@ import org.eclipse.ui.actions.CompoundContributionItem; /** * MarkersContribution is the abstract superclass of the compound contribution * items used in the Markers views. - * + * * @since 3.4 - * + * */ abstract class MarkersContribution extends CompoundContributionItem { @@ -35,7 +35,7 @@ abstract class MarkersContribution extends CompoundContributionItem { /** * Create a new instance of the receiver. - * + * * @param id */ public MarkersContribution(String id) { @@ -44,7 +44,7 @@ abstract class MarkersContribution extends CompoundContributionItem { /** * Get the view this contribution is working on. - * + * * @return ExtendedMarkersView or <code>null</code> if the active view isn't a marker view */ ExtendedMarkersView getView() { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkersPropertyPage.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkersPropertyPage.java index a6eae4e7fde..e33af2a66d7 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkersPropertyPage.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkersPropertyPage.java @@ -44,9 +44,9 @@ import org.eclipse.ui.views.markers.internal.Util; /** * MarkersPropertyPage is the property page for a marker. - * + * * @since 3.4 - * + * */ public class MarkersPropertyPage extends PropertyPage { @@ -116,7 +116,7 @@ public class MarkersPropertyPage extends PropertyPage { /** * Method createCreationTimeArea. - * + * * @param parent */ private void createCreationTimeArea(Composite parent) { @@ -150,7 +150,7 @@ public class MarkersPropertyPage extends PropertyPage { /** * This method is intended to be overridden by subclasses. The attributes * area is created between the creation time area and the resource area. - * + * * @param parent * the parent composite */ @@ -168,7 +168,7 @@ public class MarkersPropertyPage extends PropertyPage { /** * Create the attributes area for editing a task - * + * * @param parent */ private void createTaskAttributes(Composite parent) { @@ -199,9 +199,9 @@ public class MarkersPropertyPage extends PropertyPage { GridData gridData = new GridData(); gridData.horizontalIndent = convertHorizontalDLUsToPixels(20); completedCheckbox.setLayoutData(gridData); - + completedCheckbox.setEnabled(Util.isEditable(marker)); - + Object done; try { done = marker.getAttribute(IMarker.DONE); @@ -216,7 +216,7 @@ public class MarkersPropertyPage extends PropertyPage { /** * Create the attributes area for problems - * + * * @param parent */ private void createProblemAttributes(Composite parent) { @@ -293,7 +293,7 @@ public class MarkersPropertyPage extends PropertyPage { } } - + /* (non-Javadoc) * @see org.eclipse.jface.preference.PreferencePage#performOk() */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkersTreeViewer.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkersTreeViewer.java index 13e51854896..78e3d058403 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkersTreeViewer.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkersTreeViewer.java @@ -18,16 +18,16 @@ import org.eclipse.swt.widgets.Tree; /** * The MarkersTreeViewer is a viewer that optimizes the expandToLevel method. - * + * * @since 3.4 - * + * */ public class MarkersTreeViewer extends TreeViewer { /** * Create a new instance of the receiver. - * + * * @param parent * @param style */ @@ -38,7 +38,7 @@ public class MarkersTreeViewer extends TreeViewer { /** * Create a new instance of the receiver. - * + * * @param parent */ public MarkersTreeViewer(Composite parent) { @@ -47,7 +47,7 @@ public class MarkersTreeViewer extends TreeViewer { /** * Create a new instance of the receiver. - * + * * @param tree */ public MarkersTreeViewer(Tree tree) { @@ -64,7 +64,7 @@ public class MarkersTreeViewer extends TreeViewer { /* * (non-Javadoc) - * + * * @see * org.eclipse.jface.viewers.AbstractTreeViewer#doUpdateItem(org.eclipse * .swt.widgets.Item, java.lang.Object) diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkersViewColumnsDialog.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkersViewColumnsDialog.java index 33b7b318954..ed47f4ec750 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkersViewColumnsDialog.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkersViewColumnsDialog.java @@ -26,11 +26,11 @@ import org.eclipse.ui.views.markers.MarkerField; /** * MarkersViewSettingDialog is the dialog for showing marker preferences. - * - * + * + * * @since 3.7 * @author Hitesh Soliwal - * + * */ public class MarkersViewColumnsDialog extends ViewerColumnsDialog { @@ -38,7 +38,7 @@ public class MarkersViewColumnsDialog extends ViewerColumnsDialog { /** * Create a new instance of the receiver. - * + * * @param view * - the view this is being launched from */ @@ -50,7 +50,7 @@ public class MarkersViewColumnsDialog extends ViewerColumnsDialog { /* * (non-Javadoc) - * + * * @see * org.eclipse.jface.window.Window#configureShell(org.eclipse.swt.widgets * .Shell) @@ -64,7 +64,7 @@ public class MarkersViewColumnsDialog extends ViewerColumnsDialog { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.window.Window#getShellStyle() */ @Override @@ -74,7 +74,7 @@ public class MarkersViewColumnsDialog extends ViewerColumnsDialog { /* * (non-Javadoc) - * + * * @see * org.eclipse.jface.dialogs.Dialog#createDialogArea(org.eclipse.swt.widgets * .Composite) @@ -87,7 +87,7 @@ public class MarkersViewColumnsDialog extends ViewerColumnsDialog { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.dialogs.Dialog#okPressed() */ @Override @@ -122,7 +122,7 @@ public class MarkersViewColumnsDialog extends ViewerColumnsDialog { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.preferences.ViewSettingsDialog#performDefaults() */ @Override @@ -182,7 +182,7 @@ public class MarkersViewColumnsDialog extends ViewerColumnsDialog { /* * (non-Javadoc) - * + * * @see * org.eclipse.ui.internal.views.markers.ViewerColumnsDialog#getLabelProvider * () @@ -199,7 +199,7 @@ public class MarkersViewColumnsDialog extends ViewerColumnsDialog { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.views.markers.ViewerColumnsDialog# * getColumnInfoProvider() */ @@ -241,7 +241,7 @@ public class MarkersViewColumnsDialog extends ViewerColumnsDialog { /* * (non-Javadoc) - * + * * @see * org.eclipse.ui.internal.views.markers.ViewerColumnsDialog#getColumnUpdater * () diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkersViewPropertyTester.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkersViewPropertyTester.java index 6199d862e1c..5ad06df89ca 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkersViewPropertyTester.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkersViewPropertyTester.java @@ -16,9 +16,9 @@ import org.eclipse.core.expressions.PropertyTester; /** * ContentGeneratorPropertyTester is the property tester for what content * generator is being shown. - * + * * @since 3.4 - * + * */ public class MarkersViewPropertyTester extends PropertyTester { @@ -39,7 +39,7 @@ public class MarkersViewPropertyTester extends PropertyTester { /* * (non-Javadoc) - * + * * @see org.eclipse.core.expressions.IPropertyTester#test(java.lang.Object, * java.lang.String, java.lang.Object[], java.lang.Object) */ @@ -64,7 +64,7 @@ public class MarkersViewPropertyTester extends PropertyTester { /** * Test if the content generator in the args match the receiver. - * + * * @param view * @param args * @return boolean diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MockMarkerEntry.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MockMarkerEntry.java index 788b6b81477..07451e18d97 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MockMarkerEntry.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MockMarkerEntry.java @@ -15,7 +15,7 @@ package org.eclipse.ui.internal.views.markers; */ public class MockMarkerEntry extends MarkerEntry{ /** - * + * */ public String name; /** diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/OpenMarkersViewHandler.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/OpenMarkersViewHandler.java index 7421edf5387..f6eac3d0ffd 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/OpenMarkersViewHandler.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/OpenMarkersViewHandler.java @@ -25,15 +25,15 @@ import org.eclipse.ui.views.markers.internal.MarkerMessages; /** * OpenMarkersViewHandler is used to open another markers view. - * + * * @since 3.4 - * + * */ public class OpenMarkersViewHandler extends MarkerViewHandler { /* * (non-Javadoc) - * + * * @see org.eclipse.core.commands.IHandler#execute(org.eclipse.core.commands.ExecutionEvent) */ @Override @@ -72,14 +72,14 @@ public class OpenMarkersViewHandler extends MarkerViewHandler { /** * Get the input validator for the receiver. - * + * * @return IInputValidator */ private IInputValidator getValidator() { return new IInputValidator() { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.dialogs.IInputValidator#isValid(java.lang.String) */ @Override diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/PriorityConfigurationArea.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/PriorityConfigurationArea.java index 71ca627ec9f..b3f5b35f8bd 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/PriorityConfigurationArea.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/PriorityConfigurationArea.java @@ -23,9 +23,9 @@ import org.eclipse.ui.views.markers.internal.MarkerMessages; /** * The PriorityConfigurationArea is the configuration area for the task * priority. - * + * * @since 3.4 - * + * */ public class PriorityConfigurationArea extends FilterConfigurationArea { @@ -43,7 +43,7 @@ public class PriorityConfigurationArea extends FilterConfigurationArea { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.api.FilterConfigurationArea#apply(org.eclipse.ui.internal.provisional.views.markers.api.MarkerFieldFilter) */ @Override @@ -54,12 +54,12 @@ public class PriorityConfigurationArea extends FilterConfigurationArea { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.api.FilterConfigurationArea#createContents(org.eclipse.swt.widgets.Composite) */ @Override public void createContents(Composite parent) { - + parent.setLayout(new GridLayout(3,false)); highButton = new Button(parent, SWT.CHECK); @@ -67,7 +67,7 @@ public class PriorityConfigurationArea extends FilterConfigurationArea { highButton.addSelectionListener(new SelectionAdapter() { /* * (non-Javadoc) - * + * * @see org.eclipse.swt.events.SelectionListener#widgetSelected(org.eclipse.swt.events.SelectionEvent) */ @Override @@ -83,7 +83,7 @@ public class PriorityConfigurationArea extends FilterConfigurationArea { normalButton.addSelectionListener(new SelectionAdapter() { /* * (non-Javadoc) - * + * * @see org.eclipse.swt.events.SelectionListener#widgetSelected(org.eclipse.swt.events.SelectionEvent) */ @Override @@ -98,7 +98,7 @@ public class PriorityConfigurationArea extends FilterConfigurationArea { lowButton.addSelectionListener(new SelectionAdapter() { /* * (non-Javadoc) - * + * * @see org.eclipse.swt.events.SelectionListener#widgetSelected(org.eclipse.swt.events.SelectionEvent) */ @Override @@ -111,7 +111,7 @@ public class PriorityConfigurationArea extends FilterConfigurationArea { /** * Update he priorities set based on the constant and the selection value. - * + * * @param constant * @param enabled */ @@ -139,7 +139,7 @@ public class PriorityConfigurationArea extends FilterConfigurationArea { .setSelection((PriorityMarkerFieldFilter.PRIORITY_HIGH & priorities) > 0); } - + /* (non-Javadoc) * @see org.eclipse.ui.internal.provisional.views.markers.api.FilterConfigurationArea#getTitle() */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/PriorityMarkerFieldFilter.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/PriorityMarkerFieldFilter.java index 484ae4ad647..4a23d785d04 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/PriorityMarkerFieldFilter.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/PriorityMarkerFieldFilter.java @@ -20,9 +20,9 @@ import org.eclipse.ui.views.markers.internal.TaskFilter; /** * PriorityMarkerFieldFilter is the field filter for priority in markers - * + * * @since 3.4 - * + * */ public class PriorityMarkerFieldFilter extends CompatibilityFieldFilter { @@ -43,7 +43,7 @@ public class PriorityMarkerFieldFilter extends CompatibilityFieldFilter { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.api.MarkerFieldFilter#loadSettings(org.eclipse.ui.IMemento) */ @Override @@ -53,7 +53,7 @@ public class PriorityMarkerFieldFilter extends CompatibilityFieldFilter { return; selectedPriorities = priority.intValue(); } - + /* (non-Javadoc) * @see org.eclipse.ui.internal.views.markers.CompatibilityFieldFilter#loadLegacySettings(org.eclipse.ui.IMemento, org.eclipse.ui.internal.views.markers.MarkerContentGenerator) */ @@ -68,9 +68,9 @@ public class PriorityMarkerFieldFilter extends CompatibilityFieldFilter { } catch (NumberFormatException eNumberFormat) { } } - - - + + + } /* (non-Javadoc) * @see org.eclipse.ui.internal.views.markers.CompatibilityFieldFilter#initialize(org.eclipse.ui.views.markers.internal.ProblemFilter) @@ -78,7 +78,7 @@ public class PriorityMarkerFieldFilter extends CompatibilityFieldFilter { @Override public void initialize(ProblemFilter problemFilter) { //There is no problem filter support for priority - + } diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/ProblemsSeverityAndDescriptionConfigurationArea.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/ProblemsSeverityAndDescriptionConfigurationArea.java index 3025ec29715..0f0c5747889 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/ProblemsSeverityAndDescriptionConfigurationArea.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/ProblemsSeverityAndDescriptionConfigurationArea.java @@ -27,10 +27,10 @@ public class ProblemsSeverityAndDescriptionConfigurationArea extends */ @Override public void createContents(Composite parent) { - + super.createContents(parent); createSeverityGroup(parent); - + } } diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/ProblemsSeverityAndDescriptionFieldFilter.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/ProblemsSeverityAndDescriptionFieldFilter.java index 522bc178193..98d41dba50a 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/ProblemsSeverityAndDescriptionFieldFilter.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/ProblemsSeverityAndDescriptionFieldFilter.java @@ -19,14 +19,14 @@ import org.eclipse.ui.views.markers.internal.ProblemFilter; /** * ProblemsSeverityAndDescriptionFieldFilter is the filter used by the problems * view. - * + * * @since 3.4 - * + * */ public class ProblemsSeverityAndDescriptionFieldFilter extends SeverityAndDescriptionFieldFilter { - + /* (non-Javadoc) * @see org.eclipse.ui.internal.views.markers.DescriptionFieldFilter#select(org.eclipse.ui.views.markers.MarkerItem) */ @@ -60,11 +60,11 @@ public class ProblemsSeverityAndDescriptionFieldFilter extends selectedSeverities = severitySetting.intValue(); } - + } /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.views.markers.DescriptionFieldFilter#initialize(org.eclipse.ui.views.markers.internal.ProblemFilter) */ @Override diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/ProblemsView.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/ProblemsView.java index c8ffc427132..8a234813b7e 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/ProblemsView.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/ProblemsView.java @@ -24,7 +24,7 @@ import org.eclipse.ui.views.markers.internal.MarkerSupportRegistry; /** * The Problems view is supplied by the IDE to show problems. - * + * * @since 3.4 */ public class ProblemsView extends MarkerSupportView { @@ -34,7 +34,7 @@ public class ProblemsView extends MarkerSupportView { */ public ProblemsView() { super(MarkerSupportRegistry.PROBLEMS_GENERATOR); - + } @Override @@ -52,7 +52,7 @@ public class ProblemsView extends MarkerSupportView { protected IUndoContext getUndoContext() { return WorkspaceUndoUtil.getProblemsUndoContext(); } - + @Override protected String getDeleteOperationName(IMarker[] markers) { Assert.isLegal(markers.length > 0); diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/QuickFixHandler.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/QuickFixHandler.java index 7423b641131..80d911d5a7a 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/QuickFixHandler.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/QuickFixHandler.java @@ -41,9 +41,9 @@ import org.eclipse.ui.views.markers.internal.MarkerMessages; /** * QuickFixHandler is the command handler for the quick fix dialog. - * + * * @since 3.4 - * + * */ public class QuickFixHandler extends MarkerViewHandler { @@ -56,14 +56,14 @@ public class QuickFixHandler extends MarkerViewHandler { public QuickFixWizardDialog(Shell parentShell, IWizard newWizard) { super(parentShell, newWizard); setShellStyle(SWT.CLOSE | SWT.MAX | SWT.TITLE | SWT.BORDER - | SWT.MODELESS | SWT.RESIZE | getDefaultOrientation()); + | SWT.MODELESS | SWT.RESIZE | getDefaultOrientation()); } } /* * (non-Javadoc) - * + * * @see org.eclipse.core.commands.IHandler#execute(org.eclipse.core.commands.ExecutionEvent) */ @Override @@ -151,7 +151,7 @@ public class QuickFixHandler extends MarkerViewHandler { view.getSite().getShell(), MarkerMessages.resolveMarkerAction_dialogTitle, MarkerMessages.MarkerResolutionDialog_NoResolutionsFoundForMultiSelection); - + } } else { @@ -172,7 +172,7 @@ public class QuickFixHandler extends MarkerViewHandler { /** * Checks whether the given extent contains all all but the first element from the given members * array. - * + * * @param extent the array which should contain the elements * @param members the elements to check * @return <code>true</code> if all but the first element are inside the extent diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/QuickFixPage.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/QuickFixPage.java index 6ef10f11579..d740888b901 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/QuickFixPage.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/QuickFixPage.java @@ -69,9 +69,9 @@ import org.eclipse.ui.views.markers.internal.Util; /** * QuickFixPage is a page for the quick fixes of a marker. - * + * * @since 3.4 - * + * */ public class QuickFixPage extends WizardPage { @@ -85,7 +85,7 @@ public class QuickFixPage extends WizardPage { /** * Create a new instance of the receiver. - * + * * @param problemDescription the description of the problem being fixed * @param selectedMarkers the selected markers * @param resolutions {@link Map} with key of {@link IMarkerResolution} and value of @@ -168,13 +168,13 @@ public class QuickFixPage extends WizardPage { .getElementAt(0))); markersTable.setCheckedElements(selectedMarkers); - + setPageComplete(markersTable.getCheckedElements().length > 0); } /** * Create the table buttons for the receiver. - * + * * @param control * @return {@link Composite} */ @@ -195,7 +195,7 @@ public class QuickFixPage extends WizardPage { selectAll.addSelectionListener(new SelectionAdapter() { /* * (non-Javadoc) - * + * * @see org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent) */ @Override @@ -213,7 +213,7 @@ public class QuickFixPage extends WizardPage { deselectAll.addSelectionListener(new SelectionAdapter() { /* * (non-Javadoc) - * + * * @see org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent) */ @Override @@ -235,7 +235,7 @@ public class QuickFixPage extends WizardPage { resolutionsList.setContentProvider(new IStructuredContentProvider() { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.IStructuredContentProvider#getElements(java.lang.Object) */ @Override @@ -245,7 +245,7 @@ public class QuickFixPage extends WizardPage { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.IContentProvider#dispose() */ @Override @@ -255,7 +255,7 @@ public class QuickFixPage extends WizardPage { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.IContentProvider#inputChanged(org.eclipse.jface.viewers.Viewer, * java.lang.Object, java.lang.Object) */ @@ -269,7 +269,7 @@ public class QuickFixPage extends WizardPage { resolutionsList.setLabelProvider(new LabelProvider() { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.LabelProvider#getText(java.lang.Object) */ @Override @@ -279,7 +279,7 @@ public class QuickFixPage extends WizardPage { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.LabelProvider#getImage(java.lang.Object) * @since 3.7 */ @@ -294,7 +294,7 @@ public class QuickFixPage extends WizardPage { resolutionsList.setComparator(new ViewerComparator() { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.ViewerComparator#compare(org.eclipse.jface.viewers.Viewer, * java.lang.Object, java.lang.Object) */ @@ -309,7 +309,7 @@ public class QuickFixPage extends WizardPage { .addSelectionChangedListener(new ISelectionChangedListener() { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.ISelectionChangedListener#selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent) */ @Override @@ -322,7 +322,7 @@ public class QuickFixPage extends WizardPage { /** * Create the table that shows the markers. - * + * * @param control */ private void createMarkerTable(Composite control) { @@ -334,7 +334,7 @@ public class QuickFixPage extends WizardPage { markersTable.setContentProvider(new IStructuredContentProvider() { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.IContentProvider#dispose() */ @Override @@ -344,7 +344,7 @@ public class QuickFixPage extends WizardPage { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.IStructuredContentProvider#getElements(java.lang.Object) */ @Override @@ -362,7 +362,7 @@ public class QuickFixPage extends WizardPage { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.IContentProvider#inputChanged(org.eclipse.jface.viewers.Viewer, * java.lang.Object, java.lang.Object) */ @@ -377,7 +377,7 @@ public class QuickFixPage extends WizardPage { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.ITableLabelProvider#getColumnImage(java.lang.Object, * int) */ @@ -391,7 +391,7 @@ public class QuickFixPage extends WizardPage { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.ITableLabelProvider#getColumnText(java.lang.Object, * int) */ @@ -400,7 +400,7 @@ public class QuickFixPage extends WizardPage { IMarker marker =(IMarker) element; if (columnIndex == 0) return Util.getResourceName(marker); - + // Is the location override set? String locationString = marker.getAttribute(IMarker.LOCATION, MarkerSupportInternalUtilities.EMPTY_STRING); @@ -422,7 +422,7 @@ public class QuickFixPage extends WizardPage { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.IBaseLabelProvider#addListener(org.eclipse.jface.viewers.ILabelProviderListener) */ @Override @@ -433,7 +433,7 @@ public class QuickFixPage extends WizardPage { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.IBaseLabelProvider#dispose() */ @Override @@ -444,7 +444,7 @@ public class QuickFixPage extends WizardPage { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.IBaseLabelProvider#isLabelProperty(java.lang.Object, * java.lang.String) */ @@ -455,7 +455,7 @@ public class QuickFixPage extends WizardPage { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.IBaseLabelProvider#removeListener(org.eclipse.jface.viewers.ILabelProviderListener) */ @Override @@ -468,7 +468,7 @@ public class QuickFixPage extends WizardPage { markersTable.addCheckStateListener(new ICheckStateListener() { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.ICheckStateListener#checkStateChanged(org.eclipse.jface.viewers.CheckStateChangedEvent) */ @Override @@ -483,7 +483,7 @@ public class QuickFixPage extends WizardPage { }); new OpenAndLinkWithEditorHelper(markersTable) { - + { setLinkWithEditor(false); } @Override @@ -495,7 +495,7 @@ public class QuickFixPage extends WizardPage { @Override protected void linkToEditor(ISelection selection) { } - + @Override protected void open(ISelection selection, boolean activate) { if (selection.isEmpty()) @@ -538,7 +538,7 @@ public class QuickFixPage extends WizardPage { /** * Return the marker being edited. - * + * * @return IMarker or <code>null</code> */ public IMarker getSelectedMarker() { @@ -578,7 +578,7 @@ public class QuickFixPage extends WizardPage { new IRunnableWithProgress() { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.operation.IRunnableWithProgress#run(org.eclipse.core.runtime.IProgressMonitor) */ @Override @@ -606,7 +606,7 @@ public class QuickFixPage extends WizardPage { new IRunnableWithProgress() { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.operation.IRunnableWithProgress#run(org.eclipse.core.runtime.IProgressMonitor) */ @Override @@ -643,7 +643,7 @@ public class QuickFixPage extends WizardPage { /** * Return the marker resolution that is currently selected/ - * + * * @return IMarkerResolution or <code>null</code> if there is no * selection. */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/QuickFixPropertyTester.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/QuickFixPropertyTester.java index 33c1990e558..97d9204485e 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/QuickFixPropertyTester.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/QuickFixPropertyTester.java @@ -15,9 +15,9 @@ import org.eclipse.ui.ide.IDE; /** * QuickFixPropertyTester is the property tester for the quick fix object. - * + * * @since 3.4 - * + * */ public class QuickFixPropertyTester extends PropertyTester { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/QuickFixWizard.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/QuickFixWizard.java index 0a40830b917..81b2b0bd794 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/QuickFixWizard.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/QuickFixWizard.java @@ -30,9 +30,9 @@ import org.eclipse.ui.views.markers.internal.MarkerMessages; /** * QuickFixWizard is the wizard for quick fixes. - * + * * @since 3.4 - * + * */ class QuickFixWizard extends Wizard { @@ -43,7 +43,7 @@ class QuickFixWizard extends Wizard { /** * Create the wizard with the map of resolutions. - * + * * @param description the description of the problem * @param selectedMarkers the markers that were selected * @param resolutions Map key {@link IMarkerResolution} value {@link IMarker} [] @@ -62,7 +62,7 @@ class QuickFixWizard extends Wizard { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.wizard.Wizard#addPages() */ @Override @@ -73,7 +73,7 @@ class QuickFixWizard extends Wizard { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.wizard.Wizard#performFinish() */ @Override @@ -81,7 +81,7 @@ class QuickFixWizard extends Wizard { IRunnableWithProgress finishRunnable = new IRunnableWithProgress() { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.operation.IRunnableWithProgress#run(org.eclipse.core.runtime.IProgressMonitor) */ @Override diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/ScopeArea.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/ScopeArea.java index d9f377573be..fb4457cf09a 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/ScopeArea.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/ScopeArea.java @@ -32,9 +32,9 @@ import org.eclipse.ui.views.markers.internal.MarkerMessages; /** * ScopeArea is the filter configuration area that handles the scope of the * filter. - * + * * @since 3.4 - * + * */ class ScopeArea extends GroupFilterConfigurationArea { @@ -49,13 +49,13 @@ class ScopeArea extends GroupFilterConfigurationArea { /** * Creates the working set filter selection widgets. - * + * * @param parent * the parent composite of the working set widgets */ WorkingSetArea(Composite parent) { - - + + // radio button has to be part of main radio button group button = createRadioButton(parent, MarkerMessages.filtersDialog_noWorkingSet, @@ -74,19 +74,19 @@ class ScopeArea extends GroupFilterConfigurationArea { // composite.setLayout(layout); selectButton = new Button(parent, SWT.PUSH); selectButton.setText(MarkerMessages.filtersDialog_workingSetSelect); - + initializeFontMetrics(parent); GridData layoutData = new GridData(); layoutData.horizontalIndent = 20; int widthHint = Dialog.convertHorizontalDLUsToPixels(getFontMetrics(),IDialogConstants.BUTTON_WIDTH); Point minSize = selectButton.computeSize(SWT.DEFAULT, SWT.DEFAULT, true); layoutData.widthHint = Math.max(widthHint, minSize.x); - + selectButton.setLayoutData(layoutData); selectButton.addSelectionListener(new SelectionAdapter() { /* * (non-Javadoc) - * + * * @see org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent) */ @Override @@ -115,14 +115,14 @@ class ScopeArea extends GroupFilterConfigurationArea { } }); - - + + } /** * Returns wether or not a working set filter should be used - * + * * @return true=a working set filter should be used false=a working set * filter should not be used */ @@ -132,7 +132,7 @@ class ScopeArea extends GroupFilterConfigurationArea { /** * Returns the selected working set filter or null if none is selected. - * + * * @return the selected working set filter or null if none is selected. */ IWorkingSet getWorkingSet() { @@ -141,7 +141,7 @@ class ScopeArea extends GroupFilterConfigurationArea { /** * Sets the working set filter selection. - * + * * @param selected * true=a working set filter should be used false=no working * set filter should be used @@ -164,7 +164,7 @@ class ScopeArea extends GroupFilterConfigurationArea { /** * Sets the specified working set. - * + * * @param workingSet * the working set */ @@ -198,19 +198,19 @@ class ScopeArea extends GroupFilterConfigurationArea { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.FilterConfigurationArea#applyToGroup(org.eclipse.ui.internal.provisional.views.markers.MarkerFieldFilterGroup) */ @Override public void applyToGroup(MarkerFieldFilterGroup group) { group.setScope(scope); group.setWorkingSet(workingSetArea.getWorkingSet()); - + } /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.FilterConfigurationArea#createContents(org.eclipse.swt.widgets.Composite) */ @Override @@ -236,7 +236,7 @@ class ScopeArea extends GroupFilterConfigurationArea { /** * Creates a radio button with the given parent and text. - * + * * @param parent * the parent composite * @param text @@ -252,7 +252,7 @@ class ScopeArea extends GroupFilterConfigurationArea { /* * (non-Javadoc) - * + * * @see org.eclipse.swt.events.SelectionListener#widgetSelected(org.eclipse.swt.events.SelectionEvent) */ @Override @@ -272,7 +272,7 @@ class ScopeArea extends GroupFilterConfigurationArea { } /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.FilterConfigurationArea#getTitle() */ @Override @@ -282,7 +282,7 @@ class ScopeArea extends GroupFilterConfigurationArea { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.FilterConfigurationArea#initializeFromGroup(org.eclipse.ui.internal.provisional.views.markers.MarkerFieldFilterGroup) */ @Override @@ -295,7 +295,7 @@ class ScopeArea extends GroupFilterConfigurationArea { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.api.FilterConfigurationArea#apply(org.eclipse.ui.internal.provisional.views.markers.api.MarkerFieldFilter) */ @Override @@ -306,7 +306,7 @@ class ScopeArea extends GroupFilterConfigurationArea { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.api.FilterConfigurationArea#initialize(org.eclipse.ui.internal.provisional.views.markers.api.MarkerFieldFilter) */ @Override diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/SelectedWarningsParameters.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/SelectedWarningsParameters.java index 155fc04f27a..c9869cec497 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/SelectedWarningsParameters.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/SelectedWarningsParameters.java @@ -19,9 +19,9 @@ import org.eclipse.ui.views.markers.FiltersContributionParameters; /** * SelectedWarningsParameters is the parameters for warnings. - * + * * @since 3.4 - * + * */ public class SelectedWarningsParameters extends FiltersContributionParameters { @@ -41,7 +41,7 @@ public class SelectedWarningsParameters extends FiltersContributionParameters { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.FiltersContributionParameters#getParameterValues() */ @Override diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/SeverityAndDescriptionConfigurationArea.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/SeverityAndDescriptionConfigurationArea.java index 27b40ab307a..f2d7c757511 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/SeverityAndDescriptionConfigurationArea.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/SeverityAndDescriptionConfigurationArea.java @@ -27,9 +27,9 @@ import org.eclipse.ui.views.markers.internal.MarkerMessages; /** * SeverityAndDescriptionConfigurationArea is the configuration area for the * severity and description field. - * + * * @since 3.4 - * + * */ public class SeverityAndDescriptionConfigurationArea extends DescriptionConfigurationArea { @@ -49,7 +49,7 @@ public class SeverityAndDescriptionConfigurationArea extends /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.api.FilterConfigurationArea#apply(org.eclipse.ui.internal.provisional.views.markers.api.MarkerFieldFilter) */ @Override @@ -61,7 +61,7 @@ public class SeverityAndDescriptionConfigurationArea extends /** * Create a group for the severity selection. - * + * * @param parent * @return {@link Composite} */ @@ -82,7 +82,7 @@ public class SeverityAndDescriptionConfigurationArea extends errorButton.addSelectionListener(new SelectionAdapter() { /* * (non-Javadoc) - * + * * @see org.eclipse.swt.events.SelectionListener#widgetSelected(org.eclipse.swt.events.SelectionEvent) */ @Override @@ -101,7 +101,7 @@ public class SeverityAndDescriptionConfigurationArea extends warningButton.addSelectionListener(new SelectionAdapter() { /* * (non-Javadoc) - * + * * @see org.eclipse.swt.events.SelectionListener#widgetSelected(org.eclipse.swt.events.SelectionEvent) */ @Override @@ -117,7 +117,7 @@ public class SeverityAndDescriptionConfigurationArea extends infoButton.addSelectionListener(new SelectionAdapter() { /* * (non-Javadoc) - * + * * @see org.eclipse.swt.events.SelectionListener#widgetSelected(org.eclipse.swt.events.SelectionEvent) */ @Override @@ -132,7 +132,7 @@ public class SeverityAndDescriptionConfigurationArea extends /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.api.FilterConfigurationArea#initialize(org.eclipse.ui.internal.provisional.views.markers.api.MarkerFieldFilter) */ @Override @@ -151,7 +151,7 @@ public class SeverityAndDescriptionConfigurationArea extends /** * Set or clear the flag for the constant based on the enablement. - * + * * @param constant * one of {@link IMarker#SEVERITY_ERROR},{@link IMarker#SEVERITY_WARNING},{@link IMarker#SEVERITY_INFO} * @param enabled @@ -166,7 +166,7 @@ public class SeverityAndDescriptionConfigurationArea extends /** * Set the enabled state of the severity buttons. - * + * * @param enabled */ void setSeverityButtonsEnabled(boolean enabled) { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/SeverityAndDescriptionFieldFilter.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/SeverityAndDescriptionFieldFilter.java index 55102b07d66..f3a0f6923f1 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/SeverityAndDescriptionFieldFilter.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/SeverityAndDescriptionFieldFilter.java @@ -19,9 +19,9 @@ import org.eclipse.ui.views.markers.MarkerFieldFilter; /** * SeverityAndDescriptionFieldFilter is the filter for the severity and * description field. - * + * * @since 3.4 - * + * */ public abstract class SeverityAndDescriptionFieldFilter extends DescriptionFieldFilter { @@ -40,7 +40,7 @@ public abstract class SeverityAndDescriptionFieldFilter extends DescriptionField /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.MarkerFieldFilter#initialize(java.util.Map) */ @Override @@ -63,7 +63,7 @@ public abstract class SeverityAndDescriptionFieldFilter extends DescriptionField /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.MarkerFieldFilter#populateWorkingCopy(org.eclipse.ui.internal.provisional.views.markers.MarkerFieldFilter) */ @Override @@ -75,7 +75,7 @@ public abstract class SeverityAndDescriptionFieldFilter extends DescriptionField /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.MarkerFieldFilter#saveSettings(org.eclipse.ui.IMemento) */ @Override @@ -87,7 +87,7 @@ public abstract class SeverityAndDescriptionFieldFilter extends DescriptionField /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.MarkerFieldFilter#loadSettings(org.eclipse.ui.IMemento) */ @Override @@ -100,13 +100,13 @@ public abstract class SeverityAndDescriptionFieldFilter extends DescriptionField /** * Compare the selected severity and the severity of the marker to see if * they match - * + * * @param markerSeverity */ protected boolean checkSeverity(int markerSeverity) { // Convert from the marker to the filter return (1 << markerSeverity & selectedSeverities) > 0; - + } } diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/SortFieldContribution.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/SortFieldContribution.java index cfec3147ea6..0861ceb212e 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/SortFieldContribution.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/SortFieldContribution.java @@ -25,9 +25,9 @@ import org.eclipse.ui.views.markers.internal.MarkerMessages; /** * SortFieldContribution is the contribution that allows the user to choose * which field will become the primary sort field. - * + * * @since 3.4 - * + * */ public class SortFieldContribution extends MarkersContribution { @@ -47,7 +47,7 @@ public class SortFieldContribution extends MarkersContribution { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.actions.CompoundContributionItem#getContributionItems() */ @Override @@ -83,7 +83,7 @@ public class SortFieldContribution extends MarkersContribution { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.action.ContributionItem#fill(org.eclipse.swt.widgets.Menu, * int) */ @@ -95,7 +95,7 @@ public class SortFieldContribution extends MarkersContribution { item.addListener(SWT.Selection, new Listener() { /* * (non-Javadoc) - * + * * @see org.eclipse.swt.widgets.Listener#handleEvent(org.eclipse.swt.widgets.Event) */ @Override @@ -116,7 +116,7 @@ public class SortFieldContribution extends MarkersContribution { /** * Return the IContributionItem for field. - * + * * @param field * @return IContributionItem */ @@ -125,7 +125,7 @@ public class SortFieldContribution extends MarkersContribution { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.action.ContributionItem#fill(org.eclipse.swt.widgets.Menu, * int) */ @@ -145,7 +145,7 @@ public class SortFieldContribution extends MarkersContribution { /** * Return the menu item listener for selection of a field. - * + * * @param field * @param view * @return Listener @@ -155,7 +155,7 @@ public class SortFieldContribution extends MarkersContribution { return new Listener() { /* * (non-Javadoc) - * + * * @see org.eclipse.swt.widgets.Listener#handleEvent(org.eclipse.swt.widgets.Event) */ @Override diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/TasksView.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/TasksView.java index 47db6a1c6f8..26b886b1cdd 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/TasksView.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/TasksView.java @@ -31,9 +31,9 @@ public class TasksView extends MarkerSupportView { */ public TasksView() { super(MarkerSupportRegistry.TASKS_GENERATOR); - + } - + /* * (non-Javadoc) * @see org.eclipse.ui.views.markers.internal.MarkerView#getUndoContext() diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/TodoFiltersContributionParameters.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/TodoFiltersContributionParameters.java index dce502b0a72..4be6bf138e9 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/TodoFiltersContributionParameters.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/TodoFiltersContributionParameters.java @@ -24,7 +24,7 @@ import org.eclipse.ui.views.markers.MarkerSupportConstants; */ public class TodoFiltersContributionParameters extends FiltersContributionParameters { - + private static Map todoMap; static { todoMap = new HashMap(); diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/TypeFieldGroup.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/TypeFieldGroup.java index 356965c761c..8a85f4891a0 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/TypeFieldGroup.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/TypeFieldGroup.java @@ -23,15 +23,15 @@ import org.eclipse.ui.views.markers.internal.TableComparator; /** * TypeFieldGroup is the field used to group by type. - * + * * @since 3.3 - * + * */ public class TypeFieldGroup extends AbstractField { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.IField#getDescription() */ @Override @@ -41,7 +41,7 @@ public class TypeFieldGroup extends AbstractField { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.IField#getDescriptionImage() */ @Override @@ -51,7 +51,7 @@ public class TypeFieldGroup extends AbstractField { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.IField#getColumnHeaderText() */ @Override @@ -61,7 +61,7 @@ public class TypeFieldGroup extends AbstractField { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.IField#getColumnHeaderImage() */ @Override @@ -71,7 +71,7 @@ public class TypeFieldGroup extends AbstractField { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.IField#getValue(java.lang.Object) */ @Override @@ -91,7 +91,7 @@ public class TypeFieldGroup extends AbstractField { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.IField#getImage(java.lang.Object) */ @Override @@ -101,7 +101,7 @@ public class TypeFieldGroup extends AbstractField { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.IField#compare(java.lang.Object, * java.lang.Object) */ @@ -112,7 +112,7 @@ public class TypeFieldGroup extends AbstractField { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.IField#getDefaultDirection() */ @Override @@ -122,7 +122,7 @@ public class TypeFieldGroup extends AbstractField { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.IField#getPreferredWidth() */ @Override diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/TypesConfigurationArea.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/TypesConfigurationArea.java index de1ff7a7c31..7a99f3e79a4 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/TypesConfigurationArea.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/TypesConfigurationArea.java @@ -44,9 +44,9 @@ import org.eclipse.ui.views.markers.internal.MarkerType; /** * TypesConfigurationArea is the FilterConfigurationArea that handles type * selection for the filter. - * + * * @since 3.4 - * + * */ public class TypesConfigurationArea extends GroupFilterConfigurationArea { @@ -57,7 +57,7 @@ public class TypesConfigurationArea extends GroupFilterConfigurationArea { /** * Create a new instance of the receiver. - * + * * @param categoryName */ public CategoryEntry(String categoryName) { @@ -66,7 +66,7 @@ public class TypesConfigurationArea extends GroupFilterConfigurationArea { /** * Add the node to the receiver. - * + * * @param node */ public void add(MarkerTypeEntry node) { @@ -77,7 +77,7 @@ public class TypesConfigurationArea extends GroupFilterConfigurationArea { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.TypesConfigurationArea.TypesEntry#addElementsMatching(java.util.Collection, * java.util.Collection) */ @@ -94,7 +94,7 @@ public class TypesConfigurationArea extends GroupFilterConfigurationArea { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.TypesConfigurationArea.TypesEntry#getChildren() */ @Override @@ -104,7 +104,7 @@ public class TypesConfigurationArea extends GroupFilterConfigurationArea { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.TypesConfigurationArea.TypesEntry#getLabel() */ @Override @@ -114,7 +114,7 @@ public class TypesConfigurationArea extends GroupFilterConfigurationArea { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.TypesConfigurationArea.TypesEntry#getParent() */ @Override @@ -124,7 +124,7 @@ public class TypesConfigurationArea extends GroupFilterConfigurationArea { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.TypesConfigurationArea.TypesEntry#hasChildren() */ @Override @@ -141,7 +141,7 @@ public class TypesConfigurationArea extends GroupFilterConfigurationArea { /** * Create an instance of the receiver. - * + * * @param markerType */ public MarkerTypeEntry(MarkerType markerType) { @@ -150,7 +150,7 @@ public class TypesConfigurationArea extends GroupFilterConfigurationArea { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.TypesConfigurationArea.TypesEntry#addElementsMatching(java.util.Collection, * java.util.Collection) */ @@ -164,7 +164,7 @@ public class TypesConfigurationArea extends GroupFilterConfigurationArea { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.TypesConfigurationArea.TypesEntry#getChildren() */ @Override @@ -174,7 +174,7 @@ public class TypesConfigurationArea extends GroupFilterConfigurationArea { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.TypesConfigurationArea.TypesEntry#getLabel() */ @Override @@ -184,7 +184,7 @@ public class TypesConfigurationArea extends GroupFilterConfigurationArea { /** * Return the marker type for the receiver. - * + * * @return MarkerType */ public MarkerType getMarkerType() { @@ -193,7 +193,7 @@ public class TypesConfigurationArea extends GroupFilterConfigurationArea { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.TypesConfigurationArea.TypesEntry#getParent() */ @Override @@ -203,7 +203,7 @@ public class TypesConfigurationArea extends GroupFilterConfigurationArea { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.TypesConfigurationArea.TypesEntry#hasChildren() */ @Override @@ -213,7 +213,7 @@ public class TypesConfigurationArea extends GroupFilterConfigurationArea { /** * Set the category of the receiver. - * + * * @param categoryEntry */ public void setParent(CategoryEntry categoryEntry) { @@ -227,7 +227,7 @@ public class TypesConfigurationArea extends GroupFilterConfigurationArea { /** * Add any elements that contain a type in selectedTypes tp entries. - * + * * @param selectedTypes * @param entries */ @@ -236,28 +236,28 @@ public class TypesConfigurationArea extends GroupFilterConfigurationArea { /** * Return the children of the receiver. - * + * * @return TypesEntry[] */ public abstract Collection getChildren(); /** * Return the label for the receiver. - * + * * @return String */ public abstract String getLabel(); /** * Return the parent of the receiver. - * + * * @return TypesEntry */ public abstract TypesEntry getParent(); /** * Return whether or not the receiver has children. - * + * * @return boolean */ public abstract boolean hasChildren(); @@ -272,7 +272,7 @@ public class TypesConfigurationArea extends GroupFilterConfigurationArea { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.api.FilterConfigurationArea#apply(org.eclipse.ui.internal.provisional.views.markers.api.MarkerFieldFilter) */ @Override @@ -294,7 +294,7 @@ public class TypesConfigurationArea extends GroupFilterConfigurationArea { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.FilterConfigurationArea#applyToGroup(org.eclipse.ui.internal.provisional.views.markers.MarkerFieldFilterGroup) */ @Override @@ -304,7 +304,7 @@ public class TypesConfigurationArea extends GroupFilterConfigurationArea { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.FilterConfigurationArea#createContents(org.eclipse.swt.widgets.Composite) */ @Override @@ -336,7 +336,7 @@ public class TypesConfigurationArea extends GroupFilterConfigurationArea { typesViewer.setLabelProvider(new LabelProvider() { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.LabelProvider#getText(java.lang.Object) */ @Override @@ -347,7 +347,7 @@ public class TypesConfigurationArea extends GroupFilterConfigurationArea { typesViewer.setComparator(new ViewerComparator() { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.ViewerComparator#compare(org.eclipse.jface.viewers.Viewer, * java.lang.Object, java.lang.Object) */ @@ -370,7 +370,7 @@ public class TypesConfigurationArea extends GroupFilterConfigurationArea { /** * Set the check state of the children of element to * <code>true</code>. - * + * * @param element * @param checked */ @@ -387,7 +387,7 @@ public class TypesConfigurationArea extends GroupFilterConfigurationArea { /** * Update the parent check state based on the state of the element - * + * * @param element * @param checked */ @@ -434,7 +434,7 @@ public class TypesConfigurationArea extends GroupFilterConfigurationArea { typesContentProvider, false)); setButtonLayoutData(deselectAllButton); } - + /** * {@inheritDoc} */ @@ -445,7 +445,7 @@ public class TypesConfigurationArea extends GroupFilterConfigurationArea { /** * Get the listener for select all and deselect all. - * + * * @param typesContentProvider * @param checked * the check state to set @@ -457,7 +457,7 @@ public class TypesConfigurationArea extends GroupFilterConfigurationArea { return new SelectionListener() { /* * (non-Javadoc) - * + * * @see org.eclipse.swt.events.SelectionListener#widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent) */ @Override @@ -467,7 +467,7 @@ public class TypesConfigurationArea extends GroupFilterConfigurationArea { /* * (non-Javadoc) - * + * * @see org.eclipse.swt.events.SelectionListener#widgetSelected(org.eclipse.swt.events.SelectionEvent) */ @Override @@ -484,7 +484,7 @@ public class TypesConfigurationArea extends GroupFilterConfigurationArea { /** * Return the elements for MarkerFieldFilterGroup groip. - * + * * @param group * @return List of TypesEntry */ @@ -524,7 +524,7 @@ public class TypesConfigurationArea extends GroupFilterConfigurationArea { /** * Find the type entries for group that correspond to it's current selection * and add them to the checked or grey checked lists as appropriate. - * + * * @param group * @param entries * @param greyEntries @@ -558,7 +558,7 @@ public class TypesConfigurationArea extends GroupFilterConfigurationArea { /** * Get the content provider for the types. - * + * * @return ITreeContentProvider */ private ITreeContentProvider getTypesContentProvider() { @@ -566,7 +566,7 @@ public class TypesConfigurationArea extends GroupFilterConfigurationArea { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.IContentProvider#dispose() */ @Override @@ -575,7 +575,7 @@ public class TypesConfigurationArea extends GroupFilterConfigurationArea { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.ITreeContentProvider#getChildren(java.lang.Object) */ @Override @@ -585,7 +585,7 @@ public class TypesConfigurationArea extends GroupFilterConfigurationArea { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.IStructuredContentProvider#getElements(java.lang.Object) */ @Override @@ -596,7 +596,7 @@ public class TypesConfigurationArea extends GroupFilterConfigurationArea { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.ITreeContentProvider#getParent(java.lang.Object) */ @Override @@ -606,7 +606,7 @@ public class TypesConfigurationArea extends GroupFilterConfigurationArea { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.ITreeContentProvider#hasChildren(java.lang.Object) */ @Override @@ -616,7 +616,7 @@ public class TypesConfigurationArea extends GroupFilterConfigurationArea { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.IContentProvider#inputChanged(org.eclipse.jface.viewers.Viewer, * java.lang.Object, java.lang.Object) */ @@ -629,7 +629,7 @@ public class TypesConfigurationArea extends GroupFilterConfigurationArea { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.api.FilterConfigurationArea#initialize(org.eclipse.ui.internal.provisional.views.markers.api.MarkerFieldFilter) */ @Override @@ -640,7 +640,7 @@ public class TypesConfigurationArea extends GroupFilterConfigurationArea { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.views.markers.GroupFilterConfigurationArea#initializeFromGroup(org.eclipse.ui.internal.views.markers.MarkerFieldFilterGroup) */ @Override @@ -657,7 +657,7 @@ public class TypesConfigurationArea extends GroupFilterConfigurationArea { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.FilterConfigurationArea#getTitle() */ @Override diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/UIUpdateJob.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/UIUpdateJob.java index 0f387794687..588953b24de 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/UIUpdateJob.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/UIUpdateJob.java @@ -24,12 +24,12 @@ import org.eclipse.ui.views.markers.internal.MarkerMessages; /** * The UIUpdateJob runs in the UI thread and is responsible updating the Markers * view UI with newly updated markers. - * + * * @since 3.6 - * + * */ class UIUpdateJob extends WorkbenchJob { - + private ExtendedMarkersView view; private boolean updating; @@ -49,7 +49,7 @@ class UIUpdateJob extends WorkbenchJob { /* * (non-Javadoc) - * + * * @see * org.eclipse.ui.progress.UIJob#runInUIThread(org.eclipse.core.runtime. * IProgressMonitor) @@ -63,7 +63,7 @@ class UIUpdateJob extends WorkbenchJob { if (viewer.getControl().isDisposed()) { return Status.CANCEL_STATUS; } - + Markers clone = view.getActiveViewerInputClone(); try { updating = true; @@ -73,7 +73,7 @@ class UIUpdateJob extends WorkbenchJob { if (monitor.isCanceled()) { return Status.CANCEL_STATUS; } - + //view.indicateUpdating(MarkerMessages.MarkerView_19, // true); @@ -89,7 +89,7 @@ class UIUpdateJob extends WorkbenchJob { if (monitor.isCanceled()) return Status.CANCEL_STATUS; - /* + /* * always use a clone for Thread safety. We avoid setting the clone * as new input as we would offset the benefits of optimization in * TreeViewer. @@ -144,7 +144,7 @@ class UIUpdateJob extends WorkbenchJob { /* * (non-Javadoc) - * + * * @see org.eclipse.core.runtime.jobs.Job#shouldRun() */ @Override @@ -157,7 +157,7 @@ class UIUpdateJob extends WorkbenchJob { /* * (non-Javadoc) - * + * * @see org.eclipse.core.runtime.jobs.Job#belongsTo(java.lang.Object) */ @Override diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/ViewerColumnsDialog.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/ViewerColumnsDialog.java index 5f6d5744e22..1b1ac320f58 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/ViewerColumnsDialog.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/ViewerColumnsDialog.java @@ -57,13 +57,13 @@ import org.eclipse.ui.views.markers.internal.MarkerMessages; * combine the columns and preference dialogs into one. It should be noted that * the class can be re-used or turned into a tool for column viewers in general, * but with some modifications. See example attached at the end of this class - * + * * @since 3.7 - * + * * @author Hitesh Soliwal - * + * * @noextend This class is not intended to be subclassed by clients. - * + * */ abstract class ViewerColumnsDialog extends ViewerSettingsAndStatusDialog { @@ -86,7 +86,7 @@ abstract class ViewerColumnsDialog extends ViewerSettingsAndStatusDialog { /** * Create a new instance of the receiver. - * + * * @param parentShell */ ViewerColumnsDialog(Shell parentShell) { @@ -95,7 +95,7 @@ abstract class ViewerColumnsDialog extends ViewerSettingsAndStatusDialog { /** * Initialize visible /non-visible columns. - * + * * @param columnObjs */ void setColumnsObjs(Object[] columnObjs) { @@ -122,7 +122,7 @@ abstract class ViewerColumnsDialog extends ViewerSettingsAndStatusDialog { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.views.markers.ViewerSettingsAndStatusDialog# * createDialogContentArea(org.eclipse.swt.widgets.Composite) */ @@ -148,7 +148,7 @@ abstract class ViewerColumnsDialog extends ViewerSettingsAndStatusDialog { /** * The Up and Down button to change column ordering. - * + * * @param parent */ Control createUpDownBtt(Composite parent) { @@ -158,7 +158,7 @@ abstract class ViewerColumnsDialog extends ViewerSettingsAndStatusDialog { compositeLayout.marginWidth = 0; composite.setLayout(compositeLayout); composite.setLayoutData(new GridData(SWT.NONE, SWT.FILL, false, true)); - + Composite bttArea = new Composite(composite, SWT.NONE); GridLayout layout = new GridLayout(); layout.marginHeight = 0; @@ -192,7 +192,7 @@ abstract class ViewerColumnsDialog extends ViewerSettingsAndStatusDialog { /** * Create the controls responsible to display/edit column widths. - * + * * @param parent * @return {@link Control} */ @@ -200,13 +200,13 @@ abstract class ViewerColumnsDialog extends ViewerSettingsAndStatusDialog { Label dummy = new Label(parent, SWT.NONE); dummy.setLayoutData(new GridData(SWT.NONE, SWT.NONE, false, false, 2, 1)); - + Composite widthComposite = new Composite(parent, SWT.NONE); GridLayout gridLayout = new GridLayout(2, false); gridLayout.marginHeight = 0; widthComposite.setLayout(gridLayout); widthComposite.setLayoutData(new GridData(SWT.FILL, SWT.NONE, true, false, 2, 1)); - + widthLabel = new Label(widthComposite, SWT.NONE); widthLabel.setText(MarkerMessages.MarkerPreferences_WidthOfShownColumn); GridData gridData = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING); @@ -246,7 +246,7 @@ abstract class ViewerColumnsDialog extends ViewerSettingsAndStatusDialog { /** * Creates the table that lists out visible columns in the viewer - * + * * @param parent * @return {@link Control} */ @@ -299,7 +299,7 @@ abstract class ViewerColumnsDialog extends ViewerSettingsAndStatusDialog { /** * Creates the table that lists out non-visible columns in the viewer - * + * * @param parent * @return {@link Control} */ @@ -356,7 +356,7 @@ abstract class ViewerColumnsDialog extends ViewerSettingsAndStatusDialog { /** * Creates buttons for moving columns from non-visible to visible and * vice-versa - * + * * @param parent * @return {@link Control} */ @@ -404,7 +404,7 @@ abstract class ViewerColumnsDialog extends ViewerSettingsAndStatusDialog { /** * Handles a selection change in the viewer that lists out the non-visible * columns - * + * * @param selection */ void handleNonVisibleSelection(ISelection selection) { @@ -422,7 +422,7 @@ abstract class ViewerColumnsDialog extends ViewerSettingsAndStatusDialog { /** * Handles a selection change in the viewer that lists out the visible * columns. Takes care of various enablements. - * + * * @param selection */ void handleVisibleSelection(ISelection selection) { @@ -472,7 +472,7 @@ abstract class ViewerColumnsDialog extends ViewerSettingsAndStatusDialog { /** * Applies to visible columns, and handles the changes in the order of * columns - * + * * @param e * event from the button click */ @@ -496,7 +496,7 @@ abstract class ViewerColumnsDialog extends ViewerSettingsAndStatusDialog { /** * Applies to visible columns, and handles the changes in the order of * columns - * + * * @param e * event from the button click */ @@ -519,7 +519,7 @@ abstract class ViewerColumnsDialog extends ViewerSettingsAndStatusDialog { /** * Moves selected columns from non-visible to visible state - * + * * @param e * event from the button click */ @@ -547,7 +547,7 @@ abstract class ViewerColumnsDialog extends ViewerSettingsAndStatusDialog { /** * Moves selected columns from visible to non-visible state - * + * * @param e * event from the button click */ @@ -590,7 +590,7 @@ abstract class ViewerColumnsDialog extends ViewerSettingsAndStatusDialog { updater.setColumnVisible(iterator.next(), visibility); } } - + @Override protected void performDefaults() { refreshViewers(); @@ -631,7 +631,7 @@ abstract class ViewerColumnsDialog extends ViewerSettingsAndStatusDialog { /** * An adapter class to {@link ITableLabelProvider} - * + * */ class TableLabelProvider extends LabelProvider implements ITableLabelProvider { @@ -688,7 +688,7 @@ abstract class ViewerColumnsDialog extends ViewerSettingsAndStatusDialog { protected abstract IColumnUpdater getColumnUpdater(); /** - * + * */ private void updateWidth() { try { @@ -712,14 +712,14 @@ abstract class ViewerColumnsDialog extends ViewerSettingsAndStatusDialog { /** * Get corresponding index for the column - * + * * @param columnObj */ public int getColumnIndex(Object columnObj); /** * Get the width of the column - * + * * @param columnObj */ public int getColumnWidth(Object columnObj); @@ -727,7 +727,7 @@ abstract class ViewerColumnsDialog extends ViewerSettingsAndStatusDialog { /** * Returns true if the column represented by parameters is showing in * the viewer - * + * * @param columnObj */ public boolean isColumnVisible(Object columnObj); @@ -735,7 +735,7 @@ abstract class ViewerColumnsDialog extends ViewerSettingsAndStatusDialog { /** * Returns true if the column represented by parameters is configured as * movable - * + * * @param columnObj */ public boolean isColumnMovable(Object columnObj); @@ -743,7 +743,7 @@ abstract class ViewerColumnsDialog extends ViewerSettingsAndStatusDialog { /** * Returns true if the column represented by parameters is configured as * resizable - * + * * @param columnObj */ public boolean isColumnResizable(Object columnObj); @@ -758,7 +758,7 @@ abstract class ViewerColumnsDialog extends ViewerSettingsAndStatusDialog { /** * Set the column represented by parameters as visible - * + * * @param columnObj * @param visible */ @@ -766,7 +766,7 @@ abstract class ViewerColumnsDialog extends ViewerSettingsAndStatusDialog { /** * Dummy method - more a result of symmetry - * + * * @param columnObj * @param movable */ @@ -775,7 +775,7 @@ abstract class ViewerColumnsDialog extends ViewerSettingsAndStatusDialog { /** * Call back to notify change in the index of the column represented by * columnObj - * + * * @param columnObj * @param index */ @@ -783,7 +783,7 @@ abstract class ViewerColumnsDialog extends ViewerSettingsAndStatusDialog { /** * Dummy method - more a result of symmetry - * + * * @param columnObj * @param resizable */ @@ -792,7 +792,7 @@ abstract class ViewerColumnsDialog extends ViewerSettingsAndStatusDialog { /** * Call back to notify change in the width of the column represented by * columnObj - * + * * @param columnObj * @param newWidth */ @@ -1002,7 +1002,7 @@ abstract class ViewerColumnsDialog extends ViewerSettingsAndStatusDialog { /** * Demo - * + * * @param args */ public static void main(String[] args) { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/ViewerSettingsAndStatusDialog.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/ViewerSettingsAndStatusDialog.java index 23589e80cfa..3ddf5e7d508 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/ViewerSettingsAndStatusDialog.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/ViewerSettingsAndStatusDialog.java @@ -49,7 +49,7 @@ public abstract class ViewerSettingsAndStatusDialog extends ViewSettingsDialog { /* * (non-Javadoc) - * + * * @see * org.eclipse.jface.window.Window#configureShell(org.eclipse.swt.widgets * .Shell) @@ -61,7 +61,7 @@ public abstract class ViewerSettingsAndStatusDialog extends ViewSettingsDialog { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.window.Window#getShellStyle() */ @Override @@ -71,7 +71,7 @@ public abstract class ViewerSettingsAndStatusDialog extends ViewSettingsDialog { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.dialogs.Dialog#getInitialSize() */ @Override @@ -109,7 +109,7 @@ public abstract class ViewerSettingsAndStatusDialog extends ViewSettingsDialog { protected abstract Control createDialogContentArea(Composite dialogArea); /** - * + * */ protected void initializeDialog() { handleStatusUdpate(IStatus.INFO, getDefaultMessage()); @@ -117,7 +117,7 @@ public abstract class ViewerSettingsAndStatusDialog extends ViewSettingsDialog { /** * Create message area. - * + * * @param parent */ Control createMessageArea(Composite parent) { @@ -143,7 +143,7 @@ public abstract class ViewerSettingsAndStatusDialog extends ViewSettingsDialog { /** * Display the message and an appropriate icon. - * + * * @param status */ protected void handleStatusUdpate(IStatus status) { @@ -152,7 +152,7 @@ public abstract class ViewerSettingsAndStatusDialog extends ViewSettingsDialog { /** * Display the message and an appropriate icon. - * + * * @param messgage * @param severity */ @@ -215,7 +215,7 @@ public abstract class ViewerSettingsAndStatusDialog extends ViewSettingsDialog { } /** - * + * */ protected Image getMessageImage() { if (imageLabel != null) { @@ -234,7 +234,7 @@ public abstract class ViewerSettingsAndStatusDialog extends ViewSettingsDialog { } /** - * + * * @param visible */ protected void handleMessageAreaVisibility(boolean visible) { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/properties/IDEPropertiesMessages.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/properties/IDEPropertiesMessages.java index 4c2bf3722a5..3c629e72a02 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/properties/IDEPropertiesMessages.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/properties/IDEPropertiesMessages.java @@ -3,8 +3,8 @@ * 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: + * + * Contributors: * IBM - Initial API and implementation **********************************************************************/ package org.eclipse.ui.internal.views.properties; diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/ArchiveFileExportOperation.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/ArchiveFileExportOperation.java index 72b0d6f062f..8e592d4c1dc 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/ArchiveFileExportOperation.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/ArchiveFileExportOperation.java @@ -33,7 +33,7 @@ import org.eclipse.ui.internal.ide.IDEWorkbenchPlugin; /** * Operation for exporting a resource and its children to a new .zip or * .tar.gz file. - * + * * @since 3.1 */ public class ArchiveFileExportOperation implements IRunnableWithProgress { @@ -50,7 +50,7 @@ public class ArchiveFileExportOperation implements IRunnableWithProgress { private List errorTable = new ArrayList(1); //IStatus private boolean useCompression = true; - + private boolean useTarFormat = false; private boolean createLeadupStructure = true; @@ -162,7 +162,7 @@ public class ArchiveFileExportOperation implements IRunnableWithProgress { throws InterruptedException { exportResource(exportResource, 1); } - + /** * Creates and returns the string that should be used as the name of the entry in the archive. * @param exportResource the resource to export @@ -212,7 +212,7 @@ public class ArchiveFileExportOperation implements IRunnableWithProgress { // this should never happen because an #isAccessible check is done before #members is invoked addError(NLS.bind(DataTransferMessages.DataTransfer_errorExporting, exportResource.getFullPath()), e); } - + if (children.length == 0) { // create an entry for empty containers, see bug 278402 String destinationName = createDestinationName(leadupDepth, exportResource); try { @@ -361,11 +361,11 @@ public class ArchiveFileExportOperation implements IRunnableWithProgress { public void setUseCompression(boolean value) { useCompression = value; } - + /** * Set this boolean indicating whether the file should be output * in tar.gz format rather than .zip format. - * + * * @param value boolean */ public void setUseTarFormat(boolean value) { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/ArchiveFileManipulations.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/ArchiveFileManipulations.java index 14450434df7..f6dfeeb76e7 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/ArchiveFileManipulations.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/ArchiveFileManipulations.java @@ -30,7 +30,7 @@ public class ArchiveFileManipulations { /** * Determine whether the file with the given filename is in .tar.gz or .tar * format. - * + * * @param fileName * file to test * @return true if the file is in tar format @@ -63,7 +63,7 @@ public class ArchiveFileManipulations { /** * Determine whether the file with the given filename is in .zip or .jar * format. - * + * * @param fileName * file to test * @return true if the file is in tar format @@ -93,9 +93,9 @@ public class ArchiveFileManipulations { /** * Closes the given structure provider. - * + * * @param structureProvider - * The structure provider to be closed, can be <code>null</code> + * The structure provider to be closed, can be <code>null</code> * @param shell * The shell to display any possible Dialogs in */ @@ -111,7 +111,7 @@ public class ArchiveFileManipulations { /** * Attempts to close the passed zip file, and answers a boolean indicating * success. - * + * * @param file * The zip file to attempt to close * @param shell @@ -130,11 +130,11 @@ public class ArchiveFileManipulations { return true; } - + /** * Attempts to close the passed tar file, and answers a boolean indicating * success. - * + * * @param file * The tar file to attempt to close * @param shell @@ -151,13 +151,13 @@ public class ArchiveFileManipulations { shell); return false; } - + return true; } /** * Display an error dialog with the specified message. - * + * * @param message * the error message */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/FileSystemExporter.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/FileSystemExporter.java index a09666e6f9e..ba459cb523a 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/FileSystemExporter.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/FileSystemExporter.java @@ -30,11 +30,11 @@ import org.eclipse.ui.internal.ide.IDEWorkbenchPlugin; */ public class FileSystemExporter { private static final int DEFAULT_BUFFER_SIZE = 16*1024; - + /** * Creates the specified file system directory at <code>destinationPath</code>. * This creates a new file system directory. - * + * * @param destinationPath location to which files will be written */ public void createFolder(IPath destinationPath) { @@ -43,10 +43,10 @@ public class FileSystemExporter { /** * Writes the passed resource to the specified location recursively. - * + * * @param resource the resource to write out to the file system * @param destinationPath location where the resource will be written - * @exception CoreException if the operation fails + * @exception CoreException if the operation fails * @exception IOException if an I/O error occurs when writing files */ public void write(IResource resource, IPath destinationPath) diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/IDataTransferHelpContextIds.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/IDataTransferHelpContextIds.java index 8f8ea385c47..e56b5d40e88 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/IDataTransferHelpContextIds.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/IDataTransferHelpContextIds.java @@ -18,7 +18,7 @@ import org.eclipse.ui.PlatformUI; * This interface contains constants only; it is not intended to be implemented * or extended. * </p> - * + * */ public interface IDataTransferHelpContextIds { public static final String PREFIX = PlatformUI.PLUGIN_ID + "."; //$NON-NLS-1$ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/IFileExporter.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/IFileExporter.java index 65185870476..fc2d148eb73 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/IFileExporter.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/IFileExporter.java @@ -19,7 +19,7 @@ import org.eclipse.core.runtime.CoreException; /** * Interface for file exporters of different file formats. Used by the * zip and tar.gz exporters. - * + * * @since 3.1 */ public interface IFileExporter { @@ -27,24 +27,24 @@ public interface IFileExporter { /** * Do all required cleanup now that we are finished with the * currently-open file. - * + * * @throws IOException */ public void finished() throws IOException; - + /** * Write the entry for the folder's name into the current archive. - * + * * @param container the container to write * @param destinationPath the path that will be used in the archive * @throws IOException if an IO error occurs while writing the folder entry */ public void write(IContainer container, String destinationPath) throws IOException; - + /** * Write the passed resource to the current archive - * + * * @param resource * @param destinationPath * @throws IOException diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/ILeveledImportStructureProvider.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/ILeveledImportStructureProvider.java index 03b9f755e06..975b02acad3 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/ILeveledImportStructureProvider.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/ILeveledImportStructureProvider.java @@ -16,16 +16,16 @@ package org.eclipse.ui.internal.wizards.datatransfer; import org.eclipse.ui.wizards.datatransfer.IImportStructureProvider; /** - * Interface which can provide structure and content information for an archive - * element. Used by the import wizards to abstract the commonalities between + * Interface which can provide structure and content information for an archive + * element. Used by the import wizards to abstract the commonalities between * importing from the a zip file and importing from a tar file. - * + * * @since 3.1 */ public interface ILeveledImportStructureProvider extends IImportStructureProvider { /** * Returns the entry that this importer uses as the root sentinel. - * + * * @return root entry of the archive file */ public abstract Object getRoot(); @@ -33,7 +33,7 @@ public interface ILeveledImportStructureProvider extends IImportStructureProvide /** * Tells the provider to strip N number of directories from the path of any * path or file name returned by the IImportStructureProvider (Default=0). - * + * * @param level * The number of directories to strip */ @@ -42,14 +42,14 @@ public interface ILeveledImportStructureProvider extends IImportStructureProvide /** * Returns the number of directories that this IImportStructureProvider is * stripping from the file name - * + * * @return int Number of entries */ public abstract int getStrip(); - + /** * Close the archive file that was used to create this leveled structure provider. - * + * * @return <code>true</code> if the archive was closed successfully */ public boolean closeArchive(); diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/TarEntry.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/TarEntry.java index 009151a5ffe..c0d57faa4f3 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/TarEntry.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/TarEntry.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 *******************************************************************************/ @@ -12,11 +12,11 @@ package org.eclipse.ui.internal.wizards.datatransfer; /** * Representation of a file in a tar archive. - * + * * @since 3.1 */ public class TarEntry implements Cloneable -{ +{ private String name; private long mode, time, size; private int type; @@ -31,11 +31,11 @@ public class TarEntry implements Cloneable * Entry type for directories. */ public static final int DIRECTORY = '5'; - + /** * Create a new TarEntry for a file of the given name at the * given position in the file. - * + * * @param name filename * @param pos position in the file in bytes */ @@ -49,7 +49,7 @@ public class TarEntry implements Cloneable /** * Create a new TarEntry for a file of the given name. - * + * * @param name filename */ public TarEntry(String name) { @@ -59,7 +59,7 @@ public class TarEntry implements Cloneable /** * Returns the type of this file, one of FILE, LINK, SYM_LINK, * CHAR_DEVICE, BLOCK_DEVICE, DIRECTORY or FIFO. - * + * * @return file type */ public int getFileType() { @@ -68,7 +68,7 @@ public class TarEntry implements Cloneable /** * Returns the mode of the file in UNIX permissions format. - * + * * @return file mode */ public long getMode() { @@ -77,7 +77,7 @@ public class TarEntry implements Cloneable /** * Returns the name of the file. - * + * * @return filename */ public String getName() { @@ -86,7 +86,7 @@ public class TarEntry implements Cloneable /** * Returns the size of the file in bytes. - * + * * @return filesize */ public long getSize() { @@ -96,7 +96,7 @@ public class TarEntry implements Cloneable /** * Returns the modification time of the file in seconds since January * 1st 1970. - * + * * @return time */ public long getTime() { @@ -106,7 +106,7 @@ public class TarEntry implements Cloneable /** * Sets the type of the file, one of FILE, LINK, SYMLINK, CHAR_DEVICE, * BLOCK_DEVICE, or DIRECTORY. - * + * * @param type */ public void setFileType(int type) { @@ -115,7 +115,7 @@ public class TarEntry implements Cloneable /** * Sets the mode of the file in UNIX permissions format. - * + * * @param mode */ public void setMode(long mode) { @@ -124,7 +124,7 @@ public class TarEntry implements Cloneable /** * Sets the size of the file in bytes. - * + * * @param size */ public void setSize(long size) { @@ -134,7 +134,7 @@ public class TarEntry implements Cloneable /** * Sets the modification time of the file in seconds since January * 1st 1970. - * + * * @param time */ public void setTime(long time) { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/TarException.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/TarException.java index 22054ded0c4..fca38c6d265 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/TarException.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/TarException.java @@ -25,7 +25,7 @@ public class TarException extends Exception { public TarException() { super(); } - + /** * Constructs a TarException with the specified detail string. * @@ -34,7 +34,7 @@ public class TarException extends Exception { public TarException(String s) { super(s); } - + /** * Constructs a TarException with the specified detail string. * diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/TarFile.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/TarFile.java index 254db4f339a..f0a6285f1f8 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/TarFile.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/TarFile.java @@ -23,7 +23,7 @@ import java.util.zip.GZIPInputStream; * Reads a .tar or .tar.gz archive file, providing an index enumeration * and allows for accessing an InputStream for arbitrary files in the * archive. - * + * * @since 3.1 */ public class TarFile { @@ -33,10 +33,10 @@ public class TarFile { private TarInputStream entryStream; private InputStream internalEntryStream; - + /** * Create a new TarFile for the given file. - * + * * @param file * @throws TarException * @throws IOException @@ -62,10 +62,10 @@ public class TarFile { } curEntry = entryEnumerationStream.getNextEntry(); } - + /** * Close the tar file input stream. - * + * * @throws IOException if the file cannot be successfully closed */ public void close() throws IOException { @@ -77,7 +77,7 @@ public class TarFile { /** * Create a new TarFile for the given path name. - * + * * @param filename * @throws TarException * @throws IOException @@ -88,7 +88,7 @@ public class TarFile { /** * Returns an enumeration cataloguing the tar archive. - * + * * @return enumeration of all files in the archive */ public Enumeration entries() { @@ -97,7 +97,7 @@ public class TarFile { public boolean hasMoreElements() { return (curEntry != null); } - + @Override public Object nextElement() { TarEntry oldEntry = curEntry; @@ -115,7 +115,7 @@ public class TarFile { /** * Returns a new InputStream for the given file in the tar archive. - * + * * @param entry * @return an input stream for the given file * @throws TarException @@ -148,7 +148,7 @@ public class TarFile { /** * Returns the path name of the file this archive represents. - * + * * @return path */ public String getName() { @@ -157,7 +157,7 @@ public class TarFile { /* (non-Javadoc) * @see java.util.zip.ZipFile#finalize() - * + * */ @Override protected void finalize() throws Throwable { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/TarFileExporter.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/TarFileExporter.java index db3db55fa09..dfc5a80b4e4 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/TarFileExporter.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/TarFileExporter.java @@ -33,7 +33,7 @@ import org.eclipse.core.runtime.CoreException; public class TarFileExporter implements IFileExporter { private TarOutputStream outputStream; private GZIPOutputStream gzipOutputStream; - + /** * Create an instance of this class. @@ -78,7 +78,7 @@ public class TarFileExporter implements IFileExporter { if (location == null) { throw new FileNotFoundException(contents.getFullPath().toOSString()); } - + InputStream contentStream = contents.getContents(false); entry.setSize(EFS.getStore(location).fetchInfo().getLength()); outputStream.putNextEntry(entry); @@ -94,7 +94,7 @@ public class TarFileExporter implements IFileExporter { } } - outputStream.closeEntry(); + outputStream.closeEntry(); } @Override @@ -114,7 +114,7 @@ public class TarFileExporter implements IFileExporter { newEntry.setFileType(TarEntry.DIRECTORY); outputStream.putNextEntry(newEntry); } - + /** * Write the passed resource to the current archive. * diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/TarInputStream.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/TarInputStream.java index f502fb9f2d3..66975fc5896 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/TarInputStream.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/TarInputStream.java @@ -18,7 +18,7 @@ import java.io.InputStream; * Input stream for reading files in ustar format (tar) compatible * with the specification in IEEE Std 1003.1-2001. Also supports * long filenames encoded using the GNU @LongLink extension. - * + * * @since 3.1 */ public class TarInputStream extends FilterInputStream @@ -32,7 +32,7 @@ public class TarInputStream extends FilterInputStream /** * Creates a new tar input stream on the given input stream. - * + * * @param in input stream * @throws TarException * @throws IOException @@ -48,7 +48,7 @@ public class TarInputStream extends FilterInputStream /** * Create a new tar input stream, skipping ahead to the given entry * in the file. - * + * * @param in input stream * @param entry skips to this entry in the file * @throws TarException @@ -62,7 +62,7 @@ public class TarInputStream extends FilterInputStream /** * The checksum of a tar file header is simply the sum of the bytes in * the header. - * + * * @param header * @return checksum */ @@ -76,7 +76,7 @@ public class TarInputStream extends FilterInputStream /** * Skips ahead to the position of the given entry in the file. - * + * * @param entry * @returns false if the entry has already been passed * @throws TarException @@ -105,14 +105,14 @@ public class TarInputStream extends FilterInputStream /** * Returns true if the header checksum is correct. - * + * * @param header * @return true if this header has a valid checksum */ private boolean isValidTarHeader(byte[] header) { long fileChecksum, calculatedChecksum; int pos, i; - + pos = 148; StringBuffer checksumString = new StringBuffer(); for(i = 0; i < 8; i++) { @@ -149,7 +149,7 @@ public class TarInputStream extends FilterInputStream /** * Returns the next entry in the tar file. Does not handle * GNU @LongLink extensions. - * + * * @return the next entry in the tar file * @throws TarException * @throws IOException @@ -190,11 +190,11 @@ public class TarInputStream extends FilterInputStream if(filepos > 0) { return null; } - + // Invalid stream. throw new TarException("not in tar format"); //$NON-NLS-1$ } - + // Validate checksum. if(!isValidTarHeader(header)) { throw new TarException("not in tar format"); //$NON-NLS-1$ @@ -213,7 +213,7 @@ public class TarInputStream extends FilterInputStream String prefix = new String(header, 345, pos - 345, "UTF8"); //$NON-NLS-1$ name = prefix + "/" + name; //$NON-NLS-1$ } - + TarEntry entry; if(longLinkName != null) { entry = new TarEntry(longLinkName, filepos); @@ -224,7 +224,7 @@ public class TarInputStream extends FilterInputStream if(header[156] != 0) { entry.setFileType(header[156]); } - + pos = 100; StringBuffer mode = new StringBuffer(); for(i = 0; i < 8; i++) { @@ -245,7 +245,7 @@ public class TarInputStream extends FilterInputStream } catch(NumberFormatException nfe) { throw new TarException(DataTransferMessages.TarImport_invalid_tar_format, nfe); } - + pos = 100 + 24; StringBuffer size = new StringBuffer(); for(i = 0; i < 12; i++) { @@ -281,7 +281,7 @@ public class TarInputStream extends FilterInputStream /** * Moves ahead to the next file in the tar archive and returns * a TarEntry object describing it. - * + * * @return the next entry in the tar file * @throws TarException * @throws IOException diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/TarLeveledStructureProvider.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/TarLeveledStructureProvider.java index 77a9b2eaf42..d031bcfbc4f 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/TarLeveledStructureProvider.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/TarLeveledStructureProvider.java @@ -7,7 +7,7 @@ * * Contributors: * IBM Corporation - initial API and implementation - * Red Hat, Inc - Was TarFileStructureProvider, performed changes from + * Red Hat, Inc - Was TarFileStructureProvider, performed changes from * IImportStructureProvider to ILeveledImportStructureProvider *******************************************************************************/ package org.eclipse.ui.internal.wizards.datatransfer; @@ -28,7 +28,7 @@ import org.eclipse.ui.internal.ide.IDEWorkbenchPlugin; /** * This class provides information regarding the context structure and content * of specified tar file entry objects. - * + * * @since 3.1 */ public class TarLeveledStructureProvider implements @@ -46,7 +46,7 @@ public class TarLeveledStructureProvider implements /** * Creates a <code>TarFileStructureProvider</code>, which will operate on * the passed tar file. - * + * * @param sourceFile * the source TarFile */ @@ -57,7 +57,7 @@ public class TarLeveledStructureProvider implements } /** - * Creates a new container tar entry with the specified name, iff it has + * Creates a new container tar entry with the specified name, iff it has * not already been created. If the parent of the given element does not * already exist it will be recursively created as well. * @param pathname The path representing the container @@ -133,7 +133,7 @@ public class TarLeveledStructureProvider implements /** * Returns the resource attributes for this file. - * + * * @param element * @return the attributes of the file */ @@ -167,7 +167,7 @@ public class TarLeveledStructureProvider implements /** * Returns the entry that this importer uses as the root sentinel. - * + * * @return TarEntry entry */ @Override @@ -177,7 +177,7 @@ public class TarLeveledStructureProvider implements /** * Returns the tar file that this provider provides structure for. - * + * * @return TarFile file */ public TarFile getTarFile() { @@ -199,20 +199,20 @@ public class TarLeveledStructureProvider implements } return true; } - + /** * Initializes this object's children table based on the contents of the * specified source file. */ protected void initialize() { children = new HashMap(1000); - + children.put(root, new ArrayList()); Enumeration entries = tarFile.entries(); while (entries.hasMoreElements()) { TarEntry entry = (TarEntry) entries.nextElement(); IPath path = new Path(entry.getName()).addTrailingSeparator(); - + if (entry.getFileType() == TarEntry.DIRECTORY) { createContainer(path); } else @@ -227,7 +227,7 @@ public class TarLeveledStructureProvider implements } } } - + /* * (non-Javadoc) Method declared on IImportStructureProvider */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/TarOutputStream.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/TarOutputStream.java index 6fa07357325..92c76265fdf 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/TarOutputStream.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/TarOutputStream.java @@ -21,14 +21,14 @@ import java.io.OutputStream; * @since 3.1 */ public class TarOutputStream extends FilterOutputStream { - + private int byteswritten = 0; private int datapos = 0; private long cursize = 0; /** * Creates a new tar output stream. - * + * * @param out the stream to write to */ public TarOutputStream(OutputStream out) { @@ -59,7 +59,7 @@ public class TarOutputStream extends FilterOutputStream { /** * Close the current entry in the tar file. Must be called * after each entry is completed. - * + * * @throws IOException */ public void closeEntry() throws IOException { @@ -74,7 +74,7 @@ public class TarOutputStream extends FilterOutputStream { /** * The checksum of a tar file header is simply the sum of the bytes in * the header. - * + * * @param header * @return checksum */ @@ -88,7 +88,7 @@ public class TarOutputStream extends FilterOutputStream { /** * Adds an entry for a new file in the tar archive. - * + * * @param e TarEntry describing the file * @throws IOException */ @@ -97,7 +97,7 @@ public class TarOutputStream extends FilterOutputStream { String filename = e.getName(); String prefix = null; int pos, i; - + /* Split filename into name and prefix if necessary. */ byte[] filenameBytes = filename.getBytes("UTF8"); //$NON-NLS-1$ if (filenameBytes.length > 99) { @@ -112,12 +112,12 @@ public class TarOutputStream extends FilterOutputStream { throw new IOException("filename too long"); //$NON-NLS-1$ } } - + /* Filename. */ pos = 0; System.arraycopy(filenameBytes, 0, header, 0, filenameBytes.length); pos += 100; - + /* File mode. */ StringBuffer mode = new StringBuffer(Long.toOctalString(e.getMode())); while(mode.length() < 7) { @@ -127,35 +127,35 @@ public class TarOutputStream extends FilterOutputStream { header[pos + i] = (byte) mode.charAt(i); } pos += 8; - + /* UID. */ header[pos] = '0'; pos += 8; - + /* GID. */ header[pos] = '0'; pos += 8; - + /* Length of the file. */ String length = Long.toOctalString(e.getSize()); for(i = 0; i < length.length(); i++) { header[pos + i] = (byte) length.charAt(i); } pos += 12; - + /* mtime */ String mtime = Long.toOctalString(e.getTime()); for(i = 0; i < mtime.length(); i++) { header[pos + i] = (byte) mtime.charAt(i); } pos += 12; - + /* "Blank" out the checksum. */ for(i = 0; i < 8; i++) { header[pos + i] = ' '; } pos += 8; - + /* Link flag. */ header[pos] = (byte) e.getFileType(); pos += 1; @@ -170,22 +170,22 @@ public class TarOutputStream extends FilterOutputStream { } header[pos + 5] = 0; pos += 8; - + /* Username. */ String uname = "nobody"; //$NON-NLS-1$ for(i = 0; i < uname.length(); i++) { header[pos + i] = (byte) uname.charAt(i); } pos += 32; - - + + /* Group name. */ String gname = "nobody"; //$NON-NLS-1$ for(i = 0; i < gname.length(); i++) { header[pos + i] = (byte) gname.charAt(i); } pos += 32; - + /* Device major. */ pos += 8; @@ -210,7 +210,7 @@ public class TarOutputStream extends FilterOutputStream { cursize = 512; write(header, 0, 512); - + cursize = e.getSize(); } diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/WizardArchiveFileResourceExportPage1.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/WizardArchiveFileResourceExportPage1.java index 23172ada757..c0a064e9bfa 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/WizardArchiveFileResourceExportPage1.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/WizardArchiveFileResourceExportPage1.java @@ -38,7 +38,7 @@ public class WizardArchiveFileResourceExportPage1 extends // widgets protected Button compressContentsCheckbox; - + private Button zipFormatButton; private Button targzFormatButton; @@ -50,7 +50,7 @@ public class WizardArchiveFileResourceExportPage1 extends private final static String STORE_COMPRESS_CONTENTS_ID = "WizardZipFileResourceExportPage1.STORE_COMPRESS_CONTENTS_ID"; //$NON-NLS-1$ /** - * Create an instance of this class. + * Create an instance of this class. * * @param name java.lang.String */ @@ -87,13 +87,13 @@ public class WizardArchiveFileResourceExportPage1 extends protected void createOptionsGroupButtons(Group optionsGroup) { Font font = optionsGroup.getFont(); optionsGroup.setLayout(new GridLayout(2, true)); - + Composite left = new Composite(optionsGroup, SWT.NONE); left.setLayoutData(new GridData(SWT.LEFT, SWT.TOP, true, false)); left.setLayout(new GridLayout(1, true)); createFileFormatOptions(left, font); - + // compress... checkbox compressContentsCheckbox = new Button(left, SWT.CHECK | SWT.LEFT); @@ -130,8 +130,8 @@ public class WizardArchiveFileResourceExportPage1 extends targzFormatButton.setText(DataTransferMessages.ArchiveExport_saveInTarFormat); targzFormatButton.setSelection(false); targzFormatButton.setFont(font); - } - + } + /** * Returns a boolean indicating whether the directory portion of the * passed pathname is valid and available for use. @@ -231,7 +231,7 @@ public class WizardArchiveFileResourceExportPage1 extends @Override public boolean finish() { List resourcesToExport = getWhiteCheckedResources(); - + if (!ensureTargetIsValid()) { return false; } @@ -262,9 +262,9 @@ public class WizardArchiveFileResourceExportPage1 extends String idealSuffix = getOutputSuffix(); String destinationText = super.getDestinationValue(); - // only append a suffix if the destination doesn't already have a . in - // its last path segment. - // Also prevent the user from selecting a directory. Allowing this will + // only append a suffix if the destination doesn't already have a . in + // its last path segment. + // Also prevent the user from selecting a directory. Allowing this will // create a ".zip" file in the directory if (destinationText.length() != 0 && !destinationText.endsWith(File.separator)) { @@ -387,7 +387,7 @@ public class WizardArchiveFileResourceExportPage1 extends protected String destinationEmptyMessage() { return DataTransferMessages.ArchiveExport_destinationEmpty; } - + /** * Answer a boolean indicating whether the receivers destination specification * widgets currently all contain valid values. @@ -408,7 +408,7 @@ public class WizardArchiveFileResourceExportPage1 extends zipFormatButton.setSelection(true); targzFormatButton.setSelection(false); } - + return super.validateDestinationGroup(); } } diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/WizardArchiveFileResourceImportPage1.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/WizardArchiveFileResourceImportPage1.java index fc55bd1d3a4..c5b0b78c42f 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/WizardArchiveFileResourceImportPage1.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/WizardArchiveFileResourceImportPage1.java @@ -57,7 +57,7 @@ public class WizardArchiveFileResourceImportPage1 extends private final static String STORE_OVERWRITE_EXISTING_RESOURCES_ID = "WizardZipFileResourceImportPage1.STORE_OVERWRITE_EXISTING_RESOURCES_ID"; //$NON-NLS-1$ private final static String STORE_SELECTED_TYPES_ID = "WizardZipFileResourceImportPage1.STORE_SELECTED_TYPES_ID"; //$NON-NLS-1$ - + private final String[] fileImportMask; /** @@ -69,7 +69,7 @@ public class WizardArchiveFileResourceImportPage1 extends IStructuredSelection selection) { this(aWorkbench, selection, null); } - + /** * Creates an instance of this class * @param aWorkbench IWorkbench @@ -79,10 +79,10 @@ public class WizardArchiveFileResourceImportPage1 extends public WizardArchiveFileResourceImportPage1(IWorkbench aWorkbench, IStructuredSelection selection, String[] fileImportMask) { super("zipFileImportPage1", aWorkbench, selection); //$NON-NLS-1$ - + setTitle(DataTransferMessages.ArchiveExport_exportTitle); setDescription(DataTransferMessages.ArchiveImport_description); - + if(fileImportMask == null) this.fileImportMask = FILE_IMPORT_MASK; else @@ -175,7 +175,7 @@ public class WizardArchiveFileResourceImportPage1 extends } return ensureZipSourceIsValid(); } - + /** * The Finish button was pressed. Try to do the required work now and answer * a boolean indicating success. If <code>false</code> is returned then the @@ -196,7 +196,7 @@ public class WizardArchiveFileResourceImportPage1 extends /** * Closes the structure provider and sets * the field to <code>null</code>. - * + * * @since 3.4 */ private void disposeStructureProvider() { @@ -382,11 +382,11 @@ public class WizardArchiveFileResourceImportPage1 extends ZipFile zipFile = getSpecifiedZipSourceFile(); importStructureProvider = new ZipLeveledStructureProvider(zipFile); } - + if (importStructureProvider == null) { return false; } - + ImportOperation operation = new ImportOperation(getContainerFullPath(), importStructureProvider.getRoot(), importStructureProvider, this, fileSystemObjects); @@ -394,7 +394,7 @@ public class WizardArchiveFileResourceImportPage1 extends operation.setContext(getShell()); if (!executeImportOperation(operation)) return false; - + ArchiveFileManipulations.closeStructureProvider(importStructureProvider, getShell()); return true; } @@ -513,7 +513,7 @@ public class WizardArchiveFileResourceImportPage1 extends setErrorMessage(DataTransferMessages.FileImport_noneSelected); return false; } - + enableButtonGroup(true); setErrorMessage(null); return true; diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/WizardFileSystemResourceExportPage1.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/WizardFileSystemResourceExportPage1.java index 8f708d36a47..0d2654f5aa7 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/WizardFileSystemResourceExportPage1.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/WizardFileSystemResourceExportPage1.java @@ -72,7 +72,7 @@ public class WizardFileSystemResourceExportPage1 extends private static final String SELECT_DESTINATION_MESSAGE = DataTransferMessages.FileExport_selectDestinationMessage; private static final String SELECT_DESTINATION_TITLE = DataTransferMessages.FileExport_selectDestinationTitle; - + /** * Create an instance of this class @@ -449,7 +449,7 @@ public class WizardFileSystemResourceExportPage1 extends setMessage( NLS.bind(DataTransferMessages.FileExport_damageWarning, threatenedContainer), WARNING); - + } else { setErrorMessage(NLS.bind(DataTransferMessages.FileExport_conflictingContainer, conflictingContainer)); giveFocusToDestination(); @@ -487,7 +487,7 @@ public class WizardFileSystemResourceExportPage1 extends /** * Returns the name of a container with a location that encompasses targetDirectory. * Returns null if there is no conflict. - * + * * @param targetDirectory the path of the directory to check. * @return the conflicting container name or <code>null</code> */ @@ -498,7 +498,7 @@ public class WizardFileSystemResourceExportPage1 extends // cannot export into workspace root if(testPath.equals(rootPath)) return rootPath.lastSegment(); - + //Are they the same? if(testPath.matchingFirstSegments(rootPath) == rootPath.segmentCount()){ String firstSegment = testPath.removeFirstSegments(rootPath.segmentCount()).segment(0); @@ -509,11 +509,11 @@ public class WizardFileSystemResourceExportPage1 extends return null; } - + /** * Returns the name of a {@link IProject} with a location that includes * targetDirectory. Returns null if there is no such {@link IProject}. - * + * * @param targetDirectory * the path of the directory to check. * @return the overlapping project name or <code>null</code> @@ -527,6 +527,6 @@ public class WizardFileSystemResourceExportPage1 extends } return null; } - + } diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/WizardFileSystemResourceImportPage1.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/WizardFileSystemResourceImportPage1.java index 8979683a109..bdf0fbba4d2 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/WizardFileSystemResourceImportPage1.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/WizardFileSystemResourceImportPage1.java @@ -89,13 +89,13 @@ public class WizardFileSystemResourceImportPage1 extends WizardResourceImportPag protected Button createVirtualFoldersButton; protected Button createLinksInWorkspaceButton; - + protected Button advancedButton; protected RelativePathVariableGroup relativePathVariableGroup; - + protected String pathVariable; - + protected Button sourceBrowseButton; protected Button selectTypesButton; @@ -106,7 +106,7 @@ public class WizardFileSystemResourceImportPage1 extends WizardResourceImportPag //A boolean to indicate if the user has typed anything private boolean entryChanged = false; - + private FileSystemStructureProvider fileSystemStructureProvider = new FileSystemStructureProvider(); // dialog store id constants @@ -338,7 +338,7 @@ public class WizardFileSystemResourceImportPage1 extends WizardResourceImportPag createLinksInWorkspaceButton.setFont(parent.getFont()); createLinksInWorkspaceButton.setText(DataTransferMessages.FileImport_createLinksInWorkspace); createLinksInWorkspaceButton.setSelection(false); - + createLinksInWorkspaceButton.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { @@ -349,7 +349,7 @@ public class WizardFileSystemResourceImportPage1 extends WizardResourceImportPag Button tmp= new Button(linkedResourceComposite, SWT.CHECK); int indent = tmp.computeSize(SWT.DEFAULT, SWT.DEFAULT).x; tmp.dispose(); - + // create virtual folders check createVirtualFoldersButton= new Button(linkedResourceComposite, SWT.CHECK); createVirtualFoldersButton.setFont(parent.getFont()); @@ -405,8 +405,8 @@ public class WizardFileSystemResourceImportPage1 extends WizardResourceImportPag }, DataTransferMessages.FileImport_importElementsAs ); relativePathVariableGroup.createContents(relativeGroup); - - + + updateWidgetEnablements(); relativePathVariableGroup.setSelection(true); @@ -416,7 +416,7 @@ public class WizardFileSystemResourceImportPage1 extends WizardResourceImportPag /** * Shows/hides the advanced option widgets. - * + * * @since 3.6 */ private void handleAdvancedButtonSelect() { @@ -850,16 +850,16 @@ public class WizardFileSystemResourceImportPage1 extends WizardResourceImportPag */ protected boolean importResources(List fileSystemObjects) { ImportOperation operation; - + boolean shouldImportTopLevelFoldersRecursively = selectionGroup.isEveryItemChecked() && !createTopLevelFolderCheckbox.getSelection() && (createLinksInWorkspaceButton != null && createLinksInWorkspaceButton.getSelection()) && (createVirtualFoldersButton != null && createVirtualFoldersButton.getSelection() == false); - + File sourceDirectory = getSourceDirectory(); if (createTopLevelFolderCheckbox.getSelection() && sourceDirectory.getParentFile() != null) sourceDirectory = sourceDirectory.getParentFile(); - + if (shouldImportTopLevelFoldersRecursively) operation = new ImportOperation(getContainerFullPath(), sourceDirectory, fileSystemStructureProvider, @@ -982,15 +982,15 @@ public class WizardFileSystemResourceImportPage1 extends WizardResourceImportPag boolean createVirtualFolders = settings .getBoolean(STORE_CREATE_VIRTUAL_FOLDERS_ID); createVirtualFoldersButton.setSelection(createVirtualFolders); - + boolean createLinkedResources = settings .getBoolean(STORE_CREATE_LINKS_IN_WORKSPACE_ID); createLinksInWorkspaceButton.setSelection(createLinkedResources); - + boolean pathVariableSelected = settings .getBoolean(STORE_PATH_VARIABLE_SELECTED_ID); relativePathVariableGroup.setSelection(pathVariableSelected); - + pathVariable = settings.get(STORE_PATH_VARIABLE_NAME_ID); if (pathVariable != null) relativePathVariableGroup.selectVariable(pathVariable); @@ -1026,13 +1026,13 @@ public class WizardFileSystemResourceImportPage1 extends WizardResourceImportPag if (createVirtualFoldersButton != null) { settings.put(STORE_CREATE_VIRTUAL_FOLDERS_ID, createVirtualFoldersButton.getSelection()); - + settings.put(STORE_CREATE_LINKS_IN_WORKSPACE_ID, createLinksInWorkspaceButton.getSelection()); - + settings.put(STORE_PATH_VARIABLE_SELECTED_ID, relativePathVariableGroup.getSelection()); - + settings.put(STORE_PATH_VARIABLE_NAME_ID, pathVariable); } @@ -1232,7 +1232,7 @@ public class WizardFileSystemResourceImportPage1 extends WizardResourceImportPag } relativePathVariableGroup.setEnabled(createLinksInWorkspaceButton.getSelection()); createVirtualFoldersButton.setEnabled(createLinksInWorkspaceButton.getSelection()); - + if (!selectionGroup.isEveryItemChecked() || (createTopLevelFolderCheckbox.getSelection())) { createVirtualFoldersButton.setSelection(true); @@ -1277,10 +1277,10 @@ public class WizardFileSystemResourceImportPage1 extends WizardResourceImportPag setMessage(null); setErrorMessage(DataTransferMessages.FileImport_haveToCreateLinksUnderAVirtualFolder); return false; - + } } - + enableButtonGroup(true); setErrorMessage(null); return true; @@ -1290,7 +1290,7 @@ public class WizardFileSystemResourceImportPage1 extends WizardResourceImportPag * Returns whether the source location conflicts * with the destination resource. This will occur if * the source is already under the destination. - * + * * @param sourcePath the path to check * @return <code>true</code> if there is a conflict, <code>false</code> if not */ @@ -1301,7 +1301,7 @@ public class WizardFileSystemResourceImportPage1 extends WizardResourceImportPag if (container == null) { return false; } - + IPath destinationLocation = getSpecifiedContainer().getLocation(); if (destinationLocation != null) { return destinationLocation.isPrefixOf(sourcePath); diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/WizardProjectsImportPage.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/WizardProjectsImportPage.java index 9191a0cbd00..d6af006a7e3 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/WizardProjectsImportPage.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/WizardProjectsImportPage.java @@ -16,7 +16,7 @@ * - Bug 210568 [Import/Export] Refresh button does not update list of projects * Matt Hurne (matt@thehurnes.com) * - Bug 144610 [Import/Export] Import existing projects does not search subdirectories of found projects - * Christian Georgi (christian.georgi@sap.com) + * Christian Georgi (christian.georgi@sap.com) * - Bug 400399 [Import/Export] Project import wizard does not remember selected folder or archive * Bob Meincke (bob.meincke@gmx.de) * - Bug 394900 - [Import/Export] Import existing projects broken by mal-formed .project file @@ -112,17 +112,17 @@ public class WizardProjectsImportPage extends WizardDataTransferPage { /** * The import structure provider. - * + * * @since 3.4 */ private ILeveledImportStructureProvider structureProvider; - + /** * @since 3.5 * */ private final class ProjectLabelProvider extends LabelProvider implements IColorProvider{ - + @Override public String getText(Object element) { return ((ProjectRecord) element).getProjectLabel(); @@ -145,7 +145,7 @@ public class WizardProjectsImportPage extends WizardDataTransferPage { /** * Class declared public only for test suite. - * + * */ public class ProjectRecord { File projectSystemFile; @@ -157,7 +157,7 @@ public class WizardProjectsImportPage extends WizardDataTransferPage { Object parent; int level; - + boolean hasConflicts; boolean isInvalid = false; @@ -166,7 +166,7 @@ public class WizardProjectsImportPage extends WizardDataTransferPage { /** * Create a record for a project based on the info in the file. - * + * * @param file */ ProjectRecord(File file) { @@ -248,7 +248,7 @@ public class WizardProjectsImportPage extends WizardDataTransferPage { /** * Returns whether the given project description file path is in the * default location for a project - * + * * @param path * The path to examine * @return Whether the given path is the default location for a project @@ -265,7 +265,7 @@ public class WizardProjectsImportPage extends WizardDataTransferPage { /** * Get the name of the project - * + * * @return String */ public String getProjectName() { @@ -284,7 +284,7 @@ public class WizardProjectsImportPage extends WizardDataTransferPage { /** * Gets the label to be used when rendering this project record in the * UI. - * + * * @return String the label * @since 3.4 */ @@ -297,7 +297,7 @@ public class WizardProjectsImportPage extends WizardDataTransferPage { DataTransferMessages.WizardProjectsImportPage_projectLabel, projectName, path); } - + /** * @return Returns the hasConflicts. */ @@ -324,7 +324,7 @@ public class WizardProjectsImportPage extends WizardDataTransferPage { private final static String STORE_ARCHIVES = "WizardProjectsImportPage.STORE_ARCHIVES";//$NON-NLS-1$ private final static String STORE_NESTED_PROJECTS = "WizardProjectsImportPage.STORE_NESTED_PROJECTS"; //$NON-NLS-1$ - + private final static String STORE_COPY_PROJECT_ID = "WizardProjectsImportPage.STORE_COPY_PROJECT_ID"; //$NON-NLS-1$ private final static String STORE_ARCHIVE_SELECTED = "WizardProjectsImportPage.STORE_ARCHIVE_SELECTED"; //$NON-NLS-1$ @@ -334,15 +334,15 @@ public class WizardProjectsImportPage extends WizardDataTransferPage { private CheckboxTreeViewer projectsList; private Button nestedProjectsCheckbox; - + private boolean nestedProjects = false; - + private boolean lastNestedProjects = false; - + private Button copyCheckbox; private boolean copyFiles = false; - + private boolean lastCopyFiles = false; private ProjectRecord[] selectedProjects = new ProjectRecord[0]; @@ -373,7 +373,7 @@ public class WizardProjectsImportPage extends WizardDataTransferPage { // The initial path to set private String initialPath; - + // The last selected path to minimize searches private String lastPath; // The last time that the file or folder at the selected path was modified @@ -390,7 +390,7 @@ public class WizardProjectsImportPage extends WizardDataTransferPage { /** * Creates a new project creation wizard page. - * + * */ public WizardProjectsImportPage() { this("wizardExternalProjectsPage", null, null); //$NON-NLS-1$ @@ -398,16 +398,16 @@ public class WizardProjectsImportPage extends WizardDataTransferPage { /** * Create a new instance of the receiver. - * + * * @param pageName */ public WizardProjectsImportPage(String pageName) { this(pageName,null, null); } - + /** * More (many more) parameters. - * + * * @param pageName * @param initialPath * @param currentSelection @@ -470,7 +470,7 @@ public class WizardProjectsImportPage extends WizardDataTransferPage { } } }); - + copyCheckbox = new Button(optionsGroup, SWT.CHECK); copyCheckbox .setText(DataTransferMessages.WizardProjectsImportPage_CopyProjectsIntoWorkspace); @@ -505,7 +505,7 @@ public class WizardProjectsImportPage extends WizardDataTransferPage { /** * Create the checkbox list for the found projects. - * + * * @param workArea */ private void createProjectsList(Composite workArea) { @@ -583,7 +583,7 @@ public class WizardProjectsImportPage extends WizardDataTransferPage { /** * Create the selection buttons in the listComposite. - * + * * @param listComposite */ private void createSelectionButtons(Composite listComposite) { @@ -645,7 +645,7 @@ public class WizardProjectsImportPage extends WizardDataTransferPage { /** * Create the area where you select the root directory for the projects. - * + * * @param workArea * Composite */ @@ -671,7 +671,7 @@ public class WizardProjectsImportPage extends WizardDataTransferPage { GridData directoryPathData = new GridData(GridData.HORIZONTAL_ALIGN_FILL | GridData.GRAB_HORIZONTAL); directoryPathData.widthHint = new PixelConverter(directoryPathField).convertWidthInCharsToPixels(25); directoryPathField.setLayoutData(directoryPathData); - + // browse button browseDirectoriesButton = new Button(projectGroup, SWT.PUSH); browseDirectoriesButton @@ -823,7 +823,7 @@ public class WizardProjectsImportPage extends WizardDataTransferPage { /** * Update the list of projects based on path. Method declared public only * for test suite. - * + * * @param path */ public void updateProjectsList(final String path) { @@ -864,7 +864,7 @@ public class WizardProjectsImportPage extends WizardDataTransferPage { /* * (non-Javadoc) - * + * * @see * org.eclipse.jface.operation.IRunnableWithProgress#run(org * .eclipse.core.runtime.IProgressMonitor) @@ -975,7 +975,7 @@ public class WizardProjectsImportPage extends WizardDataTransferPage { projectsList.setChecked(project, true); } } - + if (displayConflictWarning && displayInvalidWarning) { setMessage(DataTransferMessages.WizardProjectsImportPage_projectsInWorkspaceAndInvalid, WARNING); } else if (displayConflictWarning) { @@ -1037,7 +1037,7 @@ public class WizardProjectsImportPage extends WizardDataTransferPage { /** * Collect the list of .project files that are under directory into files. - * + * * @param files * @param directory * @param directoriesVisited @@ -1111,7 +1111,7 @@ public class WizardProjectsImportPage extends WizardDataTransferPage { /** * Collect the list of .project files that are under directory into files. - * + * * @param files * @param monitor * The monitor to report to @@ -1215,13 +1215,13 @@ public class WizardProjectsImportPage extends WizardDataTransferPage { /** * Create the selected projects - * + * * @return boolean <code>true</code> if all project creations were * successful. */ public boolean createProjects() { saveWidgetValues(); - + final Object[] selected = projectsList.getCheckedElements(); createdProjects = new ArrayList(); WorkspaceModifyOperation op = new WorkspaceModifyOperation() { @@ -1266,14 +1266,14 @@ public class WizardProjectsImportPage extends WizardDataTransferPage { // Adds the projects to the working sets addToWorkingSets(); - + return true; } List<IProject> createdProjects; - + private void addToWorkingSets() { - + IWorkingSet[] selectedWorkingSets = workingSetGroup.getSelectedWorkingSets(); if(selectedWorkingSets == null || selectedWorkingSets.length == 0) { @@ -1295,7 +1295,7 @@ public class WizardProjectsImportPage extends WizardDataTransferPage { /** * Create the project described in record. If it is successful return true. - * + * * @param record * @return boolean <code>true</code> if successful * @throws InterruptedException @@ -1353,7 +1353,7 @@ public class WizardProjectsImportPage extends WizardDataTransferPage { if(!result.isOK()) { throw new InvocationTargetException(new CoreException(result)); } - + importSource = new File(locationURI); IProjectDescription desc = workspace .newProjectDescription(projectName); @@ -1407,7 +1407,7 @@ public class WizardProjectsImportPage extends WizardDataTransferPage { /** * Method used for test suite. - * + * * @return Button the Import from Directory RadioButton */ public Button getProjectFromDirectoryRadio() { @@ -1416,7 +1416,7 @@ public class WizardProjectsImportPage extends WizardDataTransferPage { /** * Method used for test suite. - * + * * @return CheckboxTreeViewer the viewer containing all the projects found */ public CheckboxTreeViewer getProjectsList() { @@ -1425,7 +1425,7 @@ public class WizardProjectsImportPage extends WizardDataTransferPage { /** * Retrieve all the projects in the current workspace. - * + * * @return IProject[] array of IProject in the current workspace */ private IProject[] getProjectsInWorkspace() { @@ -1441,9 +1441,9 @@ public class WizardProjectsImportPage extends WizardDataTransferPage { * source workspace or archive, selected by the user. If a project with the * same name exists in both the source workspace and the current workspace, * then the hasConflicts flag would be set on that project record. - * + * * Method declared public for test suite. - * + * * @return ProjectRecord[] array of projects that can be imported into the * workspace */ @@ -1461,7 +1461,7 @@ public class WizardProjectsImportPage extends WizardDataTransferPage { /** * Determine if there is a directory with the project name in the workspace path. - * + * * @param projectName the name of the project * @return true if there is a directory with the same name of the imported project */ @@ -1474,7 +1474,7 @@ public class WizardProjectsImportPage extends WizardDataTransferPage { /** * Determine if the project with the given name is in the current workspace. - * + * * @param projectName * String the project name to check * @return boolean true if the project with the given name is in this @@ -1497,12 +1497,12 @@ public class WizardProjectsImportPage extends WizardDataTransferPage { * Use the dialog store to restore widget values to the values that they * held last time this wizard was used to completion, or alternatively, * if an initial path is specified, use it to select values. - * + * * Method declared public only for use of tests. */ @Override public void restoreWidgetValues() { - + // First, check to see if we have resore settings, and // take care of the checkbox IDialogSettings settings = getDialogSettings(); @@ -1514,17 +1514,17 @@ public class WizardProjectsImportPage extends WizardDataTransferPage { nestedProjects = settings.getBoolean(STORE_NESTED_PROJECTS); nestedProjectsCheckbox.setSelection(nestedProjects); lastNestedProjects = nestedProjects; - + // checkbox copyFiles = settings.getBoolean(STORE_COPY_PROJECT_ID); copyCheckbox.setSelection(copyFiles); lastCopyFiles = copyFiles; } - - // Second, check to see if we don't have an initial path, + + // Second, check to see if we don't have an initial path, // and if we do have restore settings. If so, set the // radio selection properly to restore settings - + if (initialPath==null && settings!=null) { // radio selection @@ -1537,7 +1537,7 @@ public class WizardProjectsImportPage extends WizardDataTransferPage { } else { directoryRadioSelected(); } - } + } // Third, if we do have an initial path, set the proper // path and radio buttons to the initial value. Move // cursor to the end of the path so user can see the @@ -1574,7 +1574,7 @@ public class WizardProjectsImportPage extends WizardDataTransferPage { /** * Since Finish was pressed, write widget values to the dialog store so that * they will persist into the next invocation of this wizard page. - * + * * Method declared public only for use of tests. */ @Override @@ -1585,7 +1585,7 @@ public class WizardProjectsImportPage extends WizardDataTransferPage { saveInHistory(settings, STORE_ARCHIVES, archivePathField.getText()); settings.put(STORE_NESTED_PROJECTS, nestedProjectsCheckbox.getSelection()); - + settings.put(STORE_COPY_PROJECT_ID, copyCheckbox.getSelection()); settings.put(STORE_ARCHIVE_SELECTED, projectFromArchiveRadio @@ -1604,16 +1604,16 @@ public class WizardProjectsImportPage extends WizardDataTransferPage { /** * Method used for test suite. - * + * * @return Button copy checkbox */ public Button getCopyCheckbox() { return copyCheckbox; } - + /** * Method used for test suite. - * + * * @return Button nested projects checkbox */ public Button getNestedProjectsCheckbox() { @@ -1628,5 +1628,5 @@ public class WizardProjectsImportPage extends WizardDataTransferPage { protected boolean allowNewContainerName() { return true; } - + } diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/ZipFileExporter.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/ZipFileExporter.java index 391bd9c60dd..3542c4bd502 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/ZipFileExporter.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/ZipFileExporter.java @@ -91,7 +91,7 @@ public class ZipFileExporter implements IFileExporter { long localTimeStamp = contents.getLocalTimeStamp(); if(localTimeStamp != IResource.NULL_STAMP) entry.setTime(localTimeStamp); - + outputStream.putNextEntry(entry); InputStream contentStream = contents.getContents(false); try { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/ZipLeveledStructureProvider.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/ZipLeveledStructureProvider.java index 464d13c5998..a9810821cd2 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/ZipLeveledStructureProvider.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/ZipLeveledStructureProvider.java @@ -7,7 +7,7 @@ * * Contributors: * IBM Corporation - initial API and implementation - * Red Hat, Inc - Was ZipFileStructureProvider, performed changes from + * Red Hat, Inc - Was ZipFileStructureProvider, performed changes from * IImportStructureProvider to ILeveledImportStructureProvider *******************************************************************************/ package org.eclipse.ui.internal.wizards.datatransfer; @@ -29,7 +29,7 @@ import org.eclipse.ui.internal.ide.IDEWorkbenchPlugin; /** * This class provides information regarding the context structure and content * of specified zip file entry objects. - * + * * @since 3.1 */ public class ZipLeveledStructureProvider implements @@ -47,7 +47,7 @@ public class ZipLeveledStructureProvider implements /** * Creates a <code>ZipFileStructureProvider</code>, which will operate on * the passed zip file. - * + * * @param sourceFile * The source file to create the ZipLeveledStructureProvider * around @@ -59,7 +59,7 @@ public class ZipLeveledStructureProvider implements } /** - * Creates a new container zip entry with the specified name, iff it has + * Creates a new container zip entry with the specified name, iff it has * not already been created. If the parent of the given element does not * already exist it will be recursively created as well. * @param pathname The path representing the container @@ -176,7 +176,7 @@ public class ZipLeveledStructureProvider implements /** * Returns the entry that this importer uses as the root sentinel. - * + * * @return java.util.zip.ZipEntry */ @Override @@ -186,7 +186,7 @@ public class ZipLeveledStructureProvider implements /** * Returns the zip file that this provider provides structure for. - * + * * @return The zip file */ public ZipFile getZipFile() { @@ -209,7 +209,7 @@ public class ZipLeveledStructureProvider implements } return true; } - + /** * Initializes this object's children table based on the contents of the * specified source file. diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/newresource/ResourceMessages.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/newresource/ResourceMessages.java index b6adf65c6be..26502afa1a7 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/newresource/ResourceMessages.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/newresource/ResourceMessages.java @@ -14,7 +14,7 @@ import org.eclipse.osgi.util.NLS; public class ResourceMessages extends NLS { private static final String BUNDLE_NAME = "org.eclipse.ui.internal.wizards.newresource.messages";//$NON-NLS-1$ - + // ============================================================================== // New Resource Wizards // ============================================================================== @@ -41,7 +41,7 @@ public class ResourceMessages extends NLS { */ public static String NewProject_perspSwitchMessage; /** - * Combines a perspective name and description with text for introducing + * Combines a perspective name and description with text for introducing * a perspective switch */ public static String NewProject_perspSwitchMessageWithDesc; diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/bookmarkexplorer/BookmarkAction.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/bookmarkexplorer/BookmarkAction.java index 37c5fde458d..982c2a38a9e 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/bookmarkexplorer/BookmarkAction.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/bookmarkexplorer/BookmarkAction.java @@ -41,7 +41,7 @@ abstract class BookmarkAction extends SelectionProviderAction { public BookmarkNavigator getView() { return view; } - + /** * Execute the specified undoable operation */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/bookmarkexplorer/BookmarkContentProvider.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/bookmarkexplorer/BookmarkContentProvider.java index 7a572e645f0..acd7f779426 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/bookmarkexplorer/BookmarkContentProvider.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/bookmarkexplorer/BookmarkContentProvider.java @@ -159,7 +159,7 @@ class BookmarkContentProvider implements IStructuredContentProvider, public void resourceChanged(final IResourceChangeEvent event) { // gather all marker changes from the delta. - // be sure to do this in the calling thread, + // be sure to do this in the calling thread, // as the delta is destroyed when this method returns final List additions = new ArrayList(); final List removals = new ArrayList(); diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/bookmarkexplorer/BookmarkLabelProvider.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/bookmarkexplorer/BookmarkLabelProvider.java index aa87c4b9e8d..038e13698c0 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/bookmarkexplorer/BookmarkLabelProvider.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/bookmarkexplorer/BookmarkLabelProvider.java @@ -88,7 +88,7 @@ class BookmarkLabelProvider extends LabelProvider implements return NLS.bind(BookmarkMessages.LineIndicator_text, String.valueOf(line)); } } - return ""; //$NON-NLS-1$ + return ""; //$NON-NLS-1$ } @Override diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/bookmarkexplorer/BookmarkMessages.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/bookmarkexplorer/BookmarkMessages.java index e96a939149f..1c3b81c82c3 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/bookmarkexplorer/BookmarkMessages.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/bookmarkexplorer/BookmarkMessages.java @@ -26,7 +26,7 @@ class BookmarkMessages { /** * Returns the formatted message for the given key in - * the resource bundle. + * the resource bundle. * * @param key the resource name * @param args the message arguments diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/bookmarkexplorer/BookmarkNavigator.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/bookmarkexplorer/BookmarkNavigator.java index 2027a5f91a1..41de06a68df 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/bookmarkexplorer/BookmarkNavigator.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/bookmarkexplorer/BookmarkNavigator.java @@ -156,7 +156,7 @@ public class BookmarkNavigator extends ViewPart { private static final String TAG_VERTICAL_POSITION = "verticalPosition";//$NON-NLS-1$ private static final String TAG_HORIZONTAL_POSITION = "horizontalPosition";//$NON-NLS-1$ - + class SortByAction extends Action { private int column; diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/bookmarkexplorer/BookmarkPropertiesDialog.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/bookmarkexplorer/BookmarkPropertiesDialog.java index 53b421cfec7..cedb0f025f2 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/bookmarkexplorer/BookmarkPropertiesDialog.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/bookmarkexplorer/BookmarkPropertiesDialog.java @@ -22,8 +22,8 @@ import org.eclipse.ui.views.markers.internal.DialogMarkerProperties; /** * Shows the properties of a new or existing bookmark * This class was made public in 3.3. - * - * @since 3.3 + * + * @since 3.3 */ public class BookmarkPropertiesDialog extends DialogMarkerProperties { @@ -31,10 +31,10 @@ public class BookmarkPropertiesDialog extends DialogMarkerProperties { /** * Creates the dialog. By default this dialog creates a new bookmark. - * To set the resource and initial attributes for the new bookmark, + * To set the resource and initial attributes for the new bookmark, * use <code>setResource</code> and <code>setInitialAttributes</code>. * To show or modify an existing bookmark, use <code>setMarker</code>. - * + * * @param parentShell the parent shell */ public BookmarkPropertiesDialog(Shell parentShell) { @@ -43,10 +43,10 @@ public class BookmarkPropertiesDialog extends DialogMarkerProperties { /** * Creates the dialog. By default this dialog creates a new bookmark. - * To set the resource and initial attributes for the new bookmark, + * To set the resource and initial attributes for the new bookmark, * use <code>setResource</code> and <code>setInitialAttributes</code>. * To show or modify an existing bookmark, use <code>setMarker</code>. - * + * * @param parentShell the parent shell * @param title the title for the dialog */ @@ -54,10 +54,10 @@ public class BookmarkPropertiesDialog extends DialogMarkerProperties { super(parentShell, title); setType(IMarker.BOOKMARK); } - + /** * Sets the marker to show or modify. - * + * * @param marker the marker, or <code>null</code> to create a new marker */ @Override @@ -70,7 +70,7 @@ public class BookmarkPropertiesDialog extends DialogMarkerProperties { * Returns the marker being created or modified. * For a new marker, this returns <code>null</code> until * the dialog returns, but is non-null after. - * + * * @return the marker */ @Override @@ -82,7 +82,7 @@ public class BookmarkPropertiesDialog extends DialogMarkerProperties { /** * Sets the resource to use when creating a new bookmark. * If not set, the new bookmark is created on the workspace root. - * + * * @param resource the resource */ @Override @@ -95,7 +95,7 @@ public class BookmarkPropertiesDialog extends DialogMarkerProperties { * Returns the resource to use when creating a new bookmark, * or <code>null</code> if none has been set. * If not set, the new bookmark is created on the workspace root. - * + * * @return the resource */ @Override @@ -107,7 +107,7 @@ public class BookmarkPropertiesDialog extends DialogMarkerProperties { /** * Sets initial attributes to use when creating a new bookmark. * If not set, the new bookmark is created with default attributes. - * + * * @param initialAttributes the initial attributes */ @Override @@ -120,7 +120,7 @@ public class BookmarkPropertiesDialog extends DialogMarkerProperties { * Returns the initial attributes to use when creating a new bookmark, * or <code>null</code> if not set. * If not set, the new bookmark is created with default attributes. - * + * * @return the initial attributes */ @Override @@ -128,25 +128,25 @@ public class BookmarkPropertiesDialog extends DialogMarkerProperties { // Method is overridden because API is being inherited from an internal class. return super.getInitialAttributes(); } - + /* (non-Javadoc) * @see org.eclipse.ui.views.markers.internal.DialogMarkerProperties.getModifyOperationTitle() - * + * * @since 3.3 */ @Override protected String getModifyOperationTitle() { return BookmarkMessages.ModifyBookmark_undoText; } - + /* (non-Javadoc) * @see org.eclipse.ui.views.markers.internal.DialogMarkerProperties.getCreateOperationTitle() - * + * * @since 3.3 */ @Override protected String getCreateOperationTitle() { return BookmarkMessages.CreateBookmark_undoText; - + } } diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/bookmarkexplorer/CopyBookmarkAction.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/bookmarkexplorer/CopyBookmarkAction.java index d83f2687cda..55ce22ddb7c 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/bookmarkexplorer/CopyBookmarkAction.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/bookmarkexplorer/CopyBookmarkAction.java @@ -33,7 +33,7 @@ class CopyBookmarkAction extends BookmarkAction { /** * Creates the action. - * + * * @param bookmarkNavigator the view */ public CopyBookmarkAction(BookmarkNavigator bookmarkNavigator) { @@ -63,7 +63,7 @@ class CopyBookmarkAction extends BookmarkAction { setClipboard(markers, createBookmarkReport(markers)); } - /** + /** * Updates enablement based on the current selection */ @Override diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/bookmarkexplorer/EditBookmarkAction.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/bookmarkexplorer/EditBookmarkAction.java index 9cf7bb76aa2..206eb172970 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/bookmarkexplorer/EditBookmarkAction.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/bookmarkexplorer/EditBookmarkAction.java @@ -40,8 +40,8 @@ class EditBookmarkAction extends BookmarkAction { } /** - * Sets marker to the current selection if the selection is an instance of - * <code>org.eclipse.core.resources.IMarker<code> and the selected marker's + * Sets marker to the current selection if the selection is an instance of + * <code>org.eclipse.core.resources.IMarker<code> and the selected marker's * resource is an instance of <code>org.eclipse.core.resources.IFile<code>. * Otherwise sets marker to null. */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/bookmarkexplorer/IBookmarkHelpContextIds.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/bookmarkexplorer/IBookmarkHelpContextIds.java index af1328c2425..181decdc390 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/bookmarkexplorer/IBookmarkHelpContextIds.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/bookmarkexplorer/IBookmarkHelpContextIds.java @@ -19,7 +19,7 @@ import org.eclipse.ui.PlatformUI; * This interface contains constants only; it is not intended to be implemented * or extended. * </p> - * + * */ interface IBookmarkHelpContextIds { public static final String PREFIX = PlatformUI.PLUGIN_ID + "."; //$NON-NLS-1$ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/bookmarkexplorer/OpenBookmarkAction.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/bookmarkexplorer/OpenBookmarkAction.java index 912dfdf4063..91c95a7e059 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/bookmarkexplorer/OpenBookmarkAction.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/bookmarkexplorer/OpenBookmarkAction.java @@ -33,7 +33,7 @@ class OpenBookmarkAction extends BookmarkAction { /** * Create a new instance of this class. - * + * * @param view the view */ public OpenBookmarkAction(BookmarkNavigator view) { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/bookmarkexplorer/PasteBookmarkAction.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/bookmarkexplorer/PasteBookmarkAction.java index 504b46ba4cc..71db9ef9f37 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/bookmarkexplorer/PasteBookmarkAction.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/bookmarkexplorer/PasteBookmarkAction.java @@ -37,7 +37,7 @@ class PasteBookmarkAction extends BookmarkAction { /** * The constructor. - * + * * @param view the view */ public PasteBookmarkAction(BookmarkNavigator view) { @@ -63,7 +63,7 @@ class PasteBookmarkAction extends BookmarkAction { } final ArrayList newMarkerAttributes = new ArrayList(); final ArrayList newMarkerResources = new ArrayList(); - try { + try { ResourcesPlugin.getWorkspace().run(new IWorkspaceRunnable() { @Override public void run(IProgressMonitor monitor) throws CoreException { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/bookmarkexplorer/RemoveBookmarkAction.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/bookmarkexplorer/RemoveBookmarkAction.java index 943cebc7cae..97707f4d29f 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/bookmarkexplorer/RemoveBookmarkAction.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/bookmarkexplorer/RemoveBookmarkAction.java @@ -28,7 +28,7 @@ class RemoveBookmarkAction extends BookmarkAction { /** * Create a new instance of this class. - * + * * @param view the view */ public RemoveBookmarkAction(BookmarkNavigator view) { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/bookmarkexplorer/SelectAllAction.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/bookmarkexplorer/SelectAllAction.java index fda6debafb7..92a86c0e22a 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/bookmarkexplorer/SelectAllAction.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/bookmarkexplorer/SelectAllAction.java @@ -24,7 +24,7 @@ class SelectAllAction extends BookmarkAction { /** * Create a new instance of this class. - * + * * @param view the view */ public SelectAllAction(BookmarkNavigator view) { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/framelist/BackAction.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/framelist/BackAction.java index af3cededa1a..d8539ba9453 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/framelist/BackAction.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/framelist/BackAction.java @@ -22,7 +22,7 @@ public class BackAction extends FrameAction { /** * Constructs a new action for the specified frame list. - * + * * @param frameList the frame list */ public BackAction(FrameList frameList) { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/framelist/ForwardAction.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/framelist/ForwardAction.java index f7753be8c9a..ec0e6b91854 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/framelist/ForwardAction.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/framelist/ForwardAction.java @@ -22,7 +22,7 @@ public class ForwardAction extends FrameAction { /** * Constructs a new action for the specified frame list. - * + * * @param frameList the frame list */ public ForwardAction(FrameList frameList) { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/framelist/Frame.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/framelist/Frame.java index 380b74f788a..a57cebe8c8d 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/framelist/Frame.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/framelist/Frame.java @@ -26,7 +26,7 @@ public class Frame { /** * Constructs a new frame. <p> - * + * * This implementation does nothing. */ public Frame() { @@ -35,7 +35,7 @@ public class Frame { /** * Returns the index of the frame in the frame list. * Only valid once the frame has been added to the frame list. - * + * * @return the index of the frame in the frame list. */ public int getIndex() { @@ -53,7 +53,7 @@ public class Frame { /** * Returns the frame list. - * + * * @return the frame list */ public FrameList getParent() { @@ -64,7 +64,7 @@ public class Frame { * Returns the tool tip text to show for the frame. * This can form part of the tool tip for actions like the back and forward * actions. - * + * * @return the tool tip text to show for the frame */ public String getToolTipText() { @@ -74,7 +74,7 @@ public class Frame { /** * Sets the index of the frame in the frame list. * Should only be called by the frame list. - * + * * @param index the index of the frame in the frame list */ public void setIndex(int index) { @@ -83,7 +83,7 @@ public class Frame { /** * Sets the displayable name for the frame. - * + * * @param name the displayable name */ public void setName(String name) { @@ -92,7 +92,7 @@ public class Frame { /** * Sets the frame list. - * + * * @param parent the frame list */ public void setParent(FrameList parent) { @@ -103,7 +103,7 @@ public class Frame { * Sets the tool tip text to show for the frame. * This can form part of the tool tip for actions like the back and forward * actions. - * + * * @param toolTipText the tool tip text to show for the frame. */ public void setToolTipText(String toolTipText) { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/framelist/FrameAction.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/framelist/FrameAction.java index 273fdeb5109..54c374c2b43 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/framelist/FrameAction.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/framelist/FrameAction.java @@ -21,7 +21,7 @@ import org.eclipse.jface.util.PropertyChangeEvent; */ public abstract class FrameAction extends Action { private FrameList frameList; - + private IPropertyChangeListener propertyChangeListener = new IPropertyChangeListener() { @Override public void propertyChange(PropertyChangeEvent event) { @@ -32,7 +32,7 @@ public abstract class FrameAction extends Action { /** * Constructs a new action for the specified frame list. * and adds a property change listener on it. - * + * * @param frameList the frame list */ protected FrameAction(FrameList frameList) { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/framelist/FrameList.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/framelist/FrameList.java index a722e033526..7ef7e7224e5 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/framelist/FrameList.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/framelist/FrameList.java @@ -20,7 +20,7 @@ import org.eclipse.jface.util.PropertyChangeEvent; /** * Supports a web-browser style of navigation by maintaining a list - * of frames. Each frame holds a snapshot of a view at some point + * of frames. Each frame holds a snapshot of a view at some point * in time. * <p> * The frame list obtains a snapshot of the current frame from a frame source @@ -209,7 +209,7 @@ public class FrameList extends EventManager { } /** - * Replaces the current frame in this list with the current frame + * Replaces the current frame in this list with the current frame * from the frame source. No event is fired. */ public void updateCurrentFrame() { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/framelist/FrameListMessages.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/framelist/FrameListMessages.java index 20129f5c07b..2dade49bdcf 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/framelist/FrameListMessages.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/framelist/FrameListMessages.java @@ -25,7 +25,7 @@ class FrameListMessages { /** * Returns the formatted message for the given key in - * the resource bundle. + * the resource bundle. * * @param key the resource name * @param args the message arguments diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/framelist/GoIntoAction.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/framelist/GoIntoAction.java index 5282d027ec4..f94f10db701 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/framelist/GoIntoAction.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/framelist/GoIntoAction.java @@ -14,13 +14,13 @@ import org.eclipse.ui.PlatformUI; import org.eclipse.ui.internal.views.framelist.FrameListMessages; /** - * Generic "Go Into" action which goes to the frame for the current selection. + * Generic "Go Into" action which goes to the frame for the current selection. */ public class GoIntoAction extends FrameAction { /** * Constructs a new action for the specified frame list. - * + * * @param frameList the frame list */ public GoIntoAction(FrameList frameList) { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/framelist/IFrameListHelpContextIds.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/framelist/IFrameListHelpContextIds.java index 3f787355a3d..4781abf801d 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/framelist/IFrameListHelpContextIds.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/framelist/IFrameListHelpContextIds.java @@ -18,7 +18,7 @@ import org.eclipse.ui.PlatformUI; * This interface contains constants only; it is not intended to be implemented * or extended. * </p> - * + * */ /*package*/interface IFrameListHelpContextIds { public static final String PREFIX = PlatformUI.PLUGIN_ID + "."; //$NON-NLS-1$ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/framelist/TreeFrame.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/framelist/TreeFrame.java index fefedfafeb5..9a7ac88f0f7 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/framelist/TreeFrame.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/framelist/TreeFrame.java @@ -50,7 +50,7 @@ public class TreeFrame extends Frame { /** * Constructs a frame for the specified tree viewer. * The frame's input, name and tool tip text are not set. - * + * * @param viewer the tree viewer */ public TreeFrame(AbstractTreeViewer viewer) { @@ -60,9 +60,9 @@ public class TreeFrame extends Frame { /** * Constructs a frame for the specified tree viewer. * The frame's input element is set to the specified input element. - * The frame's name and tool tip text are set to the text for the input + * The frame's name and tool tip text are set to the text for the input * element, as provided by the viewer's label provider. - * + * * @param viewer the tree viewer * @param input the input element */ @@ -80,7 +80,7 @@ public class TreeFrame extends Frame { /** * Returns the expanded elements. - * + * * @return the expanded elements */ public Object[] getExpandedElements() { @@ -89,7 +89,7 @@ public class TreeFrame extends Frame { /** * Returns the input element. - * + * * @return the input element */ public Object getInput() { @@ -98,7 +98,7 @@ public class TreeFrame extends Frame { /** * Returns the selection. - * + * * @return the selection */ public ISelection getSelection() { @@ -107,7 +107,7 @@ public class TreeFrame extends Frame { /** * Returns the tree viewer. - * + * * @return the tree viewer */ public AbstractTreeViewer getViewer() { @@ -116,7 +116,7 @@ public class TreeFrame extends Frame { /** * Restore IPersistableElements from the specified memento. - * + * * @param memento memento to restore elements from * @return list of restored elements. May be empty. */ @@ -139,7 +139,7 @@ public class TreeFrame extends Frame { /** * Restore the frame from the specified memento. - * + * * @param memento memento to restore frame from */ public void restoreState(IMemento memento) { @@ -180,7 +180,7 @@ public class TreeFrame extends Frame { /** * Save the specified elements to the given memento. * The elements have to be adaptable to IPersistableElement. - * + * * @param elements elements to persist * @param memento memento to persist elements in */ @@ -201,7 +201,7 @@ public class TreeFrame extends Frame { /** * Save the frame state in the given memento. - * + * * @param memento memento to persist the frame state in. */ public void saveState(IMemento memento) { @@ -235,7 +235,7 @@ public class TreeFrame extends Frame { /** * Sets the input element. - * + * * @param input the input element */ public void setInput(Object input) { @@ -244,7 +244,7 @@ public class TreeFrame extends Frame { /** * Sets the expanded elements. - * + * * @param expandedElements the expanded elements */ public void setExpandedElements(Object[] expandedElements) { @@ -253,7 +253,7 @@ public class TreeFrame extends Frame { /** * Sets the selection. - * + * * @param selection the selection */ public void setSelection(ISelection selection) { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/framelist/TreeViewerFrameSource.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/framelist/TreeViewerFrameSource.java index 770aa56f6f3..580a805f6d3 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/framelist/TreeViewerFrameSource.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/framelist/TreeViewerFrameSource.java @@ -16,10 +16,10 @@ import org.eclipse.jface.viewers.AbstractTreeViewer; import org.eclipse.jface.viewers.IStructuredSelection; import org.eclipse.jface.viewers.ITreeContentProvider; -/** +/** * Frame source for tree viewers, which uses <code>TreeFrame</code> to capture * the state of the tree viewer. - * + * * @see TreeFrame */ public class TreeViewerFrameSource implements IFrameSource { @@ -28,7 +28,7 @@ public class TreeViewerFrameSource implements IFrameSource { /** * Constructs a new tree viewer frame source for the specified tree viewer. - * + * * @param viewer the tree viewer */ public TreeViewerFrameSource(AbstractTreeViewer viewer) { @@ -50,7 +50,7 @@ public class TreeViewerFrameSource implements IFrameSource { /** * Returns a new tree frame capturing the specified input element. - * + * * @param input the input element * @return the tree frame */ @@ -60,7 +60,7 @@ public class TreeViewerFrameSource implements IFrameSource { /** * Updates the viewer in response to the current frame changing. - * + * * @param frame the new value for the current frame */ protected void frameChanged(TreeFrame frame) { @@ -73,7 +73,7 @@ public class TreeViewerFrameSource implements IFrameSource { /** * Returns the current frame. - * + * * @param flags a bit-wise OR of the frame source flag constants * @return the current frame */ @@ -106,7 +106,7 @@ public class TreeViewerFrameSource implements IFrameSource { /** * Returns the parent frame, or <code>null</code> if there is no parent frame. - * + * * @param flags a bit-wise OR of the frame source flag constants * @return the parent frame, or <code>null</code> */ @@ -135,7 +135,7 @@ public class TreeViewerFrameSource implements IFrameSource { /** * Returns the frame for the selection, or <code>null</code> if there is no * frame for the selection. - * + * * @param flags a bit-wise OR of the frame source flag constants * @return the selection frame, or <code>null</code> */ @@ -157,7 +157,7 @@ public class TreeViewerFrameSource implements IFrameSource { /** * Returns the tree viewer. - * + * * @return the tree viewer */ public AbstractTreeViewer getViewer() { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/framelist/UpAction.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/framelist/UpAction.java index cfa2458d1be..f4bb8c0fadb 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/framelist/UpAction.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/framelist/UpAction.java @@ -22,7 +22,7 @@ public class UpAction extends FrameAction { /** * Constructs a new action for the specified frame list. - * + * * @param frameList the frame list */ public UpAction(FrameList frameList) { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/FilterConfigurationArea.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/FilterConfigurationArea.java index 01a22d5d201..f384b80e985 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/FilterConfigurationArea.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/FilterConfigurationArea.java @@ -25,9 +25,9 @@ import org.eclipse.swt.widgets.Control; /** * FilterConfigurationArea is the area that the user can configure a filter in. - * + * * @since 3.4 - * + * */ public abstract class FilterConfigurationArea { @@ -37,14 +37,14 @@ public abstract class FilterConfigurationArea { /** * Apply the current settings to the filter. - * + * * @param filter */ public abstract void apply(MarkerFieldFilter filter); /** * Create the contents of the configuration area in the parent. - * + * * @param parent */ public abstract void createContents(Composite parent); @@ -61,7 +61,7 @@ public abstract class FilterConfigurationArea { /** * Get the title for the receiver. - * + * * @return String */ public String getTitle() { @@ -70,7 +70,7 @@ public abstract class FilterConfigurationArea { /** * Initialise {@link FontMetrics} for the receiver. - * + * * @param control */ protected void initializeFontMetrics(Control control) { @@ -83,16 +83,16 @@ public abstract class FilterConfigurationArea { /** * Initialise the receiver using the filter. - * + * * @param filter */ public abstract void initialize(MarkerFieldFilter filter); - + /** * Set the markerField for the receiver. This method intended to * be called by the marker support framework directly after * instantiation of the receiver. - * + * * @param markerField */ public final void setField(MarkerField markerField) { @@ -109,7 +109,7 @@ public abstract class FilterConfigurationArea { Point minSize = button.computeSize(SWT.DEFAULT, SWT.DEFAULT, true); data.widthHint = Math.max(widthHint, minSize.x); button.setLayoutData(data); - + } /** @@ -122,9 +122,9 @@ public abstract class FilterConfigurationArea { /** * Returns whether the configuration area should grab remaining vertical space. - * + * * The default implementation returns <code>false</code>. Subclasses can override. - * + * * @return <code>true</code> iff the configuration area should grab remaining vertical space * @since 3.5 */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/FiltersContributionParameters.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/FiltersContributionParameters.java index 9bd3bc0e1d9..b3e0e2a111e 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/FiltersContributionParameters.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/FiltersContributionParameters.java @@ -21,16 +21,16 @@ import java.util.Map; * */ public abstract class FiltersContributionParameters { - + /** - * Returns a map keyed names for parameter values. The values should be + * Returns a map keyed names for parameter values. The values should be * actual values that will be interpreted by the {@link MarkerFieldFilter} * these parameters are designed for. - * + * * Note that these parameters will be sent to the MarkerFieldFilter for * every visible {@link MarkerField} in a markers view. - * - * + * + * * @return A map of the name of the parameter value (<code>String</code>) * to the actual value of the parameter (<code>String</code>). */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/MarkerField.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/MarkerField.java index b9bb730080c..4c91ff9276e 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/MarkerField.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/MarkerField.java @@ -37,20 +37,20 @@ import org.eclipse.ui.internal.views.markers.MarkerSupportInternalUtilities; /** * MarkerField is the abstract superclass of the definition of the content * providers for columns in a Markers View. - * + * * @since 3.4 - * + * */ public abstract class MarkerField { private IConfigurationElement configurationElement; private ResourceManager imageManager; private ImageRegistry imageRegistry; - + /** * Annotate the image with indicators for whether or not help or quick fix * are available. - * + * * @param item * the item being decorated * @param image @@ -115,7 +115,7 @@ public abstract class MarkerField { } /** * Compare item1 and item2 for sorting purposes. - * + * * @param item1 * @param item2 * @return Either: @@ -149,17 +149,17 @@ public abstract class MarkerField { /** * Return the text to be displayed in the column header for this field. - * + * * @return String * @see #getColumnTooltipText() this is the default column tooltip text */ public String getColumnHeaderText() { return getName(); } - + /** * Return the name of this field. - * + * * @return String * @since 3.6 */ @@ -170,7 +170,7 @@ public abstract class MarkerField { /** * Return the text for the column tooltip. - * + * * @return String * @see #getColumnHeaderText() */ @@ -181,7 +181,7 @@ public abstract class MarkerField { /** * Get the configuration element for the receiver. This is used by the * markerSupport internals to retreive the values defined in the extenstion. - * + * * @return IConfigurationElement */ public final IConfigurationElement getConfigurationElement() { @@ -190,7 +190,7 @@ public abstract class MarkerField { /** * Get the number of characters that should be reserved for the receiver. - * + * * @param control * the control to scale from * @return int @@ -202,7 +202,7 @@ public abstract class MarkerField { /** * Return the editing support for entries for this field. Return null if it * cannot be in-line edited. - * + * * @param viewer * the viewer this will be applied to * @return {@link EditingSupport} or <code>null</code>. @@ -213,7 +213,7 @@ public abstract class MarkerField { /** * Return the image manager used by the receiver. - * + * * @return ResourceManager */ protected ResourceManager getImageManager() { @@ -231,7 +231,7 @@ public abstract class MarkerField { /** * Set the configuration element used by the receiver. - * + * * @param element */ public final void setConfigurationElement(IConfigurationElement element) { @@ -241,7 +241,7 @@ public abstract class MarkerField { /** * Set the imageManager. This is not normally required to be send if using a * {@link MarkerSupportView} as this is done for you. - * + * * @param manager */ public final void setImageManager(ResourceManager manager) { @@ -250,7 +250,7 @@ public abstract class MarkerField { /** * Update the contents of the cell. - * + * * @param cell */ public void update(ViewerCell cell) { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/MarkerFieldFilter.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/MarkerFieldFilter.java index b77cb4d6538..651977b9a4f 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/MarkerFieldFilter.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/MarkerFieldFilter.java @@ -21,7 +21,7 @@ import org.eclipse.ui.IMemento; * */ public abstract class MarkerFieldFilter { - + private MarkerField field; /** @@ -30,7 +30,7 @@ public abstract class MarkerFieldFilter { * @return boolean <code>true</code> if the marker should be shown. */ public abstract boolean select(MarkerItem item); - + /** * Initialise the receiver with the values in the values Map. * @param values @@ -39,7 +39,7 @@ public abstract class MarkerFieldFilter { public void initialize(Map values){ //Do nothing by default } - + /** * Populate the working copy with the copy of whatever fields are required. * @param copy @@ -54,7 +54,7 @@ public abstract class MarkerFieldFilter { */ public final void setField(MarkerField markerField) { field = markerField; - + } /** diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/MarkerItem.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/MarkerItem.java index 84ff2924b45..cf60d3abc0d 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/MarkerItem.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/MarkerItem.java @@ -16,17 +16,17 @@ import org.eclipse.core.resources.IResource; import org.eclipse.ui.internal.views.markers.MarkerSupportInternalUtilities; /** - * The MarkerItem class is the class that represents the objects displayed a + * The MarkerItem class is the class that represents the objects displayed a * {@link MarkerSupportView}. This class is not intended to be sub-classed by clients, * @since 3.4 - * + * */ public abstract class MarkerItem { /** * Return the boolean associated with attributeName or defaultValue if it is * not found. - * + * * @param attribute * @param defaultValue * @return <code>boolean</code> @@ -39,7 +39,7 @@ public abstract class MarkerItem { /** * Get the value of the attribute in the enclosed marker. - * + * * @param attribute * @param defaultValue * the defaultValue if the value is not set @@ -53,7 +53,7 @@ public abstract class MarkerItem { /** * Get the String value of the attribute in the enclosed marker. - * + * * @param attribute * @param defaultValue * the defaultValue if the value is not set @@ -69,7 +69,7 @@ public abstract class MarkerItem { * convenience purposes as the location can be inferred from a line number * or location attribute if the {@link MarkerItem} has an associated * {@link IMarker}. - * + * * @return String * @see IMarker#LOCATION * @see IMarker#LINE_NUMBER @@ -83,7 +83,7 @@ public abstract class MarkerItem { * convenience as a path can be inferred from the location of an * {@link IResource} or the path attribute if the {@link MarkerItem} has an * associated {@link IMarker}. - * + * * @return String * @see MarkerViewUtil#PATH_ATTRIBUTE * @see IResource#getLocation() @@ -95,7 +95,7 @@ public abstract class MarkerItem { /** * Return the marker for the receiver. - * + * * @return IMarker */ public IMarker getMarker() { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/MarkerSupportConstants.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/MarkerSupportConstants.java index 6b0562859bf..15788e20aec 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/MarkerSupportConstants.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/MarkerSupportConstants.java @@ -13,23 +13,23 @@ package org.eclipse.ui.views.markers; /** * MarkerSupportConstants is a static class that supplies commonly used constants. - * + * * @since 3.4 * */ public class MarkerSupportConstants { - + /** - * The constant used to specify the contains value on + * The constant used to specify the contains value on * a {@link FiltersContributionParameters} */ public static final String CONTAINS_KEY = "CONTAINS"; //$NON-NLS-1$ - + /** - * The constant used to specify the does not contain value on + * The constant used to specify the does not contain value on * a {@link FiltersContributionParameters} */ public static String DOES_NOT_CONTAIN_KEY = "DOES_NOT_CONTAIN"; //$NON-NLS-1$ - + } diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/MarkerSupportView.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/MarkerSupportView.java index 2f513558c42..71c334360b4 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/MarkerSupportView.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/MarkerSupportView.java @@ -21,7 +21,7 @@ import org.eclipse.ui.internal.views.markers.ExtendedMarkersView; */ public abstract class MarkerSupportView extends ExtendedMarkersView { - + /** * Create a new instance of the receiver on contentGeneratorId. * @param contentGeneratorId the id of a markerContentGenerator diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/MarkerViewHandler.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/MarkerViewHandler.java index abfa0a851ab..0ccaefaf633 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/MarkerViewHandler.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/MarkerViewHandler.java @@ -30,9 +30,9 @@ import org.eclipse.ui.statushandlers.StatusManager; /** * MarkerViewHandler is the abstract class of the handlers for the * {@link MarkerSupportView} - * + * * @since 3.4 - * + * */ public abstract class MarkerViewHandler extends AbstractHandler { @@ -40,7 +40,7 @@ public abstract class MarkerViewHandler extends AbstractHandler { /** * Get the view this event occurred on. - * + * * @param event * @return {@link MarkerSupportView} or <code>null</code> */ @@ -53,7 +53,7 @@ public abstract class MarkerViewHandler extends AbstractHandler { /** * Execute the specified undoable operation - * + * * @param operation * @param title * @param monitor @@ -81,10 +81,10 @@ public abstract class MarkerViewHandler extends AbstractHandler { /** * Get the selected markers for the receiver in the view from event. If the * view cannot be found then return an empty array. - * - * This is run using {@link Display#syncExec(Runnable)} so that it can be called + * + * This is run using {@link Display#syncExec(Runnable)} so that it can be called * outside of the UI {@link Thread}. - * + * * @param event * @return {@link IMarker}[] */ @@ -97,7 +97,7 @@ public abstract class MarkerViewHandler extends AbstractHandler { view.getSite().getShell().getDisplay().syncExec(new Runnable() { /* * (non-Javadoc) - * + * * @see java.lang.Runnable#run() */ @Override diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/MarkerViewUtil.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/MarkerViewUtil.java index d6d72ece410..2a960f6bfb7 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/MarkerViewUtil.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/MarkerViewUtil.java @@ -30,7 +30,7 @@ public class MarkerViewUtil { * The PATH_ATTRIBUTE is the tag for the attribute on a marker that can be * used to supply the String for the path rather than using the path of the * underlying resource. - * + * * @see IMarker#getAttribute(java.lang.String) * @since 3.2 */ @@ -40,7 +40,7 @@ public class MarkerViewUtil { * The NAME_ATTRIBUTE is the tag for the attribute on a marker that can be * used to supply the String for the name rather than using the name of the * underlying resource. - * + * * @see IMarker#getAttribute(java.lang.String) * @since 3.2 */ @@ -49,7 +49,7 @@ public class MarkerViewUtil { /** * Returns the id of the view used to show markers of the same type as the * given marker. - * + * * @param marker * the marker * @return the view id or <code>null</code> if no appropriate view could @@ -72,7 +72,7 @@ public class MarkerViewUtil { /** * Shows the given marker in the appropriate view in the given page. This * must be called from the UI thread. - * + * * @param page * the workbench page in which to show the marker * @param marker @@ -126,7 +126,7 @@ public class MarkerViewUtil { /** * Returns the id of the view used to show markers of the same type as the * given marker using.legacy support - * + * * @param marker * the marker * @return the view id or <code>null</code> if no appropriate view could diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/WorkbenchMarkerResolution.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/WorkbenchMarkerResolution.java index d71a3506670..7d0335a9442 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/WorkbenchMarkerResolution.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/WorkbenchMarkerResolution.java @@ -23,13 +23,13 @@ import org.eclipse.ui.views.markers.internal.Util; * */ public abstract class WorkbenchMarkerResolution implements IMarkerResolution2 { - + /** * Iterate through the list of supplied markers. Return any that can also have * the receiver applied to them. * @param markers * @return IMarker[] - * + * * */ public abstract IMarker[] findOtherMarkers(IMarker[] markers); @@ -37,12 +37,12 @@ public abstract class WorkbenchMarkerResolution implements IMarkerResolution2 { * Runs this resolution. Resolve all <code>markers</code>. * <code>markers</code> must be a subset of the markers returned * by <code>findOtherMarkers(IMarker[])</code>. - * + * * @param markers The markers to resolve, not null * @param monitor The monitor to report progress */ public void run(IMarker[] markers, IProgressMonitor monitor) { - + for (int i = 0; i < markers.length; i++) { monitor.subTask(Util.getProperty(IMarker.MESSAGE, markers[i])); run(markers[i]); diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/AbstractField.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/AbstractField.java index befae98aaeb..9cb1f61bcf8 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/AbstractField.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/AbstractField.java @@ -16,9 +16,9 @@ * */ public abstract class AbstractField implements IField { - + boolean visible = true; - + /* (non-Javadoc) * @see org.eclipse.ui.views.markers.internal.IField#isShowing() */ @@ -26,7 +26,7 @@ public abstract class AbstractField implements IField { public boolean isShowing() { return visible; } - + /** * Set whether or not the receiver is showing. * @param showing @@ -34,6 +34,6 @@ public abstract class AbstractField implements IField { @Override public void setShowing(boolean showing){ visible = showing; - + } } diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ActionCopyMarker.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ActionCopyMarker.java index ee0a57f56cd..3097469a4fc 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ActionCopyMarker.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ActionCopyMarker.java @@ -40,7 +40,7 @@ public class ActionCopyMarker extends MarkerSelectionProviderAction { /** * Creates the action. - * + * * @param part * @param provider */ @@ -54,7 +54,7 @@ public class ActionCopyMarker extends MarkerSelectionProviderAction { /** * Sets the clipboard that the marker(s) will be copied to. - * + * * @param clipboard * the clipboard */ @@ -65,7 +65,7 @@ public class ActionCopyMarker extends MarkerSelectionProviderAction { /** * Sets the properties to be added to the plain-text marker report that will * be copied to the clipboard. - * + * * @param properties */ void setProperties(IField[] properties) { @@ -85,7 +85,7 @@ public class ActionCopyMarker extends MarkerSelectionProviderAction { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.actions.SelectionProviderAction#selectionChanged(org.eclipse.jface.viewers.IStructuredSelection) */ @Override @@ -123,7 +123,7 @@ public class ActionCopyMarker extends MarkerSelectionProviderAction { /** * Creates a plain-text report of the selected markers based on predefined * properties. - * + * * @param rawMarkers * @return the marker report */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ActionDeleteCompleted.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ActionDeleteCompleted.java index 6a940368ced..f368804b1aa 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ActionDeleteCompleted.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ActionDeleteCompleted.java @@ -25,7 +25,7 @@ import org.eclipse.ui.ide.undo.WorkspaceUndoUtil; /** * ActionDeleteCompleted is the action for deleting completed markers. - * + * */ public class ActionDeleteCompleted extends MarkerSelectionProviderAction { @@ -33,7 +33,7 @@ public class ActionDeleteCompleted extends MarkerSelectionProviderAction { /** * Constructs an ActionDeleteCompleted instance - * + * * @param part * @param provider */ @@ -45,7 +45,7 @@ public class ActionDeleteCompleted extends MarkerSelectionProviderAction { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.action.Action#run() */ @Override @@ -101,7 +101,7 @@ public class ActionDeleteCompleted extends MarkerSelectionProviderAction { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.actions.SelectionProviderAction#selectionChanged(org.eclipse.jface.viewers.IStructuredSelection) */ @Override diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ActionMarkCompleted.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ActionMarkCompleted.java index b63653c57c2..969342c8e0e 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ActionMarkCompleted.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ActionMarkCompleted.java @@ -23,13 +23,13 @@ import org.eclipse.ui.ide.undo.UpdateMarkersOperation; /** * ActionMarkCompleted is the action for marking task completion. - * + * */ public class ActionMarkCompleted extends MarkerSelectionProviderAction { /** * Create a new instance of the reciever. - * + * * @param provider */ public ActionMarkCompleted(ISelectionProvider provider) { @@ -39,7 +39,7 @@ public class ActionMarkCompleted extends MarkerSelectionProviderAction { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.action.Action#run() */ @Override @@ -55,7 +55,7 @@ public class ActionMarkCompleted extends MarkerSelectionProviderAction { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.actions.SelectionProviderAction#selectionChanged(org.eclipse.jface.viewers.IStructuredSelection) */ @Override diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ActionMarkerProperties.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ActionMarkerProperties.java index 52eb70e8ada..8f9b1f5f0c2 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ActionMarkerProperties.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ActionMarkerProperties.java @@ -18,7 +18,7 @@ import org.eclipse.ui.actions.SelectionProviderAction; /** * ActionMarkerProperties is the action for opening a properties dialog. - * + * */ public class ActionMarkerProperties extends SelectionProviderAction { @@ -28,7 +28,7 @@ public class ActionMarkerProperties extends SelectionProviderAction { /** * Create a new instance of the receiver. - * + * * @param part * @param provider * @param markerName @@ -44,7 +44,7 @@ public class ActionMarkerProperties extends SelectionProviderAction { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.action.Action#run() */ @Override @@ -65,7 +65,7 @@ public class ActionMarkerProperties extends SelectionProviderAction { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.actions.SelectionProviderAction#selectionChanged(org.eclipse.jface.viewers.IStructuredSelection) */ @Override diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ActionOpenMarker.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ActionOpenMarker.java index 547074132d7..78807800029 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ActionOpenMarker.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ActionOpenMarker.java @@ -62,7 +62,7 @@ public class ActionOpenMarker extends MarkerSelectionProviderAction { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.action.Action#run() */ @Override @@ -123,7 +123,7 @@ public class ActionOpenMarker extends MarkerSelectionProviderAction { /** * Report an error message - * + * * @param message */ private void reportError(String message) { @@ -134,7 +134,7 @@ public class ActionOpenMarker extends MarkerSelectionProviderAction { /** * Report the status - * + * * @param status */ private void reportStatus(IStatus status) { @@ -146,7 +146,7 @@ public class ActionOpenMarker extends MarkerSelectionProviderAction { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.actions.SelectionProviderAction#selectionChanged(org.eclipse.jface.viewers.IStructuredSelection) */ @Override diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ActionPasteMarker.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ActionPasteMarker.java index 93831838c8e..4cd682d83ea 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ActionPasteMarker.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ActionPasteMarker.java @@ -48,7 +48,7 @@ public class ActionPasteMarker extends MarkerSelectionProviderAction { /** * Creates the action. - * + * * @param part * @param provider * @param markerName diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ActionProblemProperties.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ActionProblemProperties.java index 50ab2d9e9ea..56f4375d349 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ActionProblemProperties.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ActionProblemProperties.java @@ -42,7 +42,7 @@ public class ActionProblemProperties extends MarkerSelectionProviderAction { */ @Override public void run() { - + IMarker marker = getSelectedMarker(); DialogMarkerProperties dialog = new DialogProblemProperties(part .getSite().getShell()); diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ActionRemoveMarker.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ActionRemoveMarker.java index f4f935551f0..e8d30e44500 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ActionRemoveMarker.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ActionRemoveMarker.java @@ -28,12 +28,12 @@ import org.eclipse.ui.ide.undo.WorkspaceUndoUtil; public class ActionRemoveMarker extends MarkerSelectionProviderAction { private IWorkbenchPart part; - + private String markerName; /** * Creates the action. - * + * * @param part * @param provider * @param markerName diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ActionResolveMarker.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ActionResolveMarker.java index 34634501bf0..26ac9819513 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ActionResolveMarker.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ActionResolveMarker.java @@ -33,7 +33,7 @@ import org.eclipse.ui.progress.IWorkbenchSiteProgressService; /** * This action displays a list of resolutions for the selected marker - * + * * @since 2.0 */ public class ActionResolveMarker extends MarkerSelectionProviderAction { @@ -42,7 +42,7 @@ public class ActionResolveMarker extends MarkerSelectionProviderAction { /** * Create a new instance of the receiver. - * + * * @param markerView * @param provider */ @@ -119,7 +119,7 @@ public class ActionResolveMarker extends MarkerSelectionProviderAction { /** * Handle the exception. - * + * * @param exception */ private void handleException(Exception exception) { @@ -132,7 +132,7 @@ public class ActionResolveMarker extends MarkerSelectionProviderAction { /** * Return the description of the marker. - * + * * @return String */ private String getMarkerDescription() { @@ -141,7 +141,7 @@ public class ActionResolveMarker extends MarkerSelectionProviderAction { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.actions.SelectionProviderAction#selectionChanged(org.eclipse.jface.viewers.IStructuredSelection) */ @Override diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ActionRevealMarker.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ActionRevealMarker.java index 96f50db2b6b..14229a8b3b9 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ActionRevealMarker.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ActionRevealMarker.java @@ -36,18 +36,18 @@ public class ActionRevealMarker extends MarkerSelectionProviderAction { * @param provider */ public ActionRevealMarker(IWorkbenchPart part, ISelectionProvider provider) { - super(provider, Util.EMPTY_STRING); + super(provider, Util.EMPTY_STRING); this.part = part; } /* * (non-Javadoc) - * + * * @see org.eclipse.jface.action.Action#run() */ @Override public void run() { - + IEditorPart editor = part.getSite().getPage().getActiveEditor(); if (editor == null) { return; diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ActionSelectAll.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ActionSelectAll.java index 02d81a9e8fd..8c0ad3944eb 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ActionSelectAll.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ActionSelectAll.java @@ -26,7 +26,7 @@ import org.eclipse.ui.views.markers.internal.MarkerAdapter.MarkerCategory; /** * The ActionSelectAll is the action for selecting all of the entries. - * + * */ public class ActionSelectAll extends MarkerSelectionProviderAction { @@ -34,7 +34,7 @@ public class ActionSelectAll extends MarkerSelectionProviderAction { /** * Create a new instance of the receiver with the supplied - * + * * @param markerView */ public ActionSelectAll(MarkerView markerView) { @@ -45,7 +45,7 @@ public class ActionSelectAll extends MarkerSelectionProviderAction { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.action.Action#run() */ @Override @@ -57,7 +57,7 @@ public class ActionSelectAll extends MarkerSelectionProviderAction { IRunnableWithProgress selectionRunnableWithProgress = new IRunnableWithProgress() { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.operation.IRunnableWithProgress#run(org.eclipse.core.runtime.IProgressMonitor) */ @Override @@ -140,7 +140,7 @@ public class ActionSelectAll extends MarkerSelectionProviderAction { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.actions.SelectionProviderAction#selectionChanged(org.eclipse.jface.viewers.IStructuredSelection) */ @Override diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ActionTaskProperties.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ActionTaskProperties.java index d6f2b293e6a..00dfef1e950 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ActionTaskProperties.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ActionTaskProperties.java @@ -17,7 +17,7 @@ import org.eclipse.ui.IWorkbenchPart; /** * ActionTaskProperties is the action for setting a tasks properties. - * + * */ public class ActionTaskProperties extends MarkerSelectionProviderAction { @@ -25,7 +25,7 @@ public class ActionTaskProperties extends MarkerSelectionProviderAction { /** * Create a new instance of the receiver. - * + * * @param part * @param provider */ @@ -37,7 +37,7 @@ public class ActionTaskProperties extends MarkerSelectionProviderAction { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.action.Action#run() */ @Override @@ -51,7 +51,7 @@ public class ActionTaskProperties extends MarkerSelectionProviderAction { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.actions.SelectionProviderAction#selectionChanged(org.eclipse.jface.viewers.IStructuredSelection) */ @Override diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/AttributeMarkerGrouping.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/AttributeMarkerGrouping.java index 20deb5424e2..435bb34ebf7 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/AttributeMarkerGrouping.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/AttributeMarkerGrouping.java @@ -20,12 +20,12 @@ import org.eclipse.core.runtime.IConfigurationElement; /** * AttributeMarkerGrouping is the configuration element for the * markerAttributeGrouping extension. - * + * * @since 3.2 - * + * */ public class AttributeMarkerGrouping { - + private static final String DEFAULT_GROUPING_ENTRY = "defaultGroupingEntry";//$NON-NLS-1$ private static final String MARKER_TYPE = "markerType";//$NON-NLS-1$ @@ -57,7 +57,7 @@ public class AttributeMarkerGrouping { /** * Return the id of the default grouping. - * + * * @return String or <code>null</code> if it is not defined. */ public String getDefaultGroupingEntry() { @@ -66,7 +66,7 @@ public class AttributeMarkerGrouping { /** * Return the id of the marker type for this type. - * + * * @return String */ public String getMarkerType() { @@ -75,7 +75,7 @@ public class AttributeMarkerGrouping { /** * Return the name of the attribute for the receiver. - * + * * @return String */ public String getAttribute() { @@ -84,7 +84,7 @@ public class AttributeMarkerGrouping { /** * Return the IConfigurationElement for the receiver. - * + * * @return IConfigurationElement */ public IConfigurationElement getElement() { @@ -93,7 +93,7 @@ public class AttributeMarkerGrouping { /** * Add markerGroup to the list of referenced groups. - * + * * @param markerGroup */ public void addGroup(MarkerGroup markerGroup) { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/BookmarkFilter.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/BookmarkFilter.java index 038eab9f02f..672f8a3eabf 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/BookmarkFilter.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/BookmarkFilter.java @@ -31,7 +31,7 @@ public class BookmarkFilter extends MarkerFilter { /** * Create a new instance of the recevier with the default name. - * + * */ public BookmarkFilter() { this(MarkerMessages.MarkerFilter_defaultFilterName); @@ -39,7 +39,7 @@ public class BookmarkFilter extends MarkerFilter { /** * Create a new instance of the recevier with the filterName - * + * * @param filterName */ public BookmarkFilter(String filterName) { @@ -83,7 +83,7 @@ public class BookmarkFilter extends MarkerFilter { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.MarkerFilter#resetState() */ @Override @@ -95,7 +95,7 @@ public class BookmarkFilter extends MarkerFilter { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.MarkerFilter#restoreFilterSettings(org.eclipse.jface.dialogs.IDialogSettings) */ @Override @@ -140,7 +140,7 @@ public class BookmarkFilter extends MarkerFilter { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.MarkerFilter#saveFilterSettings(org.eclipse.ui.IMemento) */ @Override diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/BookmarkView.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/BookmarkView.java index 7e1d8b02a82..70134e86274 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/BookmarkView.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/BookmarkView.java @@ -106,15 +106,15 @@ public class BookmarkView extends MarkerView { if (e.getCause() instanceof CoreException) { ErrorDialog.openError( getSite().getShell(), - MarkerMessages.errorModifyingBookmark, null, ((CoreException)e.getCause()).getStatus()); + MarkerMessages.errorModifyingBookmark, null, ((CoreException)e.getCause()).getStatus()); } else { // something rather unexpected occurred. - IDEWorkbenchPlugin.log(MarkerMessages.errorModifyingBookmark, e); + IDEWorkbenchPlugin.log(MarkerMessages.errorModifyingBookmark, e); } } catch (CoreException e) { ErrorDialog.openError( getSite().getShell(), - MarkerMessages.errorModifyingBookmark, null, e.getStatus()); + MarkerMessages.errorModifyingBookmark, null, e.getStatus()); } } } @@ -179,13 +179,13 @@ public class BookmarkView extends MarkerView { @Override protected IField[] getSortingFields() { IField[] all = new IField[VISIBLE_FIELDS.length + HIDDEN_FIELDS.length]; - + System.arraycopy(VISIBLE_FIELDS, 0, all, 0, VISIBLE_FIELDS.length); System.arraycopy(HIDDEN_FIELDS, 0, all, VISIBLE_FIELDS.length, HIDDEN_FIELDS.length); - + return all; } - + /* (non-Javadoc) * @see org.eclipse.ui.views.markers.internal.TableView#getAllFields() */ @@ -210,7 +210,7 @@ public class BookmarkView extends MarkerView { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.MarkerView#getMarkerTypes() */ @Override @@ -250,16 +250,16 @@ public class BookmarkView extends MarkerView { protected String getSectionTag() { return TAG_DIALOG_SECTION; } - + /* (non-Javadoc) * @see org.eclipse.ui.views.markers.internal.MarkerView#fillContextMenuAdditions(org.eclipse.jface.action.IMenuManager) */ @Override void fillContextMenuAdditions(IMenuManager manager) { //Do nothing in this view - + } - + /* (non-Javadoc) * @see org.eclipse.ui.views.markers.internal.MarkerView#getMarkerEnablementPreferenceName() */ @@ -267,7 +267,7 @@ public class BookmarkView extends MarkerView { String getMarkerEnablementPreferenceName() { return IDEInternalPreferences.LIMIT_BOOKMARKS; } - + /* (non-Javadoc) * @see org.eclipse.ui.views.markers.internal.MarkerView#getMarkerLimitPreferenceName() */ @@ -275,7 +275,7 @@ public class BookmarkView extends MarkerView { String getMarkerLimitPreferenceName() { return IDEInternalPreferences.BOOKMARKS_LIMIT; } - + /* (non-Javadoc) * @see org.eclipse.ui.views.markers.internal.MarkerView#getFiltersPreferenceName() */ @@ -283,17 +283,17 @@ public class BookmarkView extends MarkerView { String getFiltersPreferenceName() { return IDEInternalPreferences.BOOKMARKS_FILTERS; } - + /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.MarkerView#getMarkerName() */ @Override protected String getMarkerName() { return MarkerMessages.bookmark_title; } - + /* * (non-Javadoc) * @see org.eclipse.ui.views.markers.internal.MarkerView#getUndoContext() @@ -302,5 +302,5 @@ public class BookmarkView extends MarkerView { protected IUndoContext getUndoContext() { return WorkspaceUndoUtil.getBookmarksUndoContext(); } - + } diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/CategoryComparator.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/CategoryComparator.java index 895f876b3c2..3f792bc90c7 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/CategoryComparator.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/CategoryComparator.java @@ -19,7 +19,7 @@ import org.eclipse.jface.viewers.ViewerComparator; /** * CategorySorter is the sorter that takes categories and the viewer into * account. - * + * */ public class CategoryComparator extends ViewerComparator implements Comparator { TableComparator innerSorter; @@ -30,7 +30,7 @@ public class CategoryComparator extends ViewerComparator implements Comparator { /** * Create a new instance of the receiver wrapping a sorter. - * + * * @param sorter */ CategoryComparator(TableComparator sorter) { @@ -39,7 +39,7 @@ public class CategoryComparator extends ViewerComparator implements Comparator { /** * Compare obj1 and obj starting with field depth. - * + * * @param obj1 * @param obj2 * @param depth @@ -74,7 +74,7 @@ public class CategoryComparator extends ViewerComparator implements Comparator { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.ViewerSorter#compare(org.eclipse.jface.viewers.Viewer, * java.lang.Object, java.lang.Object) */ @@ -85,7 +85,7 @@ public class CategoryComparator extends ViewerComparator implements Comparator { /* * (non-Javadoc) - * + * * @see java.util.Comparator#compare(java.lang.Object, java.lang.Object) */ @Override @@ -95,7 +95,7 @@ public class CategoryComparator extends ViewerComparator implements Comparator { /** * Get the category field. - * + * * @return IField */ public IField getCategoryField() { @@ -104,7 +104,7 @@ public class CategoryComparator extends ViewerComparator implements Comparator { /** * Set the field that we are categorizing by. - * + * * @param field */ public void setCategoryField(IField field) { @@ -113,7 +113,7 @@ public class CategoryComparator extends ViewerComparator implements Comparator { /** * Set the inner sorter to the new sorter. - * + * * @param sorter2 */ public void setTableSorter(TableComparator sorter2) { @@ -123,7 +123,7 @@ public class CategoryComparator extends ViewerComparator implements Comparator { /** * Save the state of the receiver. - * + * * @param dialogSettings */ public void saveState(IDialogSettings dialogSettings) { @@ -149,7 +149,7 @@ public class CategoryComparator extends ViewerComparator implements Comparator { /** * Restore the state of the receiver from the dialog settings. - * + * * @param dialogSettings * @param view */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ConcreteMarker.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ConcreteMarker.java index aab3d09cd48..49dfab9bdf9 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ConcreteMarker.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ConcreteMarker.java @@ -10,8 +10,8 @@ *******************************************************************************/ package org.eclipse.ui.views.markers.internal; -import com.ibm.icu.text.CollationKey; -import com.ibm.icu.text.Collator; +import com.ibm.icu.text.CollationKey; +import com.ibm.icu.text.Collator; import org.eclipse.core.resources.IMarker; import org.eclipse.core.resources.IResource; @@ -37,7 +37,7 @@ public class ConcreteMarker extends MarkerNode{ private CollationKey resourceNameKey; private int line; - + private String locationString; private long creationTime; @@ -54,7 +54,7 @@ public class ConcreteMarker extends MarkerNode{ private MarkerNode markerCategory; private String shortFolder; - + private Object group; public ConcreteMarker(IMarker toCopy) { @@ -65,7 +65,7 @@ public class ConcreteMarker extends MarkerNode{ /** * Clears any cached information. This frees up some memory, but will slow down * the next comparison operation. It is a good idea to call this on a set of markers - * after sorting them, in order to reduce their memory cost. + * after sorting them, in order to reduce their memory cost. */ public void clearCache() { resourceNameKey = null; @@ -82,10 +82,10 @@ public class ConcreteMarker extends MarkerNode{ resourceName = Util.getResourceName(marker); inFolder = Util.getContainerName(marker); shortFolder = null; - line = marker.getAttribute(IMarker.LINE_NUMBER, -1); + line = marker.getAttribute(IMarker.LINE_NUMBER, -1); locationString = marker.getAttribute(IMarker.LOCATION, Util.EMPTY_STRING); - + try { creationTime = marker.getCreationTime(); } catch (CoreException e) { @@ -95,9 +95,9 @@ public class ConcreteMarker extends MarkerNode{ try { type = marker.getType(); } catch (CoreException e1) { - type = Util.EMPTY_STRING; + type = Util.EMPTY_STRING; } - + // store the marker ID locally id = marker.getId(); } @@ -150,7 +150,7 @@ public class ConcreteMarker extends MarkerNode{ public long getCreationTime() { return creationTime; } - + /** * The underlying marker ID value. * @return the marker's ID. @@ -185,7 +185,7 @@ public class ConcreteMarker extends MarkerNode{ */ public void setCategory(MarkerNode category) { markerCategory = category; - + } /* (non-Javadoc) @@ -249,7 +249,7 @@ public class ConcreteMarker extends MarkerNode{ public void setGroup(Object group) { this.group = group; } - + /* (non-Javadoc) * @see org.eclipse.ui.views.markers.internal.MarkerNode#getConcreteRepresentative() */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ContentGeneratorDescriptor.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ContentGeneratorDescriptor.java index 48cf9cb56ed..bd0fd046bb2 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ContentGeneratorDescriptor.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ContentGeneratorDescriptor.java @@ -26,9 +26,9 @@ import org.eclipse.ui.views.markers.MarkerField; /** * ContentGeneratorDescriptor is the direct representation of the markerContentGenerator * extension point. - * + * * @since 3.6 - * + * */ public class ContentGeneratorDescriptor { @@ -47,7 +47,7 @@ public class ContentGeneratorDescriptor { /** * Create a new ContentGeneratorDescriptor - * + * * @param element */ public ContentGeneratorDescriptor(IConfigurationElement element) { @@ -56,7 +56,7 @@ public class ContentGeneratorDescriptor { /** * Add the groups defined in the receiver to the collection of groups. - * + * * @param groups */ private void addDefinedGroups(Collection groups) { @@ -71,7 +71,7 @@ public class ContentGeneratorDescriptor { /** * Add the extensions to the receiver. - * + * * @param extensions * Collection of {@link IConfigurationElement} */ @@ -82,7 +82,7 @@ public class ContentGeneratorDescriptor { /** * Add all of the markerGroups defined in element. - * + * * @param groups */ private void addGroupsFrom(IConfigurationElement element, Collection groups) { @@ -98,7 +98,7 @@ public class ContentGeneratorDescriptor { /** * Return whether or not all of {@link MarkerTypesModel} arein the * selectedTypes. - * + * * @param selectedTypes * @return boolean */ @@ -108,7 +108,7 @@ public class ContentGeneratorDescriptor { /** * Get the all of the fields that this content generator is using. - * + * * @return {@link MarkerField}[] */ public MarkerField[] getAllFields() { @@ -117,7 +117,7 @@ public class ContentGeneratorDescriptor { /** * Get the category name from the receiver. - * + * * @return categoryName */ public String getCategoryName() { @@ -128,7 +128,7 @@ public class ContentGeneratorDescriptor { /** * Return the configuration elements for the receiver. - * + * * @return IConfigurationElement[] */ public IConfigurationElement[] getFilterReferences() { @@ -165,7 +165,7 @@ public class ContentGeneratorDescriptor { /** * Return the id of the receiver. - * + * * @return String */ public String getId() { @@ -175,7 +175,7 @@ public class ContentGeneratorDescriptor { /** * Get the list of initially visible fields - * + * * @return {@link MarkerField}[] */ public MarkerField[] getInitialVisible() { @@ -184,7 +184,7 @@ public class ContentGeneratorDescriptor { /** * Get the markerGroups associated with the receiver. - * + * * @return Collection of {@link MarkerGroup} */ public Collection getMarkerGroups() { @@ -207,7 +207,7 @@ public class ContentGeneratorDescriptor { /** * Return the markerTypes for the receiver. - * + * * @return Collection of {@link MarkerType} */ public Collection getMarkerTypes() { @@ -240,7 +240,7 @@ public class ContentGeneratorDescriptor { /** * Return the name for the receiver. - * + * * @return String */ public String getName() { @@ -250,7 +250,7 @@ public class ContentGeneratorDescriptor { /** * Return the type for typeId. - * + * * @param typeId * @return {@link MarkerType} or <code>null</code> if it is not found. */ @@ -263,7 +263,7 @@ public class ContentGeneratorDescriptor { /** * Get the table that maps type ids to markerTypes. - * + * * @return Map of {@link String} to {@link MarkerType} */ public Map getTypesTable() { @@ -282,7 +282,7 @@ public class ContentGeneratorDescriptor { /** * Initialise the receiver from the configuration element. This is done as a * post processing step. - * + * * @param registry * the MarkerSupportRegistry being used to initialise the * receiver. @@ -315,7 +315,7 @@ public class ContentGeneratorDescriptor { /** * Remove the element from the generator extensions - * + * * @param element */ public void removeExtension(IConfigurationElement element) { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/DialogBookmarkFilter.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/DialogBookmarkFilter.java index c2f48bd7148..1c6f71c1eaa 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/DialogBookmarkFilter.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/DialogBookmarkFilter.java @@ -28,7 +28,7 @@ import org.eclipse.swt.widgets.Text; /** * DialogBookmarkFilter is the filter dialog for bookmarks - * + * */ public class DialogBookmarkFilter extends DialogMarkerFilter { @@ -43,12 +43,12 @@ public class DialogBookmarkFilter extends DialogMarkerFilter { private String contains = MarkerMessages.filtersDialog_contains; - private String doesNotContain = + private String doesNotContain = MarkerMessages.filtersDialog_doesNotContain; /** * Create a description group. - * + * * @param parent */ public DescriptionGroup(Composite parent) { @@ -109,7 +109,7 @@ public class DialogBookmarkFilter extends DialogMarkerFilter { public void setDescription(String text) { if (text == null) { - description.setText(""); //$NON-NLS-1$ + description.setText(""); //$NON-NLS-1$ } else { description.setText(text); } @@ -140,7 +140,7 @@ public class DialogBookmarkFilter extends DialogMarkerFilter { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.DialogMarkerFilter#createAttributesArea(org.eclipse.swt.widgets.Composite) */ @Override @@ -165,9 +165,9 @@ public class DialogBookmarkFilter extends DialogMarkerFilter { BookmarkFilter bookmark = (BookmarkFilter) filter; bookmark.setContains(descriptionGroup.getContains()); bookmark.setDescription(descriptionGroup.getDescription().trim()); - + } - + /* (non-Javadoc) * @see org.eclipse.ui.views.markers.internal.DialogMarkerFilter#updateUIWithFilter(org.eclipse.ui.views.markers.internal.MarkerFilter) */ @@ -187,11 +187,11 @@ public class DialogBookmarkFilter extends DialogMarkerFilter { super.updateEnabledState(enabled); descriptionGroup.updateEnablement(enabled); } - + /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markerview.FiltersDialog#resetPressed() */ @Override @@ -204,7 +204,7 @@ public class DialogBookmarkFilter extends DialogMarkerFilter { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.DialogMarkerFilter#newFilter(java.lang.String) */ @Override diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/DialogMarkerFilter.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/DialogMarkerFilter.java index a06587ae393..8db28fb052c 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/DialogMarkerFilter.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/DialogMarkerFilter.java @@ -88,7 +88,7 @@ public abstract class DialogMarkerFilter extends TrayDialog { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.ITableLabelProvider#getColumnImage(java.lang.Object, * int) */ @@ -99,7 +99,7 @@ public abstract class DialogMarkerFilter extends TrayDialog { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.ITableLabelProvider#getColumnText(java.lang.Object, * int) */ @@ -121,7 +121,7 @@ public abstract class DialogMarkerFilter extends TrayDialog { /** * Creates the working set filter selection widgets. - * + * * @param parent * the parent composite of the working set widgets */ @@ -146,7 +146,7 @@ public abstract class DialogMarkerFilter extends TrayDialog { /** * Returns wether or not a working set filter should be used - * + * * @return true=a working set filter should be used false=a working set * filter should not be used */ @@ -156,7 +156,7 @@ public abstract class DialogMarkerFilter extends TrayDialog { /** * Returns the selected working set filter or null if none is selected. - * + * * @return the selected working set filter or null if none is selected. */ IWorkingSet getWorkingSet() { @@ -165,7 +165,7 @@ public abstract class DialogMarkerFilter extends TrayDialog { /** * Sets the working set filter selection. - * + * * @param selected * true=a working set filter should be used false=no working * set filter should be used @@ -208,7 +208,7 @@ public abstract class DialogMarkerFilter extends TrayDialog { /** * Sets the specified working set. - * + * * @param workingSet * the working set */ @@ -232,41 +232,41 @@ public abstract class DialogMarkerFilter extends TrayDialog { /** * AbstractNode is the abstract superclass of the node elements for * MarkerTypes. - * + * */ private abstract class AbstractNode { /** * Get the parent element of the receiver. - * + * * @return Object */ public abstract Object getParent(); /** * Get the name of the receiver. - * + * * @return String */ public abstract String getName(); /** * Return whether or not the receiver has children. - * + * * @return boolean */ public abstract boolean hasChildren(); /** * Get the children of the receiver. - * + * * @return Object[] */ public abstract Object[] getChildren(); /** * Return whether or not this is a category node. - * + * * @return boolean */ public abstract boolean isCategory(); @@ -275,7 +275,7 @@ public abstract class DialogMarkerFilter extends TrayDialog { /** * MarkerTypeNode is the wrapper for marker types. - * + * */ private class MarkerTypeNode extends AbstractNode { @@ -285,7 +285,7 @@ public abstract class DialogMarkerFilter extends TrayDialog { /** * Create an instance of the receiver wrapping markerType. - * + * * @param markerType */ public MarkerTypeNode(MarkerType markerType) { @@ -295,7 +295,7 @@ public abstract class DialogMarkerFilter extends TrayDialog { /** * Set the category of the receiver. - * + * * @param category */ public void setCategory(MarkerCategory category) { @@ -304,7 +304,7 @@ public abstract class DialogMarkerFilter extends TrayDialog { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.DialogMarkerFilter.AbstractNode#getChildren() */ @Override @@ -314,7 +314,7 @@ public abstract class DialogMarkerFilter extends TrayDialog { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.DialogMarkerFilter.AbstractNode#getParent() */ @Override @@ -324,7 +324,7 @@ public abstract class DialogMarkerFilter extends TrayDialog { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.DialogMarkerFilter.AbstractNode#hasChildren() */ @Override @@ -334,7 +334,7 @@ public abstract class DialogMarkerFilter extends TrayDialog { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.DialogMarkerFilter.AbstractNode#getName() */ @Override @@ -344,7 +344,7 @@ public abstract class DialogMarkerFilter extends TrayDialog { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.DialogMarkerFilter.AbstractNode#isCategory() */ @Override @@ -354,7 +354,7 @@ public abstract class DialogMarkerFilter extends TrayDialog { /** * Return the marker type this is wrapping - * + * * @return Object */ public Object getMarkerType() { @@ -365,7 +365,7 @@ public abstract class DialogMarkerFilter extends TrayDialog { /** * The MarkerCategory is a data type to represent the categories in the tree * view. - * + * */ private class MarkerCategory extends AbstractNode { @@ -375,7 +375,7 @@ public abstract class DialogMarkerFilter extends TrayDialog { /** * Create a new instance of the receiver with name categoryName. - * + * * @param categoryName */ public MarkerCategory(String categoryName) { @@ -384,7 +384,7 @@ public abstract class DialogMarkerFilter extends TrayDialog { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.DialogMarkerFilter.AbstractNode#getName() */ @Override @@ -394,7 +394,7 @@ public abstract class DialogMarkerFilter extends TrayDialog { /** * Add markerType to the list of types. - * + * * @param markerType */ public void add(MarkerTypeNode markerType) { @@ -404,7 +404,7 @@ public abstract class DialogMarkerFilter extends TrayDialog { /** * Return the marker types contained in the receiver. - * + * * @return Object[] */ public Object[] getMarkerTypes() { @@ -413,7 +413,7 @@ public abstract class DialogMarkerFilter extends TrayDialog { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.DialogMarkerFilter.AbstractNode#getChildren() */ @Override @@ -423,7 +423,7 @@ public abstract class DialogMarkerFilter extends TrayDialog { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.DialogMarkerFilter.AbstractNode#getParent() */ @Override @@ -433,7 +433,7 @@ public abstract class DialogMarkerFilter extends TrayDialog { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.DialogMarkerFilter.AbstractNode#hasChildren() */ @Override @@ -443,7 +443,7 @@ public abstract class DialogMarkerFilter extends TrayDialog { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.DialogMarkerFilter.AbstractNode#isCategory() */ @Override @@ -483,7 +483,7 @@ public abstract class DialogMarkerFilter extends TrayDialog { /** * Create a new instance of the receiver. - * + * * @param parentShell * @param filtersList */ @@ -494,7 +494,7 @@ public abstract class DialogMarkerFilter extends TrayDialog { /** * Set the filters in the filtersList by copying them. - * + * * @param initialFilters */ private void setFilters(MarkerFilter[] initialFilters) { @@ -561,7 +561,7 @@ public abstract class DialogMarkerFilter extends TrayDialog { Object element = items[i].getData(); typesViewer.setSubtreeChecked(element, checked); } - + } /** @@ -596,7 +596,7 @@ public abstract class DialogMarkerFilter extends TrayDialog { /** * Creates a check box button with the given parent and text. - * + * * @param parent * the parent composite * @param text @@ -626,7 +626,7 @@ public abstract class DialogMarkerFilter extends TrayDialog { /** * Creates a combo box with the given parent, items, and selection - * + * * @param parent * the parent composite * @param items @@ -678,7 +678,7 @@ public abstract class DialogMarkerFilter extends TrayDialog { /** * Create the list in the receiver. - * + * * @param dialogArea */ /** @@ -696,7 +696,7 @@ public abstract class DialogMarkerFilter extends TrayDialog { /** * Create the area for the user to select thier filters. - * + * * @param listArea */ void createUserFiltersArea(Composite listArea) { @@ -717,7 +717,7 @@ public abstract class DialogMarkerFilter extends TrayDialog { filtersList.setContentProvider(new IStructuredContentProvider() { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.IStructuredContentProvider#getElements(java.lang.Object) */ @Override @@ -727,7 +727,7 @@ public abstract class DialogMarkerFilter extends TrayDialog { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.IContentProvider#dispose() */ @Override @@ -737,7 +737,7 @@ public abstract class DialogMarkerFilter extends TrayDialog { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.IContentProvider#inputChanged(org.eclipse.jface.viewers.Viewer, * java.lang.Object, java.lang.Object) */ @@ -751,7 +751,7 @@ public abstract class DialogMarkerFilter extends TrayDialog { filtersList.setLabelProvider(new LabelProvider() { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.ILabelProvider#getText(java.lang.Object) */ @Override @@ -768,7 +768,7 @@ public abstract class DialogMarkerFilter extends TrayDialog { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.ISelectionChangedListener#selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent) */ @Override @@ -808,7 +808,7 @@ public abstract class DialogMarkerFilter extends TrayDialog { new IInputValidator() { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.dialogs.IInputValidator#isValid(java.lang.String) */ @Override @@ -848,7 +848,7 @@ public abstract class DialogMarkerFilter extends TrayDialog { /** * Set the selected filter from event. - * + * * @param event */ protected void setSelectedFilter(SelectionChangedEvent event) { @@ -869,7 +869,7 @@ public abstract class DialogMarkerFilter extends TrayDialog { /** * Remove the filters in selection. - * + * * @param selection */ protected void removeFilters(ISelection selection) { @@ -894,7 +894,7 @@ public abstract class DialogMarkerFilter extends TrayDialog { /** * Create a new filter called newName. - * + * * @param newName */ private void createNewFilter(String newName) { @@ -910,7 +910,7 @@ public abstract class DialogMarkerFilter extends TrayDialog { /** * Crate a newFilter called newName - * + * * @param newName * @return MarkerFilter */ @@ -918,7 +918,7 @@ public abstract class DialogMarkerFilter extends TrayDialog { /** * Create the area for the selected filter. - * + * * @param composite */ Composite createSelectedFilterArea(Composite composite) { @@ -944,7 +944,7 @@ public abstract class DialogMarkerFilter extends TrayDialog { /** * Creates a separator line above the OK/Cancel buttons bar - * + * * @param parent * the parent composite */ @@ -958,7 +958,7 @@ public abstract class DialogMarkerFilter extends TrayDialog { /** * Creates a radio button with the given parent and text. - * + * * @param parent * the parent composite * @param text @@ -972,7 +972,7 @@ public abstract class DialogMarkerFilter extends TrayDialog { button.addSelectionListener(new SelectionAdapter() { /* * (non-Javadoc) - * + * * @see org.eclipse.swt.events.SelectionListener#widgetSelected(org.eclipse.swt.events.SelectionEvent) */ @Override @@ -985,7 +985,7 @@ public abstract class DialogMarkerFilter extends TrayDialog { /** * Creates the area showing which resources should be considered. - * + * * @param parent * the parent composite */ @@ -1009,7 +1009,7 @@ public abstract class DialogMarkerFilter extends TrayDialog { /** * Creates the area showing which marker types should be included. - * + * * @param parent * the parent composite */ @@ -1066,7 +1066,7 @@ public abstract class DialogMarkerFilter extends TrayDialog { /** * Get the currently selected marker filter if there is only one selection. - * + * * @return MarkerFilter or <code>null</code>. */ protected MarkerFilter getSelectedFilter() { @@ -1079,14 +1079,14 @@ public abstract class DialogMarkerFilter extends TrayDialog { /** * Get the content provider for the receiver. - * + * * @return ITreeContentProvider */ private ITreeContentProvider getTypesContentProvider() { return new ITreeContentProvider() { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.IStructuredContentProvider#getElements(java.lang.Object) */ @Override @@ -1101,7 +1101,7 @@ public abstract class DialogMarkerFilter extends TrayDialog { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.IContentProvider#dispose() */ @Override @@ -1110,7 +1110,7 @@ public abstract class DialogMarkerFilter extends TrayDialog { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.IContentProvider#inputChanged(org.eclipse.jface.viewers.Viewer, * java.lang.Object, java.lang.Object) */ @@ -1121,7 +1121,7 @@ public abstract class DialogMarkerFilter extends TrayDialog { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.ITreeContentProvider#getChildren(java.lang.Object) */ @Override @@ -1131,7 +1131,7 @@ public abstract class DialogMarkerFilter extends TrayDialog { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.ITreeContentProvider#getParent(java.lang.Object) */ @Override @@ -1141,7 +1141,7 @@ public abstract class DialogMarkerFilter extends TrayDialog { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.ITreeContentProvider#hasChildren(java.lang.Object) */ @Override @@ -1155,7 +1155,7 @@ public abstract class DialogMarkerFilter extends TrayDialog { * This method is intended to be overridden by subclasses of FiltersDialog. * The attributes area will be created just above the Restore Defaults * button. - * + * * @param parent * the parent Composite */ @@ -1167,7 +1167,7 @@ public abstract class DialogMarkerFilter extends TrayDialog { /** * Returns the selected marker types. - * + * * @return List the selected marker types */ protected List getSelectedTypes() { @@ -1185,14 +1185,14 @@ public abstract class DialogMarkerFilter extends TrayDialog { /** * Return the sorter for the receiver. - * + * * @return ViewerSorter */ protected ViewerComparator getComparator() { return new ViewerComparator() { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.ViewerComparator#compare(org.eclipse.jface.viewers.Viewer, * java.lang.Object, java.lang.Object) */ @@ -1206,7 +1206,7 @@ public abstract class DialogMarkerFilter extends TrayDialog { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.dialogs.Dialog#okPressed() */ @Override @@ -1245,7 +1245,7 @@ public abstract class DialogMarkerFilter extends TrayDialog { /** * Sets the selected marker types. - * + * * @param markerTypes */ void setSelectedTypes(List markerTypes) { @@ -1300,7 +1300,7 @@ public abstract class DialogMarkerFilter extends TrayDialog { /** * Update the selected filter from the UI. - * + * * @param filter */ protected void updateFilterFromUI(MarkerFilter filter) { @@ -1339,7 +1339,7 @@ public abstract class DialogMarkerFilter extends TrayDialog { /** * Update the UI with the contents of filter. - * + * * @param filter */ protected void updateUIWithFilter(MarkerFilter filter) { @@ -1376,7 +1376,7 @@ public abstract class DialogMarkerFilter extends TrayDialog { /** * Set the marker filter. - * + * * @param newFilter */ public void setFilter(MarkerFilter newFilter) { @@ -1393,7 +1393,7 @@ public abstract class DialogMarkerFilter extends TrayDialog { /** * A selection has occured on one of the checkboxes or combos. Update. - * + * */ protected void updateForSelection() { updateEnabledState(true); @@ -1402,7 +1402,7 @@ public abstract class DialogMarkerFilter extends TrayDialog { /** * Get all of the marker types avilable for the filter - * + * * @param selected * @return Object[] */ @@ -1420,7 +1420,7 @@ public abstract class DialogMarkerFilter extends TrayDialog { /** * Build the list of types and categories from the supplied object - * + * * @param elements * @param obj * @param categories @@ -1457,7 +1457,7 @@ public abstract class DialogMarkerFilter extends TrayDialog { /** * Grey check the parent if required - * + * * @param element * @param checked */ @@ -1496,7 +1496,7 @@ public abstract class DialogMarkerFilter extends TrayDialog { /** * Set the check state of the children of element to checked. - * + * * @param element * @param checked */ @@ -1511,7 +1511,7 @@ public abstract class DialogMarkerFilter extends TrayDialog { /** * Create the buttons for selecting the filters. - * + * * @param listArea */ protected void createFilterSelectButtons(Composite listArea) { @@ -1525,7 +1525,7 @@ public abstract class DialogMarkerFilter extends TrayDialog { createButton(buttons, DESELECT_ALL_FILTERS_ID, MarkerMessages.filtersDialog_deselectAll, false); } - + /* * (non-Javadoc) * @see org.eclipse.jface.dialogs.Dialog#isResizable() diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/DialogMarkerProperties.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/DialogMarkerProperties.java index 46dbabbd640..a31d1d29dfe 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/DialogMarkerProperties.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/DialogMarkerProperties.java @@ -46,7 +46,7 @@ import org.eclipse.ui.internal.ide.IDEWorkbenchPlugin; /** * Shows the properties of a new or existing marker - * + * * In 3.3, this class was refactored to allow pre-existing public dialog classes * to share the implementation. Note that certain methods are exposed as API * in public subclasses, so changes to the methods in this class should be @@ -56,7 +56,7 @@ import org.eclipse.ui.internal.ide.IDEWorkbenchPlugin; public class DialogMarkerProperties extends TrayDialog { private static final String DIALOG_SETTINGS_SECTION = "DialogMarkerPropertiesDialogSettings"; //$NON-NLS-1$ - + /** * The marker being shown, or <code>null</code> for a new marker */ @@ -108,7 +108,7 @@ public class DialogMarkerProperties extends TrayDialog { private boolean dirty; private String title; - + /** * The name used to describe the specific kind of marker. Used when * creating an undo command for the dialog, so that a specific name such @@ -121,7 +121,7 @@ public class DialogMarkerProperties extends TrayDialog { * the resource and initial attributes for the new marker, use * <code>setResource</code> and <code>setInitialAttributes</code>. To * show or modify an existing marker, use <code>setMarker</code>. - * + * * @param parentShell * the parent shell */ @@ -134,7 +134,7 @@ public class DialogMarkerProperties extends TrayDialog { * the resource and initial attributes for the new marker, use * <code>setResource</code> and <code>setInitialAttributes</code>. To * show or modify an existing marker, use <code>setMarker</code>. - * + * * @param parentShell * the parent shell * @param title @@ -144,20 +144,20 @@ public class DialogMarkerProperties extends TrayDialog { super(parentShell); this.title = title; } - + /** * Creates the dialog. By default this dialog creates a new marker. To set * the resource and initial attributes for the new marker, use * <code>setResource</code> and <code>setInitialAttributes</code>. To * show or modify an existing marker, use <code>setMarker</code>. - * + * * @param parentShell * the parent shell * @param title * the title of the dialog * @param markerName * the name used to describe the specific kind of marker shown - * + * * @since 3.3 */ public DialogMarkerProperties(Shell parentShell, String title, String markerName) { @@ -168,12 +168,12 @@ public class DialogMarkerProperties extends TrayDialog { /** * Sets the marker to show or modify. - * <p>IMPORTANT: Although this class is internal, there are public - * subclasses that expose this method as API. Changes in + * <p>IMPORTANT: Although this class is internal, there are public + * subclasses that expose this method as API. Changes in * this implementation should be treated as API changes. - * + * * @param marker the marker, or <code>null</code> to create a new marker - * + * * @since 3.3 */ public void setMarker(IMarker marker) { @@ -190,12 +190,12 @@ public class DialogMarkerProperties extends TrayDialog { * Returns the marker being created or modified. * For a new marker, this returns <code>null</code> until * the dialog returns, but is non-null after. - * <p>IMPORTANT: Although this method is protected and the class is + * <p>IMPORTANT: Although this method is protected and the class is * internal, there are public subclasses that expose this method as API. * Changes in this implementation should be treated as API changes. - * + * * @return the marker - * + * * @since 3.3 */ protected IMarker getMarker() { @@ -205,10 +205,10 @@ public class DialogMarkerProperties extends TrayDialog { /** * Sets the resource to use when creating a new task. * If not set, the new task is created on the workspace root. - * <p>IMPORTANT: Although this class is internal, there are public - * subclasses that expose this method as API. Changes in + * <p>IMPORTANT: Although this class is internal, there are public + * subclasses that expose this method as API. Changes in * this implementation should be treated as API changes. - * + * * @param resource the resource */ public void setResource(IResource resource) { @@ -219,12 +219,12 @@ public class DialogMarkerProperties extends TrayDialog { * Returns the resource to use when creating a new task, * or <code>null</code> if none has been set. * If not set, the new task is created on the workspace root. - * <p>IMPORTANT: Although this method is protected and the class is + * <p>IMPORTANT: Although this method is protected and the class is * internal, there are public subclasses that expose this method as API. * Changes in this implementation should be treated as API changes. - * + * * @return the resource - * + * * @since 3.3 */ protected IResource getResource() { @@ -234,12 +234,12 @@ public class DialogMarkerProperties extends TrayDialog { /** * Sets initial attributes to use when creating a new task. * If not set, the new task is created with default attributes. - * <p>IMPORTANT: Although this method is protected and the class is + * <p>IMPORTANT: Although this method is protected and the class is * internal, there are public subclasses that expose this method as API. * Changes in this implementation should be treated as API changes. - * + * * @param initialAttributes the initial attributes - * + * * @since 3.3 */ protected void setInitialAttributes(Map initialAttributes) { @@ -250,12 +250,12 @@ public class DialogMarkerProperties extends TrayDialog { * Returns the initial attributes to use when creating a new task, * or <code>null</code> if not set. * If not set, the new task is created with default attributes. - * <p>IMPORTANT: Although this method is protected and the class is + * <p>IMPORTANT: Although this method is protected and the class is * internal, there are public subclasses that expose this method as API. * Changes in this implementation should be treated as API changes. - * + * * @return the initial attributes - * + * * @since 3.3 */ protected Map getInitialAttributes() { @@ -302,7 +302,7 @@ public class DialogMarkerProperties extends TrayDialog { composite.setLayout(layout); GridData gridData = new GridData(GridData.FILL_HORIZONTAL); composite.setLayoutData(gridData); - + initializeDialogUnits(composite); createDescriptionArea(composite); if (marker != null) { @@ -316,9 +316,9 @@ public class DialogMarkerProperties extends TrayDialog { } updateDialogFromMarker(); updateEnablement(); - + Dialog.applyDialogFont(composite); - + return composite; } @@ -331,7 +331,7 @@ public class DialogMarkerProperties extends TrayDialog { gridData.horizontalSpan = 2; seperator.setLayoutData(gridData); } - + /** * Method createCreationTimeArea. * @param parent @@ -377,7 +377,7 @@ public class DialogMarkerProperties extends TrayDialog { /** * This method is intended to be overridden by subclasses. The attributes * area is created between the creation time area and the resource area. - * + * * @param parent * the parent composite */ @@ -439,7 +439,7 @@ public class DialogMarkerProperties extends TrayDialog { descriptionText.selectAll(); } - + /** * Updates the dialog from the predefined attributes. */ @@ -483,7 +483,7 @@ public class DialogMarkerProperties extends TrayDialog { } } } - + /** * Method declared on Dialog */ @@ -524,7 +524,7 @@ public class DialogMarkerProperties extends TrayDialog { if (resource == null) return; op = new CreateMarkersOperation(type, attrs, - resource, getCreateOperationTitle()); + resource, getCreateOperationTitle()); } else { if (isDirty()) { op = new UpdateMarkersOperation(marker, attrs, @@ -557,7 +557,7 @@ public class DialogMarkerProperties extends TrayDialog { attrs.put(IMarker.MESSAGE, descriptionText.getText()); return attrs; } - + /** * Updates widget enablement for the dialog. Should be overridden by * subclasses. @@ -583,19 +583,19 @@ public class DialogMarkerProperties extends TrayDialog { /** * Sets the marker type when creating a new marker. - * + * * @param type * the marker type - * + * * @since 3.3 this method is protected. */ protected void setType(String type) { this.type = type; } - + /* (non-Javadoc) * @see org.eclipse.jface.window.Dialog#getDialogBoundsSettings() - * + * * @since 3.2 */ @Override @@ -607,26 +607,26 @@ public class DialogMarkerProperties extends TrayDialog { } return section; } - + /** * Return the string that describes a modify marker operation. * Subclasses may override to more specifically describe the marker. - * + * * @since 3.3 */ protected String getModifyOperationTitle() { if (markerName == null) { // we don't know what kind of marker is being modified return MarkerMessages.DialogMarkerProperties_ModifyMarker; - } - return NLS.bind(MarkerMessages.qualifiedMarkerCommand_title, + } + return NLS.bind(MarkerMessages.qualifiedMarkerCommand_title, MarkerMessages.DialogMarkerProperties_Modify, markerName); } - + /** * Return the string that describes a create marker operation. * Subclasses may override to more specifically describe the marker. - * + * * @since 3.3 */ protected String getCreateOperationTitle() { @@ -634,11 +634,11 @@ public class DialogMarkerProperties extends TrayDialog { // we don't know what kind of marker is being created return MarkerMessages.DialogMarkerProperties_CreateMarker; } - return NLS.bind(MarkerMessages.qualifiedMarkerCommand_title, + return NLS.bind(MarkerMessages.qualifiedMarkerCommand_title, MarkerMessages.DialogMarkerProperties_Create, markerName); - + } - + /* * (non-Javadoc) * @see org.eclipse.jface.dialogs.Dialog#isResizable() diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/DialogProblemFilter.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/DialogProblemFilter.java index 7ea05d39356..013526a71af 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/DialogProblemFilter.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/DialogProblemFilter.java @@ -46,9 +46,9 @@ import org.eclipse.swt.widgets.Text; /** * DialogProblemFilter is the dialog class for problem filters. - * + * * @since 3.2 - * + * */ public class DialogProblemFilter extends DialogMarkerFilter { @@ -75,7 +75,7 @@ public class DialogProblemFilter extends DialogMarkerFilter { /** * Create a descriptor group. - * + * * @param parent */ public DescriptionGroup(Composite parent) { @@ -97,7 +97,7 @@ public class DialogProblemFilter extends DialogMarkerFilter { combo.addSelectionListener(new SelectionAdapter() { /* * (non-Javadoc) - * + * * @see org.eclipse.swt.events.SelectionListener#widgetSelected(org.eclipse.swt.events.SelectionEvent) */ @Override @@ -134,7 +134,7 @@ public class DialogProblemFilter extends DialogMarkerFilter { /** * Get the contains value. - * + * * @return boolean */ public boolean getContains() { @@ -143,7 +143,7 @@ public class DialogProblemFilter extends DialogMarkerFilter { /** * Return whether or not the contains value is of use. - * + * * @param value */ public void setContains(boolean value) { @@ -156,12 +156,12 @@ public class DialogProblemFilter extends DialogMarkerFilter { /** * Set the description field. - * + * * @param text */ public void setDescription(String text) { if (text == null) { - description.setText(""); //$NON-NLS-1$ + description.setText(""); //$NON-NLS-1$ } else { description.setText(text); } @@ -169,7 +169,7 @@ public class DialogProblemFilter extends DialogMarkerFilter { /** * Return the text for the description. - * + * * @return String */ public String getDescription() { @@ -179,7 +179,7 @@ public class DialogProblemFilter extends DialogMarkerFilter { /** * Update the enablement state based on whether or not the receiver is * enabled. - * + * * @param enabled */ public void updateEnablement(boolean enabled) { @@ -200,7 +200,7 @@ public class DialogProblemFilter extends DialogMarkerFilter { /** * Create a group for severity. - * + * * @param parent */ public SeverityGroup(Composite parent) { @@ -213,7 +213,7 @@ public class DialogProblemFilter extends DialogMarkerFilter { SelectionListener listener = new SelectionAdapter() { /* * (non-Javadoc) - * + * * @see org.eclipse.swt.events.SelectionListener#widgetSelected(org.eclipse.swt.events.SelectionEvent) */ @Override @@ -238,7 +238,7 @@ public class DialogProblemFilter extends DialogMarkerFilter { errorButton.addSelectionListener(new SelectionAdapter() { /* * (non-Javadoc) - * + * * @see org.eclipse.swt.events.SelectionListener#widgetSelected(org.eclipse.swt.events.SelectionEvent) */ @Override @@ -254,7 +254,7 @@ public class DialogProblemFilter extends DialogMarkerFilter { warningButton.addSelectionListener(new SelectionAdapter() { /* * (non-Javadoc) - * + * * @see org.eclipse.swt.events.SelectionListener#widgetSelected(org.eclipse.swt.events.SelectionEvent) */ @Override @@ -270,7 +270,7 @@ public class DialogProblemFilter extends DialogMarkerFilter { infoButton.addSelectionListener(new SelectionAdapter() { /* * (non-Javadoc) - * + * * @see org.eclipse.swt.events.SelectionListener#widgetSelected(org.eclipse.swt.events.SelectionEvent) */ @Override @@ -282,7 +282,7 @@ public class DialogProblemFilter extends DialogMarkerFilter { /** * Return whether or not sort by severity is selected. - * + * * @return boolean */ public boolean isSeveritySelected() { @@ -291,7 +291,7 @@ public class DialogProblemFilter extends DialogMarkerFilter { /** * Set whether or not the enabled button is selected. - * + * * @param enabled */ public void setEnabled(boolean enabled) { @@ -300,7 +300,7 @@ public class DialogProblemFilter extends DialogMarkerFilter { /** * Return whether or not the error button is selected. - * + * * @return boolean */ public boolean isErrorSelected() { @@ -309,7 +309,7 @@ public class DialogProblemFilter extends DialogMarkerFilter { /** * Set whether or not the error button is selected. - * + * * @param selected */ public void setErrorSelected(boolean selected) { @@ -318,7 +318,7 @@ public class DialogProblemFilter extends DialogMarkerFilter { /** * Return whether or not the warning button is selected. - * + * * @return boolean */ public boolean isWarningSelected() { @@ -327,7 +327,7 @@ public class DialogProblemFilter extends DialogMarkerFilter { /** * Set whether or not the warning button is selected. - * + * * @param selected */ public void setWarningSelected(boolean selected) { @@ -336,7 +336,7 @@ public class DialogProblemFilter extends DialogMarkerFilter { /** * Return whether or not the info button is selected. - * + * * @return boolean */ public boolean isInfoSelected() { @@ -345,7 +345,7 @@ public class DialogProblemFilter extends DialogMarkerFilter { /** * Set whether or not the erinforor button is selected. - * + * * @param selected */ public void setInfoSelected(boolean selected) { @@ -354,7 +354,7 @@ public class DialogProblemFilter extends DialogMarkerFilter { /** * Update enablement based on the enabled flag. - * + * * @param enabled */ public void updateEnablement(boolean enabled) { @@ -370,7 +370,7 @@ public class DialogProblemFilter extends DialogMarkerFilter { /** * Create a new instance of the receiver. - * + * * @param parentShell * @param filters */ @@ -380,7 +380,7 @@ public class DialogProblemFilter extends DialogMarkerFilter { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.DialogMarkerFilter#createAttributesArea(org.eclipse.swt.widgets.Composite) */ @Override @@ -397,7 +397,7 @@ public class DialogProblemFilter extends DialogMarkerFilter { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.DialogMarkerFilter#updateFilterFromUI(org.eclipse.ui.views.markers.internal.MarkerFilter) */ @Override @@ -425,7 +425,7 @@ public class DialogProblemFilter extends DialogMarkerFilter { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.DialogMarkerFilter#updateUIWithFilter(org.eclipse.ui.views.markers.internal.MarkerFilter) */ @Override @@ -451,7 +451,7 @@ public class DialogProblemFilter extends DialogMarkerFilter { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.DialogMarkerFilter#updateEnabledState(boolean) */ @Override @@ -463,7 +463,7 @@ public class DialogProblemFilter extends DialogMarkerFilter { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markerview.FiltersDialog#resetPressed() */ @Override @@ -489,7 +489,7 @@ public class DialogProblemFilter extends DialogMarkerFilter { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.DialogMarkerFilter#createFiltersArea(org.eclipse.swt.widgets.Composite) */ @Override @@ -535,7 +535,7 @@ public class DialogProblemFilter extends DialogMarkerFilter { /** * Create a composite for the registered filters. - * + * * @param bottomComposite */ private void createRegisteredFilters(Composite bottomComposite) { @@ -550,7 +550,7 @@ public class DialogProblemFilter extends DialogMarkerFilter { definedList.setContentProvider(new IStructuredContentProvider() { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.IStructuredContentProvider#getElements(java.lang.Object) */ @Override @@ -561,7 +561,7 @@ public class DialogProblemFilter extends DialogMarkerFilter { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.IContentProvider#dispose() */ @Override @@ -571,7 +571,7 @@ public class DialogProblemFilter extends DialogMarkerFilter { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.IContentProvider#inputChanged(org.eclipse.jface.viewers.Viewer, * java.lang.Object, java.lang.Object) */ @@ -585,7 +585,7 @@ public class DialogProblemFilter extends DialogMarkerFilter { definedList.setLabelProvider(new LabelProvider() { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.ILabelProvider#getText(java.lang.Object) */ @Override @@ -599,7 +599,7 @@ public class DialogProblemFilter extends DialogMarkerFilter { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.ISelectionChangedListener#selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent) */ @Override @@ -638,7 +638,7 @@ public class DialogProblemFilter extends DialogMarkerFilter { /** * Return the string with the details of filter. - * + * * @param filter * @return String */ @@ -671,7 +671,7 @@ public class DialogProblemFilter extends DialogMarkerFilter { /** * Get the problem types String for filter. - * + * * @param filter * @return String */ @@ -695,7 +695,7 @@ public class DialogProblemFilter extends DialogMarkerFilter { /** * Return the string for severity if there is one. Otherwise return * <code>null</code>. - * + * * @param filter * @return String */ @@ -718,7 +718,7 @@ public class DialogProblemFilter extends DialogMarkerFilter { /** * Return the string for the description if there is one. If not return * <code>null</code>. - * + * * @param filter * @return String or <code>null</code>. */ @@ -740,7 +740,7 @@ public class DialogProblemFilter extends DialogMarkerFilter { /** * Return the string that describes the scope. - * + * * @param filter * @return String or <code>null</code> if the severity does not match. */ @@ -767,7 +767,7 @@ public class DialogProblemFilter extends DialogMarkerFilter { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.DialogMarkerFilter#setSelectedFilter(org.eclipse.jface.viewers.SelectionChangedEvent) */ @Override @@ -778,7 +778,7 @@ public class DialogProblemFilter extends DialogMarkerFilter { /** * Show or hide the system label. - * + * * @param systemLabelShowing */ protected void showSystemLabel(boolean systemLabelShowing) { @@ -790,7 +790,7 @@ public class DialogProblemFilter extends DialogMarkerFilter { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.DialogMarkerFilter#createSelectedFilterArea(org.eclipse.swt.widgets.Composite) */ @Override @@ -831,7 +831,7 @@ public class DialogProblemFilter extends DialogMarkerFilter { /** * Create the label for system filters. - * + * * @param wrapper * @return Label */ @@ -842,7 +842,7 @@ public class DialogProblemFilter extends DialogMarkerFilter { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.DialogMarkerFilter#buttonPressed(int) */ @Override @@ -860,7 +860,7 @@ public class DialogProblemFilter extends DialogMarkerFilter { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.DialogMarkerFilter#okPressed() */ @Override diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/DialogProblemProperties.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/DialogProblemProperties.java index ea5646c1624..2932130df44 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/DialogProblemProperties.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/DialogProblemProperties.java @@ -33,7 +33,7 @@ public class DialogProblemProperties extends DialogMarkerProperties { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markerview.MarkerPropertiesDialog#createAttributesArea(org.eclipse.swt.widgets.Composite) */ @Override @@ -57,7 +57,7 @@ public class DialogProblemProperties extends DialogMarkerProperties { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markerview.MarkerPropertiesDialog#updateDialogFromMarker() */ @Override diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/DialogTaskFilter.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/DialogTaskFilter.java index 39308f27a5e..a8197d82992 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/DialogTaskFilter.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/DialogTaskFilter.java @@ -50,7 +50,7 @@ public class DialogTaskFilter extends /** * Create a new DescriptionGroup. - * + * * @param parent */ public DescriptionGroup(Composite parent) { @@ -111,7 +111,7 @@ public class DialogTaskFilter extends public void setDescription(String text) { if (text == null) { - description.setText(""); //$NON-NLS-1$ + description.setText(""); //$NON-NLS-1$ } else { description.setText(text); } @@ -143,14 +143,14 @@ public class DialogTaskFilter extends /** * Create a new priority group. - * + * * @param parent */ public PriorityGroup(Composite parent) { SelectionListener listener = new SelectionAdapter() { /* * (non-Javadoc) - * + * * @see org.eclipse.swt.events.SelectionListener#widgetSelected(org.eclipse.swt.events.SelectionEvent) */ @Override @@ -267,7 +267,7 @@ public class DialogTaskFilter extends /** * Create a new StatusGroup. - * + * * @param parent */ public StatusGroup(Composite parent) { @@ -351,7 +351,7 @@ public class DialogTaskFilter extends /** * Create a new instance of the receiver - * + * * @param parentShell * @param filters */ @@ -361,7 +361,7 @@ public class DialogTaskFilter extends /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.DialogMarkerFilter#createAttributesArea(org.eclipse.swt.widgets.Composite) */ @Override @@ -377,7 +377,7 @@ public class DialogTaskFilter extends priorityGroup = new PriorityGroup(composite); statusGroup = new StatusGroup(composite); } - + /* (non-Javadoc) * @see org.eclipse.ui.views.markers.internal.DialogMarkerFilter#updateFilterFromUI(org.eclipse.ui.views.markers.internal.MarkerFilter) */ @@ -404,9 +404,9 @@ public class DialogTaskFilter extends taskFilter.setSelectByDone(statusGroup.isStatusEnabled()); taskFilter.setDone(statusGroup.getDone()); - + } - + /* (non-Javadoc) * @see org.eclipse.ui.views.markers.internal.DialogMarkerFilter#updateUIWithFilter(org.eclipse.ui.views.markers.internal.MarkerFilter) */ @@ -426,10 +426,10 @@ public class DialogTaskFilter extends statusGroup.setEnabled(taskFilter.getSelectByDone()); statusGroup.setDone(taskFilter.getDone()); - + super.updateUIWithFilter(filter); - + } /* (non-Javadoc) @@ -442,11 +442,11 @@ public class DialogTaskFilter extends priorityGroup.updateEnablement(enabled); statusGroup.updateEnablement(enabled); } - + /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markerview.FiltersDialog#resetPressed() */ @Override @@ -470,7 +470,7 @@ public class DialogTaskFilter extends /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.DialogMarkerFilter#newFilter(java.lang.String) */ @Override diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/DialogTaskProperties.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/DialogTaskProperties.java index 5fd654699ef..f148c3bf75f 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/DialogTaskProperties.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/DialogTaskProperties.java @@ -35,13 +35,13 @@ import org.eclipse.swt.widgets.Shell; */ public class DialogTaskProperties extends DialogMarkerProperties { - private static final String PRIORITY_HIGH = + private static final String PRIORITY_HIGH = MarkerMessages.propertiesDialog_priorityHigh; - private static final String PRIORITY_NORMAL = + private static final String PRIORITY_NORMAL = MarkerMessages.propertiesDialog_priorityNormal; - private static final String PRIORITY_LOW = + private static final String PRIORITY_LOW = MarkerMessages.propertiesDialog_priorityLow; protected Combo priorityCombo; @@ -75,14 +75,14 @@ public class DialogTaskProperties extends DialogMarkerProperties { Label label = new Label(parent, SWT.NONE); label.setText(MarkerMessages.propertiesDialog_priority); - + Composite composite = new Composite(parent, SWT.NONE); GridLayout layout = new GridLayout(); layout.numColumns = 2; layout.marginWidth = 0; layout.marginHeight = 0; composite.setLayout(layout); - + priorityCombo = new Combo(composite, SWT.READ_ONLY); priorityCombo.setItems(new String[] { PRIORITY_HIGH, PRIORITY_NORMAL, PRIORITY_LOW }); @@ -234,26 +234,26 @@ public class DialogTaskProperties extends DialogMarkerProperties { } return attrs; } - + /* (non-Javadoc) * @see org.eclipse.ui.views.markers.internal.DialogMarkerProperties.getModifyOperationTitle() - * + * * @since 3.3 */ @Override protected String getModifyOperationTitle() { return MarkerMessages.modifyTask_title; } - + /* (non-Javadoc) * @see org.eclipse.ui.views.markers.internal.DialogMarkerProperties.getCreateOperationTitle() - * + * * @since 3.3 */ @Override protected String getCreateOperationTitle() { return MarkerMessages.DialogTaskProperties_CreateTask; - + } } diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/FieldCategory.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/FieldCategory.java index 012473ee87b..10b76fbdf7d 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/FieldCategory.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/FieldCategory.java @@ -16,13 +16,13 @@ import org.eclipse.ui.internal.ide.Policy; /** * FieldCategory is the field for showing categories of markers. - * + * */ public class FieldCategory extends AbstractField { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.IField#getDescription() */ @Override @@ -32,7 +32,7 @@ public class FieldCategory extends AbstractField { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.IField#getDescriptionImage() */ @Override @@ -42,7 +42,7 @@ public class FieldCategory extends AbstractField { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.IField#getColumnHeaderText() */ @Override @@ -52,7 +52,7 @@ public class FieldCategory extends AbstractField { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.IField#getColumnHeaderImage() */ @Override @@ -62,7 +62,7 @@ public class FieldCategory extends AbstractField { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.IField#getValue(java.lang.Object) */ @Override @@ -100,7 +100,7 @@ public class FieldCategory extends AbstractField { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.IField#getImage(java.lang.Object) */ @Override @@ -110,7 +110,7 @@ public class FieldCategory extends AbstractField { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.IField#compare(java.lang.Object, * java.lang.Object) */ @@ -121,7 +121,7 @@ public class FieldCategory extends AbstractField { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.IField#getDefaultDirection() */ @Override @@ -131,7 +131,7 @@ public class FieldCategory extends AbstractField { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.IField#getPreferredWidth() */ @Override diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/FieldCreationTime.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/FieldCreationTime.java index 12454ba3c72..67ec224a8d9 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/FieldCreationTime.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/FieldCreationTime.java @@ -110,7 +110,7 @@ public class FieldCreationTime extends AbstractField { return 0; } } - + /* (non-Javadoc) * @see org.eclipse.ui.views.markers.internal.IField#getDefaultDirection() */ @@ -118,7 +118,7 @@ public class FieldCreationTime extends AbstractField { public int getDefaultDirection() { return TableComparator.ASCENDING; } - + /* (non-Javadoc) * @see org.eclipse.ui.views.markers.internal.IField#getPreferredWidth() */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/FieldDone.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/FieldDone.java index 1aced17e6ea..01de218688e 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/FieldDone.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/FieldDone.java @@ -50,7 +50,7 @@ public class FieldDone extends AbstractField { public Image getDescriptionImage() { return getImage(DESCRIPTION_IMAGE_PATH); } - + /** * Get the image at path. * @param path @@ -60,12 +60,12 @@ public class FieldDone extends AbstractField { return JFaceResources.getResources().createImageWithDefault( IDEWorkbenchPlugin .getIDEImageDescriptor(path)); - + } /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.IField#getColumnHeaderText() */ @Override @@ -75,7 +75,7 @@ public class FieldDone extends AbstractField { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.IField#getColumnHeaderImage() */ @Override @@ -85,7 +85,7 @@ public class FieldDone extends AbstractField { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.IField#getValue(java.lang.Object) */ @Override @@ -95,7 +95,7 @@ public class FieldDone extends AbstractField { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.IField#getImage(java.lang.Object) */ @Override @@ -116,7 +116,7 @@ public class FieldDone extends AbstractField { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.IField#compare(java.lang.Object, * java.lang.Object) */ @@ -132,7 +132,7 @@ public class FieldDone extends AbstractField { int value2 = marker2.getDone(); return value1 - value2; } - + /* (non-Javadoc) * @see org.eclipse.ui.views.markers.internal.IField#getDefaultDirection() */ @@ -140,7 +140,7 @@ public class FieldDone extends AbstractField { public int getDefaultDirection() { return TableComparator.ASCENDING; } - + /* (non-Javadoc) * @see org.eclipse.ui.views.markers.internal.IField#getPreferredWidth() */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/FieldFolder.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/FieldFolder.java index a04df0b98d3..1c0bf2adf2f 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/FieldFolder.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/FieldFolder.java @@ -106,7 +106,7 @@ public class FieldFolder extends AbstractField { public int getDefaultDirection() { return TableComparator.ASCENDING; } - + /* (non-Javadoc) * @see org.eclipse.ui.views.markers.internal.IField#getPreferredWidth() */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/FieldId.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/FieldId.java index 300f7b0f00e..2743b3cbba5 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/FieldId.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/FieldId.java @@ -119,7 +119,7 @@ public class FieldId implements IField { public int getPreferredWidth() { return 0; } - + /* (non-Javadoc) * @see org.eclipse.ui.views.markers.internal.IField#isShowing() */ @@ -128,13 +128,13 @@ public class FieldId implements IField { // Never show id return false; } - + /* (non-Javadoc) * @see org.eclipse.ui.views.markers.internal.IField#setShowing(boolean) */ @Override public void setShowing(boolean showing) { // Ignore - + } } diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/FieldLineNumber.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/FieldLineNumber.java index 77579e58b9d..ef01d7f7fe4 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/FieldLineNumber.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/FieldLineNumber.java @@ -86,7 +86,7 @@ public class FieldLineNumber extends AbstractField { if(concreteNode.getLocationString().length() == 0){ if (concreteNode.getLine() < 0) { return MarkerMessages.Unknown; - } + } return NLS.bind( MarkerMessages.label_lineNumber, Integer.toString(concreteNode.getLine())); @@ -95,17 +95,17 @@ public class FieldLineNumber extends AbstractField { } return Util.EMPTY_STRING; } - + if(obj instanceof IWorkbenchAdapter) { return Util.EMPTY_STRING;//Don't show pending } - + if(obj instanceof IMarker) { return Util.getProperty(IMarker.LINE_NUMBER, (IMarker) obj); - } - + } + return NLS.bind(MarkerMessages.FieldMessage_WrongType,obj.toString()); - + } /* @@ -130,14 +130,14 @@ public class FieldLineNumber extends AbstractField { ConcreteMarker marker1 = (ConcreteMarker) obj1; ConcreteMarker marker2 = (ConcreteMarker) obj2; - + String location1 = marker1.getLocationString(); String location2 = marker2.getLocationString(); - + if(location1.length() == 0 || location2.length() == 0) { return marker1.getLine() - marker2.getLine(); } - + return location1.compareTo(location2); } @@ -148,7 +148,7 @@ public class FieldLineNumber extends AbstractField { public int getDefaultDirection() { return TableComparator.ASCENDING; } - + /* (non-Javadoc) * @see org.eclipse.ui.views.markers.internal.IField#getPreferredWidth() */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/FieldMessage.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/FieldMessage.java index 53b50b0688b..a2360a7da65 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/FieldMessage.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/FieldMessage.java @@ -16,9 +16,9 @@ import org.eclipse.swt.graphics.Image; /** * The message field is the field for the description of the marker. - * + * * @since 3.1 - * + * */ public class FieldMessage extends AbstractField { @@ -30,7 +30,7 @@ public class FieldMessage extends AbstractField { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.IField#getDescription() */ @Override @@ -40,7 +40,7 @@ public class FieldMessage extends AbstractField { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.IField#getDescriptionImage() */ @Override @@ -50,7 +50,7 @@ public class FieldMessage extends AbstractField { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.IField#getColumnHeaderText() */ @Override @@ -60,7 +60,7 @@ public class FieldMessage extends AbstractField { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.IField#getColumnHeaderImage() */ @Override @@ -70,7 +70,7 @@ public class FieldMessage extends AbstractField { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.IField#getValue(java.lang.Object) */ @Override @@ -87,7 +87,7 @@ public class FieldMessage extends AbstractField { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.IField#getImage(java.lang.Object) */ @Override @@ -97,7 +97,7 @@ public class FieldMessage extends AbstractField { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.IField#compare(java.lang.Object, * java.lang.Object) */ @@ -117,7 +117,7 @@ public class FieldMessage extends AbstractField { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.IField#getDefaultDirection() */ @Override @@ -127,7 +127,7 @@ public class FieldMessage extends AbstractField { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.IField#getPreferredWidth() */ @Override diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/FieldPriority.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/FieldPriority.java index 362b3dfc2df..7a40a1974c6 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/FieldPriority.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/FieldPriority.java @@ -47,7 +47,7 @@ public class FieldPriority extends AbstractField { public String getDescription() { return description; } - + /** * Get the image at path. * @param path @@ -57,7 +57,7 @@ public class FieldPriority extends AbstractField { return JFaceResources.getResources().createImageWithDefault( IDEWorkbenchPlugin .getIDEImageDescriptor(path)); - + } /* @@ -133,7 +133,7 @@ public class FieldPriority extends AbstractField { int priority2 = ((TaskMarker) obj2).getPriority(); return priority1 - priority2; } - + /* (non-Javadoc) * @see org.eclipse.ui.views.markers.internal.IField#getDefaultDirection() */ @@ -141,7 +141,7 @@ public class FieldPriority extends AbstractField { public int getDefaultDirection() { return TableComparator.DESCENDING; } - + /* (non-Javadoc) * @see org.eclipse.ui.views.markers.internal.IField#getPreferredWidth() */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/FieldResource.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/FieldResource.java index 586bf42a209..6df6c1af326 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/FieldResource.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/FieldResource.java @@ -113,7 +113,7 @@ public class FieldResource extends AbstractField { public int getDefaultDirection() { return TableComparator.ASCENDING; } - + /* (non-Javadoc) * @see org.eclipse.ui.views.markers.internal.IField#getPreferredWidth() */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/FieldSeverityAndMessage.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/FieldSeverityAndMessage.java index 296d9767ad3..3f23ec3a496 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/FieldSeverityAndMessage.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/FieldSeverityAndMessage.java @@ -19,7 +19,7 @@ import org.eclipse.ui.internal.ide.IDEInternalWorkbenchImages; /** * The FieldSeverityAndMessage is the field that * displays severities and messages. - * + * */ public class FieldSeverityAndMessage extends FieldMessage { @@ -34,7 +34,7 @@ public class FieldSeverityAndMessage extends FieldMessage { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.IField#getDescription() */ @Override @@ -44,7 +44,7 @@ public class FieldSeverityAndMessage extends FieldMessage { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.IField#getImage(java.lang.Object) */ @Override @@ -74,7 +74,7 @@ public class FieldSeverityAndMessage extends FieldMessage { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.IField#compare(java.lang.Object, * java.lang.Object) */ @@ -84,7 +84,7 @@ public class FieldSeverityAndMessage extends FieldMessage { || !(obj2 instanceof ProblemMarker)) { return 0; } - + ProblemMarker marker1 = (ProblemMarker) obj1; ProblemMarker marker2 = (ProblemMarker) obj2; @@ -95,10 +95,10 @@ public class FieldSeverityAndMessage extends FieldMessage { marker2.getDescriptionKey()); return severity2 - severity1; } - + /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.IField#getColumnHeaderImage() */ @Override diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/FilterEnablementAction.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/FilterEnablementAction.java index dcd578a032f..2adb0e70631 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/FilterEnablementAction.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/FilterEnablementAction.java @@ -14,7 +14,7 @@ import org.eclipse.jface.action.Action; import org.eclipse.swt.SWT; /** - * The FilterEnablementAction is an action for enabling + * The FilterEnablementAction is an action for enabling * or disabling a filter. * */ @@ -33,9 +33,9 @@ class FilterEnablementAction extends Action { setChecked(filter.isEnabled()); markerFilter = filter; markerView = view; - + } - + /* (non-Javadoc) * @see org.eclipse.jface.action.IAction#run() */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/IField.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/IField.java index 97ff0be9dcc..9b32e012ea8 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/IField.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/IField.java @@ -41,7 +41,7 @@ public interface IField { /** * @param obj - * @return The String value of the object for this particular field to be displayed to the user. + * @return The String value of the object for this particular field to be displayed to the user. */ String getValue(Object obj); @@ -61,14 +61,14 @@ public interface IField { * <li>a positive number if the value of obj1 is greater than the value of obj2 for this field. */ int compare(Object obj1, Object obj2); - + /** - * Get the default direction for the receiver. Return either + * Get the default direction for the receiver. Return either * {@link TableComparator#ASCENDING } or {@link TableComparator#DESCENDING } * @return int */ int getDefaultDirection(); - + /** * Get the preferred width of the receiver. * @return int @@ -80,12 +80,12 @@ public interface IField { * @return boolean */ boolean isShowing(); - + /** * Set whether or not the receiver is showing. * @param showing */ void setShowing(boolean showing); - - + + } diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/IFilter.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/IFilter.java index a36b7deb442..e1f561254b2 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/IFilter.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/IFilter.java @@ -18,7 +18,7 @@ public interface IFilter { /** * Filters the list of elements. Removes the elements that need to filtered out from the list. - * + * * @param elements */ public Object[] filter(Object[] elements); diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/IMarkerResourceAdapter.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/IMarkerResourceAdapter.java index 8eff036bbe0..28a5cd1347a 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/IMarkerResourceAdapter.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/IMarkerResourceAdapter.java @@ -18,7 +18,7 @@ import org.eclipse.core.runtime.IAdaptable; * <code>IMarkerResourceAdapter</code> is an adapter interface that * supplies the resource to query for markers to display in the marker view * or any of its subclasses. - * + * * Implementors of this interface are typically registered with an * IAdapterFactory for lookup via the getAdapter() mechanism. */ @@ -27,7 +27,7 @@ public interface IMarkerResourceAdapter { /** * Returns the resource to query for the markers to display * for the given adaptable. - * + * * @param adaptable the adaptable being queried. * @return the resource or <code>null</code> if there * is no adapted resource for this object. diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ITableListener.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ITableListener.java index d7f83843c19..f59efd3fb34 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ITableListener.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ITableListener.java @@ -13,7 +13,7 @@ package org.eclipse.ui.views.markers.internal; import java.util.Collection; /** - * + * */ public interface ITableListener { public void contentsFound(Collection contents); diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerAdapter.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerAdapter.java index 2457aab4196..a845a276249 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerAdapter.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerAdapter.java @@ -24,9 +24,9 @@ import org.eclipse.ui.internal.ide.Policy; /** * The MarkerAdapter is the adapter for the deferred update of markers. - * + * * @since 3.1 - * + * */ public class MarkerAdapter { @@ -45,7 +45,7 @@ public class MarkerAdapter { /** * Create a new instance of the receiver that has the markers between * startIndex and endIndex showing. - * + * * @param adapter * @param startIndex * @param endIndex @@ -60,7 +60,7 @@ public class MarkerAdapter { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.MarkerNode#getChildren() */ @Override @@ -94,7 +94,7 @@ public class MarkerAdapter { /** * Return the number of errors being displayed. - * + * * @return int */ int getDisplayedSize() { @@ -106,7 +106,7 @@ public class MarkerAdapter { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.MarkerNode#getParent() */ @Override @@ -116,7 +116,7 @@ public class MarkerAdapter { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.MarkerNode#getDescription() */ @Override @@ -140,7 +140,7 @@ public class MarkerAdapter { /** * Get the total size of the receiver. - * + * * @return int */ private int getTotalSize() { @@ -149,7 +149,7 @@ public class MarkerAdapter { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.MarkerNode#isConcrete() */ @Override @@ -159,7 +159,7 @@ public class MarkerAdapter { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.MarkerNode#getConcreteRepresentative() */ @Override @@ -169,7 +169,7 @@ public class MarkerAdapter { /** * Return the name of the receiver. - * + * * @return String */ public String getName() { @@ -189,7 +189,7 @@ public class MarkerAdapter { /** * Create a new instance of the receiver. - * + * * @param markerView */ MarkerAdapter(MarkerView markerView) { @@ -199,7 +199,7 @@ public class MarkerAdapter { /** * Return the category sorter for the receiver. This should only be called * in hierarchal mode or there will be a ClassCastException. - * + * * @return CategorySorter */ public CategoryComparator getCategorySorter() { @@ -208,7 +208,7 @@ public class MarkerAdapter { /** * Build all of the markers in the receiver. - * + * * @param collector * @param monitor */ @@ -262,9 +262,9 @@ public class MarkerAdapter { newMarkers = SortUtil.getFirst(newMarkers, (Comparator) sorter, markerLimit, mon); - if (monitor.isCanceled()) + if (monitor.isCanceled()) return; - + sorter.sort(view.getViewer(), newMarkers.toArray()); } @@ -298,7 +298,7 @@ public class MarkerAdapter { /** * Return whether or not a hierarchy is showing. - * + * * @return boolean */ boolean isShowingHierarchy() { @@ -312,7 +312,7 @@ public class MarkerAdapter { /** * Break the marker up into categories - * + * * @param markers * @param start * the start index in the markers @@ -371,7 +371,7 @@ public class MarkerAdapter { /** * Get the name for the category from the marker at categoryStart in * markers. - * + * * @param markers * @param categoryStart * @return String @@ -383,7 +383,7 @@ public class MarkerAdapter { /** * Return the current list of markers. - * + * * @return MarkerList */ public MarkerList getCurrentMarkers() { @@ -399,7 +399,7 @@ public class MarkerAdapter { /** * Return the elements in the adapter. - * + * * @param root * @return Object[] */ @@ -421,7 +421,7 @@ public class MarkerAdapter { /** * Return whether or not the receiver has markers without scheduling * anything if it doesn't. - * + * * @return boolean <code>true</code> if the markers have not been * calculated. */ @@ -431,7 +431,7 @@ public class MarkerAdapter { /** * Return the categories for the receiver. - * + * * @return MarkerCategory[] or <code>null</code> if there are no * categories. */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerFilter.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerFilter.java index 746243a4458..e039d049786 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerFilter.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerFilter.java @@ -44,7 +44,7 @@ public class MarkerFilter implements Cloneable { static final String TAG_ENABLED = "enabled"; //$NON-NLS-1$ - + /** * The tag for the scope. */ @@ -119,7 +119,7 @@ public class MarkerFilter implements Cloneable { /** * Create a new instance of the receiver. - * + * * @param filterName * The human readable name for the filter * @param rootTypes @@ -142,7 +142,7 @@ public class MarkerFilter implements Cloneable { /** * List all types known to this MarkerFilter. - * + * * @param types * list to be filled in with types */ @@ -171,7 +171,7 @@ public class MarkerFilter implements Cloneable { /** * Adds all markers in the given set of resources to the given list - * + * * @param resultList * @param resources * @param markerTypeId @@ -311,7 +311,7 @@ public class MarkerFilter implements Cloneable { /** * Subclasses should override to determine if the given marker passes the * filter. - * + * * @param marker * @return <code>true</code> if the marker passes the filter and * <code>false</code> otherwise @@ -322,7 +322,7 @@ public class MarkerFilter implements Cloneable { /** * Searches the workspace for markers that pass this filter. - * + * * @return Collection of markers. */ Collection findMarkers(IProgressMonitor mon, boolean ignoreExceptions) @@ -377,7 +377,7 @@ public class MarkerFilter implements Cloneable { /** * Return the resources in the working set. If it is empty then return the * workspace root. - * + * * @return IResource[] */ IResource[] getResourcesInWorkingSet() { @@ -408,7 +408,7 @@ public class MarkerFilter implements Cloneable { * Returns a set of strings representing the full pathnames to every * resource directly or indirectly contained in the working set. A resource * is in the working set iff its path name can be found in this set. - * + * * @return Set */ private Set getWorkingSetAsSetOfPaths() { @@ -448,7 +448,7 @@ public class MarkerFilter implements Cloneable { /** * Returns the set of projects that contain the given set of resources. - * + * * @param resources * @return IProject[] */ @@ -464,7 +464,7 @@ public class MarkerFilter implements Cloneable { /** * Return the projects for the elements. - * + * * @param elements * collection of IResource or IResourceMapping * @return Collection of IProject @@ -490,7 +490,7 @@ public class MarkerFilter implements Cloneable { /** * Return whether or not the receiver would select the marker. - * + * * @param marker * @return boolean */ @@ -510,7 +510,7 @@ public class MarkerFilter implements Cloneable { /** * Returns whether the specified marker should be filter out or not. - * + * * @param marker * the marker to test * @return true=the marker should not be filtered out false=the marker @@ -579,7 +579,7 @@ public class MarkerFilter implements Cloneable { * Previous versions of this method used IContainmentAdapter for containment * tests. For performance reasons, this is no longer possible. Code that * relies on this behavior should be updated appropriately. - * + * * @param element * resource to test for enclosure by a working set element * @return true if element is enclosed by a working set element and false @@ -612,7 +612,7 @@ public class MarkerFilter implements Cloneable { * <li><code>MarkerFilter.ON_WORKING_SET</code> if showing items in some * working set.</li> * </ul> - * + * * @return int */ public int getOnResource() { @@ -621,7 +621,7 @@ public class MarkerFilter implements Cloneable { /** * Sets the type of filtering by selection. - * + * * @param onResource * must be one of: * <ul> @@ -647,7 +647,7 @@ public class MarkerFilter implements Cloneable { /** * Sets the focused resources. - * + * * @param resources */ public void setFocusResource(IResource[] resources) { @@ -668,7 +668,7 @@ public class MarkerFilter implements Cloneable { /** * <b>Warning:</b> for internal package use only. Return the root marker * types. - * + * * @return the root marker types. */ public List getRootTypes() { @@ -678,7 +678,7 @@ public class MarkerFilter implements Cloneable { /** * <b>Warning:</b> for internal package use only. Return the selected * types. - * + * * @return the selected marker types to be displayed. */ public List getSelectedTypes() { @@ -687,7 +687,7 @@ public class MarkerFilter implements Cloneable { /** * Find the typeModel entry that matches id. - * + * * @param id * the ID for a marker type * @return MarkerType or <code>null</code> if it is not found. @@ -732,7 +732,7 @@ public class MarkerFilter implements Cloneable { /** * Restore the state in the memento. - * + * * @param memento */ public final void restoreState(IMemento memento) { @@ -744,7 +744,7 @@ public class MarkerFilter implements Cloneable { /** * Restore the state of the receiver in the supplied settings. This is kept * for backwards compatibility with 3.1 dialog settings. - * + * * @param settings */ public void restoreFilterSettings(IDialogSettings settings) { @@ -827,7 +827,7 @@ public class MarkerFilter implements Cloneable { /** * Set the selected types based on the value. - * + * * @param selectedTypesValue */ void generateSelectedTypes(String selectedTypesValue) { @@ -847,7 +847,7 @@ public class MarkerFilter implements Cloneable { /** * Find the markerType matching typeName - * + * * @param typeName * @return MarkerType */ @@ -857,7 +857,7 @@ public class MarkerFilter implements Cloneable { /** * Restore the state of the receiver in the supplied settings. - * + * * @param memento */ protected void restoreFilterSettings(IMemento memento) { @@ -934,7 +934,7 @@ public class MarkerFilter implements Cloneable { /** * Save the filter settings for the receiver. - * + * * @param settings */ public void saveFilterSettings(IMemento settings) { @@ -965,7 +965,7 @@ public class MarkerFilter implements Cloneable { /** * Get the name of the receiver - * + * * @return String */ public String getName() { @@ -974,7 +974,7 @@ public class MarkerFilter implements Cloneable { /** * Make a clone of the receiver. - * + * * @return MarkerFilter * @throws CloneNotSupportedException */ @@ -984,7 +984,7 @@ public class MarkerFilter implements Cloneable { /** * Set the selected types. - * + * * @param selectedTypes * List of MarkerType. */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerGroup.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerGroup.java index 3a3c09413ad..1a0d68d493b 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerGroup.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerGroup.java @@ -32,13 +32,13 @@ import org.eclipse.ui.views.markers.MarkerItem; /** * @since 3.2 - * + * */ public class MarkerGroup { /** * Create a new MarkerGroup from element. - * + * * @param element * @return MarkerGroup */ @@ -61,7 +61,7 @@ public class MarkerGroup { /** * Create a mapping for an attribute with name attributeName and value * value to the supplied entry. - * + * * @param entry * @param attributeName * @param value @@ -76,7 +76,7 @@ public class MarkerGroup { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.FieldMarkerGroup.EntryMapping#hasAttributes() */ @Override @@ -86,7 +86,7 @@ public class MarkerGroup { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.FieldMarkerGroup.EntryMapping#testAttribute(org.eclipse.ui.views.markers.internal.ConcreteMarker) */ @Override @@ -116,7 +116,7 @@ public class MarkerGroup { /** * Create an entry mapping for the receiver. - * + * * @param entry */ EntryMapping(MarkerGroupingEntry entry) { @@ -125,7 +125,7 @@ public class MarkerGroup { /** * Return whether or not the receiver tests attributes. - * + * * @return boolean */ public boolean hasAttributes() { @@ -134,7 +134,7 @@ public class MarkerGroup { /** * Test the attribute of the marker to find a grouping. - * + * * @param marker * @return MarkerGroupingEntry or <code>null</code> if there is not * entry. @@ -156,7 +156,7 @@ public class MarkerGroup { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.IField#compare(java.lang.Object, * java.lang.Object) */ @@ -173,7 +173,7 @@ public class MarkerGroup { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.IField#getColumnHeaderImage() */ @Override @@ -183,7 +183,7 @@ public class MarkerGroup { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.IField#getColumnHeaderText() */ @Override @@ -193,7 +193,7 @@ public class MarkerGroup { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.IField#getDefaultDirection() */ @Override @@ -203,7 +203,7 @@ public class MarkerGroup { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.IField#getDescription() */ @Override @@ -213,7 +213,7 @@ public class MarkerGroup { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.IField#getDescriptionImage() */ @Override @@ -223,7 +223,7 @@ public class MarkerGroup { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.IField#getImage(java.lang.Object) */ @Override @@ -233,7 +233,7 @@ public class MarkerGroup { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.IField#getPreferredWidth() */ @Override @@ -243,7 +243,7 @@ public class MarkerGroup { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.IField#getValue(java.lang.Object) */ @Override @@ -260,7 +260,7 @@ public class MarkerGroup { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.IField#isShowing() */ @Override @@ -270,7 +270,7 @@ public class MarkerGroup { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.IField#setShowing(boolean) */ @Override @@ -283,9 +283,9 @@ public class MarkerGroup { /** * GroupMarkerField is the MarkerField used for MarkerGroupungs - * + * * @since 3.4 - * + * */ class GroupMarkerField extends MarkerField { @@ -294,7 +294,7 @@ public class MarkerGroup { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.api.MarkerField#getValue(org.eclipse.ui.internal.provisional.views.markers.api.MarkerItem) */ @Override @@ -306,7 +306,7 @@ public class MarkerGroup { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.api.MarkerField#compare(org.eclipse.ui.internal.provisional.views.markers.api.MarkerItem, * org.eclipse.ui.internal.provisional.views.markers.api.MarkerItem) */ @@ -338,7 +338,7 @@ public class MarkerGroup { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.api.MarkerField#getName() */ @Override @@ -363,7 +363,7 @@ public class MarkerGroup { /** * Create a new instance of the receiver called name with id identifier. - * + * * @param element */ protected MarkerGroup(IConfigurationElement element) { @@ -378,10 +378,10 @@ public class MarkerGroup { * Process the markerContentEntries for the reciever. */ private void processEntries() { - + if(configurationElement == null) return; - + IConfigurationElement[] markerEntryElements = configurationElement .getChildren(MarkerSupportRegistry.MARKER_GROUPING_ENTRY); @@ -448,7 +448,7 @@ public class MarkerGroup { /** * Add the entry for the markerType. - * + * * @param markerType * @param entry */ @@ -474,7 +474,7 @@ public class MarkerGroup { /** * Find the group value. If it cannot be found in an attribute mapping then * return null; - * + * * @param concreteMarker * @return String or <code>null</code> */ @@ -489,7 +489,7 @@ public class MarkerGroup { /** * Find the group for the marker of the specified marker type. - * + * * @param type * @param marker * @return MarkerGroupingEntry @@ -522,7 +522,7 @@ public class MarkerGroup { /** * Return the field for the receiver. - * + * * @return {@link IField} */ public IField getField() { @@ -531,7 +531,7 @@ public class MarkerGroup { /** * Return the id of the receiver. - * + * * @return String */ public String getId() { @@ -540,7 +540,7 @@ public class MarkerGroup { /** * Get the attribute mapping for the marker - * + * * @param marker * @return MarkerGroupingEntry */ @@ -554,7 +554,7 @@ public class MarkerGroup { /** * Return the markerField for the receiver. - * + * * @return MarkerField */ public MarkerField getMarkerField() { @@ -563,7 +563,7 @@ public class MarkerGroup { /** * Return the marker types that match and are subtypes of markerType. - * + * * @param markerType * @return MarkerType[] */ @@ -591,7 +591,7 @@ public class MarkerGroup { /** * Return the title for the receiver. - * + * * @return String */ public String getTitle() { @@ -600,7 +600,7 @@ public class MarkerGroup { /** * Add an attributeMapping for the markerType. - * + * * @param attributeGrouping * @param entry * @param attributeValue @@ -616,7 +616,7 @@ public class MarkerGroup { /** * Remove the entry from all of the entries in the receiver. - * + * * @param entry */ public void remove(MarkerGroupingEntry entry) { @@ -640,7 +640,7 @@ public class MarkerGroup { /** * Set entry and the default entry for the supplied markerType. - * + * * @param markerType * @param entry */ @@ -652,7 +652,7 @@ public class MarkerGroup { /** * Unmap the attributeMarkerGrouping from the receiver. - * + * * @param attributeMarkerGrouping */ public void unmap(AttributeMarkerGrouping attributeMarkerGrouping) { @@ -673,7 +673,7 @@ public class MarkerGroup { } /** - * Returns the comparator that can be used for + * Returns the comparator that can be used for * sorting the MarkerGroupingEntry(s) in the group. * @return Comparator */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerGroupingEntry.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerGroupingEntry.java index 425f6752586..e3d815757c9 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerGroupingEntry.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerGroupingEntry.java @@ -17,9 +17,9 @@ import org.eclipse.ui.internal.views.markers.MarkerSupportInternalUtilities; /** * MarkerGroupingEntry is the configuration object for the markerGroupingEntry * extension. - * + * * @since 3.2 - * + * */ public class MarkerGroupingEntry { @@ -52,7 +52,7 @@ public class MarkerGroupingEntry { /** * Set the receiver as the default grouping entry for type markerType. - * + * * @param markerType * String */ @@ -63,7 +63,7 @@ public class MarkerGroupingEntry { /** * Return the id for the receiver. - * + * * @return String */ public String getId() { @@ -72,7 +72,7 @@ public class MarkerGroupingEntry { /** * Set the group for the receiver. - * + * * @param group */ public void setGroup(MarkerGroup group) { @@ -82,7 +82,7 @@ public class MarkerGroupingEntry { /** * Get the label of the receiver. - * + * * @return String */ public String getLabel() { @@ -91,7 +91,7 @@ public class MarkerGroupingEntry { /** * Return the priority of the receiver. - * + * * @return int */ public int getPriority() { @@ -100,7 +100,7 @@ public class MarkerGroupingEntry { /** * Return the marker group for the receiver. - * + * * @return FieldMarkerGroup */ public MarkerGroup getMarkerGroup() { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerList.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerList.java index 592cfb49468..bf5702dad9f 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerList.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerList.java @@ -29,7 +29,7 @@ import org.eclipse.core.runtime.IProgressMonitor; * Represents a list of ConcreteMarkers. */ public class MarkerList { - + private int[] markerCounts = null; private ConcreteMarker[] markers; @@ -54,7 +54,7 @@ public class MarkerList { /** * Creates a list containing the given set of markers - * + * * @param markers */ public MarkerList(ConcreteMarker[] markers) { @@ -77,7 +77,7 @@ public class MarkerList { /** * Returns the marker table or lazily creates it if it doesn't exist yet - * + * * @return a map of IMarker onto ConcreteMarker, containing all the * ConcreteMarkers in the list */ @@ -97,7 +97,7 @@ public class MarkerList { /** * Returns an existing marker from the list that is associated with the * given IMarker - * + * * @param toFind * the IMarker to lookup in the list * @return the ConcreteMarker that corresponds to the given IMarker @@ -105,7 +105,7 @@ public class MarkerList { public ConcreteMarker getMarker(IMarker toFind) { return (ConcreteMarker) getMarkerMap().get(toFind); } - + /** * Return the list of IMarkers contained in the receiver. * @return IMarker[] @@ -113,7 +113,7 @@ public class MarkerList { public IMarker[] getIMarkers(){ IMarker[] iMarkers = new IMarker[markers.length]; for (int i = 0; i < markers.length; i++) { - iMarkers[i] = markers[i].getMarker(); + iMarkers[i] = markers[i].getMarker(); } return iMarkers; } @@ -171,7 +171,7 @@ public class MarkerList { /** * Computes the set of markers that match the given filter - * + * * @param filters * the filters to apply * @param mon @@ -196,7 +196,7 @@ public class MarkerList { /** * Returns a new MarkerList containing all markers in the workspace of the * specified types - * + * * @param types * @return IMarker[] * @throws CoreException @@ -217,7 +217,7 @@ public class MarkerList { /** * Returns the markers in the list. Read-only. - * + * * @return an array of markers in the list */ public ConcreteMarker[] toArray() { @@ -226,7 +226,7 @@ public class MarkerList { /** * Returns the markers in this list. Read-only. - * + * * @return the markers in the list */ // public Collection getMarkers() { @@ -234,7 +234,7 @@ public class MarkerList { // } /** * Returns the number of items in the list - * + * * @return the number of items */ public int getItemCount() { @@ -243,7 +243,7 @@ public class MarkerList { /** * Returns the number of error markers in the list - * + * * @return the number of errors */ public int getErrors() { @@ -252,7 +252,7 @@ public class MarkerList { /** * Returns the number of info markers in the list - * + * * @return the number of info markers */ public int getInfos() { @@ -261,7 +261,7 @@ public class MarkerList { /** * Returns the number of warning markers in the list - * + * * @return the number of warning markers */ public int getWarnings() { @@ -271,7 +271,7 @@ public class MarkerList { /** * Returns an array of marker counts where getMarkerCounts()[severity] is * the number of markers in the list with the given severity. - * + * * @return an array of marker counts */ private int[] getMarkerCounts() { @@ -296,7 +296,7 @@ public class MarkerList { /** * Get the array that is the internal representation of the marker list * without making a copy. - * + * * @return Object[] */ public Object[] getArray() { @@ -305,7 +305,7 @@ public class MarkerList { /** * Get the size of the receiver. - * + * * @return int */ public int getSize() { @@ -314,7 +314,7 @@ public class MarkerList { /** * Return the markers at index - * + * * @param index * @return ConcreteMarker */ @@ -329,19 +329,19 @@ public class MarkerList { */ public void updateMarkers(Collection addedMarkers,Collection removedMarkers) { List list = new ArrayList(asList()); - list.addAll(addedMarkers); - list.removeAll(removedMarkers); + list.addAll(addedMarkers); + list.removeAll(removedMarkers); markers = new ConcreteMarker[list.size()]; list.toArray(markers); } - + /** * Refresh all of the markers in the receiver. */ public void refreshAll() { for (int i = 0; i < markers.length; i++) { markers[i].refresh(); - } + } } /** @@ -351,6 +351,6 @@ public class MarkerList { for (int i = 0; i < markers.length; i++) { markers[i].setGroup(null); } - + } } diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerMessages.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerMessages.java index 486b7f16c7e..b3782100e27 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerMessages.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerMessages.java @@ -15,7 +15,7 @@ import org.eclipse.osgi.util.NLS; /** * MarkerMessages is the class that handles the messages for the markers. - * + * */ public class MarkerMessages extends NLS { @@ -69,14 +69,14 @@ public class MarkerMessages extends NLS { public static String selectAllAction_calculating; public static String selectAllAction_applying; public static String propertiesAction_title; - + public static String deleteActionConfirmTitle; public static String deleteActionConfirmMessage; public static String filtersDialog_title; public static String configureFiltersCommand_title; public static String configureFiltersDialog_title; - + public static String configEditDialog_name; public static String filtersDialog_showItemsOfType; @@ -216,7 +216,7 @@ public class MarkerMessages extends NLS { public static String MarkerFilter_renameName; public static String MarkerFilter_showAllCommand_title; public static String MarkerFilter_ConfigureContentsCommand_title; - + public static String MarkerFilterDialog_title; public static String MarkerFilterDialog_message; public static String MarkerFilterDialog_emptyMessage; @@ -234,7 +234,7 @@ public class MarkerMessages extends NLS { public static String MarkerPreferences_HiddenColumnsTitle; public static String MarkerPreferences_AtLeastOneVisibleColumn; public static String MarkerPreferences_WidthOfShownColumn; - + public static String ProblemFilterDialog_System_Filters_Title; public static String ProblemFilterDialog_All_Problems; public static String ProblemFilterDialog_Selected_Types; diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerNode.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerNode.java index 408293a9c91..502ecbb8911 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerNode.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerNode.java @@ -12,7 +12,7 @@ package org.eclipse.ui.views.markers.internal; /** - * The MarkerNode class is the class that handles category nodes and + * The MarkerNode class is the class that handles category nodes and * concrete markers. * */ @@ -50,6 +50,6 @@ public abstract class MarkerNode { * @return ConcreteMarker */ public abstract ConcreteMarker getConcreteRepresentative(); - + } diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerNodeRefreshRecord.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerNodeRefreshRecord.java index 1b6be7c877e..b51ec09c418 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerNodeRefreshRecord.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerNodeRefreshRecord.java @@ -18,7 +18,7 @@ class MarkerNodeRefreshRecord{ Collection removedMarkers; Collection addedMarkers; Collection changedMarkers; - + /** * Create a new instance of the receiver with the supplied markers. * @param removed @@ -37,15 +37,15 @@ class MarkerNodeRefreshRecord{ */ public void remove(MarkerNode node) { removedMarkers.add(node); - + } - + /** * Add the node to the list of adds. * @param node */ public void add(MarkerNode node) { addedMarkers.add(node); - + } }
\ No newline at end of file diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerResolutionDialog.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerResolutionDialog.java index b3c8e5d4f55..f36a31a8535 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerResolutionDialog.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerResolutionDialog.java @@ -62,9 +62,9 @@ import org.eclipse.ui.views.markers.WorkbenchMarkerResolution; /** * The MarkerResolutionDialog is the dialog used to select a marker resolution. - * + * * @since 3.2 - * + * */ public class MarkerResolutionDialog extends TitleAreaDialog { @@ -92,7 +92,7 @@ public class MarkerResolutionDialog extends TitleAreaDialog { /** * Create a new instance of the receiver with the given resolutions. - * + * * @param shell * @param marker * the marker to show @@ -112,7 +112,7 @@ public class MarkerResolutionDialog extends TitleAreaDialog { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.window.Window#configureShell(org.eclipse.swt.widgets.Shell) */ @Override @@ -123,7 +123,7 @@ public class MarkerResolutionDialog extends TitleAreaDialog { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.dialogs.TitleAreaDialog#createDialogArea(org.eclipse.swt.widgets.Composite) */ @Override @@ -166,7 +166,7 @@ public class MarkerResolutionDialog extends TitleAreaDialog { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.IContentProvider#dispose() */ @Override @@ -176,7 +176,7 @@ public class MarkerResolutionDialog extends TitleAreaDialog { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.IContentProvider#inputChanged(org.eclipse.jface.viewers.Viewer, * java.lang.Object, java.lang.Object) */ @@ -198,7 +198,7 @@ public class MarkerResolutionDialog extends TitleAreaDialog { .addSelectionChangedListener(new ISelectionChangedListener() { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.ISelectionChangedListener#selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent) */ @Override @@ -283,7 +283,7 @@ public class MarkerResolutionDialog extends TitleAreaDialog { /** * Choose a good whitespace position for a page break. Start in the middle * of the message. - * + * * @param message * @return int -1 if there is no whitespace to choose. */ @@ -303,7 +303,7 @@ public class MarkerResolutionDialog extends TitleAreaDialog { resolutionsComparator = new ViewerComparator() { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.ViewerComparator#compare(org.eclipse.jface.viewers.Viewer, * java.lang.Object, java.lang.Object) */ @@ -317,7 +317,7 @@ public class MarkerResolutionDialog extends TitleAreaDialog { /** * Create the buttons for the table. - * + * * @param control * @return Composite */ @@ -338,7 +338,7 @@ public class MarkerResolutionDialog extends TitleAreaDialog { selectAll.addSelectionListener(new SelectionAdapter() { /* * (non-Javadoc) - * + * * @see org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent) */ @Override @@ -356,7 +356,7 @@ public class MarkerResolutionDialog extends TitleAreaDialog { deselectAll.addSelectionListener(new SelectionAdapter() { /* * (non-Javadoc) - * + * * @see org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent) */ @Override @@ -374,7 +374,7 @@ public class MarkerResolutionDialog extends TitleAreaDialog { addMatching.addSelectionListener(new SelectionAdapter() { /* * (non-Javadoc) - * + * * @see org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent) */ @Override @@ -396,7 +396,7 @@ public class MarkerResolutionDialog extends TitleAreaDialog { /** * Return the single selected WorkbenchMarkerResolution if there is one. - * + * * @return WorkbenchMarkerResolution or <code>null</code> if there is no * selection or the selection is not a WorkbenchMarkerResolution. */ @@ -412,7 +412,7 @@ public class MarkerResolutionDialog extends TitleAreaDialog { /** * Return the marker resolution that is currenly selected/ - * + * * @return IMarkerResolution or <code>null</code> if there is no * selection. */ @@ -431,7 +431,7 @@ public class MarkerResolutionDialog extends TitleAreaDialog { /** * Add all of the markers that have resolutions compatible with the * receiver. - * + * * @return boolean <code>true</code> if the operation completed. */ protected boolean addMatchingMarkers( @@ -454,7 +454,7 @@ public class MarkerResolutionDialog extends TitleAreaDialog { BusyIndicator.showWhile(getShell().getDisplay(), new Runnable() { /* * (non-Javadoc) - * + * * @see java.lang.Runnable#run() */ @Override @@ -486,7 +486,7 @@ public class MarkerResolutionDialog extends TitleAreaDialog { /** * Spin the event loop and see if the cancel button was pressed. If it was * then clear the flags and return <code>true</code>. - * + * * @return boolean */ private boolean progressCancelled() { @@ -502,7 +502,7 @@ public class MarkerResolutionDialog extends TitleAreaDialog { /** * Create the table for the markers/ - * + * * @param control */ private void createMarkerTable(Composite control) { @@ -514,7 +514,7 @@ public class MarkerResolutionDialog extends TitleAreaDialog { markersTable.setContentProvider(new IStructuredContentProvider() { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.IContentProvider#dispose() */ @Override @@ -524,7 +524,7 @@ public class MarkerResolutionDialog extends TitleAreaDialog { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.IStructuredContentProvider#getElements(java.lang.Object) */ @Override @@ -542,7 +542,7 @@ public class MarkerResolutionDialog extends TitleAreaDialog { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.IContentProvider#inputChanged(org.eclipse.jface.viewers.Viewer, * java.lang.Object, java.lang.Object) */ @@ -557,7 +557,7 @@ public class MarkerResolutionDialog extends TitleAreaDialog { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.ITableLabelProvider#getColumnImage(java.lang.Object, * int) */ @@ -571,7 +571,7 @@ public class MarkerResolutionDialog extends TitleAreaDialog { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.ITableLabelProvider#getColumnText(java.lang.Object, * int) */ @@ -590,7 +590,7 @@ public class MarkerResolutionDialog extends TitleAreaDialog { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.IBaseLabelProvider#addListener(org.eclipse.jface.viewers.ILabelProviderListener) */ @Override @@ -601,7 +601,7 @@ public class MarkerResolutionDialog extends TitleAreaDialog { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.IBaseLabelProvider#dispose() */ @Override @@ -612,7 +612,7 @@ public class MarkerResolutionDialog extends TitleAreaDialog { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.IBaseLabelProvider#isLabelProperty(java.lang.Object, * java.lang.String) */ @@ -623,7 +623,7 @@ public class MarkerResolutionDialog extends TitleAreaDialog { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.IBaseLabelProvider#removeListener(org.eclipse.jface.viewers.ILabelProviderListener) */ @Override @@ -636,7 +636,7 @@ public class MarkerResolutionDialog extends TitleAreaDialog { markersTable.addCheckStateListener(new ICheckStateListener() { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.ICheckStateListener#checkStateChanged(org.eclipse.jface.viewers.CheckStateChangedEvent) */ @Override @@ -678,7 +678,7 @@ public class MarkerResolutionDialog extends TitleAreaDialog { /** * Set the dialog to be complete. - * + * * @param complete */ protected void setComplete(boolean complete) { @@ -688,7 +688,7 @@ public class MarkerResolutionDialog extends TitleAreaDialog { /** * Return all of the resolutions to choose from in the receiver. - * + * * @return IMarkerResolution[] */ public IMarkerResolution[] getResolutions() { @@ -697,7 +697,7 @@ public class MarkerResolutionDialog extends TitleAreaDialog { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.dialogs.Dialog#create() */ @Override @@ -712,7 +712,7 @@ public class MarkerResolutionDialog extends TitleAreaDialog { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.dialogs.Dialog#okPressed() */ @Override @@ -760,7 +760,7 @@ public class MarkerResolutionDialog extends TitleAreaDialog { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.dialogs.Dialog#cancelPressed() */ @Override @@ -772,7 +772,7 @@ public class MarkerResolutionDialog extends TitleAreaDialog { } super.cancelPressed(); } - + /* * (non-Javadoc) * @see org.eclipse.jface.dialogs.Dialog#isResizable() diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerSelectionProviderAction.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerSelectionProviderAction.java index 33af605c540..3791734779f 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerSelectionProviderAction.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerSelectionProviderAction.java @@ -29,14 +29,14 @@ import org.eclipse.ui.internal.ide.IDEWorkbenchPlugin; /** * MarkerSelectionProviderAction is the abstract super class of the selection * provider actions used by marker views. - * + * */ public abstract class MarkerSelectionProviderAction extends SelectionProviderAction { /** * Create a new instance of the receiver. - * + * * @param provider * @param text */ @@ -48,7 +48,7 @@ public abstract class MarkerSelectionProviderAction extends /** * Get the selected markers in the receiver. - * + * * @return IMarker[] */ IMarker[] getSelectedMarkers() { @@ -58,7 +58,7 @@ public abstract class MarkerSelectionProviderAction extends /** * Return the selected markers for the structured selection. - * + * * @param structured * IStructuredSelection * @return IMarker[] @@ -82,7 +82,7 @@ public abstract class MarkerSelectionProviderAction extends /** * Get the selected marker in the receiver. - * + * * @return IMarker */ IMarker getSelectedMarker() { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerSelectionProviderAdapter.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerSelectionProviderAdapter.java index 47c64aea8ed..26e2202513e 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerSelectionProviderAdapter.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerSelectionProviderAdapter.java @@ -51,7 +51,7 @@ class MarkerSelectionProviderAdapter implements ISelectionProvider { theSelection = selection; final SelectionChangedEvent e = new SelectionChangedEvent(this, selection); Object[] listenersArray = listeners.toArray(); - + for (int i = 0; i < listenersArray.length; i++) { final ISelectionChangedListener l = (ISelectionChangedListener) listenersArray[i]; SafeRunner.run(new SafeRunnable() { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerSorter.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerSorter.java index 6e174f3b1a7..a5d08c7c0e9 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerSorter.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerSorter.java @@ -18,7 +18,7 @@ abstract class MarkerSorter implements Comparator { /** * Sort the array of markers in lastMarkers in place. - * + * * @param viewer * @param markers */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerTreeContentProvider.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerTreeContentProvider.java index 1538bf351c0..225e6332230 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerTreeContentProvider.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerTreeContentProvider.java @@ -17,9 +17,9 @@ import org.eclipse.jface.viewers.Viewer; /** * The MarkerTreeContentProvider is the content provider for the marker trees. - * + * * @since 3.2 - * + * */ public class MarkerTreeContentProvider implements ITreeContentProvider { @@ -37,7 +37,7 @@ public class MarkerTreeContentProvider implements ITreeContentProvider { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.ITreeContentProvider#getChildren(java.lang.Object) */ @Override @@ -50,7 +50,7 @@ public class MarkerTreeContentProvider implements ITreeContentProvider { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.ITreeContentProvider#getParent(java.lang.Object) */ @Override @@ -63,7 +63,7 @@ public class MarkerTreeContentProvider implements ITreeContentProvider { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.ITreeContentProvider#hasChildren(java.lang.Object) */ @Override @@ -76,7 +76,7 @@ public class MarkerTreeContentProvider implements ITreeContentProvider { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.IStructuredContentProvider#getElements(java.lang.Object) */ @Override @@ -86,7 +86,7 @@ public class MarkerTreeContentProvider implements ITreeContentProvider { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.IContentProvider#dispose() */ @Override @@ -96,7 +96,7 @@ public class MarkerTreeContentProvider implements ITreeContentProvider { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.IContentProvider#inputChanged(org.eclipse.jface.viewers.Viewer, * java.lang.Object, java.lang.Object) */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerType.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerType.java index 800567ad09e..cd22012d592 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerType.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerType.java @@ -136,7 +136,7 @@ public class MarkerType { /** * Returns whether this marker type is considered to be a subtype of - * the given marker type. + * the given marker type. * * @return boolean <code>true</code>if this type is the same as (or a subtype of) the given type */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerTypesModel.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerTypesModel.java index b6db5f3d0d3..37790f0a79c 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerTypesModel.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerTypesModel.java @@ -26,7 +26,7 @@ import org.eclipse.core.runtime.Platform; * the list does not change frequently. */ public class MarkerTypesModel { - + /** * Return the singleton implementation. * @return MarkerTypesModel diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerView.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerView.java index b9bb447a0de..a0fb7da9ac5 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerView.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerView.java @@ -109,7 +109,7 @@ import org.eclipse.ui.views.tasklist.ITaskListResourceAdapter; /** * MarkerView is the abstract super class of the marker based views. - * + * */ public abstract class MarkerView extends TableView { @@ -146,7 +146,7 @@ public abstract class MarkerView extends TableView { /* * (non-Javadoc) - * + * * @see org.eclipse.core.runtime.jobs.Job#run(org.eclipse.core.runtime.IProgressMonitor) */ @Override @@ -158,7 +158,7 @@ public abstract class MarkerView extends TableView { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.progress.WorkbenchJob#shouldRun() */ @Override @@ -169,7 +169,7 @@ public abstract class MarkerView extends TableView { /* * (non-Javadoc) - * + * * @see org.eclipse.core.runtime.jobs.Job#belongsTo(java.lang.Object) */ @Override @@ -219,7 +219,7 @@ public abstract class MarkerView extends TableView { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.progress.UIJob#runInUIThread(org.eclipse.core.runtime.IProgressMonitor) */ @Override @@ -307,7 +307,7 @@ public abstract class MarkerView extends TableView { /** * Add the category to the list of expanded categories. - * + * * @param category */ public void addExpandedCategory(MarkerCategory category) { @@ -317,7 +317,7 @@ public abstract class MarkerView extends TableView { /** * Remove the category from the list of expanded ones. - * + * * @param category */ public void removeExpandedCategory(MarkerCategory category) { @@ -327,7 +327,7 @@ public abstract class MarkerView extends TableView { /* * (non-Javadoc) - * + * * @see org.eclipse.core.runtime.jobs.Job#belongsTo(java.lang.Object) */ @Override @@ -337,7 +337,7 @@ public abstract class MarkerView extends TableView { /** * Preserve the selection for reselection after the next update. - * + * * @param selection */ public void saveSelection(ISelection selection) { @@ -358,7 +358,7 @@ public abstract class MarkerView extends TableView { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.progress.WorkbenchJob#shouldRun() */ @Override @@ -382,7 +382,7 @@ public abstract class MarkerView extends TableView { /* * (non-Javadoc) - * + * * @see org.eclipse.core.resources.IResourceChangeListener#resourceChanged(org.eclipse.core.resources.IResourceChangeEvent) */ @Override @@ -409,7 +409,7 @@ public abstract class MarkerView extends TableView { /** * Returns whether or not the given even contains marker deltas for this * view. - * + * * @param event * the resource change event * @return <code>true</code> if the event contains at least one @@ -453,7 +453,7 @@ public abstract class MarkerView extends TableView { /** * Return the currently selected concrete marker or <code>null</code> * if there isn't one. - * + * * @return ConcreteMarker */ private ConcreteMarker getSelectedConcreteMarker() { @@ -470,7 +470,7 @@ public abstract class MarkerView extends TableView { /* * (non-Javadoc) - * + * * @see org.eclipse.help.IContextProvider#getSearchExpression(java.lang.Object) */ @Override @@ -531,7 +531,7 @@ public abstract class MarkerView extends TableView { preferenceListener = new IPropertyChangeListener() { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.util.IPropertyChangeListener#propertyChange(org.eclipse.jface.util.PropertyChangeEvent) */ @Override @@ -549,7 +549,7 @@ public abstract class MarkerView extends TableView { /** * Get the current markers for the receiver. - * + * * @return MarkerList */ public MarkerList getCurrentMarkers() { @@ -558,7 +558,7 @@ public abstract class MarkerView extends TableView { /** * Get the marker adapter for the receiver. - * + * * @return MarkerAdapter */ protected MarkerAdapter getMarkerAdapter() { @@ -567,7 +567,7 @@ public abstract class MarkerView extends TableView { /** * Update for the change in the contents. - * + * * @param monitor */ public void updateForContentsRefresh(IProgressMonitor monitor) { @@ -578,7 +578,7 @@ public abstract class MarkerView extends TableView { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.IViewPart#init(org.eclipse.ui.IViewSite, * org.eclipse.ui.IMemento) */ @@ -647,7 +647,7 @@ public abstract class MarkerView extends TableView { /** * Write the filter settings to the memento. - * + * * @param memento */ protected void writeFiltersSettings(XMLMemento memento) { @@ -661,14 +661,14 @@ public abstract class MarkerView extends TableView { /** * Get the name of the filters preference for instances of the receiver. - * + * * @return String */ abstract String getFiltersPreferenceName(); /** * Restore the filters from the mimento. - * + * * @param memento */ void restoreFilters(IMemento memento) { @@ -707,7 +707,7 @@ public abstract class MarkerView extends TableView { /** * Create a default filter for the receiver. - * + * */ private void createDefaultFilter() { MarkerFilter filter = createFilter(MarkerMessages.MarkerFilter_defaultFilterName); @@ -716,7 +716,7 @@ public abstract class MarkerView extends TableView { /** * Create a filter called name. - * + * * @param name * @return MarkerFilter */ @@ -724,14 +724,14 @@ public abstract class MarkerView extends TableView { /** * Return the memento tag for the receiver. - * + * * @return String */ protected abstract String getSectionTag(); /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.internal.tableview.TableView#createPartControl(org.eclipse.swt.widgets.Composite) */ @Override @@ -752,7 +752,7 @@ public abstract class MarkerView extends TableView { getViewer().getControl().addHelpListener(new HelpListener() { /* * (non-Javadoc) - * + * * @see org.eclipse.swt.events.HelpListener#helpRequested(org.eclipse.swt.events.HelpEvent) */ @Override @@ -773,7 +773,7 @@ public abstract class MarkerView extends TableView { /* * (non-Javadoc) - * + * * @see org.eclipse.core.runtime.IAdaptable#getAdapter(java.lang.Class) */ @Override @@ -808,7 +808,7 @@ public abstract class MarkerView extends TableView { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.TableView#viewerSelectionChanged(org.eclipse.jface.viewers.IStructuredSelection) */ @Override @@ -831,7 +831,7 @@ public abstract class MarkerView extends TableView { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.internal.tableview.TableView#dispose() */ @Override @@ -867,7 +867,7 @@ public abstract class MarkerView extends TableView { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.internal.tableview.TableView#createActions() */ @Override @@ -897,7 +897,7 @@ public abstract class MarkerView extends TableView { setPreferencesAction(new ViewPreferencesAction() { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.preferences.ViewPreferencesAction#openViewPreferencesDialog() */ @Override @@ -912,7 +912,7 @@ public abstract class MarkerView extends TableView { /** * Open a dialog to set the preferences. - * + * * @param markerEnablementPreferenceName * @param markerLimitPreferenceName */ @@ -931,7 +931,7 @@ public abstract class MarkerView extends TableView { /** * Get the name of the marker enablement preference. - * + * * @return String */ abstract String getMarkerLimitPreferenceName(); @@ -940,7 +940,7 @@ public abstract class MarkerView extends TableView { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.internal.tableview.TableView#initToolBar(org.eclipse.jface.action.IToolBarManager) */ @Override @@ -952,7 +952,7 @@ public abstract class MarkerView extends TableView { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.internal.tableview.TableView#registerGlobalActions(org.eclipse.ui.IActionBars) */ @Override @@ -964,7 +964,7 @@ public abstract class MarkerView extends TableView { propertiesAction.setActionDefinitionId(IWorkbenchCommandConstants.FILE_PROPERTIES); undoAction.setActionDefinitionId(IWorkbenchCommandConstants.EDIT_UNDO); redoAction.setActionDefinitionId(IWorkbenchCommandConstants.EDIT_REDO); - + actionBars.setGlobalActionHandler(ActionFactory.COPY.getId(), copyAction); actionBars.setGlobalActionHandler(ActionFactory.PASTE.getId(), @@ -1025,7 +1025,7 @@ public abstract class MarkerView extends TableView { /** * Get the array of selected markers. - * + * * @return IMarker[] */ private IMarker[] getSelectedMarkers() { @@ -1042,7 +1042,7 @@ public abstract class MarkerView extends TableView { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.internal.tableview.TableView#fillContextMenu(org.eclipse.jface.action.IMenuManager) */ @Override @@ -1069,7 +1069,7 @@ public abstract class MarkerView extends TableView { /** * Return whether or not any of the types in the receiver can be editable. - * + * * @return <code>true</code> if it is possible to have an editable marker * in this view. */ @@ -1079,14 +1079,14 @@ public abstract class MarkerView extends TableView { /** * Fill the context menu for the receiver. - * + * * @param manager */ abstract void fillContextMenuAdditions(IMenuManager manager); /** * Get the filters for the receiver. - * + * * @return MarkerFilter[] */ protected final MarkerFilter[] getUserFilters() { @@ -1097,7 +1097,7 @@ public abstract class MarkerView extends TableView { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.internal.tableview.TableView#handleOpenEvent(org.eclipse.jface.viewers.OpenEvent) */ @Override @@ -1109,7 +1109,7 @@ public abstract class MarkerView extends TableView { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.internal.tableview.TableView#saveSelection(org.eclipse.ui.IMemento) */ protected void saveSelection(IMemento memento) { @@ -1192,7 +1192,7 @@ public abstract class MarkerView extends TableView { /** * Update the focus resources of the filters. - * + * * @param elements */ protected final void updateFilterSelection(Object[] elements) { @@ -1227,7 +1227,7 @@ public abstract class MarkerView extends TableView { /** * Add the resources for the mapping to resources. - * + * * @param resources * @param mapping */ @@ -1254,7 +1254,7 @@ public abstract class MarkerView extends TableView { /** * Update the focus markers for the supplied elements. - * + * * @param elements */ void updateFocusMarkers(Object[] elements) { @@ -1365,7 +1365,7 @@ public abstract class MarkerView extends TableView { * <p> * This method is called whenever a selection changes in this view. * </p> - * + * * @param selection * a valid selection or <code>null</code> */ @@ -1409,7 +1409,7 @@ public abstract class MarkerView extends TableView { /** * Open a dialog on the filters - * + * */ public final void openFiltersDialog() { @@ -1440,7 +1440,7 @@ public abstract class MarkerView extends TableView { /** * Set the filters to newFilters. - * + * * @param newFilters */ void setFilters(MarkerFilter[] newFilters) { @@ -1449,7 +1449,7 @@ public abstract class MarkerView extends TableView { /** * Clear the cache of enabled filters. - * + * */ void clearEnabledFilters() { enabledFilters = null; @@ -1478,7 +1478,7 @@ public abstract class MarkerView extends TableView { /** * Given a selection of IMarker, reveals the corresponding elements in the * viewer - * + * * @param structuredSelection * @param reveal */ @@ -1511,7 +1511,7 @@ public abstract class MarkerView extends TableView { /** * Returns the total number of markers. Should not be called while the * marker list is still updating. - * + * * @return the total number of markers in the workspace (including * everything that doesn't pass the filters) */ @@ -1529,7 +1529,7 @@ public abstract class MarkerView extends TableView { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.part.WorkbenchPart#showBusy(boolean) */ @Override @@ -1548,7 +1548,7 @@ public abstract class MarkerView extends TableView { /** * Get the filters that are currently enabled. - * + * * @return MarkerFilter[] */ MarkerFilter[] getEnabledFilters() { @@ -1565,7 +1565,7 @@ public abstract class MarkerView extends TableView { /** * Find the filters enabled in the view. - * + * * @return Collection of MarkerFilter */ protected Collection findEnabledFilters() { @@ -1581,7 +1581,7 @@ public abstract class MarkerView extends TableView { /** * Get all of the filters applied to the receiver. - * + * * @return MarkerFilter[] */ MarkerFilter[] getAllFilters() { @@ -1590,7 +1590,7 @@ public abstract class MarkerView extends TableView { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.TableView#addDropDownContributions(org.eclipse.jface.action.IMenuManager) */ @Override @@ -1606,7 +1606,7 @@ public abstract class MarkerView extends TableView { /** * Create the show in menu if there is a single selection. - * + * * @param menu */ void createShowInMenu(IMenuManager menu) { @@ -1643,7 +1643,7 @@ public abstract class MarkerView extends TableView { /** * Refresh the marker counts - * + * * @param monitor */ void refreshMarkerCounts(IProgressMonitor monitor) { @@ -1659,7 +1659,7 @@ public abstract class MarkerView extends TableView { /** * Returns the marker limit or -1 if unlimited - * + * * @return int */ int getMarkerLimit() { @@ -1677,14 +1677,14 @@ public abstract class MarkerView extends TableView { /** * Get the name of the marker limit preference. - * + * * @return String */ abstract String getMarkerEnablementPreferenceName(); /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.TableView#createViewerInput() */ @Override @@ -1695,7 +1695,7 @@ public abstract class MarkerView extends TableView { /** * Add a listener for the end of the update. - * + * * @param listener */ public void addUpdateFinishListener(IJobChangeListener listener) { @@ -1705,7 +1705,7 @@ public abstract class MarkerView extends TableView { /** * Remove a listener for the end of the update. - * + * * @param listener */ public void removeUpdateFinishListener(IJobChangeListener listener) { @@ -1715,14 +1715,14 @@ public abstract class MarkerView extends TableView { /** * Create a listener for working set changes. - * + * * @return IPropertyChangeListener */ private IPropertyChangeListener getWorkingSetListener() { workingSetListener = new IPropertyChangeListener() { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.util.IPropertyChangeListener#propertyChange(org.eclipse.jface.util.PropertyChangeEvent) */ @Override @@ -1737,7 +1737,7 @@ public abstract class MarkerView extends TableView { /** * Schedule an update of the markers with a delay of time - * + * * @param time */ void scheduleMarkerUpdate(int time) { @@ -1755,7 +1755,7 @@ public abstract class MarkerView extends TableView { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.TableView#createTree(org.eclipse.swt.widgets.Composite) */ @Override @@ -1764,7 +1764,7 @@ public abstract class MarkerView extends TableView { tree.addTreeListener(new TreeAdapter() { /* * (non-Javadoc) - * + * * @see org.eclipse.swt.events.TreeAdapter#treeCollapsed(org.eclipse.swt.events.TreeEvent) */ @Override @@ -1775,7 +1775,7 @@ public abstract class MarkerView extends TableView { /* * (non-Javadoc) - * + * * @see org.eclipse.swt.events.TreeAdapter#treeExpanded(org.eclipse.swt.events.TreeEvent) */ @Override diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerViewLabelProvider.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerViewLabelProvider.java index f9d9c7d3ac7..b549a486ee7 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerViewLabelProvider.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerViewLabelProvider.java @@ -16,9 +16,9 @@ import org.eclipse.swt.graphics.Image; /** * The MarkerViewLabelProvider is a label provider for an individual field. - * + * * @since 3.3 - * + * */ public class MarkerViewLabelProvider extends ColumnLabelProvider { @@ -26,7 +26,7 @@ public class MarkerViewLabelProvider extends ColumnLabelProvider { /** * Create a MarkerViewLabelProvider on a field - * + * * @param field */ MarkerViewLabelProvider(IField field) { @@ -36,7 +36,7 @@ public class MarkerViewLabelProvider extends ColumnLabelProvider { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.ColumnLabelProvider#getText(java.lang.Object) */ @Override @@ -46,7 +46,7 @@ public class MarkerViewLabelProvider extends ColumnLabelProvider { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.ColumnLabelProvider#getImage(java.lang.Object) */ @Override @@ -54,5 +54,5 @@ public class MarkerViewLabelProvider extends ColumnLabelProvider { return field.getImage(element); } - + } diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerViewPreferenceDialog.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerViewPreferenceDialog.java index b0371439c34..0a5669fd144 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerViewPreferenceDialog.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerViewPreferenceDialog.java @@ -27,9 +27,9 @@ import org.eclipse.ui.preferences.ViewSettingsDialog; /** * The MarkerViewPreferenceDialog is the dialog that is used for preference * settings in a markers view. - * + * * @since 3.1 - * + * */ public class MarkerViewPreferenceDialog extends ViewSettingsDialog { @@ -47,7 +47,7 @@ public class MarkerViewPreferenceDialog extends ViewSettingsDialog { /** * Create a new instance of the receiver. - * + * * @param parentShell * @param enablementPreference * The key for the enablement preference. @@ -67,7 +67,7 @@ public class MarkerViewPreferenceDialog extends ViewSettingsDialog { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.window.Window#configureShell(org.eclipse.swt.widgets.Shell) */ @Override @@ -78,7 +78,7 @@ public class MarkerViewPreferenceDialog extends ViewSettingsDialog { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.dialogs.Dialog#createDialogArea(org.eclipse.swt.widgets.Composite) */ @Override @@ -137,7 +137,7 @@ public class MarkerViewPreferenceDialog extends ViewSettingsDialog { /** * Enable the limitEditor based on checked. - * + * * @param control * The parent of the editor * @param checked @@ -148,7 +148,7 @@ public class MarkerViewPreferenceDialog extends ViewSettingsDialog { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.dialogs.Dialog#okPressed() */ @Override @@ -162,7 +162,7 @@ public class MarkerViewPreferenceDialog extends ViewSettingsDialog { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.preferences.ViewSettingsDialog#performDefaults() */ @Override diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ProblemFilter.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ProblemFilter.java index a30e928e2f6..28ba3b68d7e 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ProblemFilter.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ProblemFilter.java @@ -26,7 +26,7 @@ import org.eclipse.ui.internal.views.markers.MarkerSupportInternalUtilities; /** * ProblemFilters are the filters used in the problems view. - * + * */ public class ProblemFilter extends MarkerFilter { @@ -48,7 +48,7 @@ public class ProblemFilter extends MarkerFilter { final static boolean DEFAULT_CONTAINS = true; - final static String DEFAULT_DESCRIPTION = ""; //$NON-NLS-1$ + final static String DEFAULT_DESCRIPTION = ""; //$NON-NLS-1$ final static boolean DEFAULT_SELECT_BY_SEVERITY = false; @@ -83,7 +83,7 @@ public class ProblemFilter extends MarkerFilter { /** * Create a new instance of the receiver with name filterName. - * + * * @param filterName * A human readable name for the filter. */ @@ -145,7 +145,7 @@ public class ProblemFilter extends MarkerFilter { /** * Get the value for if there is a check for containing a phrase. - * + * * @return boolean */ public boolean getContains() { @@ -154,7 +154,7 @@ public class ProblemFilter extends MarkerFilter { /** * Get the value for the description. - * + * * @return boolean */ public String getDescription() { @@ -163,7 +163,7 @@ public class ProblemFilter extends MarkerFilter { /** * Get the value for if there is a check for severity. - * + * * @return boolean */ public boolean getSelectBySeverity() { @@ -172,7 +172,7 @@ public class ProblemFilter extends MarkerFilter { /** * Get the value for if there is a severity. - * + * * @return boolean */ public int getSeverity() { @@ -181,7 +181,7 @@ public class ProblemFilter extends MarkerFilter { /** * Set the value for if there is a check for containing a phrase. - * + * * @param contains */ public void setContains(boolean contains) { @@ -190,7 +190,7 @@ public class ProblemFilter extends MarkerFilter { /** * Set the value for the description. - * + * * @param description */ public void setDescription(String description) { @@ -199,7 +199,7 @@ public class ProblemFilter extends MarkerFilter { /** * Set the value for if there is a check for severity - * + * * @param selectBySeverity */ public void setSelectBySeverity(boolean selectBySeverity) { @@ -208,7 +208,7 @@ public class ProblemFilter extends MarkerFilter { /** * Set the value for the severity to match against. - * + * * @param severity */ public void setSeverity(int severity) { @@ -217,7 +217,7 @@ public class ProblemFilter extends MarkerFilter { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.MarkerFilter#resetState() */ @Override @@ -231,7 +231,7 @@ public class ProblemFilter extends MarkerFilter { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.MarkerFilter#restoreFilterSettings(org.eclipse.jface.dialogs.IDialogSettings) */ @Override @@ -270,7 +270,7 @@ public class ProblemFilter extends MarkerFilter { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.MarkerFilter#restoreFilterSettings(org.eclipse.ui.IMemento) */ @Override @@ -305,7 +305,7 @@ public class ProblemFilter extends MarkerFilter { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.MarkerFilter#saveFilterSettings(org.eclipse.ui.IMemento) */ @Override @@ -322,7 +322,7 @@ public class ProblemFilter extends MarkerFilter { /** * Get the id of the filter. <code>null</code> if the filter is user * defined. - * + * * @return String */ public String getId() { @@ -338,7 +338,7 @@ public class ProblemFilter extends MarkerFilter { contributionDescriptor = new IPluginContribution() { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.IPluginContribution#getLocalId() */ @Override @@ -348,7 +348,7 @@ public class ProblemFilter extends MarkerFilter { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.IPluginContribution#getPluginId() */ @Override @@ -361,7 +361,7 @@ public class ProblemFilter extends MarkerFilter { /** * Return whether or not the receiver will be filtered out due to an * activity match. - * + * * @return boolean <code>true</code> if it is filtered out. */ public boolean isFilteredOutByActivity() { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ProblemMarker.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ProblemMarker.java index 97408dfb5f5..b358871fe23 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ProblemMarker.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ProblemMarker.java @@ -13,7 +13,7 @@ package org.eclipse.ui.views.markers.internal; import org.eclipse.core.resources.IMarker; /** - * + * */ public class ProblemMarker extends ConcreteMarker { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ProblemView.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ProblemView.java index 51f2e6cdb73..d6b3fbf701d 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ProblemView.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ProblemView.java @@ -52,7 +52,7 @@ import org.eclipse.ui.progress.IWorkbenchSiteProgressService; /** * The ProblemView is the view that displays problem markers. - * + * */ public class ProblemView extends MarkerView { @@ -92,7 +92,7 @@ public class ProblemView extends MarkerView { /** * Create a new instance of the receiver. - * + * * @param label * @param field * @param view @@ -113,7 +113,7 @@ public class ProblemView extends MarkerView { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.action.Action#run() */ @Override @@ -124,7 +124,7 @@ public class ProblemView extends MarkerView { MarkerMessages.ProblemView_UpdateCategoryJob) { /* * (non-Javadoc) - * + * * @see org.eclipse.core.runtime.jobs.Job#run(org.eclipse.core.runtime.IProgressMonitor) */ @Override @@ -167,7 +167,7 @@ public class ProblemView extends MarkerView { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.MarkerView#dispose() */ @Override @@ -186,7 +186,7 @@ public class ProblemView extends MarkerView { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.TableView#getSortingFields() */ @Override @@ -200,7 +200,7 @@ public class ProblemView extends MarkerView { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.TableView#getDialogSettings() */ @Override @@ -219,7 +219,7 @@ public class ProblemView extends MarkerView { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.TableView#createActions() */ @Override @@ -231,7 +231,7 @@ public class ProblemView extends MarkerView { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.internal.tableview.TableView#registerGlobalActions(org.eclipse.ui.IActionBars) */ @Override @@ -251,7 +251,7 @@ public class ProblemView extends MarkerView { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.MarkerView#fillContextMenuAdditions(org.eclipse.jface.action.IMenuManager) */ @Override @@ -267,7 +267,7 @@ public class ProblemView extends MarkerView { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.TableView#getAllFields() */ @Override @@ -314,7 +314,7 @@ public class ProblemView extends MarkerView { * severity type) for the markers contained in the selection passed in. This * information is then massaged into a string which may be displayed by the * caller. - * + * * @param selection * a valid selection or <code>null</code> * @return a message ready for display @@ -337,7 +337,7 @@ public class ProblemView extends MarkerView { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.MarkerView#getMarkerTypes() */ @Override @@ -352,7 +352,7 @@ public class ProblemView extends MarkerView { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.MarkerView#createFiltersDialog() */ @Override @@ -366,7 +366,7 @@ public class ProblemView extends MarkerView { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.MarkerView#createFilter(java.lang.String) */ @Override @@ -376,7 +376,7 @@ public class ProblemView extends MarkerView { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.MarkerView#getSectionTag() */ @Override @@ -386,7 +386,7 @@ public class ProblemView extends MarkerView { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.MarkerView#getMarkerEnablementPreferenceName() */ @Override @@ -396,7 +396,7 @@ public class ProblemView extends MarkerView { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.MarkerView#getMarkerLimitPreferenceName() */ @Override @@ -406,7 +406,7 @@ public class ProblemView extends MarkerView { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.MarkerView#getFiltersPreferenceName() */ @Override @@ -416,7 +416,7 @@ public class ProblemView extends MarkerView { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.MarkerView#getAllFilters() */ @Override @@ -441,7 +441,7 @@ public class ProblemView extends MarkerView { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.MarkerView#addDropDownContributions(org.eclipse.jface.action.IMenuManager) */ @Override @@ -484,7 +484,7 @@ public class ProblemView extends MarkerView { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.TableView#setSorter(org.eclipse.ui.views.markers.internal.TableSorter) */ @Override @@ -497,7 +497,7 @@ public class ProblemView extends MarkerView { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.MarkerView#getTableSorter() */ @Override @@ -507,7 +507,7 @@ public class ProblemView extends MarkerView { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.MarkerView#createPartControl(org.eclipse.swt.widgets.Composite) */ @Override @@ -525,7 +525,7 @@ public class ProblemView extends MarkerView { activityManagerListener = new IActivityManagerListener() { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.activities.IActivityManagerListener#activityManagerChanged(org.eclipse.ui.activities.ActivityManagerEvent) */ @Override @@ -540,7 +540,7 @@ public class ProblemView extends MarkerView { /** * Return the field whose description matches description. - * + * * @param description * @return IField */ @@ -556,7 +556,7 @@ public class ProblemView extends MarkerView { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.TableView#buildComparator() */ @Override @@ -570,7 +570,7 @@ public class ProblemView extends MarkerView { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.MarkerView#canBeEditable() */ @Override @@ -580,7 +580,7 @@ public class ProblemView extends MarkerView { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.MarkerView#initToolBar(org.eclipse.jface.action.IToolBarManager) */ @Override @@ -591,7 +591,7 @@ public class ProblemView extends MarkerView { /** * Select the category for the receiver. - * + * * @param description * @param sorter - * the sorter to select for @@ -616,7 +616,7 @@ public class ProblemView extends MarkerView { /** * Select the field groupingField. - * + * * @param groupingField * @param sorter */ @@ -632,7 +632,7 @@ public class ProblemView extends MarkerView { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.MarkerView#writeFiltersSettings(org.eclipse.ui.XMLMemento) */ @Override @@ -655,7 +655,7 @@ public class ProblemView extends MarkerView { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.MarkerView#restoreFilters(org.eclipse.ui.IMemento) */ @Override @@ -689,7 +689,7 @@ public class ProblemView extends MarkerView { /** * Set the enablement state of the filter called filterName to enabled. - * + * * @param filterName * @param enabled * @param filters @@ -707,7 +707,7 @@ public class ProblemView extends MarkerView { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.MarkerView#getMarkerName() */ @Override diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/SortUtil.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/SortUtil.java index 155f099afdd..bc1b9de7c2b 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/SortUtil.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/SortUtil.java @@ -20,7 +20,7 @@ import java.util.SortedSet; import org.eclipse.core.runtime.IProgressMonitor; /** - * + * */ class SortUtil { @@ -38,7 +38,7 @@ class SortUtil { Collection start = elements.asList(); Collection result = new ArrayList(start.size()); - mon.beginTask(MarkerMessages.SortUtil_finding_first, 1000); + mon.beginTask(MarkerMessages.SortUtil_finding_first, 1000); getFirst(result, start, c, k, mon, 1000); @@ -140,10 +140,10 @@ class SortUtil { /** * Divides the items in the input collection into three sets based on whether they are less than, * equal to, or greater than the test item. - * + * * If the given monitor is cancelled (possibly by another thread), the operation will - * be aborted. In this case, the insertions may only be partially complete. - * + * be aborted. In this case, the insertions may only be partially complete. + * * @param less * @param more * @param equal @@ -157,7 +157,7 @@ class SortUtil { IProgressMonitor mon) { mon .beginTask( - MarkerMessages.SortUtil_partitioning, input.size()); + MarkerMessages.SortUtil_partitioning, input.size()); if (toTest == null || c == null) { int counter = 0; @@ -187,7 +187,7 @@ class SortUtil { /** * Removes and returns the first n items from the given collection. - * + * * @param collection * @param numToRemove * @return List @@ -211,7 +211,7 @@ class SortUtil { /** * Finds and returns the greatest element in the given collection, or null if the collection * is empty. - * + * * @param toSearch collection to search * @param c comparator used to determine the greatest item * @return the greatest item in the collection diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/TableComparator.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/TableComparator.java index efd044e180b..a3ed10efd74 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/TableComparator.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/TableComparator.java @@ -39,7 +39,7 @@ public class TableComparator extends ViewerComparator implements Comparator { public static final String TAG_DIALOG_SECTION = "sorter"; //$NON-NLS-1$ - private static final String TAG_PRIORITY = "priority"; //$NON-NLS-1$ + private static final String TAG_PRIORITY = "priority"; //$NON-NLS-1$ private static final String TAG_DIRECTION = "direction"; //$NON-NLS-1$ @@ -86,7 +86,7 @@ public class TableComparator extends ViewerComparator implements Comparator { /** * Return a TableSorter based on the supplied fields. - * + * * @param sortingFields */ static TableComparator createTableSorter(IField[] sortingFields) { @@ -167,7 +167,7 @@ public class TableComparator extends ViewerComparator implements Comparator { /** * Return the field at the top priority. - * + * * @return IField */ public IField getTopField() { @@ -206,7 +206,7 @@ public class TableComparator extends ViewerComparator implements Comparator { /** * Compare obj1 and obj2 at depth. If continueSearching continue searching * below depth to continue the comparison. - * + * * @param obj1 * @param obj2 * @param depth @@ -263,7 +263,7 @@ public class TableComparator extends ViewerComparator implements Comparator { /* * (non-Javadoc) - * + * * @see java.util.Comparator#compare(java.lang.Object, java.lang.Object) */ @Override @@ -310,14 +310,14 @@ public class TableComparator extends ViewerComparator implements Comparator { resetState(); return; } - + int fieldIndex = Integer.parseInt(priority); - + //Make sure it is not old data from a different sized array if(fieldIndex < fields.length) { priorities[i] = fieldIndex; } - + String direction = settings.get(TAG_DIRECTION + i); if (direction == null) { resetState(); @@ -345,7 +345,7 @@ public class TableComparator extends ViewerComparator implements Comparator { /** * Sort the array of markers in lastMarkers in place. - * + * * @param viewer * @param lastMarkers */ @@ -357,7 +357,7 @@ public class TableComparator extends ViewerComparator implements Comparator { /** * Sorts the given elements in-place, modifying the given array from index * start to index end. < - * + * * @param viewer * @param elements * @param start diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/TableSortDialog.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/TableSortDialog.java index c60a4842f22..7aa2d4da433 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/TableSortDialog.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/TableSortDialog.java @@ -7,7 +7,7 @@ * * Contributors: * IBM Corporation - initial API and implementation - * Sebastian Davids <sdavids@gmx.de>: + * Sebastian Davids <sdavids@gmx.de>: * Fix for Bug 77336 [Markers] [Dialogs] TableSortDialog does not use dialog font *******************************************************************************/ @@ -102,11 +102,11 @@ public class TableSortDialog extends TrayDialog { } initializeDialogUnits(composite); - + createPrioritiesArea(composite); createRestoreDefaultsButton(composite); createSeparatorLine(composite); - + Dialog.applyDialogFont(composite); return composite; @@ -119,7 +119,7 @@ public class TableSortDialog extends TrayDialog { private void createPrioritiesArea(Composite parent) { Composite prioritiesArea = new Composite(parent, SWT.NULL); prioritiesArea.setLayout(new GridLayout(3, false)); - + int[] priorities = sorter.getPriorities(); ascendingButtons = new Button[priorities.length]; @@ -129,7 +129,7 @@ public class TableSortDialog extends TrayDialog { initPriotityText(); Label sortByLabel = new Label(prioritiesArea, SWT.NULL); - sortByLabel.setText(MarkerMessages.sortDialog_label); + sortByLabel.setText(MarkerMessages.sortDialog_label); GridData data = new GridData(); data.horizontalSpan = 3; sortByLabel.setLayoutData(data); @@ -139,7 +139,7 @@ public class TableSortDialog extends TrayDialog { Label numberLabel = new Label(prioritiesArea, SWT.NULL); numberLabel .setText(NLS - .bind(MarkerMessages.sortDialog_columnLabel,new Integer(i + 1))); + .bind(MarkerMessages.sortDialog_columnLabel,new Integer(i + 1))); priorityCombos[i] = new Combo(prioritiesArea, SWT.READ_ONLY); priorityCombos[i].setLayoutData(new GridData( @@ -147,7 +147,7 @@ public class TableSortDialog extends TrayDialog { Composite directionGroup = new Composite(prioritiesArea, SWT.NONE); directionGroup.setLayout(new GridLayout(2, false)); - + ascendingButtons[i] = new Button(directionGroup, SWT.RADIO); ascendingButtons[i].setText(getAscendingText(i)); ascendingButtons[i].addSelectionListener(new SelectionAdapter() { @@ -267,7 +267,7 @@ public class TableSortDialog extends TrayDialog { default: return MarkerMessages.sortDirectionDescending_text; } - + } /** @@ -287,7 +287,7 @@ public class TableSortDialog extends TrayDialog { default: return MarkerMessages.sortDirectionAscending_text; } - + } /** @@ -386,7 +386,7 @@ public class TableSortDialog extends TrayDialog { } /** - * Set the layout data of the button to a GridData with + * Set the layout data of the button to a GridData with * appropriate heights and widths. * @param button */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/TableView.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/TableView.java index 8c21a9a0296..85712ae8be7 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/TableView.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/TableView.java @@ -60,7 +60,7 @@ import org.eclipse.ui.progress.IWorkbenchSiteProgressService; /** * The TableView is a view that generically implements views with tables. - * + * */ public abstract class TableView extends ViewPart { @@ -98,7 +98,7 @@ public abstract class TableView extends ViewPart { } /** - * + * */ // void haltTableUpdates() { // content.cancelPendingChanges(); @@ -114,7 +114,7 @@ public abstract class TableView extends ViewPart { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.part.WorkbenchPart#createPartControl(org.eclipse.swt.widgets.Composite) */ @Override @@ -123,7 +123,7 @@ public abstract class TableView extends ViewPart { viewer = new TreeViewer(createTree(parent)); createColumns(viewer.getTree()); - + viewer.setComparator(buildComparator()); setSortIndicators(); @@ -177,13 +177,13 @@ public abstract class TableView extends ViewPart { handleOpenEvent(event); } }); - + } /** * Create the viewer input for the receiver. - * + * * @return Object */ abstract Object createViewerInput(); @@ -191,7 +191,7 @@ public abstract class TableView extends ViewPart { /** * Set the comparator to be the new comparator. This should only * be called if the viewer has been created. - * + * * @param comparator */ void setComparator(TableComparator comparator) { @@ -201,7 +201,7 @@ public abstract class TableView extends ViewPart { /** * Update the viewer for comparator updates - * + * * @param comparator */ void updateForNewComparator(TableComparator comparator) { @@ -212,7 +212,7 @@ public abstract class TableView extends ViewPart { /** * Create the main tree control - * + * * @param parent * @return Tree */ @@ -225,7 +225,7 @@ public abstract class TableView extends ViewPart { /** * Get the pixel data for the columns. - * + * * @return ColumnPixelData[] */ public ColumnPixelData[] getSavedColumnData() { @@ -233,7 +233,7 @@ public abstract class TableView extends ViewPart { ColumnPixelData[] result = new ColumnPixelData[defaultData.length]; for (int i = 0; i < defaultData.length; i++) { - + ColumnPixelData defaultPixelData = defaultData[i]; boolean addTrim = defaultPixelData.addTrim; int width = defaultPixelData.width; @@ -262,7 +262,7 @@ public abstract class TableView extends ViewPart { * initialized yet. (Note that TableLayout only initializes the column * widths after the first layout, so it is possible for the widget to exist * but have all its columns incorrectly set to zero width - see bug 86329) - * + * * @return ColumnPixelData */ public ColumnPixelData[] getColumnData() { @@ -301,7 +301,7 @@ public abstract class TableView extends ViewPart { /** * Create the columns in the tree. - * + * * @param tree */ protected void createColumns(final Tree tree) { @@ -358,7 +358,7 @@ public abstract class TableView extends ViewPart { /** * Init the menu for the receiver. - * + * * @param menu */ protected void initMenu(IMenuManager menu) { @@ -376,7 +376,7 @@ public abstract class TableView extends ViewPart { /** * Add any extra contributions to the drop down. - * + * * @param menu */ void addDropDownContributions(IMenuManager menu) { @@ -389,7 +389,7 @@ public abstract class TableView extends ViewPart { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.part.WorkbenchPart#setFocus() */ @Override @@ -403,7 +403,7 @@ public abstract class TableView extends ViewPart { /** * Build a comparator from the default settings. - * + * * @return ViewerComparator */ protected ViewerComparator buildComparator() { @@ -413,7 +413,7 @@ public abstract class TableView extends ViewPart { /** * Create a TableComparator for the receiver. - * + * * @return TableComparator */ TableComparator createTableComparator() { @@ -433,7 +433,7 @@ public abstract class TableView extends ViewPart { /** * Return the viewer. - * + * * @return TreeViewer */ protected TreeViewer getViewer() { @@ -442,7 +442,7 @@ public abstract class TableView extends ViewPart { /** * Return the tree for the receiver. - * + * * @return Tree */ protected Tree getTree() { @@ -467,7 +467,7 @@ public abstract class TableView extends ViewPart { .getDisplay(), new Runnable() { /* * (non-Javadoc) - * + * * @see java.lang.Runnable#run() */ @Override @@ -482,7 +482,7 @@ public abstract class TableView extends ViewPart { new IRunnableWithProgress() { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.operation.IRunnableWithProgress#run(org.eclipse.core.runtime.IProgressMonitor) */ @Override @@ -501,7 +501,7 @@ public abstract class TableView extends ViewPart { /** * Resort the table based on field. - * + * * @param column * the column being updated * @param field @@ -523,7 +523,7 @@ public abstract class TableView extends ViewPart { new Runnable() { /* * (non-Javadoc) - * + * * @see java.lang.Runnable#run() */ @Override @@ -540,7 +540,7 @@ public abstract class TableView extends ViewPart { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.TableView#getDefaultColumnLayouts() */ protected ColumnPixelData[] getDefaultColumnLayouts() { @@ -558,7 +558,7 @@ public abstract class TableView extends ViewPart { /** * Return the width of the field to display. - * + * * @param field * @return int */ @@ -571,7 +571,7 @@ public abstract class TableView extends ViewPart { /** * Return a sort dialog for the receiver. - * + * * @return TableSortDialog */ protected TableSortDialog getSortDialog() { @@ -581,7 +581,7 @@ public abstract class TableView extends ViewPart { /** * Return the table sorter portion of the sorter. - * + * * @return TableSorter */ TableComparator getTableSorter() { @@ -593,7 +593,7 @@ public abstract class TableView extends ViewPart { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.part.ViewPart#saveState(org.eclipse.ui.IMemento) */ @Override @@ -664,7 +664,7 @@ public abstract class TableView extends ViewPart { /** * Get the IWorkbenchSiteProgressService for the receiver. - * + * * @return IWorkbenchSiteProgressService or <code>null</code>. */ protected IWorkbenchSiteProgressService getProgressService() { @@ -679,7 +679,7 @@ public abstract class TableView extends ViewPart { /** * Set the filters action. - * + * * @param action */ void setFilterAction(FiltersAction action) { @@ -689,7 +689,7 @@ public abstract class TableView extends ViewPart { /** * Return the filter action for the receiver. - * + * * @return IAction */ IAction getFilterAction() { @@ -698,7 +698,7 @@ public abstract class TableView extends ViewPart { /** * Return the preferences action. - * + * * @return IAction */ IAction getPreferencesAction() { @@ -707,7 +707,7 @@ public abstract class TableView extends ViewPart { /** * Set the preferences action. - * + * * @param preferencesAction */ void setPreferencesAction(ViewPreferencesAction preferencesAction) { @@ -716,7 +716,7 @@ public abstract class TableView extends ViewPart { /** * Get the content provider - * + * * @return MarkerTreeContentProvider */ MarkerTreeContentProvider getContentProvider() { @@ -725,7 +725,7 @@ public abstract class TableView extends ViewPart { /** * Return the input to the viewer. - * + * * @return Object */ public Object getViewerInput() { @@ -734,7 +734,7 @@ public abstract class TableView extends ViewPart { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.TableView#setSortIndicators() */ void setSortIndicators() { @@ -751,7 +751,7 @@ public abstract class TableView extends ViewPart { /** * Update the direction indicator as column is now the primary column. - * + * * @param column */ void updateDirectionIndicator(TreeColumn column) { @@ -764,7 +764,7 @@ public abstract class TableView extends ViewPart { /** * Set the selection of the receiver. - * + * * @param selection */ protected void setSelection(IStructuredSelection selection) { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/TableViewLabelProvider.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/TableViewLabelProvider.java index 16f4cffd4ea..b922e147cc7 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/TableViewLabelProvider.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/TableViewLabelProvider.java @@ -20,7 +20,7 @@ import org.eclipse.swt.graphics.Image; /** * The TableViewLabelProvider is the content provider for marker views. - * + * */ public class TableViewLabelProvider extends LabelProvider implements ITableLabelProvider, IFontProvider { @@ -29,7 +29,7 @@ public class TableViewLabelProvider extends LabelProvider implements /** * Create a neew instance of the receiver. - * + * * @param fields */ public TableViewLabelProvider(IField[] fields) { @@ -38,7 +38,7 @@ public class TableViewLabelProvider extends LabelProvider implements /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.ITableLabelProvider#getColumnImage(java.lang.Object, * int) */ @@ -52,7 +52,7 @@ public class TableViewLabelProvider extends LabelProvider implements /* * (non-Javadoc) - * + * * @see org.eclipse.jface.viewers.ITableLabelProvider#getColumnText(java.lang.Object, * int) */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/TaskFilter.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/TaskFilter.java index 4fea11cc00d..8ee4021a4f7 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/TaskFilter.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/TaskFilter.java @@ -41,7 +41,7 @@ public class TaskFilter extends MarkerFilter { final static boolean DEFAULT_CONTAINS = true; - final static String DEFAULT_DESCRIPTION = ""; //$NON-NLS-1$ + final static String DEFAULT_DESCRIPTION = ""; //$NON-NLS-1$ final static boolean DEFAULT_DONE = false; @@ -65,13 +65,13 @@ public class TaskFilter extends MarkerFilter { private int priority; - private boolean selectByPriority = false; + private boolean selectByPriority = false; private boolean selectByDone = false; /** * Create a new instance of the receiver with the default name. - * + * */ public TaskFilter() { this(MarkerMessages.MarkerFilter_defaultFilterName); @@ -79,7 +79,7 @@ public class TaskFilter extends MarkerFilter { /** * Create a new instance of the receiver with the supplied name. - * + * * @param newName */ public TaskFilter(String newName) { @@ -197,7 +197,7 @@ public class TaskFilter extends MarkerFilter { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.MarkerFilter#restoreFilterSettings(org.eclipse.jface.dialogs.IDialogSettings) */ @Override @@ -244,7 +244,7 @@ public class TaskFilter extends MarkerFilter { } } - + /* (non-Javadoc) * @see org.eclipse.ui.views.markers.internal.MarkerFilter#restoreFilterSettings(org.eclipse.ui.IMemento) */ @@ -290,7 +290,7 @@ public class TaskFilter extends MarkerFilter { } - + /* (non-Javadoc) * @see org.eclipse.ui.views.markers.internal.MarkerFilter#saveFilterSettings(org.eclipse.ui.IMemento) */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/TaskView.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/TaskView.java index 97dbbdcd5e6..0969bd6c97c 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/TaskView.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/TaskView.java @@ -126,12 +126,12 @@ public class TaskView extends MarkerView { if (e.getCause() instanceof CoreException) { ErrorDialog.openError( getSite().getShell(), - MarkerMessages.errorModifyingTask, null, ((CoreException)e.getCause()).getStatus()); + MarkerMessages.errorModifyingTask, null, ((CoreException)e.getCause()).getStatus()); } else { // something rather unexpected occurred. - IDEWorkbenchPlugin.log(MarkerMessages.errorModifyingTask, e); + IDEWorkbenchPlugin.log(MarkerMessages.errorModifyingTask, e); } - } + } } } } @@ -193,7 +193,7 @@ public class TaskView extends MarkerView { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.TableView#getDialogSettings() */ @Override @@ -236,7 +236,7 @@ public class TaskView extends MarkerView { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.TableView#getSortingFields() */ @Override @@ -252,7 +252,7 @@ public class TaskView extends MarkerView { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.TableView#getAllFields() */ @Override @@ -281,7 +281,7 @@ public class TaskView extends MarkerView { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.MarkerView#getMarkerTypes() */ @Override @@ -296,7 +296,7 @@ public class TaskView extends MarkerView { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.MarkerView#createFiltersDialog() */ @Override @@ -310,7 +310,7 @@ public class TaskView extends MarkerView { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.MarkerView#createFilter(java.lang.String) */ @Override @@ -320,7 +320,7 @@ public class TaskView extends MarkerView { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.MarkerView#getSectionTag() */ @Override @@ -330,7 +330,7 @@ public class TaskView extends MarkerView { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.MarkerView#getMarkerEnablementPreferenceName() */ @Override @@ -340,7 +340,7 @@ public class TaskView extends MarkerView { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.MarkerView#getMarkerLimitPreferenceName() */ @Override @@ -350,14 +350,14 @@ public class TaskView extends MarkerView { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.MarkerView#getFiltersPreferenceName() */ @Override String getFiltersPreferenceName() { return IDEInternalPreferences.TASKS_FILTERS; } - + /* (non-Javadoc) * @see org.eclipse.ui.views.markers.internal.TableView#updateDirectionIndicator(org.eclipse.swt.widgets.TreeColumn) */ @@ -368,14 +368,14 @@ public class TaskView extends MarkerView { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.views.markers.internal.MarkerView#getMarkerName() */ @Override protected String getMarkerName() { return MarkerMessages.task_title; } - + /* * (non-Javadoc) * @see org.eclipse.ui.views.markers.internal.MarkerView#getUndoContext() diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/TypeMarkerGroup.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/TypeMarkerGroup.java index bb80abe65c4..799f4fd1bbb 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/TypeMarkerGroup.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/TypeMarkerGroup.java @@ -23,18 +23,18 @@ import org.eclipse.ui.views.markers.MarkerItem; /** * The TypeMarkerGroup is a MarkerGroup used for the sorting by type which * cannot be expressed currently using the markerSupport extension point. - * + * * @since 3.4 - * + * */ public class TypeMarkerGroup extends MarkerGroup { private Map entries=new HashMap(); /** * TypeMarkerField is the MarkerField used for MarkerGroupungs - * + * * @since 3.4 - * + * */ class TypeMarkerField extends GroupMarkerField { @@ -48,7 +48,7 @@ public class TypeMarkerGroup extends MarkerGroup { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.internal.provisional.views.markers.api.MarkerField#getValue(org.eclipse.ui.internal.provisional.views.markers.api.MarkerItem) */ @Override @@ -78,7 +78,7 @@ public class TypeMarkerGroup extends MarkerGroup { return Util.EMPTY_STRING; } - + /* (non-Javadoc) * @see org.eclipse.ui.views.markers.internal.MarkerGroup.GroupMarkerField#compare(org.eclipse.ui.views.markers.MarkerItem, org.eclipse.ui.views.markers.MarkerItem) */ @@ -93,7 +93,7 @@ public class TypeMarkerGroup extends MarkerGroup { /** * Create a new instance of the receiver. - * + * * @param name */ public TypeMarkerGroup(String name) { @@ -109,10 +109,10 @@ public class TypeMarkerGroup extends MarkerGroup { field = new FieldCategory(); markerField = new TypeMarkerField(); } - + /* * (non-Javadoc) - * + * * @see * org.eclipse.ui.views.markers.internal.MarkerGroup#findGroupValue(java * .lang.String, org.eclipse.core.resources.IMarker) @@ -142,7 +142,7 @@ public class TypeMarkerGroup extends MarkerGroup { public String getId() { return Util.TYPE_MARKER_GROUPING_ID; } - + /* (non-Javadoc) * @see org.eclipse.ui.views.markers.internal.MarkerGroup#getTitle() */ @@ -165,7 +165,7 @@ public class TypeMarkerGroup extends MarkerGroup { } }; } - + private class TypesMarkerGroupingEntry extends MarkerGroupingEntry { public TypesMarkerGroupingEntry(String label) { super(label); diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/Util.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/Util.java index 917aa97b7e1..2f25187d49d 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/Util.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/Util.java @@ -31,7 +31,7 @@ import org.eclipse.ui.views.markers.MarkerViewUtil; /** * The Util class is the class of general utilities used by the marker support. - * + * */ public final class Util { @@ -44,13 +44,13 @@ public final class Util { private static DateFormat format; static final MarkerNode[] EMPTY_MARKER_ARRAY = new MarkerNode[0]; - + static final String TYPE_MARKER_GROUPING_ID = "org.eclipse.ui.ide.type"; //$NON-NLS-1$ /** * Get the propery called property from the marker. If it is not found * return the empty string. - * + * * @param property * @param marker * @return String @@ -73,7 +73,7 @@ public final class Util { /** * Get the human readable creation time from the timestamp - * + * * @param timestamp * @return String */ @@ -87,7 +87,7 @@ public final class Util { /** * Get the human readable creation time from the marker. - * + * * @param marker * @return String */ @@ -104,7 +104,7 @@ public final class Util { * Get the name of the container. If the marker has the * MarkerViewUtil#PATH_ATTRIBUTE set use that. Otherwise use the path of the * parent resource. - * + * * @param marker * @return String */ @@ -153,7 +153,7 @@ public final class Util { * Get the name of the element. If the marker has the * MarkerViewUtil#NAME_ATTRIBUTE set use that. Otherwise use the name of the * resource. - * + * * @param marker * @return String */ @@ -178,7 +178,7 @@ public final class Util { /** * Return whether or not the marker is editable. - * + * * @param marker * @return boolean <code>true</code> if it is editable */ @@ -197,7 +197,7 @@ public final class Util { /** * Return an error status for the given exception. - * + * * @param exception * @return IStatus */ @@ -222,7 +222,7 @@ public final class Util { /** * Get the image for the severity if it can be identified. - * + * * @param severity * @return Image or <code>null</code> */ @@ -243,7 +243,7 @@ public final class Util { /** * Get the IDE image at path. - * + * * @param path * @return Image */ @@ -256,7 +256,7 @@ public final class Util { /** * Get the short name for the container - * + * * @param marker * @return String */ @@ -299,7 +299,7 @@ public final class Util { /** * Return whether or not the selection has one element that is concrete. - * + * * @param selection * @return <true>code</true> if the selection has one element that is * concrete. @@ -316,7 +316,7 @@ public final class Util { /** * Return whether or not all of the elements in the selection are concrete. - * + * * @param selection * @return <true>code</true> if all of the elements are concrete. */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/CollapseAllAction.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/CollapseAllAction.java index 8c6b7618cc8..bdea6fb7a14 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/CollapseAllAction.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/CollapseAllAction.java @@ -6,7 +6,7 @@ * http://www.eclipse.org/legal/epl-v10.html * * Contributors: - * IBM Corporation - initial API and implementation + * IBM Corporation - initial API and implementation * Sebastian Davids <sdavids@gmx.de> - Collapse all action (25826) *******************************************************************************/ package org.eclipse.ui.views.navigator; @@ -23,7 +23,7 @@ public class CollapseAllAction extends ResourceNavigatorAction { /** * Creates the action. - * + * * @param navigator the resource navigator * @param label the label for the action */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/CopyAction.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/CopyAction.java index 77208ae8e1f..b8ac7d12f6d 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/CopyAction.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/CopyAction.java @@ -36,7 +36,7 @@ import org.eclipse.ui.part.ResourceTransfer; * <p> * This class may be instantiated; it is not intended to be subclassed. * </p> - * + * * @deprecated as of 3.5, use the Common Navigator Framework classes instead * @since 2.0 */ @@ -87,7 +87,7 @@ import org.eclipse.ui.part.ResourceTransfer; * @param shell the shell for any dialogs * @param clipboard a platform clipboard * @param pasteAction a paste action - * + * * @since 2.0 */ public CopyAction(Shell shell, Clipboard clipboard, PasteAction pasteAction) { @@ -95,15 +95,15 @@ import org.eclipse.ui.part.ResourceTransfer; this.pasteAction = pasteAction; } - + /* (non-Javadoc) * @see org.eclipse.jface.action.Action#run() */ @Override public void run() { /** - * The <code>CopyAction</code> implementation of this method defined - * on <code>IAction</code> copies the selected resources to the + * The <code>CopyAction</code> implementation of this method defined + * on <code>IAction</code> copies the selected resources to the * clipboard. */ List selectedResources = getSelectedResources(); @@ -145,7 +145,7 @@ import org.eclipse.ui.part.ResourceTransfer; /** * Set the clipboard contents. Prompt to retry if clipboard is busy. - * + * * @param resources the resources to copy to the clipboard * @param fileNames file names of the resources to copy to the clipboard * @param names string representation of all names @@ -178,19 +178,19 @@ import org.eclipse.ui.part.ResourceTransfer; } } - + /* (non-Javadoc) * @see org.eclipse.ui.actions.BaseSelectionListenerAction#updateSelection(org.eclipse.jface.viewers.IStructuredSelection) */ @Override protected boolean updateSelection(IStructuredSelection selection) { - + /** * The <code>CopyAction</code> implementation of this - * <code>SelectionListenerAction</code> method enables this action if + * <code>SelectionListenerAction</code> method enables this action if * one or more resources of compatible types are selected. */ - + if (!super.updateSelection(selection)) { return false; } @@ -216,7 +216,7 @@ import org.eclipse.ui.part.ResourceTransfer; return false; } - // must have a common parent + // must have a common parent IContainer firstParent = ((IResource) selectedResources.get(0)) .getParent(); if (firstParent == null) { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/FilterSelectionAction.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/FilterSelectionAction.java index 48055444306..3ab7abe8820 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/FilterSelectionAction.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/FilterSelectionAction.java @@ -32,7 +32,7 @@ public class FilterSelectionAction extends ResourceNavigatorAction { /** * Creates the action. - * + * * @param navigator the resource navigator * @param label the label for the action */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/FiltersContentProvider.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/FiltersContentProvider.java index ed0d1d481bf..022ee99c291 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/FiltersContentProvider.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/FiltersContentProvider.java @@ -39,8 +39,8 @@ import org.eclipse.ui.internal.ide.IDEWorkbenchPlugin; /** * Create a FiltersContentProvider using the selections from the supplied * resource filter. - * - * @param filter the resource pattern filter + * + * @param filter the resource pattern filter */ public FiltersContentProvider(ResourcePatternFilter filter) { this.resourceFilter = filter; @@ -87,8 +87,8 @@ import org.eclipse.ui.internal.ide.IDEWorkbenchPlugin; /** * Return the initially selected elements. - * - * @return an array with the initial selections + * + * @return an array with the initial selections */ public String[] getInitialSelections() { return this.resourceFilter.getPatterns(); @@ -102,13 +102,13 @@ import org.eclipse.ui.internal.ide.IDEWorkbenchPlugin; } /** - * Reads the filters currently defined for the workbench. + * Reads the filters currently defined for the workbench. */ private static void readFilters() { definedFilters = new ArrayList(); defaultFilters = new ArrayList(); IExtensionPoint extension = Platform.getExtensionRegistry() - .getExtensionPoint(IDEWorkbenchPlugin.IDE_WORKBENCH + '.' + .getExtensionPoint(IDEWorkbenchPlugin.IDE_WORKBENCH + '.' + ResourcePatternFilter.FILTERS_TAG); if (extension != null) { IExtension[] extensions = extension.getExtensions(); diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/GotoResourceAction.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/GotoResourceAction.java index 443d76973eb..a410d29ed76 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/GotoResourceAction.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/GotoResourceAction.java @@ -25,7 +25,7 @@ import org.eclipse.ui.PlatformUI; public class GotoResourceAction extends ResourceNavigatorAction { /** * Creates a new instance of the class. - * + * * @param navigator the navigator * @param label the label * @since 2.0 diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/GotoResourceDialog.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/GotoResourceDialog.java index b2c27934efd..627a3137f3b 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/GotoResourceDialog.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/GotoResourceDialog.java @@ -19,7 +19,7 @@ import org.eclipse.ui.internal.views.navigator.ResourceNavigatorMessages; /** * Shows a list of resources to the user with a text entry field for a string * pattern used to filter the list of resources. - * + * * @deprecated as of 3.5, use the Common Navigator Framework classes instead */ @Deprecated diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/INavigatorHelpContextIds.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/INavigatorHelpContextIds.java index 08d78a1094d..6c8c196c8d7 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/INavigatorHelpContextIds.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/INavigatorHelpContextIds.java @@ -6,7 +6,7 @@ * http://www.eclipse.org/legal/epl-v10.html * * Contributors: - * IBM Corporation - initial API and implementation + * IBM Corporation - initial API and implementation * Sebastian Davids <sdavids@gmx.de> - Collapse all action (25826) *******************************************************************************/ package org.eclipse.ui.views.navigator; @@ -21,7 +21,7 @@ import org.eclipse.ui.PlatformUI; * </p> * @noextend This interface is not intended to be extended by clients. * @noimplement This interface is not intended to be implemented by clients. - * + * */ /*package*/interface INavigatorHelpContextIds { public static final String PREFIX = PlatformUI.PLUGIN_ID + "."; //$NON-NLS-1$ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/IResourceNavigator.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/IResourceNavigator.java index e5b0e2f6831..e7574a58334 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/IResourceNavigator.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/IResourceNavigator.java @@ -20,10 +20,10 @@ import org.eclipse.ui.views.framelist.FrameList; * The action groups should restrict themselves to using this API. * <p> * This interface is not intended to be implemented by clients. - * Subclass <code>org.eclipse.ui.views.ResourceNavigator</code> - * instead. + * Subclass <code>org.eclipse.ui.views.ResourceNavigator</code> + * instead. * </p> - * + * * @since 2.0 * @noimplement This interface is not intended to be implemented by clients. * @deprecated as of 3.5, use the Common Navigator Framework classes instead @@ -49,7 +49,7 @@ public interface IResourceNavigator extends IViewPart { /** * Returns the current sorter. * @return the resource navigator's sorter - * + * * @deprecated as of 3.3, use {@link IResourceNavigator#getComparator()} instead */ @Deprecated @@ -58,7 +58,7 @@ public interface IResourceNavigator extends IViewPart { /** * Sets the current sorter. * @param sorter the sorter to use - * + * * @deprecated as of 3.3, use {@link IResourceNavigator#setComparator(ResourceComparator)} instead */ @Deprecated @@ -66,7 +66,7 @@ public interface IResourceNavigator extends IViewPart { /** * Returns the current comparator. - * + * * @return the resource navigator's comparator * @since 3.3 */ @@ -74,14 +74,14 @@ public interface IResourceNavigator extends IViewPart { /** * Sets the current comparator. - * + * * @param comparator the comparator to use * @since 3.3 */ void setComparator(ResourceComparator comparator); - + /** - * Sets the values of the filter preference to be the + * Sets the values of the filter preference to be the * strings in preference values. * @param patterns filter patterns to use on contents of the resource navigator */ @@ -95,13 +95,13 @@ public interface IResourceNavigator extends IViewPart { /** * Returns the frame list for this navigator. - * @return the list of frames maintained by the resource navigator + * @return the list of frames maintained by the resource navigator */ FrameList getFrameList(); /** * Returns whether this navigator's selection automatically tracks the active editor. - * + * * @return <code>true</code> if linking is enabled, <code>false</code> if not * @since 2.1 */ @@ -109,7 +109,7 @@ public interface IResourceNavigator extends IViewPart { /** * Sets the working set for this view, or <code>null</code> to clear it. - * + * * @param workingSet the working set, or <code>null</code> to clear it * @since 2.0 */ @@ -117,7 +117,7 @@ public interface IResourceNavigator extends IViewPart { /** * Sets whether this navigator's selection automatically tracks the active editor. - * + * * @param enabled <code>true</code> to enable, <code>false</code> to disable * @since 2.1 */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/LocalSelectionTransfer.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/LocalSelectionTransfer.java index 8f0df341ea4..f8229b9f0e8 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/LocalSelectionTransfer.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/LocalSelectionTransfer.java @@ -20,7 +20,7 @@ import org.eclipse.swt.dnd.TransferData; * dropAccept does not contain the drop data. The selection may be used for * validation purposes so that the drop can be aborted if appropriate. This * class is not intended to be subclassed. - * + * * @since 2.1 * @noextend This class is not intended to be subclassed by clients. * @deprecated as of 3.5, use {@link org.eclipse.jface.util.LocalSelectionTransfer} instead @@ -49,7 +49,7 @@ public class LocalSelectionTransfer extends /** * Returns the singleton. - * + * * @return the singleton */ public static LocalSelectionTransfer getInstance() { @@ -58,7 +58,7 @@ public class LocalSelectionTransfer extends /* * (non-Javadoc) - * + * * @see org.eclipse.jface.util.LocalSelectionTransfer#getSelection() */ @Override @@ -68,7 +68,7 @@ public class LocalSelectionTransfer extends /* * (non-Javadoc) - * + * * @see org.eclipse.jface.util.LocalSelectionTransfer#getSelectionSetTime() */ @Override @@ -78,7 +78,7 @@ public class LocalSelectionTransfer extends /* * (non-Javadoc) - * + * * @see org.eclipse.jface.util.LocalSelectionTransfer#setSelection(org.eclipse.jface.viewers.ISelection) */ @Override @@ -88,14 +88,14 @@ public class LocalSelectionTransfer extends /* * (non-Javadoc) - * + * * @see org.eclipse.jface.util.LocalSelectionTransfer#setSelectionSetTime(long) */ @Override public void setSelectionSetTime(long time) { jfaceTransfer.setSelectionSetTime(time); } - + /* (non-Javadoc) * @see org.eclipse.jface.util.LocalSelectionTransfer#javaToNative(java.lang.Object, org.eclipse.swt.dnd.TransferData) */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/MainActionGroup.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/MainActionGroup.java index 323e7ecb610..52cc5415a05 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/MainActionGroup.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/MainActionGroup.java @@ -63,7 +63,7 @@ public class MainActionGroup extends ResourceNavigatorActionGroup { protected PropertyDialogAction propertyDialogAction; protected ImportResourcesAction importAction; - + protected ExportResourcesAction exportAction; protected CollapseAllAction collapseAllAction; @@ -79,7 +79,7 @@ public class MainActionGroup extends ResourceNavigatorActionGroup { protected WorkingSetFilterActionGroup workingSetGroup; protected SortAndFilterActionGroup sortAndFilterGroup; - + protected UndoRedoActionGroup undoRedoGroup; protected WorkspaceActionGroup workspaceGroup; @@ -90,7 +90,7 @@ public class MainActionGroup extends ResourceNavigatorActionGroup { /** * Constructs the main action group. - * + * * @param navigator the navigator view */ public MainActionGroup(IResourceNavigator navigator) { @@ -167,14 +167,14 @@ public class MainActionGroup extends ResourceNavigatorActionGroup { importAction .setDisabledImageDescriptor(getImageDescriptor("dtool16/import_wiz.png")); //$NON-NLS-1$ importAction - .setImageDescriptor(getImageDescriptor("etool16/import_wiz.png")); //$NON-NLS-1$ + .setImageDescriptor(getImageDescriptor("etool16/import_wiz.png")); //$NON-NLS-1$ exportAction = new ExportResourcesAction(navigator.getSite() .getWorkbenchWindow()); exportAction .setDisabledImageDescriptor(getImageDescriptor("dtool16/export_wiz.png")); //$NON-NLS-1$ exportAction - .setImageDescriptor(getImageDescriptor("etool16/export_wiz.png")); //$NON-NLS-1$ + .setImageDescriptor(getImageDescriptor("etool16/export_wiz.png")); //$NON-NLS-1$ collapseAllAction = new CollapseAllAction(navigator, ResourceNavigatorMessages.CollapseAllAction_title); @@ -225,7 +225,7 @@ public class MainActionGroup extends ResourceNavigatorActionGroup { undoRedoGroup= new UndoRedoActionGroup(getNavigator().getSite(), workspaceContext, true); } - + /** * Extends the superclass implementation to set the context in the subgroups. */ @@ -243,7 +243,7 @@ public class MainActionGroup extends ResourceNavigatorActionGroup { /** * Fills the context menu with the actions contained in this group * and its subgroups. - * + * * @param menu the context menu */ @Override @@ -351,7 +351,7 @@ public class MainActionGroup extends ResourceNavigatorActionGroup { } /** - * Extends the superclass implementation to dispose the + * Extends the superclass implementation to dispose the * actions in this group and its subgroups. */ @Override diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/NavigatorDragAdapter.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/NavigatorDragAdapter.java index c727461ea9b..d27ae328486 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/NavigatorDragAdapter.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/NavigatorDragAdapter.java @@ -40,7 +40,7 @@ import org.eclipse.ui.statushandlers.StatusManager; /** * Implements drag behaviour when items are dragged out of the * resource navigator. - * + * * @since 2.0 * @deprecated as of 3.5, use the Common Navigator Framework classes instead */ @@ -77,7 +77,7 @@ public class NavigatorDragAdapter extends DragSourceAdapter { final int typeMask = IResource.FOLDER | IResource.FILE; if (event.detail == DND.DROP_MOVE) { - //never delete resources when dragging outside Eclipse. + //never delete resources when dragging outside Eclipse. //workaround for bug 30543. if (lastDataType != null && FileTransfer.getInstance().isSupportedType(lastDataType)) { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/NavigatorDropAdapter.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/NavigatorDropAdapter.java index 75f209a651d..fcb9649036c 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/NavigatorDropAdapter.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/NavigatorDropAdapter.java @@ -50,7 +50,7 @@ import org.eclipse.ui.part.ResourceTransfer; /** * Implements drop behaviour for drag and drop operations * that land on the resource navigator. - * + * * @since 2.0 * @deprecated as of 3.5, use the Common Navigator Framework classes instead */ @@ -69,7 +69,7 @@ public class NavigatorDropAdapter extends PluginDropAdapter implements IOverwrit /** * Constructs a new drop adapter. - * + * * @param viewer the navigator's viewer */ public NavigatorDropAdapter(StructuredViewer viewer) { @@ -144,7 +144,7 @@ public class NavigatorDropAdapter extends PluginDropAdapter implements IOverwrit /** * Returns the resource selection from the LocalSelectionTransfer. - * + * * @return the resource selection from the LocalSelectionTransfer */ private IResource[] getSelectedResources() { @@ -374,7 +374,7 @@ public class NavigatorDropAdapter extends PluginDropAdapter implements IOverwrit getCurrentTransfer())); IContainer target = getActualTarget((IResource) getCurrentTarget()); - + boolean shouldLinkAutomatically = false; if (target.isVirtual()) { shouldLinkAutomatically = true; @@ -385,7 +385,7 @@ public class NavigatorDropAdapter extends PluginDropAdapter implements IOverwrit } } } - + if (shouldLinkAutomatically) { CopyFilesAndFoldersOperation operation = new CopyFilesAndFoldersOperation( getShell()); diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/NavigatorFrameSource.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/NavigatorFrameSource.java index 09fe942674f..280c463ad58 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/NavigatorFrameSource.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/NavigatorFrameSource.java @@ -29,7 +29,7 @@ public class NavigatorFrameSource extends TreeViewerFrameSource { /** * Constructs a new frame source for the specified resource navigator. - * + * * @param navigator the resource navigator */ public NavigatorFrameSource(ResourceNavigator navigator) { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/OpenActionGroup.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/OpenActionGroup.java index 50747edf95a..1f2f2e9187a 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/OpenActionGroup.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/OpenActionGroup.java @@ -42,7 +42,7 @@ public class OpenActionGroup extends ResourceNavigatorActionGroup { /** * Creates a new action group for open actions. - * + * * @param navigator the resource navigator */ public OpenActionGroup(IResourceNavigator navigator) { @@ -79,7 +79,7 @@ public class OpenActionGroup extends ResourceNavigatorActionGroup { /** * Adds the OpenWith submenu to the context menu. - * + * * @param menu the context menu * @param selection the current selection */ @@ -103,7 +103,7 @@ public class OpenActionGroup extends ResourceNavigatorActionGroup { /** * Adds the Open in New Window action to the context menu. - * + * * @param menu the context menu * @param selection the current selection */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/PasteAction.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/PasteAction.java index ac0c88b52c4..7ffebc668ec 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/PasteAction.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/PasteAction.java @@ -78,7 +78,7 @@ import org.eclipse.ui.part.ResourceTransfer; /** * Returns the actual target of the paste action. Returns null * if no valid target is selected. - * + * * @return the actual target of the paste action */ private IResource getTarget() { @@ -102,9 +102,9 @@ import org.eclipse.ui.part.ResourceTransfer; /** * Returns whether any of the given resources are linked resources. - * + * * @param resources resource to check for linked type. may be null - * @return true=one or more resources are linked. false=none of the + * @return true=one or more resources are linked. false=none of the * resources are linked */ private boolean isLinked(IResource[] resources) { @@ -173,14 +173,14 @@ import org.eclipse.ui.part.ResourceTransfer; /** * The <code>PasteAction</code> implementation of this - * <code>SelectionListenerAction</code> method enables this action if + * <code>SelectionListenerAction</code> method enables this action if * a resource compatible with what is on the clipboard is selected. - * + * * -Clipboard must have IResource or java.io.File * -Projects can always be pasted if they are open * -Workspace folder may not be copied into itself - * -Files and folders may be pasted to a single selected folder in open - * project or multiple selected files in the same folder + * -Files and folders may be pasted to a single selected folder in open + * project or multiple selected files in the same folder */ @Override protected boolean updateSelection(IStructuredSelection selection) { @@ -219,13 +219,13 @@ import org.eclipse.ui.part.ResourceTransfer; } IResource targetResource = getTarget(); - // targetResource is null if no valid target is selected (e.g., open project) - // or selection is empty + // targetResource is null if no valid target is selected (e.g., open project) + // or selection is empty if (targetResource == null) { return false; } - // can paste files and folders to a single selection (file, folder, + // can paste files and folders to a single selection (file, folder, // open project) or multiple file selection with the same parent List selectedResources = getSelectedResources(); if (selectedResources.size() > 1) { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/RefactorActionGroup.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/RefactorActionGroup.java index 537debd8b13..b97d9c0597d 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/RefactorActionGroup.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/RefactorActionGroup.java @@ -29,7 +29,7 @@ import org.eclipse.ui.actions.TextActionHandler; /** * This is the action group for refactor actions, * including global action handlers for copy, paste and delete. - * + * * @since 2.0 * @deprecated as of 3.5, use the Common Navigator Framework classes instead */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/ResourceComparator.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/ResourceComparator.java index 9a59962b626..d58f9ffe33d 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/ResourceComparator.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/ResourceComparator.java @@ -31,7 +31,7 @@ import org.eclipse.jface.viewers.ViewerComparator; * <p> * This class may be instantiated; it is not intended to be subclassed. * </p> - * + * * @since 3.3 */ public class ResourceComparator extends ViewerComparator { @@ -51,7 +51,7 @@ public class ResourceComparator extends ViewerComparator { /** * Creates a resource sorter that will use the given sort criteria. * - * @param criteria the sort criterion to use: one of <code>NAME</code> or + * @param criteria the sort criterion to use: one of <code>NAME</code> or * <code>TYPE</code> */ public ResourceComparator(int criteria) { @@ -60,7 +60,7 @@ public class ResourceComparator extends ViewerComparator { } /** - * Returns an integer value representing the relative sort priority of the + * Returns an integer value representing the relative sort priority of the * given element based on its class. * <p> * <ul> @@ -86,7 +86,7 @@ public class ResourceComparator extends ViewerComparator { @Override public int compare(Viewer viewer, Object o1, Object o2) { //have to deal with non-resources in navigator - //if one or both objects are not resources, returned a comparison + //if one or both objects are not resources, returned a comparison //based on class. if (!(o1 instanceof IResource && o2 instanceof IResource)) { return compareClass(o1, o2); @@ -115,7 +115,7 @@ public class ResourceComparator extends ViewerComparator { * * @param element1 the first element to be ordered * @param element2 the second element to be ordered - * @return a negative number if the first element is less than the + * @return a negative number if the first element is less than the * second element; the value <code>0</code> if the first element is * equal to the second element; and a positive number if the first * element is greater than the second element @@ -130,7 +130,7 @@ public class ResourceComparator extends ViewerComparator { * * @param resource1 the first resource element to be ordered * @param resource2 the second resource element to be ordered - * @return a negative number if the first element is less than the + * @return a negative number if the first element is less than the * second element; the value <code>0</code> if the first element is * equal to the second element; and a positive number if the first * element is greater than the second element @@ -146,7 +146,7 @@ public class ResourceComparator extends ViewerComparator { * * @param resource1 the first resource element to be ordered * @param resource2 the second resource element to be ordered - * @return a negative number if the first element is less than the + * @return a negative number if the first element is less than the * second element; the value <code>0</code> if the first element is * equal to the second element; and a positive number if the first * element is greater than the second element @@ -189,9 +189,9 @@ public class ResourceComparator extends ViewerComparator { /** * Sets the sort criteria of this sorter. - * - * @param criteria the sort criterion: - * one of <code>ResourceSorter.NAME</code> or + * + * @param criteria the sort criterion: + * one of <code>ResourceSorter.NAME</code> or * <code>ResourceSorter.TYPE</code> */ public void setCriteria(int criteria) { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/ResourceNavigator.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/ResourceNavigator.java index df2547a8704..faf97660761 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/ResourceNavigator.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/ResourceNavigator.java @@ -141,7 +141,7 @@ public class ResourceNavigator extends ViewPart implements ISetSelectionTarget, * event we're effectively not using a working set. */ private boolean emptyWorkingSet = false; - + /** * Settings constant for section name (value <code>ResourceNavigator</code>). */ @@ -167,7 +167,7 @@ public class ResourceNavigator extends ViewPart implements ISetSelectionTarget, * True iff we've already scheduled an asynchronous call to linkToEditor */ private boolean linkScheduled = false; - + // Persistance tags. private static final String TAG_SORTER = "sorter"; //$NON-NLS-1$ @@ -221,7 +221,7 @@ public class ResourceNavigator extends ViewPart implements ISetSelectionTarget, String property = event.getProperty(); Object newValue = event.getNewValue(); Object oldValue = event.getOldValue(); - + if (IWorkingSetManager.CHANGE_WORKING_SET_REMOVE.equals(property) && oldValue == workingSet) { setWorkingSet(null); @@ -252,10 +252,10 @@ public class ResourceNavigator extends ViewPart implements ISetSelectionTarget, }; private CollapseAllHandler collapseAllHandler; - + /** * Helper to open and activate editors. - * + * * @since 3.5 */ private OpenAndLinkWithEditorHelper openAndLinkWithEditorHelper; @@ -354,7 +354,7 @@ public class ResourceNavigator extends ViewPart implements ISetSelectionTarget, /** * Returns the help context id to use for this view. - * + * * @since 2.0 */ protected String getHelpContextId() { @@ -363,7 +363,7 @@ public class ResourceNavigator extends ViewPart implements ISetSelectionTarget, /** * Initializes and registers the context menu. - * + * * @since 2.0 */ protected void initContextMenu() { @@ -383,7 +383,7 @@ public class ResourceNavigator extends ViewPart implements ISetSelectionTarget, /** * Creates the viewer. - * + * * @param parent the parent composite * @since 2.0 */ @@ -401,7 +401,7 @@ public class ResourceNavigator extends ViewPart implements ISetSelectionTarget, /** * Sets the content provider for the viewer. - * + * * @param viewer the viewer * @since 2.0 */ @@ -411,7 +411,7 @@ public class ResourceNavigator extends ViewPart implements ISetSelectionTarget, /** * Sets the label provider for the viewer. - * + * * @param viewer the viewer * @since 2.0 */ @@ -423,7 +423,7 @@ public class ResourceNavigator extends ViewPart implements ISetSelectionTarget, /** * Adds the filters to the viewer. - * + * * @param viewer the viewer * @since 2.0 */ @@ -451,7 +451,7 @@ public class ResourceNavigator extends ViewPart implements ISetSelectionTarget, /** * Adds the listeners to the viewer. - * + * * @param viewer the viewer * @since 2.0 */ @@ -468,7 +468,7 @@ public class ResourceNavigator extends ViewPart implements ISetSelectionTarget, handleDoubleClick(event); } }); - + openAndLinkWithEditorHelper = new OpenAndLinkWithEditorHelper(viewer) { @Override protected void activate(ISelection selection) { @@ -481,7 +481,7 @@ public class ResourceNavigator extends ViewPart implements ISetSelectionTarget, page.activate(editor); } } - + } @Override @@ -517,7 +517,7 @@ public class ResourceNavigator extends ViewPart implements ISetSelectionTarget, } }; - + viewer.getControl().addKeyListener(new KeyListener() { @Override @@ -530,7 +530,7 @@ public class ResourceNavigator extends ViewPart implements ISetSelectionTarget, handleKeyReleased(event); } }); - + openAndLinkWithEditorHelper.setLinkWithEditor(linkingEnabled); } @@ -548,7 +548,7 @@ public class ResourceNavigator extends ViewPart implements ISetSelectionTarget, if (collapseAllHandler != null) { collapseAllHandler.dispose(); } - + if (getActionGroup() != null) { getActionGroup().dispose(); } @@ -557,14 +557,14 @@ public class ResourceNavigator extends ViewPart implements ISetSelectionTarget, && control.isDisposed() == false) { control.removeListener(SWT.DragDetect, dragDetectListener); } - + super.dispose(); } /** * An editor has been activated. Sets the selection in this navigator * to be the editor's input, if linking is enabled. - * + * * @param editor the active editor * @since 2.0 */ @@ -611,7 +611,7 @@ public class ResourceNavigator extends ViewPart implements ISetSelectionTarget, * If the resource is a container, it uses that. * If the resource is a file, it uses its parent folder. * If a resource could not be obtained, it uses the workspace root. - * + * * @since 2.0 */ protected IAdaptable getInitialInput() { @@ -674,7 +674,7 @@ public class ResourceNavigator extends ViewPart implements ISetSelectionTarget, * Return the sorter. If a comparator was set using * {@link #setComparator(ResourceComparator)}, this method will return * <code>null</code>. - * + * * @since 2.0 * @deprecated as of 3.3, use {@link ResourceNavigator#getComparator()} */ @@ -692,7 +692,7 @@ public class ResourceNavigator extends ViewPart implements ISetSelectionTarget, * Returns the comparator. If a sorter was set using * {@link #setSorter(ResourceSorter)}, this method will return * <code>null</code>. - * + * * @return the <code>ResourceComparator</code> * @since 3.3 */ @@ -726,7 +726,7 @@ public class ResourceNavigator extends ViewPart implements ISetSelectionTarget, /** * Returns the shell to use for opening dialogs. * Used in this class, and in the actions. - * + * * @return the shell * @deprecated use getViewSite().getShell() */ @@ -784,7 +784,7 @@ public class ResourceNavigator extends ViewPart implements ISetSelectionTarget, } return path.makeRelative().toString(); } - + String text = ((ILabelProvider) getTreeViewer().getLabelProvider()) .getText(element); if(text == null) { @@ -795,7 +795,7 @@ public class ResourceNavigator extends ViewPart implements ISetSelectionTarget, /** * Handles an open event from the viewer. Opens an editor on the selected file. - * + * * @param event the open event * @since 2.0 * @deprecated As of 3.5, replaced by {@link #handleOpen(ISelection)} @@ -807,7 +807,7 @@ public class ResourceNavigator extends ViewPart implements ISetSelectionTarget, /** * Handles an open event from the viewer. Opens an editor on the selected file. - * + * * @param selection the selection * @since 3.5 */ @@ -820,7 +820,7 @@ public class ResourceNavigator extends ViewPart implements ISetSelectionTarget, /** * Handles a double-click event from the viewer. * Expands or collapses a folder when double-clicked. - * + * * @param event the double-click event * @since 2.0 */ @@ -847,7 +847,7 @@ public class ResourceNavigator extends ViewPart implements ISetSelectionTarget, /** * Handles a selection changed event from the viewer. * Updates the status line and the action bars, and links to editor (if option enabled). - * + * * @param event the selection event * @since 2.0 */ @@ -862,7 +862,7 @@ public class ResourceNavigator extends ViewPart implements ISetSelectionTarget, /** * Handles a key press event from the viewer. * Delegates to the action group. - * + * * @param event the key event * @since 2.0 */ @@ -872,7 +872,7 @@ public class ResourceNavigator extends ViewPart implements ISetSelectionTarget, /** * Handles a key release in the viewer. Does nothing by default. - * + * * @param event the key event * @since 2.0 */ @@ -890,7 +890,7 @@ public class ResourceNavigator extends ViewPart implements ISetSelectionTarget, /** * Adds drag and drop support to the navigator. - * + * * @since 2.0 */ protected void initDragAndDrop() { @@ -915,7 +915,7 @@ public class ResourceNavigator extends ViewPart implements ISetSelectionTarget, /** * Creates the frame source and frame list, and connects them. - * + * * @since 2.0 */ protected FrameList createFrameList() { @@ -927,7 +927,7 @@ public class ResourceNavigator extends ViewPart implements ISetSelectionTarget, /** * Initializes the sorter. - * + * * @deprecated as of 3.3, use {@link ResourceNavigator#initResourceComparator()} instead */ @Deprecated @@ -951,7 +951,7 @@ public class ResourceNavigator extends ViewPart implements ISetSelectionTarget, } setSorter(new ResourceSorter(sortType)); } - + /** * Initializes the comparator. * @since 3.3 @@ -984,7 +984,7 @@ public class ResourceNavigator extends ViewPart implements ISetSelectionTarget, String workingSetName = settings.get(STORE_WORKING_SET); IWorkingSet workingSet = null; - + if (workingSetName != null && workingSetName.equals("") == false) { //$NON-NLS-1$ IWorkingSetManager workingSetManager = getPlugin().getWorkbench() .getWorkingSetManager(); @@ -1009,7 +1009,7 @@ public class ResourceNavigator extends ViewPart implements ISetSelectionTarget, /** * Returns whether the navigator selection automatically tracks the active * editor. - * + * * @return <code>true</code> if linking is enabled, <code>false</code> * if not * @since 2.0 (this was protected in 2.0, but was made public in 2.1) @@ -1021,7 +1021,7 @@ public class ResourceNavigator extends ViewPart implements ISetSelectionTarget, /** * Brings the corresponding editor to top if the selected resource is open. - * + * * @since 2.0 * @deprecated As of 3.5, replaced by {@link #linkToEditor(ISelection)} */ @@ -1032,14 +1032,14 @@ public class ResourceNavigator extends ViewPart implements ISetSelectionTarget, /** * Brings the corresponding editor to top if the selected resource is open. - * + * * @since 3.5 */ protected void linkToEditor(ISelection selection) { if (this != this.getSite().getPage().getActivePart()) return; - + Object obj = getSingleElement(selection); if (obj instanceof IFile) { IFile file = (IFile) obj; @@ -1058,7 +1058,7 @@ public class ResourceNavigator extends ViewPart implements ISetSelectionTarget, protected void makeActions() { MainActionGroup group = new MainActionGroup(this); setActionGroup(group); - + IHandlerService service = getSite().getService(IHandlerService.class); service.activateHandler(IWorkbenchCommandConstants.NAVIGATE_TOGGLE_LINK_WITH_EDITOR, new ActionHandler(group.toggleLinkingAction)); @@ -1350,7 +1350,7 @@ public class ResourceNavigator extends ViewPart implements ISetSelectionTarget, /** * Sets the resource sorter. - * + * * @param sorter the resource sorter * @since 2.0 * @deprecated as of 3.3, use {@link ResourceNavigator#setComparator(ResourceComparator)} @@ -1373,10 +1373,10 @@ public class ResourceNavigator extends ViewPart implements ISetSelectionTarget, // update the sort actions' checked state updateActionBars((IStructuredSelection) viewer.getSelection()); } - + /** * Sets the resource comparator - * + * * @param comparator the resource comparator * @since 3.3 */ @@ -1407,9 +1407,9 @@ public class ResourceNavigator extends ViewPart implements ISetSelectionTarget, TreeViewer treeViewer = getTreeViewer(); Object[] expanded = treeViewer.getExpandedElements(); ISelection selection = treeViewer.getSelection(); - + boolean refreshNeeded = internalSetWorkingSet(workingSet); - + workingSetFilter.setWorkingSet(emptyWorkingSet ? null : workingSet); if (workingSet != null) { settings.put(STORE_WORKING_SET, workingSet.getName()); @@ -1430,7 +1430,7 @@ public class ResourceNavigator extends ViewPart implements ISetSelectionTarget, /** * Set the internal working set fields specific to the navigator. - * + * * @param workingSet * the new working set * @since 3.2 @@ -1445,7 +1445,7 @@ public class ResourceNavigator extends ViewPart implements ISetSelectionTarget, /** * Updates the action bar actions. - * + * * @param selection the current selection * @since 2.0 */ @@ -1471,7 +1471,7 @@ public class ResourceNavigator extends ViewPart implements ISetSelectionTarget, * Updates the title text and title tool tip. * Called whenever the input of the viewer changes. * Called whenever the input of the viewer changes. - * + * * @since 2.0 */ public void updateTitle() { @@ -1505,7 +1505,7 @@ public class ResourceNavigator extends ViewPart implements ISetSelectionTarget, /** * Returns the action group. - * + * * @return the action group */ protected ResourceNavigatorActionGroup getActionGroup() { @@ -1514,7 +1514,7 @@ public class ResourceNavigator extends ViewPart implements ISetSelectionTarget, /** * Sets the action group. - * + * * @param actionGroup the action group */ protected void setActionGroup(ResourceNavigatorActionGroup actionGroup) { @@ -1603,10 +1603,10 @@ public class ResourceNavigator extends ViewPart implements ISetSelectionTarget, } }; } - + /** * Returns the selected element if the selection consists of a single element only. - * + * * @param s the selection * @return the selected first element or null * @since 3.5 diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/ResourceNavigatorActionGroup.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/ResourceNavigatorActionGroup.java index ec5167e10de..28a22f3757b 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/ResourceNavigatorActionGroup.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/ResourceNavigatorActionGroup.java @@ -6,7 +6,7 @@ * http://www.eclipse.org/legal/epl-v10.html * * Contributors: - * IBM Corporation - initial API and implementation + * IBM Corporation - initial API and implementation * Sebastian Davids <sdavids@gmx.de> - Images for menu items (27481) *******************************************************************************/ package org.eclipse.ui.views.navigator; @@ -20,13 +20,13 @@ import org.eclipse.ui.internal.ide.IDEWorkbenchPlugin; /** * This is the action group for all the resource navigator actions. * It delegates to several subgroups for most of the actions. - * + * * @see GotoActionGroup * @see OpenActionGroup * @see RefactorActionGroup * @see SortAndFilterActionGroup * @see WorkspaceActionGroup - * + * * @since 2.0 * @deprecated as of 3.5, use the Common Navigator Framework classes instead */ @@ -37,10 +37,10 @@ public abstract class ResourceNavigatorActionGroup extends ActionGroup { * The resource navigator. */ protected IResourceNavigator navigator; - + /** * Constructs a new navigator action group and creates its actions. - * + * * @param navigator the resource navigator */ public ResourceNavigatorActionGroup(IResourceNavigator navigator) { @@ -53,7 +53,7 @@ public abstract class ResourceNavigatorActionGroup extends ActionGroup { */ protected ImageDescriptor getImageDescriptor(String relativePath) { return IDEWorkbenchPlugin.getIDEImageDescriptor(relativePath); - + } /** @@ -78,7 +78,7 @@ public abstract class ResourceNavigatorActionGroup extends ActionGroup { /** * Runs the default action in the group. * Does nothing by default. - * + * * @param selection the current selection */ public void runDefaultAction(IStructuredSelection selection) { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/ResourceNavigatorMessages.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/ResourceNavigatorMessages.java index 11c6636f390..ff054c8ef3d 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/ResourceNavigatorMessages.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/ResourceNavigatorMessages.java @@ -17,18 +17,18 @@ package org.eclipse.ui.views.navigator; * @deprecated These messages are not API and should not be referenced * outside of this plug-in. * @noextend This class is not intended to be subclassed by clients. - * @noinstantiate This class is not intended to be instantiated by clients. + * @noinstantiate This class is not intended to be instantiated by clients. */ @Deprecated public class ResourceNavigatorMessages { - + private ResourceNavigatorMessages() { // prevent instantiation of class } /** * Returns the formatted message for the given key in - * the resource bundle. + * the resource bundle. * * @param key the resource name * @param args the message arguments diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/ResourceNavigatorMoveAction.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/ResourceNavigatorMoveAction.java index 7fdef6a7b69..19c0cf03281 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/ResourceNavigatorMoveAction.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/ResourceNavigatorMoveAction.java @@ -30,7 +30,7 @@ import org.eclipse.ui.actions.MoveResourceAction; * The ResourceNavigatorMoveAction is a resource move that aso updates the navigator * to show the result of the move. * It also delegates to MoveProjectAction as needed. - * + * * @since 2.0 * @deprecated as of 3.5, use the Common Navigator Framework classes instead */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/ResourcePatternFilter.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/ResourcePatternFilter.java index d35b8a84f07..b20db91a1e6 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/ResourcePatternFilter.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/ResourcePatternFilter.java @@ -24,7 +24,7 @@ import org.eclipse.ui.internal.util.PrefUtil; /** * Filter used to determine whether resources are to be shown or not. - * + * * @since 2.0 * @deprecated as of 3.5, use the Common Navigator Framework classes instead */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/ResourceSelectionUtil.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/ResourceSelectionUtil.java index 49aa036e31f..f490c2266c2 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/ResourceSelectionUtil.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/ResourceSelectionUtil.java @@ -39,9 +39,9 @@ public class ResourceSelectionUtil { } /** - * Returns whether the types of the resources in the given selection are among + * Returns whether the types of the resources in the given selection are among * the specified resource types. - * + * * @param selection the selection * @param resourceMask resource mask formed by bitwise OR of resource type * constants (defined on <code>IResource</code>) @@ -68,7 +68,7 @@ public class ResourceSelectionUtil { /** * Returns the selection adapted to IResource. Returns null * if any of the entries are not adaptable. - * + * * @param selection the selection * @param resourceMask resource mask formed by bitwise OR of resource type * constants (defined on <code>IResource</code>) @@ -98,13 +98,13 @@ public class ResourceSelectionUtil { } /** - * Returns whether the type of the given resource is among the specified + * Returns whether the type of the given resource is among the specified * resource types. - * + * * @param resource the resource * @param resourceMask resource mask formed by bitwise OR of resource type * constants (defined on <code>IResource</code>) - * @return <code>true</code> if the resources has a matching type, and + * @return <code>true</code> if the resources has a matching type, and * <code>false</code> otherwise * @see IResource#getType() */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/ResourceSorter.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/ResourceSorter.java index 10719180c84..2f6c4cc65bf 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/ResourceSorter.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/ResourceSorter.java @@ -31,7 +31,7 @@ import org.eclipse.jface.viewers.ViewerSorter; * <p> * This class may be instantiated; it is not intended to be subclassed. * </p> - * + * * @deprecated as of 3.3, use {@link ResourceComparator} instead * @noextend This class is not intended to be subclassed by clients. */ @@ -53,7 +53,7 @@ public class ResourceSorter extends ViewerSorter { /** * Creates a resource sorter that will use the given sort criteria. * - * @param criteria the sort criterion to use: one of <code>NAME</code> or + * @param criteria the sort criterion to use: one of <code>NAME</code> or * <code>TYPE</code> */ public ResourceSorter(int criteria) { @@ -62,7 +62,7 @@ public class ResourceSorter extends ViewerSorter { } /** - * Returns an integer value representing the relative sort priority of the + * Returns an integer value representing the relative sort priority of the * given element based on its class. * <p> * <ul> @@ -88,7 +88,7 @@ public class ResourceSorter extends ViewerSorter { @Override public int compare(Viewer viewer, Object o1, Object o2) { //have to deal with non-resources in navigator - //if one or both objects are not resources, returned a comparison + //if one or both objects are not resources, returned a comparison //based on class. if (!(o1 instanceof IResource && o2 instanceof IResource)) { return compareClass(o1, o2); @@ -117,7 +117,7 @@ public class ResourceSorter extends ViewerSorter { * * @param element1 the first element to be ordered * @param element2 the second element to be ordered - * @return a negative number if the first element is less than the + * @return a negative number if the first element is less than the * second element; the value <code>0</code> if the first element is * equal to the second element; and a positive number if the first * element is greater than the second element @@ -132,7 +132,7 @@ public class ResourceSorter extends ViewerSorter { * * @param resource1 the first resource element to be ordered * @param resource2 the second resource element to be ordered - * @return a negative number if the first element is less than the + * @return a negative number if the first element is less than the * second element; the value <code>0</code> if the first element is * equal to the second element; and a positive number if the first * element is greater than the second element @@ -148,7 +148,7 @@ public class ResourceSorter extends ViewerSorter { * * @param resource1 the first resource element to be ordered * @param resource2 the second resource element to be ordered - * @return a negative number if the first element is less than the + * @return a negative number if the first element is less than the * second element; the value <code>0</code> if the first element is * equal to the second element; and a positive number if the first * element is greater than the second element @@ -191,9 +191,9 @@ public class ResourceSorter extends ViewerSorter { /** * Sets the sort criteria of this sorter. - * - * @param criteria the sort criterion: - * one of <code>ResourceSorter.NAME</code> or + * + * @param criteria the sort criterion: + * one of <code>ResourceSorter.NAME</code> or * <code>ResourceSorter.TYPE</code> */ public void setCriteria(int criteria) { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/ShowInNavigatorAction.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/ShowInNavigatorAction.java index 1dfd407e96d..4e6d29745f5 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/ShowInNavigatorAction.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/ShowInNavigatorAction.java @@ -44,7 +44,7 @@ public class ShowInNavigatorAction extends SelectionProviderAction { /** * Create a new instance of this class. - * + * * @param page the page * @param viewer the viewer */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/SortAndFilterActionGroup.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/SortAndFilterActionGroup.java index 6b1add65851..d337715b7d0 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/SortAndFilterActionGroup.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/SortAndFilterActionGroup.java @@ -31,8 +31,8 @@ public class SortAndFilterActionGroup extends ResourceNavigatorActionGroup { private FilterSelectionAction filterAction; /** - * Constructor. - * + * Constructor. + * * @param navigator */ public SortAndFilterActionGroup(IResourceNavigator navigator) { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/StringMatcher.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/StringMatcher.java index 0d86a95fe28..285b3b3d79d 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/StringMatcher.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/StringMatcher.java @@ -14,7 +14,7 @@ import java.util.Vector; /** * A string pattern matcher, supporting ?*? and ??? wildcards. - * + * * @noextend This class is not intended to be subclassed by clients. * @noinstantiate This class is not intended to be instantiated by clients. */ @@ -58,14 +58,14 @@ import java.util.Vector; } /** - * StringMatcher constructor takes in a String object that is a simple + * StringMatcher constructor takes in a String object that is a simple * pattern which may contain '*' for 0 and many characters and - * '?' for exactly one character. + * '?' for exactly one character. * - * Literal '*' and '?' characters must be escaped in the pattern + * Literal '*' and '?' characters must be escaped in the pattern * e.g., "\*" means literal "*", etc. * - * Escaping any other character (including the escape character itself), + * Escaping any other character (including the escape character itself), * just results in that character in the pattern. * e.g., "\a" means "a" and "\\" means "\" * @@ -95,13 +95,13 @@ import java.util.Vector; } /** - * Find the first occurrence of the pattern between <code>start</code)(inclusive) - * and <code>end</code>(exclusive). - * @param <code>text</code>, the String object to search in + * Find the first occurrence of the pattern between <code>start</code)(inclusive) + * and <code>end</code>(exclusive). + * @param <code>text</code>, the String object to search in * @param <code>start</code>, the starting index of the search range, inclusive * @param <code>end</code>, the ending index of the search range, exclusive - * @return an <code>StringMatcher.Position</code> object that keeps the starting - * (inclusive) and ending positions (exclusive) of the first occurrence of the + * @return an <code>StringMatcher.Position</code> object that keeps the starting + * (inclusive) and ending positions (exclusive) of the first occurrence of the * pattern in the specified range of the text; return null if not found or subtext * is empty (start==end). A pair of zeros is returned if pattern is empty string * Note that for pattern like "*abc*" with leading and trailing stars, position of "abc" @@ -159,21 +159,21 @@ import java.util.Vector; } /** - * match the given <code>text</code> with the pattern + * match the given <code>text</code> with the pattern * @return true if matched eitherwise false - * @param <code>text</code>, a String object + * @param <code>text</code>, a String object */ public boolean match(String text) { return match(text, 0, text.length()); } /** - * Given the starting (inclusive) and the ending (exclusive) poisitions in the - * <code>text</code>, determine if the given substring matches with aPattern + * Given the starting (inclusive) and the ending (exclusive) poisitions in the + * <code>text</code>, determine if the given substring matches with aPattern * @return true if the specified portion of the text matches the pattern - * @param String <code>text</code>, a String object that contains the substring to match + * @param String <code>text</code>, a String object that contains the substring to match * @param int <code>start<code> marks the starting position (inclusive) of the substring - * @param int <code>end<code> marks the ending index (exclusive) of the substring + * @param int <code>end<code> marks the ending index (exclusive) of the substring */ public boolean match(String text, int start, int end) { if (null == text) { @@ -332,11 +332,11 @@ import java.util.Vector; temp.copyInto(fSegments); } - /** + /** * @param <code>text</code>, a string which contains no wildcard * @param <code>start</code>, the starting index in the text for search, inclusive * @param <code>end</code>, the stopping point of search, exclusive - * @return the starting index in the text of the pattern , or -1 if not found + * @return the starting index in the text of the pattern , or -1 if not found */ protected int posIn(String text, int start, int end) {//no wild card in pattern int max = end - fLength; @@ -358,13 +358,13 @@ import java.util.Vector; return -1; } - /** + /** * @param <code>text</code>, a simple regular expression that may only contain '?'(s) * @param <code>start</code>, the starting index in the text for search, inclusive * @param <code>end</code>, the stopping point of search, exclusive * @param <code>p</code>, a simple regular expression that may contains '?' * @param <code>caseIgnored</code>, wether the pattern is not casesensitive - * @return the starting index in the text of the pattern , or -1 if not found + * @return the starting index in the text of the pattern , or -1 if not found */ protected int regExpPosIn(String text, int start, int end, String p) { int plen = p.length(); @@ -379,7 +379,7 @@ import java.util.Vector; } /** - * + * * @return boolean * @param <code>text</code>, a String to match * @param <code>start</code>, int that indicates the starting index of match, inclusive @@ -420,13 +420,13 @@ import java.util.Vector; return true; } - /** + /** * @param <code>text</code>, the string to match * @param <code>start</code>, the starting index in the text for search, inclusive * @param <code>end</code>, the stopping point of search, exclusive * @param code>p</code>, a string that has no wildcard * @param <code>ignoreCase</code>, boolean indicating wether code>p</code> is case sensitive - * @return the starting index in the text of the pattern , or -1 if not found + * @return the starting index in the text of the pattern , or -1 if not found */ protected int textPosIn(String text, int start, int end, String p) { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/ToggleLinkingAction.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/ToggleLinkingAction.java index 947afa85554..56f76f99013 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/ToggleLinkingAction.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/ToggleLinkingAction.java @@ -16,7 +16,7 @@ import org.eclipse.ui.IWorkbenchCommandConstants; /** * This action toggles whether this navigator links its selection to the active * editor. - * + * * @since 2.1 * @deprecated as of 3.5, use the Common Navigator Framework classes instead */ @@ -26,7 +26,7 @@ public class ToggleLinkingAction extends ResourceNavigatorAction { /** * Constructs a new action. - * + * * @param navigator the resource navigator * @param label the label */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/WorkspaceActionGroup.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/WorkspaceActionGroup.java index 479bcba85e2..9cbbaeeff9f 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/WorkspaceActionGroup.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/WorkspaceActionGroup.java @@ -59,7 +59,7 @@ public class WorkspaceActionGroup extends ResourceNavigatorActionGroup { private OpenResourceAction openProjectAction; private CloseResourceAction closeProjectAction; - + private CloseUnrelatedProjectsAction closeUnrelatedProjectsAction; private RefreshAction refreshAction; @@ -86,8 +86,8 @@ public class WorkspaceActionGroup extends ResourceNavigatorActionGroup { * Adds the build, open project, close project and refresh resource * actions to the context menu. * <p> - * The following conditions apply: - * build-only projects selected, auto build disabled, at least one + * The following conditions apply: + * build-only projects selected, auto build disabled, at least one * builder present * open project-only projects selected, at least one closed project * close project-only projects selected, at least one open project @@ -100,7 +100,7 @@ public class WorkspaceActionGroup extends ResourceNavigatorActionGroup { * <p> * No disabled action should be on the context menu. * </p> - * + * * @param menu context menu to add actions to */ @Override @@ -110,7 +110,7 @@ public class WorkspaceActionGroup extends ResourceNavigatorActionGroup { boolean isProjectSelection = true; boolean hasOpenProjects = false; boolean hasClosedProjects = false; - boolean hasBuilder = true; // false if any project is closed or does not have builder + boolean hasBuilder = true; // false if any project is closed or does not have builder Iterator resources = selection.iterator(); while (resources.hasNext() @@ -192,7 +192,7 @@ public class WorkspaceActionGroup extends ResourceNavigatorActionGroup { return true; } } catch (CoreException e) { - // Cannot determine if project has builders. Project is closed + // Cannot determine if project has builders. Project is closed // or does not exist. Fall through to return false. } return false; @@ -244,7 +244,7 @@ public class WorkspaceActionGroup extends ResourceNavigatorActionGroup { } return errorStatus[0]; } - + }; ISchedulingRule rule = op.getRule(); if (rule != null) { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/properties/IDEPropertiesMessages.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/properties/IDEPropertiesMessages.java index bb1e980e630..59551954673 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/properties/IDEPropertiesMessages.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/properties/IDEPropertiesMessages.java @@ -25,7 +25,7 @@ class IDEPropertiesMessages { /** * Returns the formatted message for the given key in - * the resource bundle. + * the resource bundle. * * @param key the resource name * @param args the message arguments diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/properties/IResourcePropertyConstants.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/properties/IResourcePropertyConstants.java index 32408c97637..330d925f03d 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/properties/IResourcePropertyConstants.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/properties/IResourcePropertyConstants.java @@ -17,67 +17,67 @@ import org.eclipse.ui.internal.views.properties.IDEPropertiesMessages; * property source. */ public interface IResourcePropertyConstants { - /** + /** * The <code>IResource</code> property key for name. */ public static final String P_LABEL_RES = IDEPropertiesMessages.IResourcePropertyConstants_name; - /** + /** * The <code>IResource</code> property key for path. */ public static final String P_PATH_RES = "org.eclipse.ui.path"; //$NON-NLS-1$ - /** + /** * The <code>IResource</code> property key for display path. */ public static final String P_DISPLAYPATH_RES = IDEPropertiesMessages.IResourcePropertyConstants_path; - /** + /** * The <code>IResource</code> property key for read-only. */ public static final String P_EDITABLE_RES = "org.eclipse.ui.editable"; //$NON-NLS-1$ - /** + /** * The <code>IResource</code> property key for display read-only. */ public static final String P_DISPLAYEDITABLE_RES = IDEPropertiesMessages.IResourcePropertyConstants_editable; - /** + /** * The <code>IResource</code> property key for read-only. */ public static final String P_DERIVED_RES = "org.eclipse.ui.derived"; //$NON-NLS-1$ - /** + /** * The <code>IResource</code> property key for display read-only. */ public static final String P_DISPLAYDERIVED_RES = IDEPropertiesMessages.IResourcePropertyConstants_derived; - /** + /** * The <code>IResource</code> property key for location. */ public static final String P_LOCATION_RES = "org.eclipse.ui.location"; //$NON-NLS-1$ - /** + /** * The <code>IResource</code> property key for display location. */ public static final String P_DISPLAYLOCATION_RES = IDEPropertiesMessages.IResourcePropertyConstants_location; - /** + /** * The <code>IResource</code> property key for resolved location. */ public static final String P_RESOLVED_LOCATION_RES = "org.eclipse.ui.resolvedLocation"; //$NON-NLS-1$, - /** + /** * The <code>IResource</code> property key for display resolved location. */ public static final String P_DISPLAYRESOLVED_LOCATION_RES = IDEPropertiesMessages.IResourcePropertyConstants_resolvedLocation; - /** + /** * The <code>IResource</code> property key for linked. */ public static final String P_LINKED_RES = "org.eclipse.ui.linked"; //$NON-NLS-1$, - /** + /** * The <code>IResource</code> property key for display linked. */ public static final String P_DISPLAYLINKED_RES = IDEPropertiesMessages.IResourcePropertyConstants_linked; @@ -87,7 +87,7 @@ public interface IResourcePropertyConstants { */ public static final String P_FILE_SYSTEM_CATEGORY = IDEPropertiesMessages.IResourcePropertyConstants_info; - /** + /** * The <code>IResource</code> property key for path. */ public static final String P_SIZE_RES = "org.eclipse.ui.size"; //$NON-NLS-1$ @@ -97,7 +97,7 @@ public interface IResourcePropertyConstants { */ public static final String P_DISPLAY_SIZE = IDEPropertiesMessages.IResourcePropertyConstants_size; - /** + /** * The <code>IResource</code> property key for path. */ public static final String P_LAST_MODIFIED_RES = "org.eclipse.ui.lastmodified"; //$NON-NLS-1$ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/properties/ResourcePropertySource.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/properties/ResourcePropertySource.java index 2ba81d119ba..f4bc4eeee93 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/properties/ResourcePropertySource.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/properties/ResourcePropertySource.java @@ -172,7 +172,7 @@ public class ResourcePropertySource implements IPropertySource { final ResourceAttributes attributes = element.getResourceAttributes(); if (attributes == null || attributes.isReadOnly()) { return IDEPropertiesMessages.ResourceProperty_false; - } + } return IDEPropertiesMessages.ResourceProperty_true; } if (name.equals(IResourcePropertyConstants.P_DERIVED_RES)) { @@ -195,14 +195,14 @@ public class ResourcePropertySource implements IPropertySource { } /** - * Returns whether the given resource is a linked resource bound + * Returns whether the given resource is a linked resource bound * to a path variable. - * + * * @param resource resource to test - * @return boolean <code>true</code> the given resource is a linked - * resource bound to a path variable. <code>false</code> the given + * @return boolean <code>true</code> the given resource is a linked + * resource bound to a path variable. <code>false</code> the given * resource is either not a linked resource or it is not using a - * path variable. + * path variable. */ private boolean isPathVariable(IResource resource) { if (!resource.isLinked()) { @@ -248,7 +248,7 @@ public class ResourcePropertySource implements IPropertySource { public void setPropertyValue(Object name, Object value) { } - /** + /** * Get the java.io.File equivalent of the passed * IFile. If the location does not exist then return * <code>null</code> diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/CopyTaskAction.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/CopyTaskAction.java index 27842d5e50d..133a021be6f 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/CopyTaskAction.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/CopyTaskAction.java @@ -29,7 +29,7 @@ import org.eclipse.ui.part.MarkerTransfer; * Copies a task to the clipboard. */ class CopyTaskAction extends TaskAction { - + /** * Creates the action. * @param tasklist the task list diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/FiltersDialog.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/FiltersDialog.java index f54d7ef191b..b24f31d01a2 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/FiltersDialog.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/FiltersDialog.java @@ -212,7 +212,7 @@ class FiltersDialog extends TrayDialog { /** * Creates the working set filter selection widgets. - * + * * @param parent the parent composite of the working set widgets */ WorkingSetGroup(Composite parent) { @@ -234,7 +234,7 @@ class FiltersDialog extends TrayDialog { /** * Returns whether or not a working set filter should be used - * + * * @return true=a working set filter should be used false=a working set filter should not be * used */ @@ -245,7 +245,7 @@ class FiltersDialog extends TrayDialog { /** * Returns the selected working set filter or null if none * is selected. - * + * * @return the selected working set filter or null if none * is selected. */ @@ -255,7 +255,7 @@ class FiltersDialog extends TrayDialog { /** * Sets the working set filter selection. - * + * * @param selected true=a working set filter should be used * false=no working set filter should be used */ @@ -296,7 +296,7 @@ class FiltersDialog extends TrayDialog { /** * Sets the specified working set. - * + * * @param workingSet the working set */ void setWorkingSet(IWorkingSet workingSet) { @@ -355,7 +355,7 @@ class FiltersDialog extends TrayDialog { /** * Creates a new filters dialog. - * + * * @param parentShell the parent shell */ public FiltersDialog(Shell parentShell) { @@ -379,7 +379,7 @@ class FiltersDialog extends TrayDialog { /** * Check state change. - * + * * @param event the event */ public void checkStateChanged(CheckStateChangedEvent event) { @@ -502,7 +502,7 @@ class FiltersDialog extends TrayDialog { /** * Creates a separator line above the OK/Cancel buttons bar - * + * * @param parent the parent composite */ void createSeparatorLine(Composite parent) { @@ -964,7 +964,7 @@ class FiltersDialog extends TrayDialog { /** * Handles selection on a check box or combo box. - * + * * @param e the selection event */ void widgetSelected(SelectionEvent e) { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/GotoTaskAction.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/GotoTaskAction.java index 03a3ec0e9fe..27287767068 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/GotoTaskAction.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/GotoTaskAction.java @@ -32,7 +32,7 @@ class GotoTaskAction extends TaskAction { /** * Creates the action. - * + * * @param tasklist the task list * @param id the id */ @@ -61,7 +61,7 @@ class GotoTaskAction extends TaskAction { IDE.openEditor(page, marker, OpenStrategy.activateOnOpen()); } catch (PartInitException e) { DialogUtil.openError(page.getWorkbenchWindow().getShell(), - TaskListMessages.GotoTask_errorMessage, + TaskListMessages.GotoTask_errorMessage, e.getMessage(), e); } } diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/ITaskListHelpContextIds.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/ITaskListHelpContextIds.java index a277478bcd9..1a386e5f081 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/ITaskListHelpContextIds.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/ITaskListHelpContextIds.java @@ -19,7 +19,7 @@ import org.eclipse.ui.PlatformUI; * This interface contains constants only; it is not intended to be implemented * or extended. * </p> - * + * */ interface ITaskListHelpContextIds { public static final String PREFIX = PlatformUI.PLUGIN_ID + "."; //$NON-NLS-1$ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/ITaskListResourceAdapter.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/ITaskListResourceAdapter.java index bed98c0637f..42ba86d0643 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/ITaskListResourceAdapter.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/ITaskListResourceAdapter.java @@ -21,7 +21,7 @@ import org.eclipse.core.runtime.IAdaptable; * The Tasks view checks for this adapter before the <code>IResource</code> * adapter, allowing the object to provide a resource to the Tasks view without * necessarily exposing it to other components that look for an <code>IResource</code> - * adapter. + * adapter. * </p> * <p> * Implementors of this interface are typically registered with an @@ -33,7 +33,7 @@ public interface ITaskListResourceAdapter { /** * Returns the resource to query for the markers to display * for the given adaptable. - * + * * @param adaptable the adaptable being queried. * @return the resource or <code>null</code> if there * is no adapted resource for this object. diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/MarkCompletedAction.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/MarkCompletedAction.java index 09147289735..756e38a0382 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/MarkCompletedAction.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/MarkCompletedAction.java @@ -54,17 +54,17 @@ class MarkCompletedAction extends TaskAction { } Map attrs = new HashMap(); attrs.put(IMarker.DONE, Boolean.TRUE); - IUndoableOperation op = new UpdateMarkersOperation((IMarker [])markers.toArray(new IMarker [markers.size()]), + IUndoableOperation op = new UpdateMarkersOperation((IMarker [])markers.toArray(new IMarker [markers.size()]), attrs, getText(), true); execute(op, getText(), null, null); } - + } /** * Returns whether this action should be enabled for the given selection. - * + * * @param selection the selection * @return enablement */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/MarkerType.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/MarkerType.java index 2eae71aa963..43c7c7be702 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/MarkerType.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/MarkerType.java @@ -116,7 +116,7 @@ class MarkerType { /** * Returns whether this marker type is considered to be a subtype of - * the given marker type. + * the given marker type. * * @return boolean <code>true</code>if this type is the same as (or a subtype of) the given type */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/MarkerUtil.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/MarkerUtil.java index 9f84ff02125..bc1d159512a 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/MarkerUtil.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/MarkerUtil.java @@ -32,7 +32,7 @@ import org.eclipse.ui.internal.views.tasklist.TaskListMessages; * Utility class for accessing marker attributes. */ class MarkerUtil implements IMarkerConstants { - + private static Map imageDescriptors; private static ImageRegistry imageRegistry = new ImageRegistry(); @@ -40,7 +40,7 @@ class MarkerUtil implements IMarkerConstants { private static MessageFormat line = new MessageFormat(TaskListMessages.TaskList_line); private static MessageFormat lineAndLocation = new MessageFormat( - TaskListMessages.TaskList_lineAndLocation); + TaskListMessages.TaskList_lineAndLocation); static { createImageDescriptors(); @@ -148,7 +148,7 @@ class MarkerUtil implements IMarkerConstants { } /** - * Returns the text to be used for the complete state of a task. + * Returns the text to be used for the complete state of a task. * Returns the empty string for markers that are not tasks. */ public static String getCompleteText(IMarker marker) { @@ -167,15 +167,15 @@ class MarkerUtil implements IMarkerConstants { */ public static String getKindText(IMarker marker) { if (isMarkerType(marker, IMarker.TASK)) { - return TaskListMessages.TaskList_task; + return TaskListMessages.TaskList_task; } switch (getSeverity(marker)) { case IMarker.SEVERITY_ERROR: - return TaskListMessages.TaskList_error; + return TaskListMessages.TaskList_error; case IMarker.SEVERITY_WARNING: - return TaskListMessages.TaskList_warning; + return TaskListMessages.TaskList_warning; case IMarker.SEVERITY_INFO: - return TaskListMessages.TaskList_info; + return TaskListMessages.TaskList_info; } return ""; //$NON-NLS-1$ } @@ -377,13 +377,13 @@ class MarkerUtil implements IMarkerConstants { switch (getPriority(marker)) { case IMarker.PRIORITY_HIGH: - return TaskListMessages.TaskList_high; + return TaskListMessages.TaskList_high; case IMarker.PRIORITY_NORMAL: return TaskListMessages.TaskList_normal; case IMarker.PRIORITY_LOW: return TaskListMessages.TaskList_low; } - return ""; //$NON-NLS-1$ + return ""; //$NON-NLS-1$ } /** diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/NewTaskAction.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/NewTaskAction.java index ca03f944b3f..07439509e85 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/NewTaskAction.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/NewTaskAction.java @@ -38,7 +38,7 @@ class NewTaskAction extends TaskAction { /** * Creates the action. - * + * * @param tasklist the task list * @param id the id */ @@ -81,8 +81,8 @@ class NewTaskAction extends TaskAction { } }); } else { - MessageDialog.openInformation(getShell(), TaskListMessages.NewTask_notShownTitle, - TaskListMessages.NewTask_notShownMsg); + MessageDialog.openInformation(getShell(), TaskListMessages.NewTask_notShownTitle, + TaskListMessages.NewTask_notShownMsg); } } } diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/PasteTaskAction.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/PasteTaskAction.java index 56ccc120c4b..e95d171d8ee 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/PasteTaskAction.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/PasteTaskAction.java @@ -32,14 +32,14 @@ import org.eclipse.ui.part.MarkerTransfer; * <p> * This class may be instantiated; it is not intended to be subclassed. * </p> - * + * * @since 2.0 */ class PasteTaskAction extends TaskAction { /** * Creates a new action. - * + * * @param tasklist the task list * @param id the id */ @@ -71,7 +71,7 @@ class PasteTaskAction extends TaskAction { @Override public void run(IProgressMonitor monitor) throws CoreException { for (int i = 0; i < markerData.length; i++) { - // Only paste tasks + // Only paste tasks if (!markerData[i].getType().equals(IMarker.TASK)) { continue; } @@ -81,11 +81,11 @@ class PasteTaskAction extends TaskAction { } }, null); } catch (CoreException e) { - ErrorDialog.openError(getShell(), TaskListMessages.PasteTask_errorMessage, + ErrorDialog.openError(getShell(), TaskListMessages.PasteTask_errorMessage, null, e.getStatus()); return; } - + final Map [] attrs = (Map []) newMarkerAttributes.toArray(new Map [newMarkerAttributes.size()]); final IResource [] resources = (IResource []) newMarkerResources.toArray(new IResource [newMarkerResources.size()]); final CreateMarkersOperation op = new CreateMarkersOperation(IMarker.TASK, attrs, diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/PurgeCompletedAction.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/PurgeCompletedAction.java index 3aae80bb062..708a5ac5670 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/PurgeCompletedAction.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/PurgeCompletedAction.java @@ -34,7 +34,7 @@ class PurgeCompletedAction extends TaskAction { /** * Creates the action. - * + * * @param tasklist the task list * @param id the id */ @@ -57,7 +57,7 @@ class PurgeCompletedAction extends TaskAction { } catch (CoreException e) { ErrorDialog.openError( getShell(), - TaskListMessages.PurgeCompleted_errorMessage, null, e.getStatus()); + TaskListMessages.PurgeCompleted_errorMessage, null, e.getStatus()); return; } @@ -70,8 +70,8 @@ class PurgeCompletedAction extends TaskAction { } // Check if there is anything to do if (completed.size() == 0) { - MessageDialog.openInformation(getShell(), TaskListMessages.PurgeCompleted_title, - TaskListMessages.PurgeCompleted_noneCompleted); + MessageDialog.openInformation(getShell(), TaskListMessages.PurgeCompleted_title, + TaskListMessages.PurgeCompleted_noneCompleted); return; } diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/RemoveTaskAction.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/RemoveTaskAction.java index 468728cb722..3b8c6510cb9 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/RemoveTaskAction.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/RemoveTaskAction.java @@ -32,7 +32,7 @@ class RemoveTaskAction extends TaskAction { /** * Creates the action. - * + * * @param tasklist the task list * @param id the id */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/ResolveMarkerAction.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/ResolveMarkerAction.java index fa556a806d0..cd1329a101f 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/ResolveMarkerAction.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/ResolveMarkerAction.java @@ -23,7 +23,7 @@ import org.eclipse.ui.internal.views.tasklist.TaskListMessages; /** * This action displays a list of resolutions for the selected marker - * + * * @since 2.0 */ class ResolveMarkerAction extends TaskAction { @@ -39,7 +39,7 @@ class ResolveMarkerAction extends TaskAction { /** * Returns whether this action should be enabled given the selection. - * + * * @param selection the selection * @return enablement */ @@ -66,8 +66,8 @@ class ResolveMarkerAction extends TaskAction { getTaskList().cancelEditing(); IMarkerResolution[] resolutions = getResolutions(marker); if (resolutions.length == 0) { - MessageDialog.openInformation(getShell(), TaskListMessages.Resolve_title, - TaskListMessages.Resolve_noResolutionsLabel); + MessageDialog.openInformation(getShell(), TaskListMessages.Resolve_title, + TaskListMessages.Resolve_noResolutionsLabel); return; } MarkerResolutionSelectionDialog d = new MarkerResolutionSelectionDialog( @@ -85,7 +85,7 @@ class ResolveMarkerAction extends TaskAction { * Returns the resolutions for the given marker. * * @param marker the marker for which to obtain resolutions - * @return the resolutions for the selected marker + * @return the resolutions for the selected marker */ private IMarkerResolution[] getResolutions(IMarker marker) { return IDE.getMarkerHelpRegistry().getResolutions(marker); @@ -93,7 +93,7 @@ class ResolveMarkerAction extends TaskAction { /** * Returns the selected marker (may be <code>null</code>). - * + * * @return the selected marker */ private IMarker getMarker() { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/TaskList.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/TaskList.java index e5323aac478..14f10aef5c1 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/TaskList.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/TaskList.java @@ -116,7 +116,7 @@ import org.eclipse.ui.views.markers.MarkerSupportView; /** * Main class for the Task List view for displaying tasks and problem annotations * on resources, and for opening an editor on the resource when the user commands. - * + * * @deprecated This view is no longer in use as of Eclipse 3.4. * The view referenced by {@link IPageLayout#ID_TASK_LIST} is an {@link MarkerSupportView}. * </p> @@ -303,11 +303,11 @@ public class TaskList extends ViewPart { private String columnHeaders[] = { TaskListMessages.TaskList_headerIcon, - TaskListMessages.TaskList_headerCompleted, - TaskListMessages.TaskList_headerPriority, - TaskListMessages.TaskList_headerDescription, + TaskListMessages.TaskList_headerCompleted, + TaskListMessages.TaskList_headerPriority, + TaskListMessages.TaskList_headerDescription, TaskListMessages.TaskList_headerResource, - TaskListMessages.TaskList_headerFolder, + TaskListMessages.TaskList_headerFolder, TaskListMessages.TaskList_headerLocation }; @@ -504,17 +504,17 @@ public class TaskList extends ViewPart { // Create the header buf.append(TaskListMessages.TaskList_reportKind); buf.append("\t"); //$NON-NLS-1$ - buf.append(TaskListMessages.TaskList_reportStatus); + buf.append(TaskListMessages.TaskList_reportStatus); buf.append("\t"); //$NON-NLS-1$ - buf.append(TaskListMessages.TaskList_reportPriority); + buf.append(TaskListMessages.TaskList_reportPriority); buf.append("\t"); //$NON-NLS-1$ buf.append(TaskListMessages.TaskList_headerDescription); buf.append("\t"); //$NON-NLS-1$ - buf.append(TaskListMessages.TaskList_headerResource); + buf.append(TaskListMessages.TaskList_headerResource); buf.append("\t"); //$NON-NLS-1$ - buf.append(TaskListMessages.TaskList_headerFolder); + buf.append(TaskListMessages.TaskList_headerFolder); buf.append("\t"); //$NON-NLS-1$ - buf.append(TaskListMessages.TaskList_headerLocation); + buf.append(TaskListMessages.TaskList_headerLocation); buf.append(System.getProperty("line.separator")); //$NON-NLS-1$ // Create the report for the markers @@ -631,7 +631,7 @@ public class TaskList extends ViewPart { } }); - //Add in some accessibility support to supplement the description that we already + //Add in some accessibility support to supplement the description that we already //get from the SWT table. viewer.getControl().getAccessible().addAccessibleControlListener( new AccessibleControlAdapter() { @@ -673,8 +673,8 @@ public class TaskList extends ViewPart { CellEditor editors[] = new CellEditor[columnHeaders.length]; editors[1] = new CheckboxCellEditor(table); String[] priorities = new String[] { - TaskListMessages.TaskList_high, - TaskListMessages.TaskList_normal, + TaskListMessages.TaskList_high, + TaskListMessages.TaskList_normal, TaskListMessages.TaskList_low }; editors[2] = new ComboBoxCellEditor(table, priorities, SWT.READ_ONLY); @@ -784,7 +784,7 @@ public class TaskList extends ViewPart { /** * Activates the editor on the given marker. - * + * * @param marker the marker to edit */ public void edit(IMarker marker) { @@ -861,7 +861,7 @@ public class TaskList extends ViewPart { @Override public void run() { // Filter has already been updated by dialog; just refresh. - // Don't need to update labels for existing elements + // Don't need to update labels for existing elements // since changes to filter settings don't affect them. viewer.getControl().setRedraw(false); viewer.refresh(false); @@ -949,7 +949,7 @@ public class TaskList extends ViewPart { /** * Get the resources. - * + * * @return the resources */ public IResource[] getResources() { @@ -1110,15 +1110,15 @@ public class TaskList extends ViewPart { // goto gotoTaskAction = new GotoTaskAction(this, "gotoFile"); //$NON-NLS-1$ - gotoTaskAction.setText(TaskListMessages.GotoTask_text); - gotoTaskAction.setToolTipText(TaskListMessages.GotoTask_tooltip); + gotoTaskAction.setText(TaskListMessages.GotoTask_text); + gotoTaskAction.setToolTipText(TaskListMessages.GotoTask_tooltip); gotoTaskAction.setImageDescriptor(MarkerUtil .getImageDescriptor("gotoobj")); //$NON-NLS-1$ gotoTaskAction.setEnabled(false); // new task newTaskAction = new NewTaskAction(this, "newTask"); //$NON-NLS-1$ - newTaskAction.setText(TaskListMessages.NewTask_text); + newTaskAction.setText(TaskListMessages.NewTask_text); newTaskAction.setToolTipText(TaskListMessages.NewTask_tooltip); newTaskAction.setImageDescriptor(MarkerUtil .getImageDescriptor("addtsk")); //$NON-NLS-1$ @@ -1127,20 +1127,20 @@ public class TaskList extends ViewPart { // copy task copyTaskAction = new CopyTaskAction(this, "copy"); //$NON-NLS-1$ - copyTaskAction.setText(TaskListMessages.CopyTask_text); + copyTaskAction.setText(TaskListMessages.CopyTask_text); copyTaskAction.setToolTipText(TaskListMessages.CopyTask_tooltip); copyTaskAction.setEnabled(false); // paste task pasteTaskAction = new PasteTaskAction(this, "paste"); //$NON-NLS-1$ - pasteTaskAction.setText(TaskListMessages.PasteTask_text); + pasteTaskAction.setText(TaskListMessages.PasteTask_text); pasteTaskAction.setToolTipText(TaskListMessages.PasteTask_tooltip); pasteTaskAction.setEnabled(false); // remove task removeTaskAction = new RemoveTaskAction(this, "delete"); //$NON-NLS-1$ removeTaskAction.setText(TaskListMessages.RemoveTask_text); - removeTaskAction.setToolTipText(TaskListMessages.RemoveTask_tooltip); + removeTaskAction.setToolTipText(TaskListMessages.RemoveTask_tooltip); removeTaskAction.setImageDescriptor(sharedImages .getImageDescriptor(ISharedImages.IMG_TOOL_DELETE)); removeTaskAction.setDisabledImageDescriptor(sharedImages @@ -1156,23 +1156,23 @@ public class TaskList extends ViewPart { //delete completed task purgeCompletedAction = new PurgeCompletedAction(this, "deleteCompleted"); //$NON-NLS-1$ purgeCompletedAction.setText(TaskListMessages.PurgeCompleted_text); - purgeCompletedAction.setToolTipText(TaskListMessages.PurgeCompleted_tooltip); + purgeCompletedAction.setToolTipText(TaskListMessages.PurgeCompleted_tooltip); purgeCompletedAction.setImageDescriptor(sharedImages .getImageDescriptor(ISharedImages.IMG_TOOL_DELETE)); purgeCompletedAction.setEnabled(true); // select all selectAllAction = new SelectAllTasksAction(this, "selectAll"); //$NON-NLS-1$ - selectAllAction.setText(TaskListMessages.SelectAll_text); + selectAllAction.setText(TaskListMessages.SelectAll_text); selectAllAction.setToolTipText(TaskListMessages.SelectAll_tooltip); // resolutions resolveMarkerAction = new ResolveMarkerAction(this, "resolve"); //$NON-NLS-1$ - resolveMarkerAction.setText(TaskListMessages.Resolve_text); + resolveMarkerAction.setText(TaskListMessages.Resolve_text); resolveMarkerAction.setToolTipText(TaskListMessages.Resolve_tooltip); resolveMarkerAction.setEnabled(false); - // Sort by -> + // Sort by -> sortByCategoryAction = new SortByAction(TaskSorter.TYPE); sortByCategoryAction.setText(TaskListMessages.SortByCategory_text); sortByCategoryAction.setToolTipText(TaskListMessages.SortByCategory_tooltip); @@ -1181,19 +1181,19 @@ public class TaskList extends ViewPart { sortByCompletedAction = new SortByAction(TaskSorter.COMPLETION); sortByCompletedAction.setText(TaskListMessages.SortByCompleted_text); - sortByCompletedAction.setToolTipText(TaskListMessages.SortByCompleted_tooltip); + sortByCompletedAction.setToolTipText(TaskListMessages.SortByCompleted_tooltip); PlatformUI.getWorkbench().getHelpSystem().setHelp( sortByCompletedAction, ITaskListHelpContextIds.TASK_SORT_COMPLETED_ACTION); sortByPriorityAction = new SortByAction(TaskSorter.PRIORITY); - sortByPriorityAction.setText(TaskListMessages.SortByPriority_text); - sortByPriorityAction.setToolTipText(TaskListMessages.SortByPriority_tooltip); + sortByPriorityAction.setText(TaskListMessages.SortByPriority_text); + sortByPriorityAction.setToolTipText(TaskListMessages.SortByPriority_tooltip); PlatformUI.getWorkbench().getHelpSystem().setHelp(sortByPriorityAction, ITaskListHelpContextIds.TASK_SORT_PRIORITY_ACTION); sortByDescriptionAction = new SortByAction(TaskSorter.DESCRIPTION); - sortByDescriptionAction.setText(TaskListMessages.SortByDescription_text); + sortByDescriptionAction.setText(TaskListMessages.SortByDescription_text); sortByDescriptionAction.setToolTipText(TaskListMessages.SortByDescription_tooltip); PlatformUI.getWorkbench().getHelpSystem().setHelp( sortByDescriptionAction, @@ -1201,26 +1201,26 @@ public class TaskList extends ViewPart { sortByResourceAction = new SortByAction(TaskSorter.RESOURCE); sortByResourceAction.setText(TaskListMessages.SortByResource_text); - sortByResourceAction.setToolTipText(TaskListMessages.SortByResource_tooltip); + sortByResourceAction.setToolTipText(TaskListMessages.SortByResource_tooltip); PlatformUI.getWorkbench().getHelpSystem().setHelp(sortByResourceAction, ITaskListHelpContextIds.TASK_SORT_RESOURCE_ACTION); sortByContainerAction = new SortByAction(TaskSorter.FOLDER); - sortByContainerAction.setText(TaskListMessages.SortByContainer_text); + sortByContainerAction.setText(TaskListMessages.SortByContainer_text); sortByContainerAction.setToolTipText(TaskListMessages.SortByContainer_tooltip); PlatformUI.getWorkbench().getHelpSystem().setHelp( sortByContainerAction, ITaskListHelpContextIds.TASK_SORT_FOLDER_ACTION); sortByLocationAction = new SortByAction(TaskSorter.LOCATION); - sortByLocationAction.setText(TaskListMessages.SortByLocation_text); - sortByLocationAction.setToolTipText(TaskListMessages.SortByLocation_tooltip); + sortByLocationAction.setText(TaskListMessages.SortByLocation_text); + sortByLocationAction.setToolTipText(TaskListMessages.SortByLocation_tooltip); PlatformUI.getWorkbench().getHelpSystem().setHelp(sortByLocationAction, ITaskListHelpContextIds.TASK_SORT_LOCATION_ACTION); sortByCreationTimeAction = new SortByAction(TaskSorter.CREATION_TIME); sortByCreationTimeAction.setText(TaskListMessages.SortByCreationTime_text); - sortByCreationTimeAction.setToolTipText(TaskListMessages.SortByCreationTime_tooltip); + sortByCreationTimeAction.setToolTipText(TaskListMessages.SortByCreationTime_tooltip); PlatformUI.getWorkbench().getHelpSystem().setHelp( sortByCreationTimeAction, ITaskListHelpContextIds.TASK_SORT_CREATION_TIME_ACTION); @@ -1239,14 +1239,14 @@ public class TaskList extends ViewPart { // filters... filtersAction = new FiltersAction(this, "filter"); //$NON-NLS-1$ - filtersAction.setText(TaskListMessages.Filters_text); + filtersAction.setText(TaskListMessages.Filters_text); filtersAction.setToolTipText(TaskListMessages.Filters_tooltip); filtersAction.setImageDescriptor(MarkerUtil .getImageDescriptor("filter")); //$NON-NLS-1$ // properties propertiesAction = new TaskPropertiesAction(this, "properties"); //$NON-NLS-1$ - propertiesAction.setText(TaskListMessages.Properties_text); + propertiesAction.setText(TaskListMessages.Properties_text); propertiesAction.setToolTipText(TaskListMessages.Properties_tooltip); propertiesAction.setEnabled(false); } @@ -1423,7 +1423,7 @@ public class TaskList extends ViewPart { updatePasteEnablement(); - // If selection is empty, then disable copy, remove and goto. + // If selection is empty, then disable copy, remove and goto. if (selection.isEmpty()) { copyTaskAction.setEnabled(false); removeTaskAction.setEnabled(false); @@ -1431,7 +1431,7 @@ public class TaskList extends ViewPart { propertiesAction.setEnabled(false); return; } - + // Can only open properties for a single task at a time propertiesAction.setEnabled(selection.size() == 1); @@ -1502,7 +1502,7 @@ public class TaskList extends ViewPart { // } } } catch (CoreException e) { - String msg = TaskListMessages.TaskList_errorModifyingTask; + String msg = TaskListMessages.TaskList_errorModifyingTask; ErrorDialog.openError(getSite().getShell(), msg, null, e .getStatus()); } @@ -1555,7 +1555,7 @@ public class TaskList extends ViewPart { } } - // showOwnerProject() added by cagatayk@acm.org + // showOwnerProject() added by cagatayk@acm.org boolean showOwnerProject() { return getFilter().onResource == TasksFilter.ON_ANY_RESOURCE_OF_SAME_PROJECT; } @@ -1565,7 +1565,7 @@ public class TaskList extends ViewPart { * If true, it will resync with the saved input element. * Otherwise, it will reconfigure to show all the * problems/tasks in the workbench. - * + * * @param value the value */ void toggleInputSelection(boolean value) { @@ -1584,7 +1584,7 @@ public class TaskList extends ViewPart { * If true, current input will be * remembered and further selections will be * ignored. - * + * * @param value the value */ void toggleLockInput(boolean value) { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/TaskListContentProvider.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/TaskListContentProvider.java index 95f52ebae68..57d4668eb32 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/TaskListContentProvider.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/TaskListContentProvider.java @@ -56,11 +56,11 @@ class TaskListContentProvider implements IStructuredContentProvider, private IResource input; - /* cached counts of tasks, errors, warnings and infos for the visible + /* cached counts of tasks, errors, warnings and infos for the visible * markers, maintained incrementally */ private int[] visibleMarkerCounts = null; - /* cached count of all markers in workspace matching supported root types + /* cached count of all markers in workspace matching supported root types * (tasks & problems), maintained incrementally */ private int totalMarkerCount = -1; @@ -104,7 +104,7 @@ class TaskListContentProvider implements IStructuredContentProvider, /** * Returns a one-line string containing a summary of the number * of selected tasks and problems. - * + * * @param selection the current selection */ public String getStatusSummarySelected(IStructuredSelection selection) { @@ -114,13 +114,13 @@ class TaskListContentProvider implements IStructuredContentProvider, } /** - * Returns a one-line string containing a summary of the number of + * Returns a one-line string containing a summary of the number of * given tasks, errors, warnings, and infos. */ private String getStatusSummaryBreakdown(int[] counts) { return NLS.bind( - TaskListMessages.TaskList_statusSummaryBreakdown, - new Object []{ + TaskListMessages.TaskList_statusSummaryBreakdown, + new Object []{ new Integer(counts[TASKS]), new Integer(counts[ERRORS]), new Integer(counts[WARNINGS]), @@ -161,8 +161,8 @@ class TaskListContentProvider implements IStructuredContentProvider, } /** - * Returns the count of all markers in the workspace which can be shown in - * the task list. This is computed once, then maintained incrementally by + * Returns the count of all markers in the workspace which can be shown in + * the task list. This is computed once, then maintained incrementally by * the delta processing. */ private int getTotalMarkerCount() { @@ -333,12 +333,12 @@ class TaskListContentProvider implements IStructuredContentProvider, } /** - * Updates the viewer given the lists of added, removed, and changes + * Updates the viewer given the lists of added, removed, and changes * markers. This is called inside an syncExec. */ private void updateViewer(List additions, List removals, List changes) { - // The widget may have been destroyed by the time this is run. + // The widget may have been destroyed by the time this is run. // Check for this and do nothing if so. Control ctrl = viewer.getControl(); @@ -347,11 +347,11 @@ class TaskListContentProvider implements IStructuredContentProvider, } //update the viewer based on the marker changes. - //process removals before additions, to avoid multiple equal elements in + //process removals before additions, to avoid multiple equal elements in //the viewer if (removals.size() > 0) { - // Cancel any open cell editor. We assume that the one being edited + // Cancel any open cell editor. We assume that the one being edited // is the one being removed. viewer.cancelEditing(); viewer.remove(removals.toArray()); @@ -437,7 +437,7 @@ class TaskListContentProvider implements IStructuredContentProvider, } /** - * The workbench has changed. Process the delta and issue updates to the + * The workbench has changed. Process the delta and issue updates to the * viewer, inside the UI thread. * * @see IResourceChangeListener#resourceChanged @@ -445,7 +445,7 @@ class TaskListContentProvider implements IStructuredContentProvider, @Override public void resourceChanged(final IResourceChangeEvent event) { /* - * gather all marker changes from the delta. be sure to do this in the + * gather all marker changes from the delta. be sure to do this in the * calling thread, as the delta is destroyed when this method returns */ IMarkerDelta[] markerDeltas = event.findMarkerDeltas(null, true); @@ -471,9 +471,9 @@ class TaskListContentProvider implements IStructuredContentProvider, for (int j = 0; j < TasksFilter.ROOT_TYPES.length; j++) { if (markerDelta.isSubtypeOf(TasksFilter.ROOT_TYPES[j])) { - /* - * Updates the total count of markers given the applicable - * marker deltas. + /* + * Updates the total count of markers given the applicable + * marker deltas. */ if (totalMarkerCount != -1) { switch (iKind) { @@ -487,12 +487,12 @@ class TaskListContentProvider implements IStructuredContentProvider, } /* - * Partition the marker deltas into one of the three given + * Partition the marker deltas into one of the three given * lists depending on * the type of delta (add, remove, or change). - * The resulting lists contain the corresponding markers, + * The resulting lists contain the corresponding markers, * not the deltas. - * Deltas which are not under the current focus resource are + * Deltas which are not under the current focus resource are * discarded. * This also updates the marker counts. */ @@ -520,10 +520,10 @@ class TaskListContentProvider implements IStructuredContentProvider, break; case IResourceDelta.CHANGED: changes.add(marker); - /* - * Assume attribute changes don't affect marker - * counts. This is only true if problem severities - * can't change. + /* + * Assume attribute changes don't affect marker + * counts. This is only true if problem severities + * can't change. */ break; } @@ -541,8 +541,8 @@ class TaskListContentProvider implements IStructuredContentProvider, } /* - * do the required viewer updates in the UI thread need to use syncExec; - * see 1G95PU8: ITPUI:WIN2000 - Changing task description flashes old + * do the required viewer updates in the UI thread need to use syncExec; + * see 1G95PU8: ITPUI:WIN2000 - Changing task description flashes old * description */ viewer.getControl().getDisplay().syncExec(new Runnable() { @@ -562,10 +562,10 @@ class TaskListContentProvider implements IStructuredContentProvider, } /* Update the task list's status message. - * XXX: Quick and dirty solution here. + * XXX: Quick and dirty solution here. * Would be better to have a separate model for the tasks and - * have both the content provider and the task list register for - * updates. XXX: Do this inside the syncExec, since we're + * have both the content provider and the task list register for + * updates. XXX: Do this inside the syncExec, since we're * talking to status line widget. */ taskList.markersChanged(); diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/TaskPropertiesAction.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/TaskPropertiesAction.java index 7ebde3c9804..9377e6d8840 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/TaskPropertiesAction.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/TaskPropertiesAction.java @@ -22,7 +22,7 @@ class TaskPropertiesAction extends TaskAction { /** * Creates the action. - * + * * @param tasklist the task list * @param id the id */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/TaskPropertiesDialog.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/TaskPropertiesDialog.java index 8647c837288..00c6eb4cf35 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/TaskPropertiesDialog.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/TaskPropertiesDialog.java @@ -35,7 +35,7 @@ public class TaskPropertiesDialog extends DialogTaskProperties { * resource and initial attributes for the new task, use * <code>setResource</code> and <code>setInitialAttributes</code>. To * show or modify an existing task, use <code>setMarker</code>. - * + * * @param parentShell * the parent shell */ @@ -45,9 +45,9 @@ public class TaskPropertiesDialog extends DialogTaskProperties { /* * (non-Javadoc) - * + * * @see org.eclipse.jface.window.Dialog#getDialogBoundsSettings() - * + * * @since 3.2 */ @Override @@ -60,10 +60,10 @@ public class TaskPropertiesDialog extends DialogTaskProperties { } return section; } - + /** * Sets the marker to show or modify. - * + * * @param marker the marker, or <code>null</code> to create a new marker */ @Override @@ -76,7 +76,7 @@ public class TaskPropertiesDialog extends DialogTaskProperties { * Returns the marker being created or modified. * For a new marker, this returns <code>null</code> until * the dialog returns, but is non-null after. - * + * * @return the marker */ @Override @@ -88,7 +88,7 @@ public class TaskPropertiesDialog extends DialogTaskProperties { /** * Sets the resource to use when creating a new task. * If not set, the new task is created on the workspace root. - * + * * @param resource the resource */ @Override @@ -101,7 +101,7 @@ public class TaskPropertiesDialog extends DialogTaskProperties { * Returns the resource to use when creating a new task, * or <code>null</code> if none has been set. * If not set, the new task is created on the workspace root. - * + * * @return the resource */ @Override @@ -113,7 +113,7 @@ public class TaskPropertiesDialog extends DialogTaskProperties { /** * Sets initial attributes to use when creating a new task. * If not set, the new task is created with default attributes. - * + * * @param initialAttributes the initial attributes */ @Override @@ -126,7 +126,7 @@ public class TaskPropertiesDialog extends DialogTaskProperties { * Returns the initial attributes to use when creating a new task, * or <code>null</code> if not set. * If not set, the new task is created with default attributes. - * + * * @return the initial attributes */ @Override diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/TaskSorter.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/TaskSorter.java index 6b58a617fc0..5d0fcb337b2 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/TaskSorter.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/TaskSorter.java @@ -250,7 +250,7 @@ class TaskSorter extends ViewerComparator { /** * Compares the line number and location of the two markers. - * If line number is specified for both, this sorts first by line number (numerically), + * If line number is specified for both, this sorts first by line number (numerically), * then by start offset (numerically), then by location (textually). * If line number is not specified for either, this sorts by location. * Otherwise, if only one has a line number, this sorts by the combined text for line number and location. diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/TasksFilter.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/TasksFilter.java index 93d32a390b4..35e3daf8a41 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/TasksFilter.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/TasksFilter.java @@ -6,7 +6,7 @@ * http://www.eclipse.org/legal/epl-v10.html * * Contributors: - * IBM Corporation - initial API and implementation + * IBM Corporation - initial API and implementation * Cagatay Kavukcuoglu <cagatayk@acm.org> - Filter for markers in same project *******************************************************************************/ @@ -89,7 +89,7 @@ class TasksFilter extends ViewerFilter implements Cloneable { private static final String TAG_ON_RESOURCE = "onResource"; //$NON-NLS-1$ - private static final String TAG_WORKING_SET = "workingSet"; //$NON-NLS-1$ + private static final String TAG_WORKING_SET = "workingSet"; //$NON-NLS-1$ private static final String TAG_FILTER_ON_DESCRIPTION = "filterOnDescription"; //$NON-NLS-1$ @@ -109,7 +109,7 @@ class TasksFilter extends ViewerFilter implements Cloneable { private static final String TAG_COMPLETION_FILTER = "completionFilter"; //$NON-NLS-1$ - private static final String TAG_FILTER_ON_MARKER_LIMIT = "filterOnMarkerLimit"; //$NON-NLS-1$ + private static final String TAG_FILTER_ON_MARKER_LIMIT = "filterOnMarkerLimit"; //$NON-NLS-1$ private static final String TAG_MARKER_LIMIT = "markerLimit"; //$NON-NLS-1$ @@ -138,7 +138,7 @@ class TasksFilter extends ViewerFilter implements Cloneable { // markerLimit = TasksFilter.MINIMUM_MARKER_LIMIT; //} else if (markerLimit > TasksFilter.MAXIMUM_MARKER_LIMIT) { // markerLimit = TasksFilter.MAXIMUM_MARKER_LIMIT; - //} + //} this.markerLimit = markerLimit; } @@ -175,13 +175,13 @@ class TasksFilter extends ViewerFilter implements Cloneable { /** * Returns if the given resource is enclosed by a working set element. * The IContainmentAdapter of each working set element is used for the - * containment test. If there is no IContainmentAdapter for a working - * set element, a simple resource based test is used. - * + * containment test. If there is no IContainmentAdapter for a working + * set element, a simple resource based test is used. + * * @param element resource to test for enclosure by a working set - * element - * @return true if element is enclosed by a working set element and - * false otherwise. + * element + * @return true if element is enclosed by a working set element and + * false otherwise. */ private boolean isEnclosed(IResource element) { IPath elementPath = element.getFullPath(); @@ -195,9 +195,9 @@ class TasksFilter extends ViewerFilter implements Cloneable { IContainmentAdapter containmentAdapter = (IContainmentAdapter) workingSetElement .getAdapter(IContainmentAdapter.class); - // if there is no IContainmentAdapter defined for the working - // set element type fall back to using resource based - // containment check + // if there is no IContainmentAdapter defined for the working + // set element type fall back to using resource based + // containment check if (containmentAdapter != null) { if (containmentAdapter.contains(workingSetElement, element, IContainmentAdapter.CHECK_CONTEXT @@ -215,17 +215,17 @@ class TasksFilter extends ViewerFilter implements Cloneable { /** * Returns if the given resource is enclosed by a working set element. - * A resource is enclosed if it is either a parent of a working set + * A resource is enclosed if it is either a parent of a working set * element, a child of a working set element or a working set element * itself. * Simple path comparison is used. This is only guaranteed to return - * correct results for resource working set elements. - * + * correct results for resource working set elements. + * * @param element resource to test for enclosure by a working set * element - * @param elementPath full, absolute path of the element to test - * @return true if element is enclosed by a working set element and - * false otherwise. + * @param elementPath full, absolute path of the element to test + * @return true if element is enclosed by a working set element and + * false otherwise. */ private boolean isEnclosedResource(IResource element, IPath elementPath, IAdaptable workingSetElement) { @@ -305,7 +305,7 @@ class TasksFilter extends ViewerFilter implements Cloneable { /** * Restores the saved working set, if any. - * + * * @param the saved working set name or null */ private void restoreWorkingSet(String workingSetName) { @@ -388,9 +388,9 @@ class TasksFilter extends ViewerFilter implements Cloneable { /** * Returns whether the specified marker should be filter out or not. - * + * * @param marker the marker to test - * @return + * @return * true=the marker should not be filtered out * false=the marker should be filtered out */ @@ -406,11 +406,11 @@ class TasksFilter extends ViewerFilter implements Cloneable { } /** - * Returns whether the specified marker delta should be filter out + * Returns whether the specified marker delta should be filter out * or not. - * + * * @param markerDelta the marker delta to test - * @return + * @return * true=the marker delta should not be filtered out * false=the marker delta should be filtered out */ @@ -425,7 +425,7 @@ class TasksFilter extends ViewerFilter implements Cloneable { return false; } - /* + /* * WARNING: selectByAttributes(IMarker) and selectByAttributes(IMarkerDelta) must correspond. */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/wizards/datatransfer/ExternalProjectImportWizard.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/wizards/datatransfer/ExternalProjectImportWizard.java index 1cdd4d4cbda..001340b28ac 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/wizards/datatransfer/ExternalProjectImportWizard.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/wizards/datatransfer/ExternalProjectImportWizard.java @@ -47,7 +47,7 @@ public class ExternalProjectImportWizard extends Wizard implements private WizardProjectsImportPage mainPage; private IStructuredSelection currentSelection = null; private String initialPath = null; - + /** * Constructor for ExternalProjectImportWizard. */ @@ -57,7 +57,7 @@ public class ExternalProjectImportWizard extends Wizard implements /** * Constructor for ExternalProjectImportWizard. - * + * * @param initialPath Default path for wizard to import * @since 3.5 */ @@ -68,14 +68,14 @@ public class ExternalProjectImportWizard extends Wizard implements setNeedsProgressMonitor(true); IDialogSettings workbenchSettings = IDEWorkbenchPlugin.getDefault() .getDialogSettings(); - + IDialogSettings wizardSettings = workbenchSettings .getSection(EXTERNAL_PROJECT_SECTION); if (wizardSettings == null) { wizardSettings = workbenchSettings .addNewSection(EXTERNAL_PROJECT_SECTION); } - setDialogSettings(wizardSettings); + setDialogSettings(wizardSettings); } /* (non-Javadoc) diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/wizards/datatransfer/FileStoreStructureProvider.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/wizards/datatransfer/FileStoreStructureProvider.java index c91cbf1aeab..59ec4f40f0c 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/wizards/datatransfer/FileStoreStructureProvider.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/wizards/datatransfer/FileStoreStructureProvider.java @@ -24,9 +24,9 @@ import org.eclipse.ui.internal.ide.IDEWorkbenchPlugin; /** * FileStoreStructureProvider is the structure provider for {@link IFileStore} * based file structures. - * + * * @since 3.2 - * + * */ public class FileStoreStructureProvider implements IImportStructureProvider { @@ -37,7 +37,7 @@ public class FileStoreStructureProvider implements IImportStructureProvider { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.wizards.datatransfer.IImportStructureProvider#getChildren(java.lang.Object) */ @Override @@ -53,7 +53,7 @@ public class FileStoreStructureProvider implements IImportStructureProvider { /** * Log the exception. - * + * * @param exception */ private void logException(CoreException exception) { @@ -63,7 +63,7 @@ public class FileStoreStructureProvider implements IImportStructureProvider { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.wizards.datatransfer.IImportStructureProvider#getContents(java.lang.Object) */ @Override @@ -79,7 +79,7 @@ public class FileStoreStructureProvider implements IImportStructureProvider { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.wizards.datatransfer.IImportStructureProvider#getFullPath(java.lang.Object) */ @Override @@ -89,7 +89,7 @@ public class FileStoreStructureProvider implements IImportStructureProvider { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.wizards.datatransfer.IImportStructureProvider#getLabel(java.lang.Object) */ @Override @@ -99,7 +99,7 @@ public class FileStoreStructureProvider implements IImportStructureProvider { /* * (non-Javadoc) - * + * * @see org.eclipse.ui.wizards.datatransfer.IImportStructureProvider#isFolder(java.lang.Object) */ @Override diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/wizards/datatransfer/FileSystemExportWizard.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/wizards/datatransfer/FileSystemExportWizard.java index 101707c5b3d..d0a016067e0 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/wizards/datatransfer/FileSystemExportWizard.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/wizards/datatransfer/FileSystemExportWizard.java @@ -43,7 +43,7 @@ import org.eclipse.ui.internal.wizards.datatransfer.WizardFileSystemResourceExpo * dialog.open(); * </pre> * During the call to <code>open</code>, the wizard dialog is presented to the - * user. When the user hits Finish, the user-selected workspace resources + * user. When the user hits Finish, the user-selected workspace resources * are exported to the user-specified location in the local file system, * the dialog closes, and the call to <code>open</code> returns. * </p> diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/wizards/datatransfer/IImportStructureProvider.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/wizards/datatransfer/IImportStructureProvider.java index 4b51378cff2..1595fd0ff0a 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/wizards/datatransfer/IImportStructureProvider.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/wizards/datatransfer/IImportStructureProvider.java @@ -14,7 +14,7 @@ import java.io.InputStream; import java.util.List; /** - * Interface which can provide structure and content information + * Interface which can provide structure and content information * for an element (for example, a file system element). * Used by the import wizards to abstract the commonalities * between importing from the file system and importing from an archive. @@ -22,9 +22,9 @@ import java.util.List; public interface IImportStructureProvider { /** * Returns a collection with the children of the specified structured element. - * + * * @param element the element for which to compute the children - * @return the list of child elements + * @return the list of child elements */ List getChildren(Object element); diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/wizards/datatransfer/ImportOperation.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/wizards/datatransfer/ImportOperation.java index 09ff3bbd797..ade169a7b38 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/wizards/datatransfer/ImportOperation.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/wizards/datatransfer/ImportOperation.java @@ -7,7 +7,7 @@ * * Contributors: * IBM Corporation - initial API and implementation - * Red Hat, Inc - changed TarFileStructureProvider to TarLeveledStructureProvider + * Red Hat, Inc - changed TarFileStructureProvider to TarLeveledStructureProvider *******************************************************************************/ package org.eclipse.ui.wizards.datatransfer; @@ -88,7 +88,7 @@ public class ImportOperation extends WorkspaceModifyOperation { private boolean createVirtualFolder = false; private boolean createLinks = false; - + private boolean createLinkFilesOnly = false; private String relativeVariable = null; @@ -110,7 +110,7 @@ public class ImportOperation extends WorkspaceModifyOperation { * Creates a new operation that recursively imports the entire contents of the * specified root file system object. * <p> - * The <code>source</code> parameter represents the root file system object to + * The <code>source</code> parameter represents the root file system object to * import. All contents of this object are imported. Valid types for this parameter * are determined by the supplied <code>IImportStructureProvider</code>. * </p> @@ -121,11 +121,11 @@ public class ImportOperation extends WorkspaceModifyOperation { * </p> * <p> * The default import behavior is to recreate the complete container structure - * for the contents of the root file system object in their destination. - * If <code>setCreateContainerStructure</code> is set to false then the container + * for the contents of the root file system object in their destination. + * If <code>setCreateContainerStructure</code> is set to false then the container * structure created is relative to the root file system object. * </p> - * + * * @param containerPath the full path of the destination container within the * workspace * @param source the root file system object to import @@ -148,8 +148,8 @@ public class ImportOperation extends WorkspaceModifyOperation { * operation solely to determine the destination container structure of the file system * objects being imported. * <p> - * The <code>source</code> parameter represents the root file system object to - * import. Valid types for this parameter are determined by the supplied + * The <code>source</code> parameter represents the root file system object to + * import. Valid types for this parameter are determined by the supplied * <code>IImportStructureProvider</code>. The contents of the source which * are to be imported are specified in the <code>filesToImport</code> * parameter. @@ -166,7 +166,7 @@ public class ImportOperation extends WorkspaceModifyOperation { * <p> * The default import behavior is to recreate the complete container structure * for the file system objects in their destination. If <code>setCreateContainerStructure</code> - * is set to <code>false</code>, then the container structure created for each of + * is set to <code>false</code>, then the container structure created for each of * the file system objects is relative to the supplied root file system object. * </p> * @@ -193,13 +193,13 @@ public class ImportOperation extends WorkspaceModifyOperation { * and the provider in turn calls specific methods on the source object. * </p> * <p> - * The <code>filesToImport</code> parameter specifies what file system objects + * The <code>filesToImport</code> parameter specifies what file system objects * are to be imported. * </p> * <p> * The default import behavior is to recreate the complete container structure * for the file system objects in their destination. If <code>setCreateContainerStructure</code> - * is set to <code>false</code>, then no container structure is created for each of + * is set to <code>false</code>, then no container structure is created for each of * the file system objects. * </p> * @@ -221,7 +221,7 @@ public class ImportOperation extends WorkspaceModifyOperation { * Prompts if existing resources should be overwritten. Recursively collects * existing read-only files to overwrite and resources that should not be * overwritten. - * + * * @param sourceStart destination path to check for existing files * @param sources file system objects that may exist in the destination * @param noOverwrite files that were selected to be skipped (don't overwrite). @@ -343,7 +343,7 @@ public class ImportOperation extends WorkspaceModifyOperation { int segmentCount = path.segmentCount(); - //Assume the project exists + //Assume the project exists IContainer currentFolder = ((IWorkspaceRoot) destinationContainer) .getProject(path.segment(0)); @@ -439,15 +439,15 @@ public class ImportOperation extends WorkspaceModifyOperation { IPath relativePath = destContainerPath.removeFirstSegments( sourcePath.segmentCount()).setDevice(null); return createContainersFor(relativePath); - + } /** - * Returns the resource either casted to or adapted to an IFile. - * + * Returns the resource either casted to or adapted to an IFile. + * * @param resource resource to cast/adapt * @return the resource either casted to or adapted to an IFile. - * <code>null</code> if the resource does not adapt to IFile + * <code>null</code> if the resource does not adapt to IFile */ IFile getFile(IResource resource) { if (resource instanceof IFile) { @@ -458,15 +458,15 @@ public class ImportOperation extends WorkspaceModifyOperation { return null; } return (IFile) adapted; - + } /** - * Returns the resource either casted to or adapted to an IFolder. - * + * Returns the resource either casted to or adapted to an IFolder. + * * @param resource resource to cast/adapt * @return the resource either casted to or adapted to an IFolder. - * <code>null</code> if the resource does not adapt to IFolder + * <code>null</code> if the resource does not adapt to IFolder */ IFolder getFolder(IResource resource) { if (resource instanceof IFolder) { @@ -481,7 +481,7 @@ public class ImportOperation extends WorkspaceModifyOperation { /** * Returns the rejected files based on the given multi status. - * + * * @param multiStatus multi status to use to determine file rejection * @param files source files * @return list of rejected files as absolute paths. Object type IPath. @@ -620,7 +620,7 @@ public class ImportOperation extends WorkspaceModifyOperation { * @param fileObject */ private void setResourceAttributes(IFile targetResource, Object fileObject) { - + long timeStamp = 0; if(fileObject instanceof File) { try { @@ -641,7 +641,7 @@ public class ImportOperation extends WorkspaceModifyOperation { if(zipTimeStamp != -1) timeStamp = zipTimeStamp; } - + if(timeStamp!= 0) { try { targetResource.setLocalTimeStamp(timeStamp); @@ -658,7 +658,7 @@ public class ImportOperation extends WorkspaceModifyOperation { * * @param filesToImport the list of file system objects to import * (element type: <code>Object</code>) - * @throws CoreException + * @throws CoreException * @exception OperationCanceledException if canceled */ void importFileSystemObjects(List filesToImport) throws CoreException { @@ -692,7 +692,7 @@ public class ImportOperation extends WorkspaceModifyOperation { * @param folderObject the file system container object to be imported * @param policy determines how the folder object and children are imported * @return the policy to use to import the folder's children - * @throws CoreException + * @throws CoreException */ int importFolder(Object folderObject, int policy) throws CoreException { IContainer containerResource; @@ -754,9 +754,9 @@ public class ImportOperation extends WorkspaceModifyOperation { * Transform an absolute path URI to a relative path one (i.e. from * "C:\foo\bar\file.txt" to "VAR\file.txt" granted that the relativeVariable * is "VAR" and points to "C:\foo\bar\"). - * + * * @param location - * @param resource + * @param resource * @return an URI that was made relative to a variable */ private IPath createRelativePath(IPath location, IResource resource) { @@ -779,7 +779,7 @@ public class ImportOperation extends WorkspaceModifyOperation { * * @param fileSystemObject the file system object to be imported * @param policy determines how the file system object and children are imported - * @throws CoreException + * @throws CoreException * @exception OperationCanceledException if canceled */ void importRecursivelyFrom(Object fileSystemObject, int policy) throws CoreException { @@ -805,7 +805,7 @@ public class ImportOperation extends WorkspaceModifyOperation { /** * Queries the user whether the resource with the specified path should be * overwritten by a file system object that is being imported. - * + * * @param resourcePath the workspace path of the resource that needs to be overwritten * @return <code>true</code> to overwrite, <code>false</code> to not overwrite * @exception OperationCanceledException if canceled @@ -838,8 +838,8 @@ public class ImportOperation extends WorkspaceModifyOperation { /** * Returns whether the given file should be overwritten. * - * @param targetFile the file to ask to overwrite - * @param policy determines if the user is queried for overwrite + * @param targetFile the file to ask to overwrite + * @param policy determines if the user is queried for overwrite * @return <code>true</code> if the file should be overwritten, and * <code>false</code> if not. */ @@ -860,7 +860,7 @@ public class ImportOperation extends WorkspaceModifyOperation { /** * Sets the context for use by the VCM provider to prompt the user * for check-out of files. - * + * * @param shell context for use by the VCM provider to prompt user * for check-out. The user will not be prompted if set to <code>null</code>. * @see IWorkspace#validateEdit(org.eclipse.core.resources.IFile[], java.lang.Object) @@ -895,7 +895,7 @@ public class ImportOperation extends WorkspaceModifyOperation { * Sets whether imported file system objects should automatically overwrite * existing workbench resources when a conflict occurs. * - * @param value <code>true</code> to automatically overwrite, and + * @param value <code>true</code> to automatically overwrite, and * <code>false</code> otherwise */ public void setOverwriteResources(boolean value) { @@ -905,14 +905,14 @@ public class ImportOperation extends WorkspaceModifyOperation { } /** - * Validates that the given source resources can be copied to the + * Validates that the given source resources can be copied to the * destination as decided by the VCM provider. - * + * * @param existingFiles existing files to validate * @return list of rejected files as absolute paths. Object type IPath. */ ArrayList validateEdit(List existingFiles) { - + if (existingFiles.size() > 0) { IFile[] files = (IFile[]) existingFiles .toArray(new IFile[existingFiles.size()]); @@ -923,7 +923,7 @@ public class ImportOperation extends WorkspaceModifyOperation { if (status.isMultiStatus()) { return getRejectedFiles(status, files); } - + if(!status.isOK()){ //If just a single status reject them all errorTable.add(status); @@ -934,7 +934,7 @@ public class ImportOperation extends WorkspaceModifyOperation { } return filteredFiles; } - + } return new ArrayList(); } @@ -943,7 +943,7 @@ public class ImportOperation extends WorkspaceModifyOperation { * Validates the given file system objects. * The user is prompted to overwrite existing files. * Existing read-only files are validated with the VCM provider. - * + * * @param sourceFiles files to validate */ void validateFiles(List sourceFiles) { @@ -958,7 +958,7 @@ public class ImportOperation extends WorkspaceModifyOperation { /** * Set Whether groups and links will be created instead of files and folders - * + * * @param virtualFolders * @since 3.6 */ @@ -968,7 +968,7 @@ public class ImportOperation extends WorkspaceModifyOperation { /** * Set Whether links will be created instead of files and folders - * + * * @param links * @since 3.6 */ @@ -978,7 +978,7 @@ public class ImportOperation extends WorkspaceModifyOperation { /** * Set a variable relative to which the links are created - * + * * @param variable * @since 3.6 */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/wizards/datatransfer/WizardExternalProjectImportPage.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/wizards/datatransfer/WizardExternalProjectImportPage.java index c90a738c537..151f8e3347b 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/wizards/datatransfer/WizardExternalProjectImportPage.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/wizards/datatransfer/WizardExternalProjectImportPage.java @@ -225,7 +225,7 @@ public class WizardExternalProjectImportPage extends WizardPage { } /** - * Returns the current project location path as entered by + * Returns the current project location path as entered by * the user, or its anticipated initial value. * * @return the project location path, its anticipated initial value, or <code>null</code> @@ -264,7 +264,7 @@ public class WizardExternalProjectImportPage extends WizardPage { /** * Returns the value of the project name field * with leading and trailing spaces removed. - * + * * @return the project name in the field */ private String getProjectNameFieldValue() { @@ -278,7 +278,7 @@ public class WizardExternalProjectImportPage extends WizardPage { /** * Returns the value of the project location field * with leading and trailing spaces removed. - * + * * @return the project location directory in the field */ private String getProjectLocationFieldValue() { @@ -317,7 +317,7 @@ public class WizardExternalProjectImportPage extends WizardPage { } /** - * Returns whether this page's controls currently all contain valid + * Returns whether this page's controls currently all contain valid * values. * * @return <code>true</code> if all controls are valid, and @@ -371,7 +371,7 @@ public class WizardExternalProjectImportPage extends WizardPage { /** * Set the project name using either the name of the - * parent of the file or the name entry in the xml for + * parent of the file or the name entry in the xml for * the file */ private void setProjectName(File projectFile) { @@ -469,7 +469,7 @@ public class WizardExternalProjectImportPage extends WizardPage { } catch (InterruptedException e) { return null; } catch (InvocationTargetException e) { - // ie.- one of the steps resulted in a core exception + // ie.- one of the steps resulted in a core exception Throwable t = e.getTargetException(); if (t instanceof CoreException) { if (((CoreException) t).getStatus().getCode() == IResourceStatus.CASE_VARIANT_EXISTS) { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/wizards/datatransfer/ZipFileExportWizard.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/wizards/datatransfer/ZipFileExportWizard.java index 92d8f2c7a4f..adce5c51c38 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/wizards/datatransfer/ZipFileExportWizard.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/wizards/datatransfer/ZipFileExportWizard.java @@ -40,7 +40,7 @@ import org.eclipse.ui.internal.wizards.datatransfer.WizardArchiveFileResourceExp * dialog.open(); * </pre> * During the call to <code>open</code>, the wizard dialog is presented to the - * user. When the user hits Finish, the user-selected workspace resources + * user. When the user hits Finish, the user-selected workspace resources * are exported to the user-specified zip file, the dialog closes, and the call * to <code>open</code> returns. * </p> diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/wizards/datatransfer/ZipFileImportWizard.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/wizards/datatransfer/ZipFileImportWizard.java index 90c58b895e5..abd2a733de1 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/wizards/datatransfer/ZipFileImportWizard.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/wizards/datatransfer/ZipFileImportWizard.java @@ -36,14 +36,14 @@ import org.eclipse.ui.plugin.AbstractUIPlugin; * </p> * <p> * Example: - * + * * <pre> * IWizard wizard = new ZipFileImportWizard(); * wizard.init(workbench, selection); * WizardDialog dialog = new WizardDialog(shell, wizard); * dialog.open(); * </pre> - * + * * During the call to <code>open</code>, the wizard dialog is presented to * the user. When the user hits Finish, the user-selected zip file is imported * into the workspace, the dialog closes, and the call to <code>open</code> @@ -87,7 +87,7 @@ public class ZipFileImportWizard extends Wizard implements IImportWizard { /** * Get the file import mask used by the receiver. By default use null so * that there is no mask. - * + * * @return String[] or <code>null</code> * @since 3.4 */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/wizards/datatransfer/ZipFileStructureProvider.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/wizards/datatransfer/ZipFileStructureProvider.java index 623a3699e92..17dbc61ebf6 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/wizards/datatransfer/ZipFileStructureProvider.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/wizards/datatransfer/ZipFileStructureProvider.java @@ -40,7 +40,7 @@ public class ZipFileStructureProvider implements IImportStructureProvider { /** * Creates a <code>ZipFileStructureProvider</code>, which will operate * on the passed zip file. - * + * * @param sourceFile the zip file used to create this structure provider */ public ZipFileStructureProvider(ZipFile sourceFile) { @@ -155,7 +155,7 @@ public class ZipFileStructureProvider implements IImportStructureProvider { /** * Returns the zip file that this provider provides structure for. - * + * * @return the zip file this provider provides structure for */ public ZipFile getZipFile() { diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/wizards/newresource/BasicNewFileResourceWizard.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/wizards/newresource/BasicNewFileResourceWizard.java index bb994a8ad49..bdb380369e8 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/wizards/newresource/BasicNewFileResourceWizard.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/wizards/newresource/BasicNewFileResourceWizard.java @@ -53,7 +53,7 @@ public class BasicNewFileResourceWizard extends BasicNewResourceWizard { * @since 3.4 */ public static final String WIZARD_ID = "org.eclipse.ui.wizards.new.file"; //$NON-NLS-1$ - + private WizardNewFileCreationPage mainPage; /** @@ -71,7 +71,7 @@ public class BasicNewFileResourceWizard extends BasicNewResourceWizard { super.addPages(); mainPage = new WizardNewFileCreationPage("newFilePage1", getSelection());//$NON-NLS-1$ mainPage.setTitle(ResourceMessages.FileResource_pageTitle); - mainPage.setDescription(ResourceMessages.FileResource_description); + mainPage.setDescription(ResourceMessages.FileResource_description); addPage(mainPage); } @@ -116,7 +116,7 @@ public class BasicNewFileResourceWizard extends BasicNewResourceWizard { } } } catch (PartInitException e) { - DialogUtil.openError(dw.getShell(), ResourceMessages.FileResource_errorMessage, + DialogUtil.openError(dw.getShell(), ResourceMessages.FileResource_errorMessage, e.getMessage(), e); } diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/wizards/newresource/BasicNewFolderResourceWizard.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/wizards/newresource/BasicNewFolderResourceWizard.java index 6f1a3f61783..5f1473a9d16 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/wizards/newresource/BasicNewFolderResourceWizard.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/wizards/newresource/BasicNewFolderResourceWizard.java @@ -48,7 +48,7 @@ public class BasicNewFolderResourceWizard extends BasicNewResourceWizard { * @since 3.4 */ public static final String WIZARD_ID = "org.eclipse.ui.wizards.new.folder"; //$NON-NLS-1$ - + private WizardNewFolderMainPage mainPage; /** @@ -64,7 +64,7 @@ public class BasicNewFolderResourceWizard extends BasicNewResourceWizard { @Override public void addPages() { super.addPages(); - mainPage = new WizardNewFolderMainPage(ResourceMessages.NewFolder_text, getSelection()); + mainPage = new WizardNewFolderMainPage(ResourceMessages.NewFolder_text, getSelection()); addPage(mainPage); } @@ -85,7 +85,7 @@ public class BasicNewFolderResourceWizard extends BasicNewResourceWizard { protected void initializeDefaultPageImageDescriptor() { ImageDescriptor desc = IDEWorkbenchPlugin.getIDEImageDescriptor("wizban/newfolder_wiz.png");//$NON-NLS-1$ setDefaultPageImageDescriptor(desc); - + } /* (non-Javadoc) diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/wizards/newresource/BasicNewProjectResourceWizard.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/wizards/newresource/BasicNewProjectResourceWizard.java index 954b8491f5f..80d2efa04e4 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/wizards/newresource/BasicNewProjectResourceWizard.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/wizards/newresource/BasicNewProjectResourceWizard.java @@ -83,14 +83,14 @@ import org.eclipse.ui.statushandlers.StatusManager; * </p> * <p> * Example: - * + * * <pre> * IWorkbenchWizard wizard = new BasicNewProjectResourceWizard(); * wizard.init(workbench, selection); * WizardDialog dialog = new WizardDialog(shell, wizard); * dialog.open(); * </pre> - * + * * During the call to <code>open</code>, the wizard dialog is presented to * the user. When the user hits Finish, a project resource with the * user-specified name is created, the dialog closes, and the call to @@ -100,13 +100,13 @@ import org.eclipse.ui.statushandlers.StatusManager; */ public class BasicNewProjectResourceWizard extends BasicNewResourceWizard implements IExecutableExtension { - + /** * The wizard id for creating new projects in the workspace. * @since 3.4 */ public static final String WIZARD_ID = "org.eclipse.ui.wizards.new.project"; //$NON-NLS-1$ - + private WizardNewProjectCreationPage mainPage; private WizardNewProjectReferencePage referencePage; @@ -156,7 +156,7 @@ public class BasicNewProjectResourceWizard extends BasicNewResourceWizard mainPage = new WizardNewProjectCreationPage("basicNewProjectPage") { //$NON-NLS-1$ /* * (non-Javadoc) - * + * * @see org.eclipse.ui.dialogs.WizardNewProjectCreationPage#createControl(org.eclipse.swt.widgets.Composite) */ @Override @@ -168,7 +168,7 @@ public class BasicNewProjectResourceWizard extends BasicNewResourceWizard new String[] { "org.eclipse.ui.resourceWorkingSetPage" }); //$NON-NLS-1$ Dialog.applyDialogFont(getControl()); } - }; + }; mainPage.setTitle(ResourceMessages.NewProject_title); mainPage.setDescription(ResourceMessages.NewProject_description); this.addPage(mainPage); @@ -196,7 +196,7 @@ public class BasicNewProjectResourceWizard extends BasicNewResourceWizard * successfully created; subsequent invocations of this method will answer * the same project resource without attempting to create it again. * </p> - * + * * @return the created project resource, or <code>null</code> if the * project was not created */ @@ -237,7 +237,7 @@ public class BasicNewProjectResourceWizard extends BasicNewResourceWizard try { // see bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=219901 // directly execute the operation so that the undo state is - // not preserved. Making this undoable resulted in too many + // not preserved. Making this undoable resulted in too many // accidental file deletions. op.execute(monitor, WorkspaceUndoUtil .getUIInfoAdapter(getShell())); @@ -297,7 +297,7 @@ public class BasicNewProjectResourceWizard extends BasicNewResourceWizard /** * Returns the newly created project. - * + * * @return the created project, or <code>null</code> if project not * created */ @@ -354,11 +354,11 @@ public class BasicNewProjectResourceWizard extends BasicNewResourceWizard if (newProject == null) { return false; } - + IWorkingSet[] workingSets = mainPage.getSelectedWorkingSets(); getWorkbench().getWorkingSetManager().addToWorkingSets(newProject, workingSets); - + updatePerspective(); selectAndReveal(newProject); @@ -405,7 +405,7 @@ public class BasicNewProjectResourceWizard extends BasicNewResourceWizard /** * Updates the perspective based on the current settings in the * Workbench/Perspectives preference page. - * + * * Use the setting for the new perspective opening if we are set to open in * a new perspective. * <p> @@ -414,10 +414,10 @@ public class BasicNewProjectResourceWizard extends BasicNewResourceWizard * wizard's <code>IConfigurationElement</code>. That is the configuration * element to pass into this method. * </p> - * + * * @param configElement - * the element we are updating with - * + * * @see IPreferenceConstants#OPM_NEW_WINDOW * @see IPreferenceConstants#OPM_ACTIVE_PAGE * @see IWorkbenchPreferenceConstants#NO_NEW_PERSPECTIVE @@ -538,7 +538,7 @@ public class BasicNewProjectResourceWizard extends BasicNewResourceWizard /** * Adds to the list all perspective IDs in the Workbench who's original ID * matches the given ID. - * + * * @param perspectiveIds * the list of perspective IDs to supplement. * @param id @@ -562,13 +562,13 @@ public class BasicNewProjectResourceWizard extends BasicNewResourceWizard /** * Prompts the user for whether to switch perspectives. - * + * * @param window * The workbench window in which to switch perspectives; must not * be <code>null</code> * @param finalPersp * The perspective to switch to; must not be <code>null</code>. - * + * * @return <code>true</code> if it's OK to switch, <code>false</code> * otherwise */ diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/wizards/newresource/BasicNewResourceWizard.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/wizards/newresource/BasicNewResourceWizard.java index d6d0c0987d9..008b501ed89 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/wizards/newresource/BasicNewResourceWizard.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/wizards/newresource/BasicNewResourceWizard.java @@ -76,7 +76,7 @@ public abstract class BasicNewResourceWizard extends Wizard implements } /** - * The <code>BasicNewResourceWizard</code> implementation of this + * The <code>BasicNewResourceWizard</code> implementation of this * <code>IWorkbenchWizard</code> method records the given workbench and * selection, and initializes the default banner image for the pages * by calling <code>initializeDefaultPageImageDescriptor</code>. @@ -124,7 +124,7 @@ public abstract class BasicNewResourceWizard extends Wizard implements * * @param resource the resource to be selected and revealed * @param window the workbench window to select and reveal the resource - * + * * @see ISetSelectionTarget */ public static void selectAndReveal(IResource resource, |
