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 693e4750718..31cdb0bb8fb 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 @@ -43,11 +43,13 @@ public class CreateFileAction extends SelectionListenerAction { /** * The id of this action. */ + @Deprecated public static final String ID = PlatformUI.PLUGIN_ID + ".CreateFileAction";//$NON-NLS-1$ /** * The shell in which to show any dialogs. */ + @Deprecated protected IShellProvider shellProvider; /** @@ -96,6 +98,7 @@ private void initAction(){ * IAction method opens a BasicNewFileResourceWizard * in a wizard dialog under the shell passed to the constructor. */ + @Deprecated @Override public void run() { BasicNewFileResourceWizard wizard = new BasicNewFileResourceWizard(); @@ -115,6 +118,7 @@ public void run() { * SelectionListenerAction method enables the action only * if the selection contains folders and open projects. */ + @Deprecated @Override protected boolean updateSelection(IStructuredSelection s) { if (!super.updateSelection(s)) { 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 9bc72cd7d5f..d01d6080ec4 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 @@ -44,12 +44,14 @@ public class CreateFolderAction extends SelectionListenerAction { /** * The id of this action. */ + @Deprecated public static final String ID = PlatformUI.PLUGIN_ID + ".CreateFolderAction";//$NON-NLS-1$ /** * The shell in which to show any dialogs. */ + @Deprecated protected IShellProvider shellProvider; /** @@ -100,6 +102,7 @@ private void initAction(){ * IAction method opens a BasicNewFolderResourceWizard * in a wizard dialog under the shell passed to the constructor. */ + @Deprecated @Override public void run() { BasicNewFolderResourceWizard wizard = new BasicNewFolderResourceWizard(); @@ -120,6 +123,7 @@ public void run() { * SelectionListenerAction method enables the action only * if the selection contains folders and open projects. */ + @Deprecated @Override protected boolean updateSelection(IStructuredSelection s) { if (!super.updateSelection(s)) { 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 987a93e8a77..df441c23bf8 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 @@ -66,6 +66,7 @@ public class QuickStartAction extends Action implements * page. *

*/ + @Deprecated public QuickStartAction() { this(PlatformUI.getWorkbench().getActiveWorkbenchWindow()); } @@ -74,6 +75,7 @@ public QuickStartAction() { * Creates an instance of this action, for use in the given window. * @param window the window */ + @Deprecated public QuickStartAction(IWorkbenchWindow window) { super(IDEWorkbenchMessages.QuickStart_text); if (window == null) { @@ -90,6 +92,7 @@ public QuickStartAction(IWorkbenchWindow window) { * The user has invoked this action. Prompts for a feature with a welcome page, * then opens the corresponding welcome page. */ + @Deprecated @Override public void run() { if (workbenchWindow == null) { @@ -155,6 +158,7 @@ private AboutInfo promptForFeature() { * @return true if successful, false otherwise * @throws WorkbenchException if operation failed */ + @Deprecated public boolean openWelcomePage(String featureId) throws WorkbenchException { AboutInfo feature = findFeature(featureId); if (feature == null || feature.getWelcomePageURL() == null) { @@ -252,6 +256,7 @@ private boolean openWelcomePage(AboutInfo feature) { return true; } + @Deprecated @Override public void dispose() { if (workbenchWindow == null) { diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/ScrubLocalAction.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/ScrubLocalAction.java index fcba41cb26e..123ded66e4e 100644 --- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/ScrubLocalAction.java +++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/ScrubLocalAction.java @@ -38,6 +38,7 @@ public class ScrubLocalAction extends WorkspaceAction { /** * The id of this action. */ + @Deprecated public static final String ID = "org.eclipse.ui.ScrubLocalAction";//$NON-NLS-1$ /** @@ -45,6 +46,7 @@ public class ScrubLocalAction extends WorkspaceAction { * * @param shell the shell for any dialogs */ + @Deprecated public ScrubLocalAction(Shell shell) { super(shell, IDEWorkbenchMessages.ScrubLocalAction_text); setToolTipText(IDEWorkbenchMessages.ScrubLocalAction_toolTip); @@ -53,21 +55,25 @@ public ScrubLocalAction(Shell shell) { IIDEHelpContextIds.SCRUB_LOCAL_ACTION); } + @Deprecated @Override protected String getOperationMessage() { return IDEWorkbenchMessages.ScrubLocalAction_progress; } + @Deprecated @Override protected String getProblemsMessage() { return IDEWorkbenchMessages.ScrubLocalAction_problemsMessage; } + @Deprecated @Override protected String getProblemsTitle() { return IDEWorkbenchMessages.ScrubLocalAction_problemsTitle; } + @Deprecated @Override protected void invokeOperation(IResource resource, IProgressMonitor monitor) throws CoreException { @@ -79,6 +85,7 @@ protected void invokeOperation(IResource resource, IProgressMonitor monitor) * SelectionListenerAction method ensures that this action is * disabled if any of the selections are not resources. */ + @Deprecated @Override protected boolean updateSelection(IStructuredSelection s) { return super.updateSelection(s) 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 42df3f2a07e..c6bea4df51b 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 @@ -40,6 +40,7 @@ public abstract class ResourceDescription { * @param resource the resource from which a description should be created * @return the resource description */ + @Deprecated public static ResourceDescription fromResource(IResource resource) { IResourceSnapshot delegate = ResourceSnapshotFactory.fromResource(resource); return new ResourceDescription() { @@ -91,6 +92,7 @@ public boolean verifyExistence(boolean checkMembers) { * @return the resource handle that can be used to create a resource from this * description */ + @Deprecated public abstract IResource createResourceHandle(); /** @@ -98,6 +100,7 @@ public boolean verifyExistence(boolean checkMembers) { * * @return the name of the Resource */ + @Deprecated public abstract String getName(); /** @@ -107,6 +110,7 @@ public boolean verifyExistence(boolean checkMembers) { * @return a resource that has the attributes of this resource description * @throws CoreException if creation failed */ + @Deprecated public abstract IResource createResource(IProgressMonitor monitor) throws CoreException; /** @@ -117,6 +121,7 @@ public boolean verifyExistence(boolean checkMembers) { * @param monitor the progress monitor to be used when creating the resource * @throws CoreException if creation failed */ + @Deprecated public abstract void createExistentResourceFromHandle(IResource resource, IProgressMonitor monitor) throws CoreException; @@ -127,6 +132,7 @@ public abstract void createExistentResourceFromHandle(IResource resource, IProgr * @return true if the resource can be created, and * false if it does not have enough information */ + @Deprecated public abstract boolean isValid(); /** @@ -137,6 +143,7 @@ public abstract void createExistentResourceFromHandle(IResource resource, IProgr * @param monitor the progress monitor to be used * @throws CoreException in case of error */ + @Deprecated public abstract void recordStateFromHistory(IResource resource, IProgressMonitor monitor) throws CoreException; /** @@ -151,6 +158,7 @@ public abstract void createExistentResourceFromHandle(IResource resource, IProgr * @return a boolean indicating whether this description represents an existent * resource. */ + @Deprecated public abstract boolean verifyExistence(boolean checkMembers); } 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 4d1bbf86a05..2fb249c97fc 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 @@ -34,6 +34,7 @@ private FrameListMessages() { * @param args the message arguments * @return the string */ + @Deprecated public static String format(String key, Object[] args) { return key; } @@ -46,6 +47,7 @@ public static String format(String key, Object[] args) { * @param key the resource name * @return the string */ + @Deprecated public static String getString(String key) { return key; } 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 97408eeb40b..2d402446b6d 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 @@ -34,6 +34,7 @@ private IDEPropertiesMessages() { * @param args the message arguments * @return the string */ + @Deprecated public static String format(String key, Object[] args) { return key; } @@ -46,6 +47,7 @@ public static String format(String key, Object[] args) { * @param key the resource name * @return the string */ + @Deprecated public static String getString(String key) { return key; }