Skip to content

Commit 3e5d528

Browse files
eclipse-platform-botakurtakov
authored andcommitted
Perform clean code of bundles/org.eclipse.ui.ide
1 parent 6a3b239 commit 3e5d528

File tree

7 files changed

+32
-0
lines changed

7 files changed

+32
-0
lines changed

bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/CreateFileAction.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,13 @@ public class CreateFileAction extends SelectionListenerAction {
4343
/**
4444
* The id of this action.
4545
*/
46+
@Deprecated
4647
public static final String ID = PlatformUI.PLUGIN_ID + ".CreateFileAction";//$NON-NLS-1$
4748

4849
/**
4950
* The shell in which to show any dialogs.
5051
*/
52+
@Deprecated
5153
protected IShellProvider shellProvider;
5254

5355
/**
@@ -96,6 +98,7 @@ private void initAction(){
9698
* <code>IAction</code> method opens a <code>BasicNewFileResourceWizard</code>
9799
* in a wizard dialog under the shell passed to the constructor.
98100
*/
101+
@Deprecated
99102
@Override
100103
public void run() {
101104
BasicNewFileResourceWizard wizard = new BasicNewFileResourceWizard();
@@ -115,6 +118,7 @@ public void run() {
115118
* <code>SelectionListenerAction</code> method enables the action only
116119
* if the selection contains folders and open projects.
117120
*/
121+
@Deprecated
118122
@Override
119123
protected boolean updateSelection(IStructuredSelection s) {
120124
if (!super.updateSelection(s)) {

bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/CreateFolderAction.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,14 @@ public class CreateFolderAction extends SelectionListenerAction {
4444
/**
4545
* The id of this action.
4646
*/
47+
@Deprecated
4748
public static final String ID = PlatformUI.PLUGIN_ID
4849
+ ".CreateFolderAction";//$NON-NLS-1$
4950

5051
/**
5152
* The shell in which to show any dialogs.
5253
*/
54+
@Deprecated
5355
protected IShellProvider shellProvider;
5456

5557
/**
@@ -100,6 +102,7 @@ private void initAction(){
100102
* <code>IAction</code> method opens a <code>BasicNewFolderResourceWizard</code>
101103
* in a wizard dialog under the shell passed to the constructor.
102104
*/
105+
@Deprecated
103106
@Override
104107
public void run() {
105108
BasicNewFolderResourceWizard wizard = new BasicNewFolderResourceWizard();
@@ -120,6 +123,7 @@ public void run() {
120123
* <code>SelectionListenerAction</code> method enables the action only
121124
* if the selection contains folders and open projects.
122125
*/
126+
@Deprecated
123127
@Override
124128
protected boolean updateSelection(IStructuredSelection s) {
125129
if (!super.updateSelection(s)) {

bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/QuickStartAction.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ public class QuickStartAction extends Action implements
6666
* page.
6767
* </p>
6868
*/
69+
@Deprecated
6970
public QuickStartAction() {
7071
this(PlatformUI.getWorkbench().getActiveWorkbenchWindow());
7172
}
@@ -74,6 +75,7 @@ public QuickStartAction() {
7475
* Creates an instance of this action, for use in the given window.
7576
* @param window the window
7677
*/
78+
@Deprecated
7779
public QuickStartAction(IWorkbenchWindow window) {
7880
super(IDEWorkbenchMessages.QuickStart_text);
7981
if (window == null) {
@@ -90,6 +92,7 @@ public QuickStartAction(IWorkbenchWindow window) {
9092
* The user has invoked this action. Prompts for a feature with a welcome page,
9193
* then opens the corresponding welcome page.
9294
*/
95+
@Deprecated
9396
@Override
9497
public void run() {
9598
if (workbenchWindow == null) {
@@ -155,6 +158,7 @@ private AboutInfo promptForFeature() {
155158
* @return <code>true</code> if successful, <code>false</code> otherwise
156159
* @throws WorkbenchException if operation failed
157160
*/
161+
@Deprecated
158162
public boolean openWelcomePage(String featureId) throws WorkbenchException {
159163
AboutInfo feature = findFeature(featureId);
160164
if (feature == null || feature.getWelcomePageURL() == null) {
@@ -252,6 +256,7 @@ private boolean openWelcomePage(AboutInfo feature) {
252256
return true;
253257
}
254258

259+
@Deprecated
255260
@Override
256261
public void dispose() {
257262
if (workbenchWindow == null) {

bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/ScrubLocalAction.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,15 @@ public class ScrubLocalAction extends WorkspaceAction {
3838
/**
3939
* The id of this action.
4040
*/
41+
@Deprecated
4142
public static final String ID = "org.eclipse.ui.ScrubLocalAction";//$NON-NLS-1$
4243

4344
/**
4445
* Creates a new action.
4546
*
4647
* @param shell the shell for any dialogs
4748
*/
49+
@Deprecated
4850
public ScrubLocalAction(Shell shell) {
4951
super(shell, IDEWorkbenchMessages.ScrubLocalAction_text);
5052
setToolTipText(IDEWorkbenchMessages.ScrubLocalAction_toolTip);
@@ -53,21 +55,25 @@ public ScrubLocalAction(Shell shell) {
5355
IIDEHelpContextIds.SCRUB_LOCAL_ACTION);
5456
}
5557

58+
@Deprecated
5659
@Override
5760
protected String getOperationMessage() {
5861
return IDEWorkbenchMessages.ScrubLocalAction_progress;
5962
}
6063

64+
@Deprecated
6165
@Override
6266
protected String getProblemsMessage() {
6367
return IDEWorkbenchMessages.ScrubLocalAction_problemsMessage;
6468
}
6569

70+
@Deprecated
6671
@Override
6772
protected String getProblemsTitle() {
6873
return IDEWorkbenchMessages.ScrubLocalAction_problemsTitle;
6974
}
7075

76+
@Deprecated
7177
@Override
7278
protected void invokeOperation(IResource resource, IProgressMonitor monitor)
7379
throws CoreException {
@@ -79,6 +85,7 @@ protected void invokeOperation(IResource resource, IProgressMonitor monitor)
7985
* <code>SelectionListenerAction</code> method ensures that this action is
8086
* disabled if any of the selections are not resources.
8187
*/
88+
@Deprecated
8289
@Override
8390
protected boolean updateSelection(IStructuredSelection s) {
8491
return super.updateSelection(s)

bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/ResourceDescription.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ public abstract class ResourceDescription {
4040
* @param resource the resource from which a description should be created
4141
* @return the resource description
4242
*/
43+
@Deprecated
4344
public static ResourceDescription fromResource(IResource resource) {
4445
IResourceSnapshot<IResource> delegate = ResourceSnapshotFactory.fromResource(resource);
4546
return new ResourceDescription() {
@@ -91,13 +92,15 @@ public boolean verifyExistence(boolean checkMembers) {
9192
* @return the resource handle that can be used to create a resource from this
9293
* description
9394
*/
95+
@Deprecated
9496
public abstract IResource createResourceHandle();
9597

9698
/**
9799
* Get the name of this resource.
98100
*
99101
* @return the name of the Resource
100102
*/
103+
@Deprecated
101104
public abstract String getName();
102105

103106
/**
@@ -107,6 +110,7 @@ public boolean verifyExistence(boolean checkMembers) {
107110
* @return a resource that has the attributes of this resource description
108111
* @throws CoreException if creation failed
109112
*/
113+
@Deprecated
110114
public abstract IResource createResource(IProgressMonitor monitor) throws CoreException;
111115

112116
/**
@@ -117,6 +121,7 @@ public boolean verifyExistence(boolean checkMembers) {
117121
* @param monitor the progress monitor to be used when creating the resource
118122
* @throws CoreException if creation failed
119123
*/
124+
@Deprecated
120125
public abstract void createExistentResourceFromHandle(IResource resource, IProgressMonitor monitor)
121126
throws CoreException;
122127

@@ -127,6 +132,7 @@ public abstract void createExistentResourceFromHandle(IResource resource, IProgr
127132
* @return <code>true</code> if the resource can be created, and
128133
* <code>false</code> if it does not have enough information
129134
*/
135+
@Deprecated
130136
public abstract boolean isValid();
131137

132138
/**
@@ -137,6 +143,7 @@ public abstract void createExistentResourceFromHandle(IResource resource, IProgr
137143
* @param monitor the progress monitor to be used
138144
* @throws CoreException in case of error
139145
*/
146+
@Deprecated
140147
public abstract void recordStateFromHistory(IResource resource, IProgressMonitor monitor) throws CoreException;
141148

142149
/**
@@ -151,6 +158,7 @@ public abstract void createExistentResourceFromHandle(IResource resource, IProgr
151158
* @return a boolean indicating whether this description represents an existent
152159
* resource.
153160
*/
161+
@Deprecated
154162
public abstract boolean verifyExistence(boolean checkMembers);
155163
}
156164

bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/framelist/FrameListMessages.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ private FrameListMessages() {
3434
* @param args the message arguments
3535
* @return the string
3636
*/
37+
@Deprecated
3738
public static String format(String key, Object[] args) {
3839
return key;
3940
}
@@ -46,6 +47,7 @@ public static String format(String key, Object[] args) {
4647
* @param key the resource name
4748
* @return the string
4849
*/
50+
@Deprecated
4951
public static String getString(String key) {
5052
return key;
5153
}

bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/properties/IDEPropertiesMessages.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ private IDEPropertiesMessages() {
3434
* @param args the message arguments
3535
* @return the string
3636
*/
37+
@Deprecated
3738
public static String format(String key, Object[] args) {
3839
return key;
3940
}
@@ -46,6 +47,7 @@ public static String format(String key, Object[] args) {
4647
* @param key the resource name
4748
* @return the string
4849
*/
50+
@Deprecated
4951
public static String getString(String key) {
5052
return key;
5153
}

0 commit comments

Comments
 (0)