Skip to content

Commit 5878cb4

Browse files
eclipse-pde-botakurtakov
authored andcommitted
Perform clean code of ui/org.eclipse.pde.ui
1 parent 4fe820b commit 5878cb4

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

ui/org.eclipse.pde.ui/src/org/eclipse/pde/ui/target/ITargetLocationEditor.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ public interface ITargetLocationEditor {
3636
* @param targetLocation the target location to edit
3737
* @return whether this editor can edit the target location
3838
*/
39+
@Deprecated
3940
public boolean canEdit(ITargetDefinition target, ITargetLocation targetLocation);
4041

4142
/**
@@ -47,6 +48,7 @@ public interface ITargetLocationEditor {
4748
* @param targetLocation the target location to edit
4849
* @return wizard to open for editing the target location
4950
*/
51+
@Deprecated
5052
public IWizard getEditWizard(ITargetDefinition target, ITargetLocation targetLocation);
5153

5254
}

ui/org.eclipse.pde.ui/src/org/eclipse/pde/ui/target/ITargetLocationUpdater.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ public interface ITargetLocationUpdater {
3636
* If this status code is set, the target will not resolve the target after the update completes.
3737
* </p>
3838
*/
39+
@Deprecated
3940
public static final int STATUS_CODE_NO_CHANGE = ITargetLocationHandler.STATUS_CODE_NO_CHANGE;
4041

4142
/**
@@ -46,6 +47,7 @@ public interface ITargetLocationUpdater {
4647
* @param targetLocation the target location to update
4748
* @return whether this update can update the given target location
4849
*/
50+
@Deprecated
4951
public boolean canUpdate(ITargetDefinition target, ITargetLocation targetLocation);
5052

5153
/**
@@ -61,6 +63,7 @@ public interface ITargetLocationUpdater {
6163
* @param monitor progress monitor
6264
* @return result of the update, use an OK status with {@link #STATUS_CODE_NO_CHANGE} to indicate everything is up to date
6365
*/
66+
@Deprecated
6467
public IStatus update(ITargetDefinition target, ITargetLocation targetLocation, IProgressMonitor monitor);
6568

6669
}

ui/org.eclipse.pde.ui/src/org/eclipse/pde/ui/templates/ChoiceOption.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,13 @@ public class ChoiceOption extends TemplateOption {
5252
* will be interpeted as the choice unique name, and position 1
5353
* as the choice presentable label.
5454
*/
55+
@Deprecated
5556
public ChoiceOption(BaseOptionTemplateSection section, String name, String label, String[][] choices) {
5657
super(section, name, label);
5758
this.choices = choices;
5859
}
5960

61+
@Deprecated
6062
@Override
6163
public void createControl(Composite parent, int span) {
6264
Composite container = createComposite(parent, span);
@@ -98,6 +100,7 @@ public void createControl(Composite parent, int span) {
98100
*
99101
* @return the current choice or <samp>null </samp> if not initialized.
100102
*/
103+
@Deprecated
101104
public String getChoice() {
102105
return getValue() != null ? getValue().toString() : null;
103106
}
@@ -109,6 +112,7 @@ public String getChoice() {
109112
* @param value
110113
* the new value.
111114
*/
115+
@Deprecated
112116
@Override
113117
public void setValue(Object value) {
114118
super.setValue(value);
@@ -117,6 +121,7 @@ public void setValue(Object value) {
117121
}
118122
}
119123

124+
@Deprecated
120125
@Override
121126
public void setEnabled(boolean enabled) {
122127
super.setEnabled(enabled);

0 commit comments

Comments
 (0)