summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorLars Vogel2013-07-30 06:46:23 (EDT)
committer Gerrit Code Review @ Eclipse.org2013-07-31 14:54:36 (EDT)
commite79addb8cf6629df2725d86bc4084b9775ffea09 (patch)
tree82ebcc4a5564e5507ca9cb9d80b97c41a7be0f09
parentdf1c93847b49179796573d35b960d7fac7d4fbef (diff)
downloadeclipse.platform.ui-e79addb8cf6629df2725d86bc4084b9775ffea09.zip
eclipse.platform.ui-e79addb8cf6629df2725d86bc4084b9775ffea09.tar.gz
eclipse.platform.ui-e79addb8cf6629df2725d86bc4084b9775ffea09.tar.bz2
Bug 413144 - Add @Deprecated for elements which have the @deprecatedrefs/changes/11/14611/4
Javadoc tag Change-Id: I21d12aae6ba16ae9cb5b55586cb551234c084d77 Signed-off-by: Lars Vogel <Lars.Vogel@gmail.com>
-rw-r--r--bundles/org.eclipse.jface/src/org/eclipse/jface/action/MenuManager.java6
-rw-r--r--bundles/org.eclipse.jface/src/org/eclipse/jface/action/SubContributionManager.java3
-rw-r--r--bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/AnimatorFactory.java1
-rw-r--r--bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/Dialog.java6
-rw-r--r--bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/DialogPage.java3
-rw-r--r--bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/IDialogConstants.java9
-rw-r--r--bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/ImageAndMessageArea.java1
-rw-r--r--bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/InputDialog.java3
-rw-r--r--bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/PopupDialog.java4
-rw-r--r--bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/TitleAreaDialog.java3
-rw-r--r--bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/ContentProposalAdapter.java1
-rw-r--r--bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/DecoratedField.java1
-rw-r--r--bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/FieldAssistColors.java1
-rw-r--r--bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/IControlCreator.java1
-rw-r--r--bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/TextControlCreator.java1
-rw-r--r--bundles/org.eclipse.jface/src/org/eclipse/jface/preference/FieldEditor.java6
-rw-r--r--bundles/org.eclipse.jface/src/org/eclipse/jface/resource/ColorDescriptor.java3
-rw-r--r--bundles/org.eclipse.jface/src/org/eclipse/jface/resource/FontDescriptor.java3
-rw-r--r--bundles/org.eclipse.jface/src/org/eclipse/jface/resource/FontRegistry.java6
-rw-r--r--bundles/org.eclipse.jface/src/org/eclipse/jface/resource/ImageDescriptor.java3
-rw-r--r--bundles/org.eclipse.jface/src/org/eclipse/jface/resource/JFaceColors.java6
-rw-r--r--bundles/org.eclipse.jface/src/org/eclipse/jface/resource/JFaceResources.java3
-rw-r--r--bundles/org.eclipse.jface/src/org/eclipse/jface/resource/StringConverter.java3
-rw-r--r--bundles/org.eclipse.jface/src/org/eclipse/jface/util/Assert.java1
-rw-r--r--bundles/org.eclipse.jface/src/org/eclipse/jface/util/ListenerList.java1
-rw-r--r--bundles/org.eclipse.jface/src/org/eclipse/jface/util/OpenStrategy.java9
-rw-r--r--bundles/org.eclipse.jface/src/org/eclipse/jface/util/Policy.java2
-rw-r--r--bundles/org.eclipse.jface/src/org/eclipse/jface/util/SafeRunnable.java1
-rw-r--r--bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/AbstractTreeViewer.java3
-rw-r--r--bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/CheckboxTableViewer.java6
-rw-r--r--bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/CheckboxTreeViewer.java2
-rw-r--r--bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/ComboBoxViewerCellEditor.java1
-rw-r--r--bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/FocusCellHighlighter.java1
-rw-r--r--bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/OwnerDrawLabelProvider.java1
-rw-r--r--bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/StructuredViewer.java1
-rw-r--r--bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/TableTreeViewer.java1
-rw-r--r--bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/ViewerDropAdapter.java3
-rw-r--r--bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/ViewerSorter.java6
38 files changed, 90 insertions, 26 deletions
diff --git a/bundles/org.eclipse.jface/src/org/eclipse/jface/action/MenuManager.java b/bundles/org.eclipse.jface/src/org/eclipse/jface/action/MenuManager.java
index 527fd2b..61838e4 100644
--- a/bundles/org.eclipse.jface/src/org/eclipse/jface/action/MenuManager.java
+++ b/bundles/org.eclipse.jface/src/org/eclipse/jface/action/MenuManager.java
@@ -210,7 +210,8 @@ public class MenuManager extends ContributionManager implements IMenuManager {
* @return the menu control
* @deprecated use <code>createMenuBar(Decorations)</code> instead.
*/
- public Menu createMenuBar(Shell parent) {
+ @Deprecated
+ public Menu createMenuBar(Shell parent) {
return createMenuBar((Decorations) parent);
}
@@ -551,7 +552,8 @@ public class MenuManager extends ContributionManager implements IMenuManager {
* @deprecated this method is no longer a part of the
* {@link org.eclipse.jface.action.IContributionItem} API.
*/
- public boolean isSubstituteFor(IContributionItem item) {
+ @Deprecated
+ public boolean isSubstituteFor(IContributionItem item) {
return this.equals(item);
}
diff --git a/bundles/org.eclipse.jface/src/org/eclipse/jface/action/SubContributionManager.java b/bundles/org.eclipse.jface/src/org/eclipse/jface/action/SubContributionManager.java
index 86befc0..93df33a 100644
--- a/bundles/org.eclipse.jface/src/org/eclipse/jface/action/SubContributionManager.java
+++ b/bundles/org.eclipse.jface/src/org/eclipse/jface/action/SubContributionManager.java
@@ -234,7 +234,8 @@ public abstract class SubContributionManager implements IContributionManager {
* @return fetch all enumeration of wrappers for the item
* @deprecated Use getItems(String value) instead.
*/
- public Enumeration<SubContributionItem> items() {
+ @Deprecated
+ public Enumeration<SubContributionItem> items() {
final Iterator<SubContributionItem> i = mapItemToWrapper.values().iterator();
return new Enumeration<SubContributionItem>() {
public boolean hasMoreElements() {
diff --git a/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/AnimatorFactory.java b/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/AnimatorFactory.java
index 76d8e9e..f18870c 100644
--- a/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/AnimatorFactory.java
+++ b/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/AnimatorFactory.java
@@ -23,6 +23,7 @@ import org.eclipse.swt.widgets.Control;
* @since 3.2
* @deprecated as of 3.3, this class is no longer used.
*/
+@Deprecated
public class AnimatorFactory {
/**
* Creates a new ControlAnimator for use by JFace in animating
diff --git a/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/Dialog.java b/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/Dialog.java
index 033ef2f..c8ffbbf 100644
--- a/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/Dialog.java
+++ b/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/Dialog.java
@@ -67,6 +67,7 @@ public abstract class Dialog extends Window {
* @deprecated use
* org.eclipse.swt.widgets.Display.getSystemImage(SWT.ICON_ERROR)
*/
+ @Deprecated
public static final String DLG_IMG_ERROR = "dialog_error_image"; //$NON-NLS-1$
/**
@@ -75,6 +76,7 @@ public abstract class Dialog extends Window {
* @deprecated use
* org.eclipse.swt.widgets.Display.getSystemImage(SWT.ICON_INFORMATION)
*/
+ @Deprecated
public static final String DLG_IMG_INFO = "dialog_info_imageg"; //$NON-NLS-1$
/**
@@ -83,6 +85,7 @@ public abstract class Dialog extends Window {
*
* @deprecated org.eclipse.swt.widgets.Display.getSystemImage(SWT.ICON_QUESTION)
*/
+ @Deprecated
public static final String DLG_IMG_QUESTION = "dialog_question_image"; //$NON-NLS-1$
/**
@@ -92,6 +95,7 @@ public abstract class Dialog extends Window {
* @deprecated use
* org.eclipse.swt.widgets.Display.getSystemImage(SWT.ICON_WARNING)
*/
+ @Deprecated
public static final String DLG_IMG_WARNING = "dialog_warning_image"; //$NON-NLS-1$
/**
@@ -869,6 +873,7 @@ public abstract class Dialog extends Window {
* @deprecated Use <code>getButton(IDialogConstants.CANCEL_ID)</code>
* instead. This method will be removed soon.
*/
+ @Deprecated
protected Button getCancelButton() {
return getButton(IDialogConstants.CANCEL_ID);
}
@@ -922,6 +927,7 @@ public abstract class Dialog extends Window {
* @deprecated Use <code>getButton(IDialogConstants.OK_ID)</code> instead.
* This method will be removed soon.
*/
+ @Deprecated
protected Button getOKButton() {
return getButton(IDialogConstants.OK_ID);
}
diff --git a/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/DialogPage.java b/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/DialogPage.java
index 8439ccb..7ef1b58 100644
--- a/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/DialogPage.java
+++ b/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/DialogPage.java
@@ -314,7 +314,8 @@ public abstract class DialogPage implements IDialogPage, IMessageProvider {
* @return the tool tip text, or <code>null</code> if none
* @deprecated
*/
- protected final String getToolTipText(int widgetId) {
+ @Deprecated
+ protected final String getToolTipText(int widgetId) {
// return nothing by default
return null;
}
diff --git a/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/IDialogConstants.java b/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/IDialogConstants.java
index 11eb63b..9c7b8ac 100644
--- a/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/IDialogConstants.java
+++ b/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/IDialogConstants.java
@@ -408,7 +408,8 @@ public interface IDialogConstants {
* @deprecated This constant is no longer in use.
* The button heights are now determined by the layout.
*/
- public int BUTTON_HEIGHT = 14;
+ @Deprecated
+ public int BUTTON_HEIGHT = 14;
/**
* Button width in dialog units (value 61).
@@ -421,7 +422,8 @@ public interface IDialogConstants {
* @deprecated As of 3.9, this is deprecated as it is too big as DLU and got accidentally used
* when setting pixel values
*/
- public int INDENT = 21;
+ @Deprecated
+ public int INDENT = 21;
/**
* Small indent in dialog units (value 7).
@@ -429,7 +431,8 @@ public interface IDialogConstants {
* @deprecated As of 3.9, this is deprecated as it is not clear what the meaning of a
* "small indent" would be
*/
- public int SMALL_INDENT = 7;
+ @Deprecated
+ public int SMALL_INDENT = 7;
/**
* Entry field width in dialog units (value 200).
diff --git a/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/ImageAndMessageArea.java b/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/ImageAndMessageArea.java
index 9815348..71eb12c 100644
--- a/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/ImageAndMessageArea.java
+++ b/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/ImageAndMessageArea.java
@@ -40,6 +40,7 @@ import org.eclipse.swt.widgets.Text;
* @deprecated As of 3.3, this class is no longer necessary.
*
*/
+@Deprecated
public class ImageAndMessageArea extends Composite {
private int BORDER_MARGIN = IDialogConstants.HORIZONTAL_SPACING / 2;
diff --git a/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/InputDialog.java b/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/InputDialog.java
index c3db878..a84fd5d 100644
--- a/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/InputDialog.java
+++ b/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/InputDialog.java
@@ -195,7 +195,8 @@ public class InputDialog extends Dialog {
* @return the error message label
* @deprecated use setErrorMessage(String) instead
*/
- protected Label getErrorMessageLabel() {
+ @Deprecated
+ protected Label getErrorMessageLabel() {
return null;
}
diff --git a/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/PopupDialog.java b/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/PopupDialog.java
index ad19c7f..52327ca 100644
--- a/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/PopupDialog.java
+++ b/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/PopupDialog.java
@@ -111,6 +111,7 @@ public class PopupDialog extends Window {
*
* @deprecated Since 3.4, this is retained only for backward compatibility.
*/
+ @Deprecated
private static final String DIALOG_USE_PERSISTED_BOUNDS = "DIALOG_USE_PERSISTED_BOUNDS"; //$NON-NLS-1$
/**
@@ -121,6 +122,7 @@ public class PopupDialog extends Window {
* @deprecated This is marked deprecated at its introduction to discourage
* future dependency
*/
+ @Deprecated
private static final String DIALOG_VALUE_MIGRATED_TO_34 = "hasBeenMigratedTo34"; //$NON-NLS-1$
/**
@@ -453,6 +455,7 @@ public class PopupDialog extends Window {
* @deprecated As of 3.4, replaced by
* {@link #PopupDialog(Shell, int, boolean, boolean, boolean, boolean, boolean, String, String)}
*/
+ @Deprecated
public PopupDialog(Shell parent, int shellStyle, boolean takeFocusOnOpen,
boolean persistBounds, boolean showDialogMenu,
boolean showPersistActions, String titleText, String infoText) {
@@ -1090,6 +1093,7 @@ public class PopupDialog extends Window {
* {@link #getPersistSize()} to determine separately whether
* size or location should be persisted.
*/
+ @Deprecated
protected boolean getPersistBounds() {
return persistLocation && persistSize;
}
diff --git a/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/TitleAreaDialog.java b/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/TitleAreaDialog.java
index 8fc5da1..af9ace7 100644
--- a/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/TitleAreaDialog.java
+++ b/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/TitleAreaDialog.java
@@ -66,6 +66,7 @@ public class TitleAreaDialog extends TrayDialog {
* @since 2.0
* @deprecated
*/
+ @Deprecated
public final static String INFO_MESSAGE = "INFO_MESSAGE"; //$NON-NLS-1$
/**
@@ -74,6 +75,7 @@ public class TitleAreaDialog extends TrayDialog {
* @since 2.0
* @deprecated
*/
+ @Deprecated
public final static String WARNING_MESSAGE = "WARNING_MESSAGE"; //$NON-NLS-1$
// Space between an image and a label
@@ -374,6 +376,7 @@ public class TitleAreaDialog extends TrayDialog {
* @return Composite
* @deprecated
*/
+ @Deprecated
protected Composite getTitleArea() {
return getShell();
}
diff --git a/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/ContentProposalAdapter.java b/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/ContentProposalAdapter.java
index 9fea8e3..b09148c 100644
--- a/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/ContentProposalAdapter.java
+++ b/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/ContentProposalAdapter.java
@@ -1119,6 +1119,7 @@ public class ContentProposalAdapter {
* {@link IContentProposalProvider}, such as that performed by
* {@link SimpleContentProposalProvider}
*/
+ @Deprecated
public static final int FILTER_CUMULATIVE = 3;
/*
diff --git a/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/DecoratedField.java b/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/DecoratedField.java
index 2f477d0..3371788 100644
--- a/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/DecoratedField.java
+++ b/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/DecoratedField.java
@@ -62,6 +62,7 @@ import org.eclipse.swt.widgets.Shell;
* @since 3.2
* @deprecated As of 3.3, clients should use {@link ControlDecoration} instead.
*/
+@Deprecated
public class DecoratedField {
/**
diff --git a/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/FieldAssistColors.java b/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/FieldAssistColors.java
index 33346eb..ff6b7e7 100644
--- a/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/FieldAssistColors.java
+++ b/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/FieldAssistColors.java
@@ -40,6 +40,7 @@ import org.eclipse.swt.widgets.Display;
* @since 3.2
* @deprecated As of 3.3, this class is no longer necessary.
*/
+@Deprecated
public class FieldAssistColors {
private static boolean DEBUG = false;
diff --git a/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/IControlCreator.java b/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/IControlCreator.java
index d083e42..58d34f1 100644
--- a/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/IControlCreator.java
+++ b/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/IControlCreator.java
@@ -24,6 +24,7 @@ import org.eclipse.swt.widgets.Control;
* of {@link DecoratedField}.
*
*/
+@Deprecated
public interface IControlCreator {
/**
* Create a control with the specified parent and style bits.
diff --git a/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/TextControlCreator.java b/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/TextControlCreator.java
index 509437d..7378612 100644
--- a/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/TextControlCreator.java
+++ b/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/TextControlCreator.java
@@ -23,6 +23,7 @@ import org.eclipse.swt.widgets.Text;
* of {@link DecoratedField}.
*
*/
+@Deprecated
public class TextControlCreator implements IControlCreator {
public Control createControl(Composite parent, int style) {
diff --git a/bundles/org.eclipse.jface/src/org/eclipse/jface/preference/FieldEditor.java b/bundles/org.eclipse.jface/src/org/eclipse/jface/preference/FieldEditor.java
index 51c67c4..f681ff1 100644
--- a/bundles/org.eclipse.jface/src/org/eclipse/jface/preference/FieldEditor.java
+++ b/bundles/org.eclipse.jface/src/org/eclipse/jface/preference/FieldEditor.java
@@ -430,7 +430,8 @@ public abstract class FieldEditor {
* @return the preference page, or <code>null</code> if none
* @deprecated use #getPage()
*/
- protected PreferencePage getPreferencePage() {
+ @Deprecated
+ protected PreferencePage getPreferencePage() {
if(page != null && page instanceof PreferencePage) {
return (PreferencePage) page;
}
@@ -593,7 +594,8 @@ public abstract class FieldEditor {
* @param preferencePage the preference page, or <code>null</code> if none
* @deprecated use #setPage(DialogPage)
*/
- public void setPreferencePage(PreferencePage preferencePage) {
+ @Deprecated
+ public void setPreferencePage(PreferencePage preferencePage) {
setPage(preferencePage);
}
diff --git a/bundles/org.eclipse.jface/src/org/eclipse/jface/resource/ColorDescriptor.java b/bundles/org.eclipse.jface/src/org/eclipse/jface/resource/ColorDescriptor.java
index db2d56f..f7542a2 100644
--- a/bundles/org.eclipse.jface/src/org/eclipse/jface/resource/ColorDescriptor.java
+++ b/bundles/org.eclipse.jface/src/org/eclipse/jface/resource/ColorDescriptor.java
@@ -38,7 +38,8 @@ public abstract class ColorDescriptor extends DeviceResourceDescriptor {
* original Color's constructor.
* @return a newly created ColorDescriptor that describes the given Color.
*/
- public static ColorDescriptor createFrom(Color toCreate, Device originalDevice) {
+ @Deprecated
+ public static ColorDescriptor createFrom(Color toCreate, Device originalDevice) {
return new RGBColorDescriptor(toCreate);
}
diff --git a/bundles/org.eclipse.jface/src/org/eclipse/jface/resource/FontDescriptor.java b/bundles/org.eclipse.jface/src/org/eclipse/jface/resource/FontDescriptor.java
index 7e54783..30bf799 100644
--- a/bundles/org.eclipse.jface/src/org/eclipse/jface/resource/FontDescriptor.java
+++ b/bundles/org.eclipse.jface/src/org/eclipse/jface/resource/FontDescriptor.java
@@ -39,7 +39,8 @@ public abstract class FontDescriptor extends DeviceResourceDescriptor {
* the font's constructor when it was first created.
* @return a newly created FontDescriptor.
*/
- public static FontDescriptor createFrom(Font font, Device originalDevice) {
+ @Deprecated
+ public static FontDescriptor createFrom(Font font, Device originalDevice) {
return new ArrayFontDescriptor(font);
}
diff --git a/bundles/org.eclipse.jface/src/org/eclipse/jface/resource/FontRegistry.java b/bundles/org.eclipse.jface/src/org/eclipse/jface/resource/FontRegistry.java
index 22f47c7..012ad2a 100644
--- a/bundles/org.eclipse.jface/src/org/eclipse/jface/resource/FontRegistry.java
+++ b/bundles/org.eclipse.jface/src/org/eclipse/jface/resource/FontRegistry.java
@@ -386,7 +386,8 @@ public class FontRegistry extends ResourceRegistry {
* @deprecated use bestDataArray in order to support Motif multiple entry
* fonts.
*/
- public FontData bestData(FontData[] fonts, Display display) {
+ @Deprecated
+ public FontData bestData(FontData[] fonts, Display display) {
for (int i = 0; i < fonts.length; i++) {
FontData fd = fonts[i];
@@ -426,7 +427,8 @@ public class FontRegistry extends ResourceRegistry {
* @deprecated use filterData in order to preserve
* multiple entry fonts on Motif
*/
- public FontData[] bestDataArray(FontData[] fonts, Display display) {
+ @Deprecated
+ public FontData[] bestDataArray(FontData[] fonts, Display display) {
FontData bestData = bestData(fonts, display);
if (bestData == null) {
diff --git a/bundles/org.eclipse.jface/src/org/eclipse/jface/resource/ImageDescriptor.java b/bundles/org.eclipse.jface/src/org/eclipse/jface/resource/ImageDescriptor.java
index 38fbab4..1d3c0ac 100644
--- a/bundles/org.eclipse.jface/src/org/eclipse/jface/resource/ImageDescriptor.java
+++ b/bundles/org.eclipse.jface/src/org/eclipse/jface/resource/ImageDescriptor.java
@@ -141,7 +141,8 @@ public abstract class ImageDescriptor extends DeviceResourceDescriptor {
* @param theDevice the device that was used to create the Image
* @return a newly created image descriptor
*/
- public static ImageDescriptor createFromImage(Image img, Device theDevice) {
+ @Deprecated
+ public static ImageDescriptor createFromImage(Image img, Device theDevice) {
return new ImageDataImageDescriptor(img);
}
diff --git a/bundles/org.eclipse.jface/src/org/eclipse/jface/resource/JFaceColors.java b/bundles/org.eclipse.jface/src/org/eclipse/jface/resource/JFaceColors.java
index 95561ea..8e31e49 100644
--- a/bundles/org.eclipse.jface/src/org/eclipse/jface/resource/JFaceColors.java
+++ b/bundles/org.eclipse.jface/src/org/eclipse/jface/resource/JFaceColors.java
@@ -105,7 +105,8 @@ public class JFaceColors {
* @deprecated JFaceColors no longer maintains a cache of colors. This job
* is now handled by the ColorRegistry.
*/
- public static void clearColor(String colorName) {
+ @Deprecated
+ public static void clearColor(String colorName) {
//no-op
}
@@ -116,7 +117,8 @@ public class JFaceColors {
* @deprecated JFaceColors no longer maintains a cache of colors. This job
* is now handled by the ColorRegistry.
*/
- public static void disposeColors() {
+ @Deprecated
+ public static void disposeColors() {
//no-op
}
diff --git a/bundles/org.eclipse.jface/src/org/eclipse/jface/resource/JFaceResources.java b/bundles/org.eclipse.jface/src/org/eclipse/jface/resource/JFaceResources.java
index f819139..46d9ea9 100644
--- a/bundles/org.eclipse.jface/src/org/eclipse/jface/resource/JFaceResources.java
+++ b/bundles/org.eclipse.jface/src/org/eclipse/jface/resource/JFaceResources.java
@@ -121,6 +121,7 @@ public class JFaceResources {
*
* @deprecated This font is not in use
*/
+ @Deprecated
public static final String VIEWER_FONT = "org.eclipse.jface.viewerfont"; //$NON-NLS-1$
/**
@@ -129,6 +130,7 @@ public class JFaceResources {
*
* @deprecated This font is not in use
*/
+ @Deprecated
public static final String WINDOW_FONT = "org.eclipse.jface.windowfont"; //$NON-NLS-1$
/**
@@ -560,6 +562,7 @@ public class JFaceResources {
* @return the font
* @deprecated This font is not in use
*/
+ @Deprecated
public static Font getViewerFont() {
return getFontRegistry().get(VIEWER_FONT);
}
diff --git a/bundles/org.eclipse.jface/src/org/eclipse/jface/resource/StringConverter.java b/bundles/org.eclipse.jface/src/org/eclipse/jface/resource/StringConverter.java
index a00b510..3ec08ab 100644
--- a/bundles/org.eclipse.jface/src/org/eclipse/jface/resource/StringConverter.java
+++ b/bundles/org.eclipse.jface/src/org/eclipse/jface/resource/StringConverter.java
@@ -862,7 +862,8 @@ public class StringConverter {
* @return The string representation of the font data object.
* @deprecated use asString(FontData)
*/
- public static String asDisplayableString(FontData value) {
+ @Deprecated
+ public static String asDisplayableString(FontData value) {
Assert.isNotNull(value);
StringBuffer buffer = new StringBuffer();
buffer.append(value.getName());
diff --git a/bundles/org.eclipse.jface/src/org/eclipse/jface/util/Assert.java b/bundles/org.eclipse.jface/src/org/eclipse/jface/util/Assert.java
index 35e104f..29000f7 100644
--- a/bundles/org.eclipse.jface/src/org/eclipse/jface/util/Assert.java
+++ b/bundles/org.eclipse.jface/src/org/eclipse/jface/util/Assert.java
@@ -29,6 +29,7 @@ package org.eclipse.jface.util;
* @deprecated As of 3.3, replaced by {@link org.eclipse.core.runtime.Assert}
* </p>
*/
+@Deprecated
public final class Assert {
/**
diff --git a/bundles/org.eclipse.jface/src/org/eclipse/jface/util/ListenerList.java b/bundles/org.eclipse.jface/src/org/eclipse/jface/util/ListenerList.java
index 6ccc7cc..3fe9b5f 100644
--- a/bundles/org.eclipse.jface/src/org/eclipse/jface/util/ListenerList.java
+++ b/bundles/org.eclipse.jface/src/org/eclipse/jface/util/ListenerList.java
@@ -45,6 +45,7 @@ package org.eclipse.jface.util;
* with {@link org.eclipse.core.runtime.ListenerList#IDENTITY} as
* the argument.
*/
+@Deprecated
public class ListenerList extends org.eclipse.core.runtime.ListenerList {
/**
diff --git a/bundles/org.eclipse.jface/src/org/eclipse/jface/util/OpenStrategy.java b/bundles/org.eclipse.jface/src/org/eclipse/jface/util/OpenStrategy.java
index 692f25e..d1d412c 100644
--- a/bundles/org.eclipse.jface/src/org/eclipse/jface/util/OpenStrategy.java
+++ b/bundles/org.eclipse.jface/src/org/eclipse/jface/util/OpenStrategy.java
@@ -68,7 +68,8 @@ public class OpenStrategy {
*
* @deprecated
*/
- public static final int NO_TIMER = SINGLE_CLICK;
+ @Deprecated
+ public static final int NO_TIMER = SINGLE_CLICK;
/** A single click will generate an open
* event and key arrows will generate an open event after a
@@ -76,14 +77,16 @@ public class OpenStrategy {
*
* @deprecated
*/
- public static final int FILE_EXPLORER = SINGLE_CLICK | ARROW_KEYS_OPEN;
+ @Deprecated
+ public static final int FILE_EXPLORER = SINGLE_CLICK | ARROW_KEYS_OPEN;
/** Pointing to an item will change the selection
* and a single click will gererate an open event
*
* @deprecated
*/
- public static final int ACTIVE_DESKTOP = SINGLE_CLICK | SELECT_ON_HOVER;
+ @Deprecated
+ public static final int ACTIVE_DESKTOP = SINGLE_CLICK | SELECT_ON_HOVER;
// Time used in FILE_EXPLORER and ACTIVE_DESKTOP
// Not declared final, see bug 246209
diff --git a/bundles/org.eclipse.jface/src/org/eclipse/jface/util/Policy.java b/bundles/org.eclipse.jface/src/org/eclipse/jface/util/Policy.java
index a07f55a..0d7f00b 100644
--- a/bundles/org.eclipse.jface/src/org/eclipse/jface/util/Policy.java
+++ b/bundles/org.eclipse.jface/src/org/eclipse/jface/util/Policy.java
@@ -228,6 +228,7 @@ public class Policy {
* @since 3.2
* @deprecated this is no longer in use as of 3.3
*/
+ @Deprecated
public static void setAnimatorFactory(AnimatorFactory factory) {
animatorFactory = factory;
}
@@ -240,6 +241,7 @@ public class Policy {
* @since 3.2
* @deprecated this is no longer in use as of 3.3
*/
+ @Deprecated
public static AnimatorFactory getAnimatorFactory() {
if (animatorFactory == null)
animatorFactory = new AnimatorFactory();
diff --git a/bundles/org.eclipse.jface/src/org/eclipse/jface/util/SafeRunnable.java b/bundles/org.eclipse.jface/src/org/eclipse/jface/util/SafeRunnable.java
index 62ef4cc..4a126ac 100644
--- a/bundles/org.eclipse.jface/src/org/eclipse/jface/util/SafeRunnable.java
+++ b/bundles/org.eclipse.jface/src/org/eclipse/jface/util/SafeRunnable.java
@@ -76,6 +76,7 @@ public abstract class SafeRunnable implements ISafeRunnable {
* @return true if errors should be ignored
* @deprecated use getIgnoreErrors()
*/
+ @Deprecated
public static boolean getIgnoreErrors(boolean flag) {
return ignoreErrors;
}
diff --git a/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/AbstractTreeViewer.java b/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/AbstractTreeViewer.java
index da2417e..af1aebd 100644
--- a/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/AbstractTreeViewer.java
+++ b/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/AbstractTreeViewer.java
@@ -677,6 +677,7 @@ public abstract class AbstractTreeViewer extends ColumnViewer {
* the SWT selection listener
* @deprecated
*/
+ @Deprecated
protected void addSelectionListener(Control control,
SelectionListener listener) {
// do nothing
@@ -2597,6 +2598,7 @@ public abstract class AbstractTreeViewer extends ColumnViewer {
* the child elements, or null
* @deprecated this is no longer called by the framework
*/
+ @Deprecated
protected void updateChildren(Widget widget, Object parent,
Object[] elementChildren) {
updateChildren(widget, parent, elementChildren, true);
@@ -2859,6 +2861,7 @@ public abstract class AbstractTreeViewer extends ColumnViewer {
* @deprecated This method was inadvertently released as API but is not
* intended to be called by clients.
*/
+ @Deprecated
public Item[] getChildren(Widget widget, Object[] elementChildren) {
return getChildren(widget);
}
diff --git a/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/CheckboxTableViewer.java b/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/CheckboxTableViewer.java
index d1e02a3..a93849b 100644
--- a/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/CheckboxTableViewer.java
+++ b/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/CheckboxTableViewer.java
@@ -67,7 +67,8 @@ public class CheckboxTableViewer extends TableViewer implements ICheckable {
* @deprecated use newCheckList(Composite, int) or new CheckboxTableViewer(Table)
* instead (see below for details)
*/
- public CheckboxTableViewer(Composite parent) {
+ @Deprecated
+ public CheckboxTableViewer(Composite parent) {
this(parent, SWT.BORDER);
}
@@ -102,7 +103,8 @@ public class CheckboxTableViewer extends TableViewer implements ICheckable {
* @deprecated use newCheckList(Composite, int) or new CheckboxTableViewer(Table)
* instead (see above for details)
*/
- public CheckboxTableViewer(Composite parent, int style) {
+ @Deprecated
+ public CheckboxTableViewer(Composite parent, int style) {
this(createTable(parent, style));
}
diff --git a/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/CheckboxTreeViewer.java b/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/CheckboxTreeViewer.java
index 99eeac7..0ed03fe 100644
--- a/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/CheckboxTreeViewer.java
+++ b/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/CheckboxTreeViewer.java
@@ -627,6 +627,7 @@ public class CheckboxTreeViewer extends TreeViewer implements ICheckable {
*
* @since 3.2
*/
+ @Deprecated
public void setAllChecked(boolean state) {
setAllChecked(state, getTree().getItems());
@@ -639,6 +640,7 @@ public class CheckboxTreeViewer extends TreeViewer implements ICheckable {
* @deprecated
* @see #setAllChecked(boolean)
*/
+ @Deprecated
private void setAllChecked(boolean state, TreeItem[] items) {
for (int i = 0; i < items.length; i++) {
items[i].setChecked(state);
diff --git a/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/ComboBoxViewerCellEditor.java b/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/ComboBoxViewerCellEditor.java
index 0ef7aa6..555b68a 100644
--- a/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/ComboBoxViewerCellEditor.java
+++ b/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/ComboBoxViewerCellEditor.java
@@ -215,6 +215,7 @@ public class ComboBoxViewerCellEditor extends AbstractComboBoxCellEditor {
* @deprecated As of 3.7, replaced by
* {@link #setContentProvider(IStructuredContentProvider)}
*/
+ @Deprecated
public void setContenProvider(IStructuredContentProvider provider) {
viewer.setContentProvider(provider);
}
diff --git a/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/FocusCellHighlighter.java b/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/FocusCellHighlighter.java
index a552e5c..af3f4f7 100644
--- a/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/FocusCellHighlighter.java
+++ b/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/FocusCellHighlighter.java
@@ -55,6 +55,7 @@ public abstract class FocusCellHighlighter {
* the new focus cell
* @deprecated use {@link #focusCellChanged(ViewerCell, ViewerCell)} instead
*/
+ @Deprecated
protected void focusCellChanged(ViewerCell cell) {
}
diff --git a/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/OwnerDrawLabelProvider.java b/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/OwnerDrawLabelProvider.java
index 399f749..7c8cacb 100644
--- a/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/OwnerDrawLabelProvider.java
+++ b/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/OwnerDrawLabelProvider.java
@@ -79,6 +79,7 @@ public abstract class OwnerDrawLabelProvider extends CellLabelProvider {
* in this class will set up the necessary owner draw callbacks
* automatically. Calls to this method can be removed.
*/
+ @Deprecated
public static void setUpOwnerDraw(final ColumnViewer viewer) {
getOrCreateOwnerDrawListener(viewer).enabledGlobally++;
}
diff --git a/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/StructuredViewer.java b/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/StructuredViewer.java
index 0e9a6dc..62182f1 100644
--- a/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/StructuredViewer.java
+++ b/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/StructuredViewer.java
@@ -990,6 +990,7 @@ public abstract class StructuredViewer extends ContentViewer implements IPostSel
* widget relative implementation like {@link ColumnViewer#getItemAt(org.eclipse.swt.graphics.Point)}.
*
*/
+ @Deprecated
protected Item getItem(int x, int y) {
return null;
}
diff --git a/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/TableTreeViewer.java b/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/TableTreeViewer.java
index cafcc0f..fe0d3ba 100644
--- a/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/TableTreeViewer.java
+++ b/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/TableTreeViewer.java
@@ -56,6 +56,7 @@ import org.eclipse.swt.widgets.Widget;
* @deprecated As of 3.1 use {@link TreeViewer} instead
* @noextend This class is not intended to be subclassed by clients.
*/
+@Deprecated
public class TableTreeViewer extends AbstractTreeViewer {
/**
* Internal table viewer implementation.
diff --git a/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/ViewerDropAdapter.java b/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/ViewerDropAdapter.java
index a9aa22e..319419a 100644
--- a/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/ViewerDropAdapter.java
+++ b/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/ViewerDropAdapter.java
@@ -412,7 +412,8 @@ public abstract class ViewerDropAdapter extends DropTargetAdapter {
* @param exception the exception
* @param event the event
*/
- protected void handleException(Throwable exception, DropTargetEvent event) {
+ @Deprecated
+ protected void handleException(Throwable exception, DropTargetEvent event) {
// Currently we never rethrow because VA/Java crashes if an SWT
// callback throws anything. Generally catching Throwable is bad, but in
// this cases it's better than hanging the image.
diff --git a/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/ViewerSorter.java b/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/ViewerSorter.java
index efa5839..3eb8c93 100644
--- a/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/ViewerSorter.java
+++ b/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/ViewerSorter.java
@@ -40,7 +40,8 @@ public class ViewerSorter extends ViewerComparator {
*
* @deprecated as of 3.3 Use {@link ViewerComparator#getComparator()}
*/
- protected Collator collator;
+ @Deprecated
+ protected Collator collator;
/**
* Creates a new viewer sorter, which uses the default collator
@@ -67,7 +68,8 @@ public class ViewerSorter extends ViewerComparator {
* @return the collator used to sort strings
* @deprecated as of 3.3 Use {@link ViewerComparator#getComparator()}
*/
- public Collator getCollator() {
+ @Deprecated
+ public Collator getCollator() {
return collator;
}