diff --git a/binaries/.classpath_cocoa b/binaries/.classpath_cocoa index 1793b5a0a6b..15ab0621afc 100644 --- a/binaries/.classpath_cocoa +++ b/binaries/.classpath_cocoa @@ -1,6 +1,7 @@ + diff --git a/binaries/.classpath_gtk b/binaries/.classpath_gtk index e51d302489d..c5e1423189e 100644 --- a/binaries/.classpath_gtk +++ b/binaries/.classpath_gtk @@ -1,6 +1,7 @@ + diff --git a/binaries/.classpath_win32 b/binaries/.classpath_win32 index 983fe4f4ad8..2fbc3b21306 100644 --- a/binaries/.classpath_win32 +++ b/binaries/.classpath_win32 @@ -1,6 +1,7 @@ + diff --git a/binaries/org.eclipse.swt.cocoa.macosx.aarch64/build.properties b/binaries/org.eclipse.swt.cocoa.macosx.aarch64/build.properties index 2e8092b5e41..4d63e2e456d 100644 --- a/binaries/org.eclipse.swt.cocoa.macosx.aarch64/build.properties +++ b/binaries/org.eclipse.swt.cocoa.macosx.aarch64/build.properties @@ -41,6 +41,9 @@ source.. = \ output.. = bin/ src.includes = about.html,about_files/ +# Require latest api-tools annotations that provide a value argument. Can be removed when built into Tycho +additional.bundles = org.eclipse.pde.api.tools.annotations + pom.model.property.os=macosx pom.model.property.ws=cocoa pom.model.property.arch=aarch64 diff --git a/binaries/org.eclipse.swt.cocoa.macosx.x86_64/build.properties b/binaries/org.eclipse.swt.cocoa.macosx.x86_64/build.properties index 1dc99e23094..e2003f730e2 100644 --- a/binaries/org.eclipse.swt.cocoa.macosx.x86_64/build.properties +++ b/binaries/org.eclipse.swt.cocoa.macosx.x86_64/build.properties @@ -41,6 +41,9 @@ source.. = \ output.. = bin/ src.includes = about.html,about_files/ +# Require latest api-tools annotations that provide a value argument. Can be removed when built into Tycho +additional.bundles = org.eclipse.pde.api.tools.annotations + pom.model.property.os=macosx pom.model.property.ws=cocoa pom.model.property.arch=x86_64 diff --git a/binaries/org.eclipse.swt.gtk.linux.aarch64/build.properties b/binaries/org.eclipse.swt.gtk.linux.aarch64/build.properties index fb2f3f5dab2..d30d1c3f3de 100644 --- a/binaries/org.eclipse.swt.gtk.linux.aarch64/build.properties +++ b/binaries/org.eclipse.swt.gtk.linux.aarch64/build.properties @@ -42,6 +42,9 @@ source.. = \ output.. = bin/ src.includes = about.html,about_files/ +# Require latest api-tools annotations that provide a value argument. Can be removed when built into Tycho +additional.bundles = org.eclipse.pde.api.tools.annotations + pom.model.property.os=linux pom.model.property.ws=gtk pom.model.property.arch=aarch64 diff --git a/binaries/org.eclipse.swt.gtk.linux.loongarch64/build.properties b/binaries/org.eclipse.swt.gtk.linux.loongarch64/build.properties index 4710c7ba9b4..31fd1055a4e 100644 --- a/binaries/org.eclipse.swt.gtk.linux.loongarch64/build.properties +++ b/binaries/org.eclipse.swt.gtk.linux.loongarch64/build.properties @@ -42,6 +42,9 @@ source.. = \ output.. = bin/ src.includes = about.html,about_files/ +# Require latest api-tools annotations that provide a value argument. Can be removed when built into Tycho +additional.bundles = org.eclipse.pde.api.tools.annotations + pom.model.property.os=linux pom.model.property.ws=gtk pom.model.property.arch=loongarch64 diff --git a/binaries/org.eclipse.swt.gtk.linux.ppc64le/build.properties b/binaries/org.eclipse.swt.gtk.linux.ppc64le/build.properties index c9fc6202f23..a0d24309c17 100644 --- a/binaries/org.eclipse.swt.gtk.linux.ppc64le/build.properties +++ b/binaries/org.eclipse.swt.gtk.linux.ppc64le/build.properties @@ -42,6 +42,9 @@ source.. = \ output.. = bin/ src.includes = about.html,about_files/ +# Require latest api-tools annotations that provide a value argument. Can be removed when built into Tycho +additional.bundles = org.eclipse.pde.api.tools.annotations + pom.model.property.os=linux pom.model.property.ws=gtk pom.model.property.arch=ppc64le diff --git a/binaries/org.eclipse.swt.gtk.linux.x86_64/build.properties b/binaries/org.eclipse.swt.gtk.linux.x86_64/build.properties index e77b3ffccc9..3d6d1eebc8b 100644 --- a/binaries/org.eclipse.swt.gtk.linux.x86_64/build.properties +++ b/binaries/org.eclipse.swt.gtk.linux.x86_64/build.properties @@ -43,6 +43,9 @@ source.. = \ output.. = bin/ src.includes = about.html,about_files/ +# Require latest api-tools annotations that provide a value argument. Can be removed when built into Tycho +additional.bundles = org.eclipse.pde.api.tools.annotations + pom.model.property.os=linux pom.model.property.ws=gtk pom.model.property.arch=x86_64 diff --git a/binaries/org.eclipse.swt.win32.win32.x86_64/build.properties b/binaries/org.eclipse.swt.win32.win32.x86_64/build.properties index 2e0b52926c3..c19e7d42975 100644 --- a/binaries/org.eclipse.swt.win32.win32.x86_64/build.properties +++ b/binaries/org.eclipse.swt.win32.win32.x86_64/build.properties @@ -37,6 +37,9 @@ source.. = \ output.. = bin/ src.includes = about.html,about_files/ +# Require latest api-tools annotations that provide a value argument. Can be removed when built into Tycho +additional.bundles = org.eclipse.pde.api.tools.annotations + pom.model.property.os=win32 pom.model.property.ws=win32 pom.model.property.arch=x86_64 diff --git a/bundles/org.eclipse.swt.tools/Oomph/platformSwt.setup b/bundles/org.eclipse.swt.tools/Oomph/platformSwt.setup index 3de35532ec7..6e07d678457 100644 --- a/bundles/org.eclipse.swt.tools/Oomph/platformSwt.setup +++ b/bundles/org.eclipse.swt.tools/Oomph/platformSwt.setup @@ -58,6 +58,8 @@ activeRepositoryList="${eclipse.target.platform}"> + diff --git a/bundles/org.eclipse.swt/Eclipse SWT Accessibility/cocoa/org/eclipse/swt/accessibility/Accessible.java b/bundles/org.eclipse.swt/Eclipse SWT Accessibility/cocoa/org/eclipse/swt/accessibility/Accessible.java index 1083769cafc..5ab4fabefb3 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Accessibility/cocoa/org/eclipse/swt/accessibility/Accessible.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Accessibility/cocoa/org/eclipse/swt/accessibility/Accessible.java @@ -17,6 +17,7 @@ import java.util.*; import java.util.List; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.internal.cocoa.*; @@ -138,9 +139,8 @@ protected Accessible() { * * @param control the control to get the accessible object for * @return the platform specific accessible object - * - * @noreference This method is not intended to be referenced by clients. */ + @NoReference("This method is not intended to be referenced by clients.") public static Accessible internal_new_Accessible(Control control) { return new Accessible(control); } @@ -787,9 +787,8 @@ id getColumnsAttribute(int childID) { * within the packages provided by SWT. It is not available on all * platforms and should never be accessed from application code. *

- * - * @noreference This method is not intended to be referenced by clients. */ + @NoReference("This method is not intended to be referenced by clients.") public id internal_accessibilityActionDescription(NSString action, int childID) { NSString returnValue = NSString.string(); String actionName = action.getString(); @@ -832,9 +831,8 @@ public id internal_accessibilityActionDescription(NSString action, int childID) * within the packages provided by SWT. It is not available on all * platforms and should never be accessed from application code. *

- * - * @noreference This method is not intended to be referenced by clients. */ + @NoReference("This method is not intended to be referenced by clients.") public NSArray internal_accessibilityActionNames(int childID) { if (accessibleActionListenersSize() > 0) { AccessibleActionEvent event = new AccessibleActionEvent(this); @@ -917,9 +915,8 @@ public NSArray internal_accessibilityActionNames(int childID) { * within the packages provided by SWT. It is not available on all * platforms and should never be accessed from application code. *

- * - * @noreference This method is not intended to be referenced by clients. */ + @NoReference("This method is not intended to be referenced by clients.") public boolean internal_accessibilityIsAttributeSettable(NSString attribute, int childID) { if (accessibleTextExtendedListenersSize() > 0) { if (attribute.isEqualToString(OS.NSAccessibilitySelectedTextRangeAttribute)) return true; @@ -942,9 +939,8 @@ public boolean internal_accessibilityIsAttributeSettable(NSString attribute, int * within the packages provided by SWT. It is not available on all * platforms and should never be accessed from application code. *

- * - * @noreference This method is not intended to be referenced by clients. */ + @NoReference("This method is not intended to be referenced by clients.") public NSArray internal_accessibilityAttributeNames(int childID) { // The supported attribute set depends on the role played by the control. // We may need to add or remove from the base set as needed. @@ -1224,9 +1220,8 @@ public NSArray internal_accessibilityAttributeNames(int childID) { * within the packages provided by SWT. It is not available on all * platforms and should never be accessed from application code. *

- * - * @noreference This method is not intended to be referenced by clients. */ + @NoReference("This method is not intended to be referenced by clients.") public id internal_accessibilityAttributeValue(NSString attribute, int childID) { if (attribute.isEqualToString(OS.NSAccessibilityRoleAttribute)) return getRoleAttribute(childID); if (attribute.isEqualToString(OS.NSAccessibilitySubroleAttribute)) return getSubroleAttribute(childID); @@ -1283,9 +1278,8 @@ public id internal_accessibilityAttributeValue(NSString attribute, int childID) * within the packages provided by SWT. It is not available on all * platforms and should never be accessed from application code. *

- * - * @noreference This method is not intended to be referenced by clients. */ + @NoReference("This method is not intended to be referenced by clients.") public id internal_accessibilityAttributeValue_forParameter(NSString attribute, id parameter, int childID) { if (attribute.isEqualToString(OS.NSAccessibilityStringForRangeParameterizedAttribute)) return getStringForRangeParameterizedAttribute(parameter, childID); if (attribute.isEqualToString(OS.NSAccessibilityRangeForLineParameterizedAttribute)) return getRangeForLineParameterizedAttribute(parameter, childID); @@ -1310,9 +1304,8 @@ public id internal_accessibilityAttributeValue_forParameter(NSString attribute, * within the packages provided by SWT. It is not available on all * platforms and should never be accessed from application code. *

- * - * @noreference This method is not intended to be referenced by clients. */ + @NoReference("This method is not intended to be referenced by clients.") public id internal_accessibilityFocusedUIElement(int childID) { AccessibleControlEvent event = new AccessibleControlEvent(this); event.childID = ACC.CHILDID_MULTIPLE; // set to invalid value, to test if the application sets it in getFocus() @@ -1350,9 +1343,8 @@ public id internal_accessibilityFocusedUIElement(int childID) { * within the packages provided by SWT. It is not available on all * platforms and should never be accessed from application code. *

- * - * @noreference This method is not intended to be referenced by clients. */ + @NoReference("This method is not intended to be referenced by clients.") public id internal_accessibilityHitTest(NSPoint point, int childID) { AccessibleControlEvent event = new AccessibleControlEvent(this); event.x = (int) point.x; @@ -1391,9 +1383,8 @@ public id internal_accessibilityHitTest(NSPoint point, int childID) { * within the packages provided by SWT. It is not available on all * platforms and should never be accessed from application code. *

- * - * @noreference This method is not intended to be referenced by clients. */ + @NoReference("This method is not intended to be referenced by clients.") public boolean internal_accessibilityIsIgnored(int childID) { AccessibleControlEvent event = new AccessibleControlEvent(this); event.childID = childID; @@ -1420,9 +1411,8 @@ public boolean internal_accessibilityIsIgnored(int childID) { * within the packages provided by SWT. It is not available on all * platforms and should never be accessed from application code. *

- * - * @noreference This method is not intended to be referenced by clients. */ + @NoReference("This method is not intended to be referenced by clients.") public NSArray internal_accessibilityParameterizedAttributeNames(int childID) { AccessibleControlEvent event = new AccessibleControlEvent(this); event.childID = childID; @@ -1481,9 +1471,8 @@ public NSArray internal_accessibilityParameterizedAttributeNames(int childID) { * within the packages provided by SWT. It is not available on all * platforms and should never be accessed from application code. *

- * - * @noreference This method is not intended to be referenced by clients. */ + @NoReference("This method is not intended to be referenced by clients.") public boolean internal_accessibilityPerformAction(NSString action, int childID) { String actionName = action.getString(); if (accessibleActionListenersSize() > 0) { @@ -1526,9 +1515,8 @@ public boolean internal_accessibilityPerformAction(NSString action, int childID) * within the packages provided by SWT. It is not available on all * platforms and should never be accessed from application code. *

- * - * @noreference This method is not intended to be referenced by clients. */ + @NoReference("This method is not intended to be referenced by clients.") public void internal_accessibilitySetValue_forAttribute(id value, NSString attribute, int childId) { if (attribute.isEqualToString(OS.NSAccessibilitySelectedTextRangeAttribute)) setSelectedTextRangeAttribute(value, childId); if (attribute.isEqualToString(OS.NSAccessibilitySelectedTextAttribute)) setSelectedTextAttribute(value, childId); @@ -1586,9 +1574,8 @@ public Control getControl() { * available on all platforms, and should never be called from * application code. *

- * - * @noreference This method is not intended to be referenced by clients. */ + @NoReference("This method is not intended to be referenced by clients.") public void internal_dispose_Accessible() { release(true); } @@ -3556,9 +3543,8 @@ boolean isValidThread () { * within the packages provided by SWT. It is not available on all * platforms and should never be accessed from application code. *

- * - * @noreference This method is not intended to be referenced by clients. */ + @NoReference("This method is not intended to be referenced by clients.") public long internal_addRelationAttributes(long defaultAttributes) { NSArray attributes = new NSArray(defaultAttributes); NSMutableArray returnArray = NSMutableArray.arrayWithCapacity(attributes.count()); diff --git a/bundles/org.eclipse.swt/Eclipse SWT Accessibility/gtk/org/eclipse/swt/accessibility/Accessible.java b/bundles/org.eclipse.swt/Eclipse SWT Accessibility/gtk/org/eclipse/swt/accessibility/Accessible.java index da9c60d3c87..0980b819d29 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Accessibility/gtk/org/eclipse/swt/accessibility/Accessible.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Accessibility/gtk/org/eclipse/swt/accessibility/Accessible.java @@ -17,6 +17,7 @@ import java.util.*; import java.util.List; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.internal.gtk.*; import org.eclipse.swt.internal.gtk3.*; @@ -533,9 +534,8 @@ long getControlHandle () { * available on all platforms, and should never be called from * application code. *

- * - * @noreference This method is not intended to be referenced by clients. */ + @NoReference("This method is not intended to be referenced by clients.") public void internal_dispose_Accessible() { release (); } @@ -552,9 +552,8 @@ public void internal_dispose_Accessible() { * * @param control the control to get the accessible object for * @return the platform specific accessible object - * - * @noreference This method is not intended to be referenced by clients. */ + @NoReference("This method is not intended to be referenced by clients.") public static Accessible internal_new_Accessible (Control control) { return new Accessible (control); } diff --git a/bundles/org.eclipse.swt/Eclipse SWT Accessibility/win32/org/eclipse/swt/accessibility/Accessible.java b/bundles/org.eclipse.swt/Eclipse SWT Accessibility/win32/org/eclipse/swt/accessibility/Accessible.java index 0680abae703..d0f585b8228 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Accessibility/win32/org/eclipse/swt/accessibility/Accessible.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Accessibility/win32/org/eclipse/swt/accessibility/Accessible.java @@ -16,6 +16,7 @@ import java.util.*; import java.util.List; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.internal.*; @@ -546,9 +547,8 @@ void createIServiceProvider() { * * @param control the control to get the accessible object for * @return the platform specific accessible object - * - * @noreference This method is not intended to be referenced by clients. */ + @NoReference("This method is not intended to be referenced by clients.") public static Accessible internal_new_Accessible(Control control) { return new Accessible(control); } @@ -907,9 +907,8 @@ public Control getControl() { * available on all platforms, and should never be called from * application code. *

- * - * @noreference This method is not intended to be referenced by clients. */ + @NoReference("This method is not intended to be referenced by clients.") public void internal_dispose_Accessible() { if (iaccessible != null) { iaccessible.Release(); @@ -931,9 +930,8 @@ public void internal_dispose_Accessible() { * available on all platforms, and should never be called from * application code. *

- * - * @noreference This method is not intended to be referenced by clients. */ + @NoReference("This method is not intended to be referenced by clients.") public long internal_WM_GETOBJECT (long wParam, long lParam) { if (objIAccessible == null) return 0; if ((int)lParam == OS.OBJID_CLIENT) { diff --git a/bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/Browser.java b/bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/Browser.java index 0bcc46d6cc6..edee75f2bf4 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/Browser.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/Browser.java @@ -13,6 +13,7 @@ *******************************************************************************/ package org.eclipse.swt.browser; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.widgets.*; @@ -39,9 +40,8 @@ * @see Sample code and further information * * @since 3.0 - * @noextend This class is not intended to be subclassed by clients. */ - +@NoExtend("This class is not intended to be subclassed by clients.") public class Browser extends Composite { WebBrowser webBrowser; int userStyle; diff --git a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CBanner.java b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CBanner.java index eca34eb561c..b99b1a13b33 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CBanner.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CBanner.java @@ -14,6 +14,7 @@ package org.eclipse.swt.custom; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.widgets.*; @@ -42,9 +43,8 @@ * @see Sample code and further information * * @since 3.0 - * @noextend This class is not intended to be subclassed by clients. */ - +@NoExtend("This class is not intended to be subclassed by clients.") public class CBanner extends Composite { Control left; diff --git a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder.java b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder.java index d1acaab705a..3108e93420b 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder.java @@ -13,6 +13,7 @@ *******************************************************************************/ package org.eclipse.swt.custom; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.accessibility.*; import org.eclipse.swt.events.*; @@ -51,9 +52,8 @@ * @see CTabFolder, CTabItem snippets * @see SWT Example: CustomControlExample * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ - +@NoExtend("This class is not intended to be subclassed by clients.") public class CTabFolder extends Composite { /** diff --git a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabItem.java b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabItem.java index 884c44354db..136b29a5aab 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabItem.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabItem.java @@ -14,6 +14,7 @@ package org.eclipse.swt.custom; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.widgets.*; @@ -34,8 +35,8 @@ * * @see CTabFolder, CTabItem snippets * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class CTabItem extends Item { CTabFolder parent; int x,y,width,height = 0; diff --git a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java index b069312a487..051df2886f0 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java @@ -21,6 +21,7 @@ import java.util.*; import java.util.stream.*; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.accessibility.*; import org.eclipse.swt.dnd.*; @@ -85,8 +86,8 @@ * @see StyledText snippets * @see SWT Examples: CustomControlExample, TextEditor * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class StyledText extends Canvas { static final char TAB = '\t'; static final String PlatformLineDelimiter = System.lineSeparator(); diff --git a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/ViewForm.java b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/ViewForm.java index a1291fdbf89..5da7a28b308 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/ViewForm.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/ViewForm.java @@ -14,6 +14,7 @@ package org.eclipse.swt.custom; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.widgets.*; @@ -38,9 +39,8 @@ *

* * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ - +@NoExtend("This class is not intended to be subclassed by clients.") public class ViewForm extends Composite { /** diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/cocoa/org/eclipse/swt/dnd/Clipboard.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/cocoa/org/eclipse/swt/dnd/Clipboard.java index ffedb8f9386..b899d69842a 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/cocoa/org/eclipse/swt/dnd/Clipboard.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/cocoa/org/eclipse/swt/dnd/Clipboard.java @@ -14,6 +14,7 @@ package org.eclipse.swt.dnd; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.internal.cocoa.*; import org.eclipse.swt.widgets.*; @@ -27,8 +28,8 @@ * @see Clipboard snippets * @see SWT Example: ClipboardExample * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class Clipboard { Display display; diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/cocoa/org/eclipse/swt/dnd/DragSource.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/cocoa/org/eclipse/swt/dnd/DragSource.java index aa95b8f2cdc..0b29d4cd5ce 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/cocoa/org/eclipse/swt/dnd/DragSource.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/cocoa/org/eclipse/swt/dnd/DragSource.java @@ -15,6 +15,7 @@ package org.eclipse.swt.dnd; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.internal.*; @@ -99,8 +100,8 @@ * @see Drag and Drop snippets * @see SWT Example: DNDExample * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class DragSource extends Widget { // TODO: These should either move out of Display or be accessible to this class. diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/cocoa/org/eclipse/swt/dnd/DropTarget.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/cocoa/org/eclipse/swt/dnd/DropTarget.java index 70f8d8bc05e..cb5ed31912d 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/cocoa/org/eclipse/swt/dnd/DropTarget.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/cocoa/org/eclipse/swt/dnd/DropTarget.java @@ -16,6 +16,7 @@ import java.util.*; import java.util.List; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.internal.*; @@ -76,8 +77,8 @@ * @see Drag and Drop snippets * @see SWT Example: DNDExample * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class DropTarget extends Widget { static Callback dropTarget2Args, dropTarget3Args, dropTarget6Args; diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/cocoa/org/eclipse/swt/dnd/TransferData.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/cocoa/org/eclipse/swt/dnd/TransferData.java index 306e6521439..7955e98a977 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/cocoa/org/eclipse/swt/dnd/TransferData.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/cocoa/org/eclipse/swt/dnd/TransferData.java @@ -13,6 +13,7 @@ *******************************************************************************/ package org.eclipse.swt.dnd; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.internal.cocoa.*; @@ -42,9 +43,8 @@ public class TransferData { * within the packages provided by SWT. It is not available on all * platforms and should never be accessed from application code. *

- * - * @noreference This field is not intended to be referenced by clients. */ + @NoReference("This field is not intended to be referenced by clients.") public int type; /** @@ -57,9 +57,8 @@ public class TransferData { * within the packages provided by SWT. It is not available on all * platforms and should never be accessed from application code. *

- * - * @noreference This field is not intended to be referenced by clients. */ + @NoReference("This field is not intended to be referenced by clients.") public NSObject data; } diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/Clipboard.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/Clipboard.java index 16419832aa6..831dae89e22 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/Clipboard.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/Clipboard.java @@ -14,6 +14,7 @@ package org.eclipse.swt.dnd; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.internal.*; @@ -31,8 +32,8 @@ * @see Clipboard snippets * @see SWT Example: ClipboardExample * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class Clipboard { private Display display; diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/DragSource.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/DragSource.java index 0f7a63f1a6a..5e70305f7ca 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/DragSource.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/DragSource.java @@ -17,6 +17,7 @@ import java.lang.reflect.*; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.internal.*; @@ -105,8 +106,8 @@ * @see Drag and Drop snippets * @see SWT Example: DNDExample * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class DragSource extends Widget { // info for registering as a drag source diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/DropTarget.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/DropTarget.java index 4d9f0612004..d8784560a85 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/DropTarget.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/DropTarget.java @@ -14,6 +14,7 @@ package org.eclipse.swt.dnd; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.internal.*; @@ -76,8 +77,8 @@ * @see Drag and Drop snippets * @see SWT Example: DNDExample * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class DropTarget extends Widget { Control control; diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/TransferData.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/TransferData.java index 3ff822475e1..9b8736f4bf8 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/TransferData.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/TransferData.java @@ -13,6 +13,7 @@ *******************************************************************************/ package org.eclipse.swt.dnd; +import org.eclipse.pde.api.tools.annotations.*; /** * The TransferData class is a platform specific data structure for @@ -40,9 +41,8 @@ public class TransferData { * within the packages provided by SWT. It is not available on all * platforms and should never be accessed from application code. *

- * - * @noreference This field is not intended to be referenced by clients. */ + @NoReference("This field is not intended to be referenced by clients.") public long type; /** @@ -56,9 +56,8 @@ public class TransferData { *

* * @see TransferData#format for the size of one unit - * - * @noreference This field is not intended to be referenced by clients. */ + @NoReference("This field is not intended to be referenced by clients.") public int length; /** @@ -72,9 +71,8 @@ public class TransferData { *

* * This is most commonly 8 bits. - * - * @noreference This field is not intended to be referenced by clients. */ + @NoReference("This field is not intended to be referenced by clients.") public int format; /** @@ -86,9 +84,8 @@ public class TransferData { * within the packages provided by SWT. It is not available on all * platforms and should never be accessed from application code. *

- * - * @noreference This field is not intended to be referenced by clients. */ + @NoReference("This field is not intended to be referenced by clients.") public long pValue; /** @@ -103,9 +100,8 @@ public class TransferData { *

*

The value of result is 1 if the conversion was successful. * The value of result is 0 if the conversion failed.

- * - * @noreference This field is not intended to be referenced by clients. */ + @NoReference("This field is not intended to be referenced by clients.") public int result; } diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/Clipboard.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/Clipboard.java index e2cbe7d8c5f..f7aeef3523f 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/Clipboard.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/Clipboard.java @@ -15,6 +15,7 @@ package org.eclipse.swt.dnd; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.internal.*; import org.eclipse.swt.internal.ole.win32.*; @@ -30,8 +31,8 @@ * @see Clipboard snippets * @see SWT Example: ClipboardExample * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class Clipboard { private static final int RETRY_LIMIT = 10; diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/DragSource.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/DragSource.java index fb276dd7f97..5798600f3f8 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/DragSource.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/DragSource.java @@ -16,6 +16,7 @@ package org.eclipse.swt.dnd; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.internal.*; @@ -102,8 +103,8 @@ * @see Drag and Drop snippets * @see SWT Example: DNDExample * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class DragSource extends Widget { // info for registering as a drag source diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/DropTarget.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/DropTarget.java index 38fae8ec95b..43aa7d26e60 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/DropTarget.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/DropTarget.java @@ -13,6 +13,7 @@ *******************************************************************************/ package org.eclipse.swt.dnd; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.internal.*; import org.eclipse.swt.internal.ole.win32.*; @@ -73,8 +74,8 @@ * @see Drag and Drop snippets * @see SWT Example: DNDExample * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class DropTarget extends Widget { Control control; diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/TransferData.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/TransferData.java index 80240e23d9a..7906d4acc57 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/TransferData.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/TransferData.java @@ -13,6 +13,7 @@ *******************************************************************************/ package org.eclipse.swt.dnd; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.internal.ole.win32.*; /** @@ -41,9 +42,8 @@ public class TransferData { * within the packages provided by SWT. It is not available on all * platforms and should never be accessed from application code. *

- * - * @noreference This field is not intended to be referenced by clients. */ + @NoReference("This field is not intended to be referenced by clients.") public int type; /** @@ -57,9 +57,8 @@ public class TransferData { * within the packages provided by SWT. It is not available on all * platforms and should never be accessed from application code. *

- * - * @noreference This field is not intended to be referenced by clients. */ + @NoReference("This field is not intended to be referenced by clients.") public FORMATETC formatetc; /** @@ -72,9 +71,8 @@ public class TransferData { * within the packages provided by SWT. It is not available on all * platforms and should never be accessed from application code. *

- * - * @noreference This field is not intended to be referenced by clients. */ + @NoReference("This field is not intended to be referenced by clients.") public STGMEDIUM stgmedium; /** @@ -89,9 +87,8 @@ public class TransferData { *

*

The value of result is 1 if the conversion was successful. * The value of result is 0 if the conversion failed.

- * - * @noreference This field is not intended to be referenced by clients. */ + @NoReference("This field is not intended to be referenced by clients.") public int result = COM.E_FAIL; /** @@ -104,9 +101,8 @@ public class TransferData { * within the packages provided by SWT. It is not available on all * platforms and should never be accessed from application code. *

- * - * @noreference This field is not intended to be referenced by clients. */ + @NoReference("This field is not intended to be referenced by clients.") public long pIDataObject; static boolean sameType(TransferData data1, TransferData data2) { diff --git a/bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/OleClientSite.java b/bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/OleClientSite.java index 9d1d1a7980d..6c5c7e1f086 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/OleClientSite.java +++ b/bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/OleClientSite.java @@ -15,6 +15,7 @@ import java.io.*; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.internal.*; @@ -299,9 +300,8 @@ public OleClientSite(Composite parent, int style, String progId) { *
  • ERROR_CANNOT_CREATE_OBJECT when failed to create OLE Object *
  • ERROR_CANNOT_OPEN_FILE when failed to open file * - * - * @noreference This method is not intended to be referenced by clients. */ +@NoReference("This method is not intended to be referenced by clients.") public OleClientSite(Composite parent, int style, String progId, File file) { this(parent, style); try { diff --git a/bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/OleControlSite.java b/bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/OleControlSite.java index 0de9c0fd1f7..831a6d5a36a 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/OleControlSite.java +++ b/bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/OleControlSite.java @@ -15,6 +15,7 @@ import java.io.*; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.internal.*; @@ -228,10 +229,9 @@ public OleControlSite(Composite parent, int style, String progId) { *
  • ERROR_CANNOT_OPEN_FILE when failed to open file * * - * @noreference This method is not intended to be referenced by clients. - * * @since 3.5 */ +@NoReference("This method is not intended to be referenced by clients.") public OleControlSite(Composite parent, int style, String progId, File file) { super(parent, style, progId, file); diff --git a/bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/Variant.java b/bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/Variant.java index 3b645e59204..1ea5199086e 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/Variant.java +++ b/bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/Variant.java @@ -13,6 +13,7 @@ *******************************************************************************/ package org.eclipse.swt.ole.win32; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.internal.*; import org.eclipse.swt.internal.ole.win32.*; @@ -69,10 +70,9 @@ public final class Variant { * @param pVarDest destination pointer to a variant * @param varSrc source Variant * - * @noreference This method is not intended to be referenced by clients. - * * @since 3.3 */ +@NoReference("This method is not intended to be referenced by clients.") public static void win32_copy (long pVarDest, Variant varSrc) { varSrc.getData (pVarDest); } @@ -92,10 +92,9 @@ public static void win32_copy (long pVarDest, Variant varSrc) { * * @return a new Variant * - * @noreference This method is not intended to be referenced by clients. - * * @since 3.3 */ +@NoReference("This method is not intended to be referenced by clients.") public static Variant win32_new (long pVariant) { Variant variant = new Variant (); variant.setData (pVariant); diff --git a/bundles/org.eclipse.swt/Eclipse SWT Printing/cocoa/org/eclipse/swt/printing/PrintDialog.java b/bundles/org.eclipse.swt/Eclipse SWT Printing/cocoa/org/eclipse/swt/printing/PrintDialog.java index 0ee5b440e6a..b1f7cec7ccd 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Printing/cocoa/org/eclipse/swt/printing/PrintDialog.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Printing/cocoa/org/eclipse/swt/printing/PrintDialog.java @@ -13,6 +13,7 @@ *******************************************************************************/ package org.eclipse.swt.printing; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.internal.*; import org.eclipse.swt.internal.cocoa.*; @@ -29,8 +30,8 @@ * @see Printing snippets * @see SWT Example: ControlExample, Dialog tab * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class PrintDialog extends Dialog { PrinterData printerData = new PrinterData(); int returnCode; diff --git a/bundles/org.eclipse.swt/Eclipse SWT Printing/cocoa/org/eclipse/swt/printing/Printer.java b/bundles/org.eclipse.swt/Eclipse SWT Printing/cocoa/org/eclipse/swt/printing/Printer.java index 97b489a57b3..9fb2c26f0e2 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Printing/cocoa/org/eclipse/swt/printing/Printer.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Printing/cocoa/org/eclipse/swt/printing/Printer.java @@ -13,6 +13,7 @@ *******************************************************************************/ package org.eclipse.swt.printing; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.internal.cocoa.*; @@ -298,10 +299,9 @@ protected void destroy() { * * @param data the platform specific GC data * @return the platform specific GC handle - * - * @noreference This method is not intended to be referenced by clients. */ @Override +@NoReference("This method is not intended to be referenced by clients.") public long internal_new_GC(GCData data) { if (isDisposed()) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED); NSAutoreleasePool pool = null; @@ -363,18 +363,15 @@ protected void init () { * * @param hDC the platform specific GC handle * @param data the platform specific GC data - * - * @noreference This method is not intended to be referenced by clients. */ @Override +@NoReference("This method is not intended to be referenced by clients.") public void internal_dispose_GC(long hDC, GCData data) { if (data != null) isGCCreated = false; } -/** - * @noreference This method is not intended to be referenced by clients. - */ @Override +@NoReference("This method is not intended to be referenced by clients.") public boolean isAutoScalable() { return false; } diff --git a/bundles/org.eclipse.swt/Eclipse SWT Printing/gtk/org/eclipse/swt/printing/PrintDialog.java b/bundles/org.eclipse.swt/Eclipse SWT Printing/gtk/org/eclipse/swt/printing/PrintDialog.java index 2ce616efbcf..008a408f78b 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Printing/gtk/org/eclipse/swt/printing/PrintDialog.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Printing/gtk/org/eclipse/swt/printing/PrintDialog.java @@ -14,6 +14,7 @@ package org.eclipse.swt.printing; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.internal.*; import org.eclipse.swt.internal.gtk.*; @@ -32,8 +33,8 @@ * @see Printing snippets * @see SWT Example: ControlExample, Dialog tab * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class PrintDialog extends Dialog { PrinterData printerData = new PrinterData(); diff --git a/bundles/org.eclipse.swt/Eclipse SWT Printing/gtk/org/eclipse/swt/printing/Printer.java b/bundles/org.eclipse.swt/Eclipse SWT Printing/gtk/org/eclipse/swt/printing/Printer.java index 366d060a85e..c84c73afa94 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Printing/gtk/org/eclipse/swt/printing/Printer.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Printing/gtk/org/eclipse/swt/printing/Printer.java @@ -14,6 +14,7 @@ package org.eclipse.swt.printing; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.internal.*; @@ -367,10 +368,9 @@ static boolean restoreBoolean(String key) { * * @param data the platform specific GC data * @return the platform specific GC handle - * - * @noreference This method is not intended to be referenced by clients. */ @Override +@NoReference("This method is not intended to be referenced by clients.") public long internal_new_GC(GCData data) { long drawable = 0; long gc = cairo; @@ -416,18 +416,15 @@ public long internal_new_GC(GCData data) { * * @param hDC the platform specific GC handle * @param data the platform specific GC data - * - * @noreference This method is not intended to be referenced by clients. */ @Override +@NoReference("This method is not intended to be referenced by clients.") public void internal_dispose_GC(long hDC, GCData data) { if (data != null) isGCCreated = false; } -/** - * @noreference This method is not intended to be referenced by clients. - */ @Override +@NoReference("This method is not intended to be referenced by clients.") public boolean isAutoScalable() { return false; } diff --git a/bundles/org.eclipse.swt/Eclipse SWT Printing/win32/org/eclipse/swt/printing/PrintDialog.java b/bundles/org.eclipse.swt/Eclipse SWT Printing/win32/org/eclipse/swt/printing/PrintDialog.java index ec19df9b856..a08eeb8426e 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Printing/win32/org/eclipse/swt/printing/PrintDialog.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Printing/win32/org/eclipse/swt/printing/PrintDialog.java @@ -14,6 +14,7 @@ package org.eclipse.swt.printing; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.internal.win32.*; import org.eclipse.swt.widgets.*; @@ -29,8 +30,8 @@ * @see Printing snippets * @see SWT Example: ControlExample, Dialog tab * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class PrintDialog extends Dialog { static final TCHAR DialogClass = new TCHAR (0, "#32770", true); PrinterData printerData = new PrinterData(); diff --git a/bundles/org.eclipse.swt/Eclipse SWT Printing/win32/org/eclipse/swt/printing/Printer.java b/bundles/org.eclipse.swt/Eclipse SWT Printing/win32/org/eclipse/swt/printing/Printer.java index f5f2c376264..71ccf9e8055 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Printing/win32/org/eclipse/swt/printing/Printer.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Printing/win32/org/eclipse/swt/printing/Printer.java @@ -14,6 +14,7 @@ package org.eclipse.swt.printing; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.internal.win32.*; @@ -50,9 +51,8 @@ public final class Printer extends Device { * within the packages provided by SWT. It is not available on all * platforms and should never be accessed from application code. *

    - * - * @noreference This field is not intended to be referenced by clients. */ + @NoReference("This field is not intended to be referenced by clients.") public long handle; /** @@ -280,10 +280,9 @@ protected void create(DeviceData deviceData) { * * @param data the platform specific GC data * @return the platform specific GC handle - * - * @noreference This method is not intended to be referenced by clients. */ @Override +@NoReference("This method is not intended to be referenced by clients.") public long internal_new_GC(GCData data) { if (handle == 0) SWT.error(SWT.ERROR_NO_HANDLES); if (data != null) { @@ -313,18 +312,15 @@ public long internal_new_GC(GCData data) { * * @param hDC the platform specific GC handle * @param data the platform specific GC data - * - * @noreference This method is not intended to be referenced by clients. */ @Override +@NoReference("This method is not intended to be referenced by clients.") public void internal_dispose_GC(long hDC, GCData data) { if (data != null) isGCCreated = false; } -/** - * @noreference This method is not intended to be referenced by clients. - */ @Override +@NoReference("This method is not intended to be referenced by clients.") public boolean isAutoScalable() { return false; } diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cairo/org/eclipse/swt/graphics/Path.java b/bundles/org.eclipse.swt/Eclipse SWT/cairo/org/eclipse/swt/graphics/Path.java index d7ca68d5136..895eea284e0 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cairo/org/eclipse/swt/graphics/Path.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cairo/org/eclipse/swt/graphics/Path.java @@ -13,6 +13,7 @@ *******************************************************************************/ package org.eclipse.swt.graphics; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.internal.*; import org.eclipse.swt.internal.cairo.*; @@ -50,8 +51,8 @@ public class Path extends Resource { * platforms and should never be accessed from application code. *

    * - * @noreference This field is not intended to be referenced by clients. */ + @NoReference("This field is not intended to be referenced by clients.") public long handle; boolean moved, closed = true; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cairo/org/eclipse/swt/graphics/Pattern.java b/bundles/org.eclipse.swt/Eclipse SWT/cairo/org/eclipse/swt/graphics/Pattern.java index 91a15888442..0f039c65909 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cairo/org/eclipse/swt/graphics/Pattern.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cairo/org/eclipse/swt/graphics/Pattern.java @@ -13,6 +13,7 @@ *******************************************************************************/ package org.eclipse.swt.graphics; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.internal.*; import org.eclipse.swt.internal.cairo.*; @@ -48,8 +49,8 @@ public class Pattern extends Resource { * platforms and should never be accessed from application code. *

    * - * @noreference This field is not intended to be referenced by clients. */ + @NoReference("This field is not intended to be referenced by clients.") public long handle; long surface; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cairo/org/eclipse/swt/graphics/Transform.java b/bundles/org.eclipse.swt/Eclipse SWT/cairo/org/eclipse/swt/graphics/Transform.java index f9484fdba88..6eddc4fc9f6 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cairo/org/eclipse/swt/graphics/Transform.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cairo/org/eclipse/swt/graphics/Transform.java @@ -13,6 +13,7 @@ *******************************************************************************/ package org.eclipse.swt.graphics; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.internal.*; import org.eclipse.swt.internal.cairo.*; @@ -46,8 +47,8 @@ public class Transform extends Resource { * platforms and should never be accessed from application code. *

    * - * @noreference This field is not intended to be referenced by clients. */ + @NoReference("This field is not intended to be referenced by clients.") public double[] handle; /** diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/Color.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/Color.java index 3902461306d..5c976e91933 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/Color.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/Color.java @@ -14,6 +14,7 @@ package org.eclipse.swt.graphics; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; /** @@ -44,8 +45,8 @@ public final class Color extends Resource { * platforms and should never be accessed from application code. *

    * - * @noreference This field is not intended to be referenced by clients. */ + @NoReference("This field is not intended to be referenced by clients.") public double [] handle; Color() { @@ -455,8 +456,8 @@ public RGBA getRGBA () { * @param device the device on which to allocate the color * @param handle the handle for the color * - * @noreference This method is not intended to be referenced by clients. */ +@NoReference("This method is not intended to be referenced by clients.") public static Color cocoa_new(Device device, double [] handle) { double [] rgbColor = handle; Color color = new Color(device); @@ -478,8 +479,8 @@ public static Color cocoa_new(Device device, double [] handle) { * @param handle the handle for the color * @param alpha the int for the alpha content in the color(Currently SWT honors extreme values for alpha ie. 0 or 255) * - * @noreference This method is not intended to be referenced by clients. - */ + */ + @NoReference("This method is not intended to be referenced by clients.") public static Color cocoa_new(Device device, double [] handle, int alpha) { double [] rgbColor = handle; Color color = new Color(device); diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/Cursor.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/Cursor.java index 31edc8c942e..80159018fa1 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/Cursor.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/Cursor.java @@ -15,6 +15,7 @@ package org.eclipse.swt.graphics; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.internal.*; import org.eclipse.swt.internal.cocoa.*; @@ -96,8 +97,8 @@ public final class Cursor extends Resource { * platforms and should never be accessed from application code. *

    * - * @noreference This field is not intended to be referenced by clients. */ + @NoReference("This field is not intended to be referenced by clients.") public NSCursor handle; /** @@ -526,8 +527,8 @@ public String toString () { * @param device the device on which to allocate the color * @param handle the handle for the cursor * - * @noreference This method is not intended to be referenced by clients. */ +@NoReference("This method is not intended to be referenced by clients.") public static Cursor cocoa_new(Device device, NSCursor handle) { Cursor cursor = new Cursor(device); cursor.handle = handle; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/Device.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/Device.java index ef30e780765..034cac03653 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/Device.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/Device.java @@ -13,8 +13,9 @@ *******************************************************************************/ package org.eclipse.swt.graphics; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; -import org.eclipse.swt.internal.ExceptionStash; +import org.eclipse.swt.internal.*; import org.eclipse.swt.internal.cocoa.*; /** @@ -244,7 +245,7 @@ public void dispose () { } destroy (); - disposed = true; + disposed = true; if (tracking) { synchronized (trackingLock) { printErrors (); @@ -630,9 +631,9 @@ protected void init () { * @param data the platform specific GC data * @return the platform specific GC handle * - * @noreference This method is not intended to be referenced by clients. */ @Override +@NoReference("This method is not intended to be referenced by clients.") public abstract long internal_new_GC (GCData data); /** @@ -648,8 +649,8 @@ protected void init () { * @param hDC the platform specific GC handle * @param data the platform specific GC data * - * @noreference This method is not intended to be referenced by clients. */ + @NoReference("This method is not intended to be referenced by clients.") @Override public abstract void internal_dispose_GC (long hDC, GCData data); @@ -816,10 +817,10 @@ public void setWarnings (boolean warnings) { * Gets the scaling factor from the device and calculates the zoom level. * @return zoom in percentage * - * @noreference This method is not intended to be referenced by clients. - * @nooverride This method is not intended to be re-implemented or extended by clients. * @since 3.105 */ +@NoReference("This method is not intended to be referenced by clients.") +@NoOverride("This method is not intended to be re-implemented or extended by clients.") protected int getDeviceZoom () { NSScreen mainScreen = NSScreen.mainScreen(); int scaleFactor = mainScreen != null ? (int) mainScreen.backingScaleFactor() : 1; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/Font.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/Font.java index a303eb38407..acf554cdf25 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/Font.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/Font.java @@ -14,6 +14,7 @@ package org.eclipse.swt.graphics; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.internal.cocoa.*; @@ -45,8 +46,8 @@ public final class Font extends Resource { * platforms and should never be accessed from application code. *

    * - * @noreference This field is not intended to be referenced by clients. */ + @NoReference("This field is not intended to be referenced by clients.") public NSFont handle; /** @@ -59,8 +60,8 @@ public final class Font extends Resource { * platforms and should never be accessed from application code. *

    * - * @noreference This field is not intended to be referenced by clients. */ + @NoReference("This field is not intended to be referenced by clients.") public int extraTraits; /** @@ -286,8 +287,8 @@ public FontData[] getFontData() { * @param device the device on which to allocate the color * @param handle the handle for the font * - * @noreference This method is not intended to be referenced by clients. */ + @NoReference("This method is not intended to be referenced by clients.") public static Font cocoa_new(Device device, NSFont handle) { Font font = new Font(device); font.handle = handle; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/FontData.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/FontData.java index abf7e66142b..2add4ca8cc9 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/FontData.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/FontData.java @@ -14,6 +14,7 @@ package org.eclipse.swt.graphics; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; /** @@ -52,8 +53,8 @@ public final class FontData { * platforms and should never be accessed from application code. *

    * - * @noreference This field is not intended to be referenced by clients. */ + @NoReference("This field is not intended to be referenced by clients.") public String name; /** @@ -66,8 +67,8 @@ public final class FontData { * platforms and should never be accessed from application code. *

    * - * @noreference This field is not intended to be referenced by clients. */ + @NoReference("This field is not intended to be referenced by clients.") public float height; /** @@ -80,8 +81,8 @@ public final class FontData { * platforms and should never be accessed from application code. *

    * - * @noreference This field is not intended to be referenced by clients. */ + @NoReference("This field is not intended to be referenced by clients.") public int style; /** @@ -94,8 +95,8 @@ public final class FontData { * platforms and should never be accessed from application code. *

    * - * @noreference This field is not intended to be referenced by clients. */ + @NoReference("This field is not intended to be referenced by clients.") public String nsName; /** diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/FontMetrics.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/FontMetrics.java index d7aa91e82cc..2e5a87b66ce 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/FontMetrics.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/FontMetrics.java @@ -13,6 +13,7 @@ *******************************************************************************/ package org.eclipse.swt.graphics; +import org.eclipse.pde.api.tools.annotations.*; /** * Instances of this class provide measurement information @@ -64,8 +65,8 @@ public static FontMetrics cocoa_new (int ascent, int descent, int averageCharWid * application code. *

    * - * @noreference This method is not intended to be referenced by clients. */ +@NoReference("This method is not intended to be referenced by clients.") public static FontMetrics cocoa_new (int ascent, int descent, double averageCharWidth, int leading, int height) { FontMetrics fontMetrics = new FontMetrics(); fontMetrics.ascent = ascent; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/GC.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/GC.java index 1d13bdbb4fe..04222efa815 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/GC.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/GC.java @@ -15,6 +15,7 @@ import java.util.*; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.internal.*; import org.eclipse.swt.internal.cocoa.*; @@ -70,8 +71,8 @@ public final class GC extends Resource { * platforms and should never be accessed from application code. *

    * - * @noreference This field is not intended to be referenced by clients. */ + @NoReference("This field is not intended to be referenced by clients.") public NSGraphicsContext handle; Drawable drawable; @@ -296,8 +297,8 @@ static int checkStyle (int style) { * * @return a new GC * - * @noreference This method is not intended to be referenced by clients. */ +@NoReference("This method is not intended to be referenced by clients.") public static GC cocoa_new(Drawable drawable, GCData data) { GC gc = new GC(); long context = drawable.internal_new_GC(data); @@ -2784,10 +2785,9 @@ public Pattern getForegroundPattern() { * * @see GCData * - * @noreference This method is not intended to be referenced by clients. - * * @since 3.2 */ +@NoReference("This method is not intended to be referenced by clients.") public GCData getGCData() { if (handle == null) SWT.error(SWT.ERROR_WIDGET_DISPOSED); NSAutoreleasePool pool = checkGC(TRANSFORM | CLIPPING); diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/GCData.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/GCData.java index be168525380..2a4de4709e3 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/GCData.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/GCData.java @@ -14,6 +14,7 @@ package org.eclipse.swt.graphics; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.internal.cocoa.*; @@ -27,8 +28,8 @@ * platforms, and should never be called from application code. *

    * @see Sample code and further information - * @noreference This class is not intended to be referenced by clients */ +@NoReference("This class is not intended to be referenced by clients") public final class GCData { public Device device; public int style, state = -1; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/Image.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/Image.java index 15e1cab5d9b..6d68988eb28 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/Image.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/Image.java @@ -16,6 +16,7 @@ import java.io.*; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.internal.*; import org.eclipse.swt.internal.cocoa.*; @@ -83,8 +84,8 @@ public final class Image extends Resource implements Drawable { * platforms and should never be accessed from application code. *

    * - * @noreference This field is not intended to be referenced by clients. */ + @NoReference("This field is not intended to be referenced by clients.") public int type; /** @@ -97,8 +98,8 @@ public final class Image extends Resource implements Drawable { * platforms and should never be accessed from application code. *

    * - * @noreference This field is not intended to be referenced by clients. */ + @NoReference("This field is not intended to be referenced by clients.") public NSImage handle; /** @@ -931,8 +932,8 @@ ImageData _getImageData (NSBitmapImageRep imageRep, AlphaInfo info) { * @param type the type of the image (SWT.BITMAP or SWT.ICON) * @param nsImage the OS data for the image * - * @noreference This method is not intended to be referenced by clients. */ + @NoReference("This method is not intended to be referenced by clients.") public static Image cocoa_new(Device device, int type, NSImage nsImage) { Image image = new Image(device); image.type = type; @@ -1513,8 +1514,8 @@ void initNative(String filename) { * @param data the platform specific GC data * @return the platform specific GC handle * - * @noreference This method is not intended to be referenced by clients. */ + @NoReference("This method is not intended to be referenced by clients.") @Override public long internal_new_GC (GCData data) { if (handle == null) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED); @@ -1574,8 +1575,8 @@ public long internal_new_GC (GCData data) { * @param hDC the platform specific GC handle * @param data the platform specific GC data * - * @noreference This method is not intended to be referenced by clients. */ + @NoReference("This method is not intended to be referenced by clients.") @Override public void internal_dispose_GC (long hDC, GCData data) { long context = hDC; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/Path.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/Path.java index d46035be097..ee3b65d936f 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/Path.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/Path.java @@ -13,6 +13,7 @@ *******************************************************************************/ package org.eclipse.swt.graphics; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.internal.*; import org.eclipse.swt.internal.cocoa.*; @@ -50,8 +51,8 @@ public class Path extends Resource { * platforms and should never be accessed from application code. *

    * - * @noreference This field is not intended to be referenced by clients. */ + @NoReference("This field is not intended to be referenced by clients.") public NSBezierPath handle; boolean closed = true; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/Region.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/Region.java index 7dbe8e518c5..4185dd0d857 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/Region.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/Region.java @@ -14,6 +14,7 @@ package org.eclipse.swt.graphics; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.internal.*; import org.eclipse.swt.internal.cocoa.*; @@ -42,8 +43,8 @@ public final class Region extends Resource { * platforms and should never be accessed from application code. *

    * - * @noreference This field is not intended to be referenced by clients. */ + @NoReference("This field is not intended to be referenced by clients.") public long handle; /** @@ -119,8 +120,8 @@ public Region(Device device) { * @param handle the handle for the region * @return a new region object containing the specified device and handle * - * @noreference This method is not intended to be referenced by clients. */ + @NoReference("This method is not intended to be referenced by clients.") public static Region cocoa_new(Device device, long handle) { return new Region(device, handle); } diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/TextLayout.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/TextLayout.java index d4eb922aeaa..8f1c27aeeac 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/TextLayout.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/TextLayout.java @@ -13,6 +13,7 @@ *******************************************************************************/ package org.eclipse.swt.graphics; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.internal.*; import org.eclipse.swt.internal.cocoa.*; @@ -2422,11 +2423,10 @@ int untranslateOffset (int offset) { *
  • ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed
  • * * - * @noreference This method is not intended to be referenced by clients. - * * DO NOT USE This might be removed in 4.8 * @since 3.107 */ +@NoReference("This method is not intended to be referenced by clients.") public void setDefaultTabWidth(int tabLength) { if (tabLength < 0) SWT.error(SWT.ERROR_INVALID_ARGUMENT); diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/Transform.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/Transform.java index 07e1bae0573..c89e7e10b4b 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/Transform.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/Transform.java @@ -13,6 +13,7 @@ *******************************************************************************/ package org.eclipse.swt.graphics; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.internal.cocoa.*; @@ -45,8 +46,8 @@ public class Transform extends Resource { * platforms and should never be accessed from application code. *

    * - * @noreference This field is not intended to be referenced by clients. */ + @NoReference("This field is not intended to be referenced by clients.") public NSAffineTransform handle; /** diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Button.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Button.java index 1d6cbca5bd6..510bb1c3ff8 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Button.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Button.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; @@ -44,8 +45,8 @@ * @see Button snippets * @see SWT Example: ControlExample * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class Button extends Control { String text; Image image; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Caret.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Caret.java index 4ce9537975a..cd88b5d3866 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Caret.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Caret.java @@ -14,10 +14,10 @@ package org.eclipse.swt.widgets; -import org.eclipse.swt.internal.cocoa.*; - +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; +import org.eclipse.swt.internal.cocoa.*; /** * Instances of this class provide an i-beam that is typically used @@ -35,8 +35,8 @@ * @see Caret snippets * @see SWT Example: ControlExample, Canvas tab * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class Caret extends Widget { Canvas parent; int x, y, width, height; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/ColorDialog.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/ColorDialog.java index 0dde704bb09..50c6ab62ee8 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/ColorDialog.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/ColorDialog.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.internal.cocoa.*; @@ -33,8 +34,8 @@ * * @see SWT Example: ControlExample, Dialog tab * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class ColorDialog extends Dialog { RGB rgb; RGB [] rgbs; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Combo.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Combo.java index 02801327de8..89475f56649 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Combo.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Combo.java @@ -15,6 +15,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; @@ -57,8 +58,8 @@ * @see Combo snippets * @see SWT Example: ControlExample * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class Combo extends Composite { String text; int textLimit = LIMIT; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Control.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Control.java index 3b85144ac42..856728fffee 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Control.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Control.java @@ -16,6 +16,7 @@ import java.util.*; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.accessibility.*; import org.eclipse.swt.events.*; @@ -44,8 +45,8 @@ * @see Control snippets * @see SWT Example: ControlExample * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public abstract class Control extends Widget implements Drawable { /** * the handle to the OS resource @@ -57,8 +58,8 @@ public abstract class Control extends Widget implements Drawable { * platforms and should never be accessed from application code. *

    * - * @noreference This field is not intended to be referenced by clients. */ + @NoReference("This field is not intended to be referenced by clients.") public NSView view; Composite parent; String toolTipText; @@ -2161,10 +2162,9 @@ boolean insertText (long id, long sel, long string) { * * @param data the platform specific GC data * @return the platform specific GC handle - * - * @noreference This method is not intended to be referenced by clients. */ @Override +@NoReference("This method is not intended to be referenced by clients.") public long internal_new_GC (GCData data) { checkWidget(); NSView view = paintView(); @@ -2242,10 +2242,9 @@ public long internal_new_GC (GCData data) { * * @param hDC the platform specific GC handle * @param data the platform specific GC data - * - * @noreference This method is not intended to be referenced by clients. */ @Override +@NoReference("This method is not intended to be referenced by clients.") public void internal_dispose_GC (long hDC, GCData data) { checkWidget (); long context = hDC; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/DateTime.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/DateTime.java index 0b9f1e9a40b..153f06b7125 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/DateTime.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/DateTime.java @@ -13,6 +13,7 @@ *******************************************************************************/ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; @@ -45,8 +46,8 @@ * @see Sample code and further information * * @since 3.3 - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class DateTime extends Composite { static final int MIN_YEAR = 1752; // Gregorian switchover in North America: September 19, 1752 static final int MAX_YEAR = 9999; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Decorations.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Decorations.java index b96e68f8593..7ea0a2691d6 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Decorations.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Decorations.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.internal.cocoa.*; @@ -95,8 +96,8 @@ * @see Shell * @see SWT * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class Decorations extends Canvas { Image image; Image [] images = new Image [0]; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/DirectoryDialog.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/DirectoryDialog.java index 1cf25d6ce45..0a4abfb8455 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/DirectoryDialog.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/DirectoryDialog.java @@ -16,6 +16,7 @@ import java.util.*; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.internal.*; import org.eclipse.swt.internal.cocoa.*; @@ -37,8 +38,8 @@ * @see DirectoryDialog snippets * @see SWT Example: ControlExample, Dialog tab * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class DirectoryDialog extends Dialog { Callback callback_performKeyEquivalent; Callback completion_handler_callback; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Display.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Display.java index 1f35bef00a8..05e1c235ad0 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Display.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Display.java @@ -20,6 +20,7 @@ import java.util.concurrent.atomic.*; import java.util.function.*; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.internal.*; @@ -102,8 +103,8 @@ * @see Device#dispose * @see Display snippets * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class Display extends Device implements Executor { static byte[] types = {'*','\0'}; @@ -1244,9 +1245,8 @@ boolean filters (int eventType) { *
  • ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver
  • *
  • ERROR_DEVICE_DISPOSED - if the receiver has been disposed
  • * - * - * @noreference This method is not intended to be referenced by clients. */ +@NoReference("This method is not intended to be referenced by clients.") public Widget findWidget (long handle) { checkDevice (); return getWidget (handle); @@ -1272,10 +1272,9 @@ public Widget findWidget (long handle) { *
  • ERROR_DEVICE_DISPOSED - if the receiver has been disposed
  • * * - * @noreference This method is not intended to be referenced by clients. - * * @since 3.1 */ +@NoReference("This method is not intended to be referenced by clients.") public Widget findWidget (long handle, long id) { checkDevice (); return getWidget (handle); @@ -1296,10 +1295,9 @@ public Widget findWidget (long handle, long id) { *
  • ERROR_DEVICE_DISPOSED - if the receiver has been disposed
  • * * - * @noreference This method is not intended to be referenced by clients. - * * @since 3.3 */ +@NoReference("This method is not intended to be referenced by clients.") public Widget findWidget (Widget widget, long id) { checkDevice (); return null; @@ -3349,10 +3347,9 @@ void initFonts () { * @exception SWTError
      *
    • ERROR_NO_HANDLES if a handle could not be obtained for gc creation
    • *
    - * - * @noreference This method is not intended to be referenced by clients. */ @Override +@NoReference("This method is not intended to be referenced by clients.") public long internal_new_GC (GCData data) { if (isDisposed()) error(SWT.ERROR_DEVICE_DISPOSED); if (screenWindow == null) { @@ -3405,10 +3402,9 @@ public long internal_new_GC (GCData data) { * * @param hDC the platform specific GC handle * @param data the platform specific GC data - * - * @noreference This method is not intended to be referenced by clients. */ @Override +@NoReference("This method is not intended to be referenced by clients.") public void internal_dispose_GC (long hDC, GCData data) { if (isDisposed()) error(SWT.ERROR_DEVICE_DISPOSED); } @@ -4669,18 +4665,16 @@ void sendPostEvent (int eventType) { /** * Sends a SWT.PreExternalEventDispatch event. - * - * @noreference This method is not intended to be referenced by clients. */ +@NoReference("This method is not intended to be referenced by clients.") public void sendPreExternalEventDispatchEvent () { sendJDKInternalEvent (SWT.PreExternalEventDispatch); } /** * Sends a SWT.PostExternalEventDispatch event. - * - * @noreference This method is not intended to be referenced by clients. */ +@NoReference("This method is not intended to be referenced by clients.") public void sendPostExternalEventDispatchEvent () { sendJDKInternalEvent (SWT.PostExternalEventDispatch); } diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/FileDialog.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/FileDialog.java index e409b9aee43..0589fe7835c 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/FileDialog.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/FileDialog.java @@ -16,6 +16,7 @@ import java.util.*; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.internal.*; import org.eclipse.swt.internal.cocoa.*; @@ -38,8 +39,8 @@ * @see FileDialog snippets * @see SWT Example: ControlExample, Dialog tab * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class FileDialog extends Dialog { Callback callback_completion_handler; Callback callback_overwrite_existing_file; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/FontDialog.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/FontDialog.java index 14e9712cc86..a06d1adfef2 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/FontDialog.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/FontDialog.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.internal.cocoa.*; @@ -33,8 +34,8 @@ * * @see SWT Example: ControlExample, Dialog tab * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class FontDialog extends Dialog { FontData fontData; RGB rgb; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Group.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Group.java index 0ae7385c225..a9900cab567 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Group.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Group.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.internal.cocoa.*; @@ -40,8 +41,8 @@ * * @see SWT Example: ControlExample * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class Group extends Composite { NSView contentView; String text = ""; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/IME.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/IME.java index 64220dc8041..f41484bc0d6 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/IME.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/IME.java @@ -13,6 +13,7 @@ *******************************************************************************/ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.internal.*; @@ -37,8 +38,8 @@ * @see Sample code and further information * * @since 3.4 - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class IME extends Widget { Canvas parent; int caretOffset; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Label.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Label.java index 350c972dc0f..56517aff828 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Label.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Label.java @@ -13,6 +13,7 @@ *******************************************************************************/ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.internal.cocoa.*; @@ -47,8 +48,8 @@ * @see Label snippets * @see SWT Example: ControlExample * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class Label extends Control { String text; Image image; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Link.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Link.java index ae364618b79..eb1acc74311 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Link.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Link.java @@ -14,6 +14,7 @@ *******************************************************************************/ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; @@ -40,8 +41,8 @@ * @see Sample code and further information * * @since 3.1 - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class Link extends Control { NSScrollView scrollView; String text; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/List.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/List.java index 7d56e8a552a..a0177114caf 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/List.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/List.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; @@ -38,8 +39,8 @@ * @see List snippets * @see SWT Example: ControlExample * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class List extends Scrollable { NSTableColumn column; String [] items; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Menu.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Menu.java index 597dc10f15e..ad76ce3d7a9 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Menu.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Menu.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; @@ -39,8 +40,8 @@ * @see Menu snippets * @see SWT Example: ControlExample * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class Menu extends Widget { NSMenu nsMenu; int x, y, itemCount; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/MenuItem.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/MenuItem.java index e61f78d1658..dddc094847c 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/MenuItem.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/MenuItem.java @@ -14,10 +14,11 @@ package org.eclipse.swt.widgets; -import org.eclipse.swt.internal.cocoa.*; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; -import org.eclipse.swt.graphics.*; import org.eclipse.swt.events.*; +import org.eclipse.swt.graphics.*; +import org.eclipse.swt.internal.cocoa.*; /** * Instances of this class represent a selectable user interface object @@ -36,8 +37,8 @@ *

    * * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class MenuItem extends Item { NSMenuItem nsItem; Menu parent, menu; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/MessageBox.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/MessageBox.java index 8bafa2601ff..e761af74319 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/MessageBox.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/MessageBox.java @@ -16,6 +16,7 @@ import java.util.*; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.internal.*; import org.eclipse.swt.internal.cocoa.*; @@ -41,8 +42,8 @@ * * @see SWT Example: ControlExample, Dialog tab * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class MessageBox extends Dialog { Callback callback_completion_handler; String message = ""; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/ProgressBar.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/ProgressBar.java index 39b6836c02a..e26d30374f4 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/ProgressBar.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/ProgressBar.java @@ -14,11 +14,11 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; +import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.internal.cocoa.*; -import org.eclipse.swt.*; - /** * Instances of the receiver represent an unselectable * user interface object that is used to display progress, @@ -38,8 +38,8 @@ * @see ProgressBar snippets * @see SWT Example: ControlExample * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class ProgressBar extends Control { NSBezierPath visiblePath; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Sash.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Sash.java index 29ad16ad69e..4da0b495d30 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Sash.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Sash.java @@ -13,6 +13,7 @@ *******************************************************************************/ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.accessibility.*; import org.eclipse.swt.events.*; @@ -38,8 +39,8 @@ * @see Sash snippets * @see SWT Example: ControlExample * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class Sash extends Control { Cursor sizeCursor; boolean dragging; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Scale.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Scale.java index 7e5d6cef365..ae024ad0185 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Scale.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Scale.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; @@ -39,8 +40,8 @@ * @see Scale snippets * @see SWT Example: ControlExample * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class Scale extends Control { int increment = 1; int pageIncrement = 10; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/ScrollBar.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/ScrollBar.java index e5659be461b..9f487b5da0c 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/ScrollBar.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/ScrollBar.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; @@ -84,8 +85,8 @@ * @see Scrollable#getVerticalBar * @see SWT Example: ControlExample * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class ScrollBar extends Widget { NSScroller view; Scrollable parent; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Scrollable.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Scrollable.java index c2fac26d1ae..50d53755b19 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Scrollable.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Scrollable.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.internal.cocoa.*; @@ -33,8 +34,8 @@ *

    * * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public abstract class Scrollable extends Control { NSScrollView scrollView; ScrollBar horizontalBar, verticalBar; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Shell.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Shell.java index 5c7876a6f79..91cbe62dcb3 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Shell.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Shell.java @@ -15,6 +15,7 @@ import java.util.*; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; @@ -118,8 +119,8 @@ * @see Shell snippets * @see SWT Example: ControlExample * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class Shell extends Decorations { NSWindow window; SWTWindowDelegate windowDelegate; @@ -393,10 +394,9 @@ public Shell (Shell parent, int style) { * @param handle the handle for the shell * @return a new shell object containing the specified display and handle * - * @noreference This method is not intended to be referenced by clients. - * * @since 3.3 */ +@NoReference("This method is not intended to be referenced by clients.") public static Shell internal_new (Display display, long handle) { return new Shell (display, null, SWT.NO_TRIM, handle, false); } @@ -417,10 +417,9 @@ public static Shell internal_new (Display display, long handle) { * @param handle the handle for the shell * @return a new shell object containing the specified display and handle * - * @noreference This method is not intended to be referenced by clients. - * * @since 3.5 */ +@NoReference("This method is not intended to be referenced by clients.") public static Shell cocoa_new (Display display, long handle) { return new Shell (display, null, SWT.NO_TRIM, handle, true); } diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Slider.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Slider.java index fda67becd0b..79e22e93fb9 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Slider.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Slider.java @@ -14,11 +14,11 @@ package org.eclipse.swt.widgets; -import org.eclipse.swt.internal.cocoa.*; - +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; +import org.eclipse.swt.internal.cocoa.*; /** * Instances of this class are selectable user interface @@ -72,8 +72,8 @@ * @see Slider snippets * @see SWT Example: ControlExample * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class Slider extends Control { boolean dragging; int minimum, maximum, thumb; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Spinner.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Spinner.java index ad1dc2262c1..d001706fd84 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Spinner.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Spinner.java @@ -13,6 +13,7 @@ *******************************************************************************/ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; @@ -41,8 +42,8 @@ * @see Sample code and further information * * @since 3.1 - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class Spinner extends Composite { NSTextField textView; NSNumberFormatter textFormatter; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TabFolder.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TabFolder.java index c80631d01ed..39ca26a6c9b 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TabFolder.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TabFolder.java @@ -14,11 +14,11 @@ package org.eclipse.swt.widgets; -import org.eclipse.swt.internal.cocoa.*; - +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; +import org.eclipse.swt.internal.cocoa.*; /** * Instances of this class implement the notebook user interface @@ -48,8 +48,8 @@ * @see TabFolder, TabItem snippets * @see SWT Example: ControlExample * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class TabFolder extends Composite { TabItem [] items; int itemCount; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TabItem.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TabItem.java index ebaafb30163..f1af9eee5ed 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TabItem.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TabItem.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.internal.cocoa.*; @@ -33,8 +34,8 @@ * * @see TabFolder, TabItem snippets * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class TabItem extends Item { static final int IMAGE_GAP = 2; TabFolder parent; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Table.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Table.java index f62d8bc4d42..2a3c0a9310b 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Table.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Table.java @@ -13,6 +13,7 @@ *******************************************************************************/ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; @@ -66,8 +67,8 @@ * @see Table, TableItem, TableColumn snippets * @see SWT Example: ControlExample * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class Table extends Composite { TableItem [] items; TableColumn [] columns; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TableColumn.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TableColumn.java index 59e3a77847d..b0a33c929b3 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TableColumn.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TableColumn.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; @@ -35,8 +36,8 @@ * * @see Table, TableItem, TableColumn snippets * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class TableColumn extends Item { Table parent; NSTableColumn nsColumn; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TableItem.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TableItem.java index a535a9852ca..882d5e8b14b 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TableItem.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TableItem.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.internal.cocoa.*; @@ -33,8 +34,8 @@ * * @see Table, TableItem, TableColumn snippets * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class TableItem extends Item { Table parent; String [] strings; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TaskBar.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TaskBar.java index 83a664a0fab..528018bd2f7 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TaskBar.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TaskBar.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; /** @@ -31,8 +32,8 @@ * * @since 3.6 * - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class TaskBar extends Widget { int itemCount; TaskItem [] items = new TaskItem [4]; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TaskItem.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TaskItem.java index 58440eac0ca..e9ce615cf79 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TaskItem.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TaskItem.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.internal.cocoa.*; @@ -32,8 +33,8 @@ * * @since 3.6 * - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class TaskItem extends Item { TaskBar parent; Shell shell; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Text.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Text.java index 9090131cc23..917539bdbba 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Text.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Text.java @@ -13,6 +13,7 @@ *******************************************************************************/ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; @@ -57,8 +58,8 @@ * @see Text snippets * @see SWT Example: ControlExample * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class Text extends Scrollable { int textLimit = LIMIT, tabs = 8; char echoCharacter; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/ToolBar.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/ToolBar.java index 1242963479b..da2c71856b1 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/ToolBar.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/ToolBar.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.accessibility.*; import org.eclipse.swt.graphics.*; @@ -45,8 +46,8 @@ * @see ToolBar, ToolItem snippets * @see SWT Example: ControlExample * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class ToolBar extends Composite { int itemCount; ToolItem [] items; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/ToolItem.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/ToolItem.java index a07913019f5..7207ef597da 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/ToolItem.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/ToolItem.java @@ -16,6 +16,7 @@ import java.util.*; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; @@ -39,8 +40,8 @@ * * @see ToolBar, ToolItem snippets * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class ToolItem extends Item { NSView view; NSButton button; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Tracker.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Tracker.java index ac41a530cec..8d2ff681c29 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Tracker.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Tracker.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; @@ -40,8 +41,8 @@ * * @see Tracker snippets * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class Tracker extends Widget { Control parent; boolean tracking, cancelled, stippled; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TrayItem.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TrayItem.java index 558908bb5e6..9d9e838bdbc 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TrayItem.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TrayItem.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; @@ -36,8 +37,8 @@ * @see Sample code and further information * * @since 3.0 - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class TrayItem extends Item { Tray parent; ToolTip toolTip; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Tree.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Tree.java index 45fd96cba4c..be6d95571c8 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Tree.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Tree.java @@ -13,6 +13,7 @@ *******************************************************************************/ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; @@ -73,8 +74,8 @@ * @see Tree, TreeItem, TreeColumn snippets * @see SWT Example: ControlExample * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class Tree extends Composite { private static final TreeItem[] NO_ITEM = new TreeItem[0]; NSTableColumn firstColumn, checkColumn; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TreeColumn.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TreeColumn.java index c8789d53704..65a59eb470b 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TreeColumn.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TreeColumn.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; @@ -37,8 +38,8 @@ * @see Sample code and further information * * @since 3.1 - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class TreeColumn extends Item { NSTableColumn nsColumn; Tree parent; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TreeItem.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TreeItem.java index f931c12d8fb..8ea3b3b9a45 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TreeItem.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TreeItem.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.internal.cocoa.*; @@ -34,8 +35,8 @@ * * @see Tree, TreeItem, TreeColumn snippets * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class TreeItem extends Item { Tree parent; TreeItem parentItem; @@ -59,8 +60,8 @@ public class TreeItem extends Item { * platforms and should never be accessed from application code. *

    * - * @noreference This field is not intended to be referenced by clients. */ + @NoReference("This field is not intended to be referenced by clients.") public SWTTreeItem handle; /** diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Widget.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Widget.java index 0b9e10fd41e..626200667a0 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Widget.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Widget.java @@ -15,6 +15,7 @@ import java.util.*; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.internal.*; @@ -1461,10 +1462,9 @@ public void removeListener (int eventType, Listener listener) { * * @see Listener * @see #addListener - * - * @noreference This method is not intended to be referenced by clients. - * @nooverride This method is not intended to be re-implemented or extended by clients. */ +@NoReference("This method is not intended to be referenced by clients.") +@NoOverride("This method is not intended to be re-implemented or extended by clients.") protected void removeListener (int eventType, EventListener handler) { checkWidget(); if (handler == null) error (SWT.ERROR_NULL_ARGUMENT); diff --git a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/graphics/Drawable.java b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/graphics/Drawable.java index f46baba95d5..78535013056 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/graphics/Drawable.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/graphics/Drawable.java @@ -13,6 +13,7 @@ *******************************************************************************/ package org.eclipse.swt.graphics; +import org.eclipse.pde.api.tools.annotations.*; /** * Implementers of Drawable can have a graphics context (GC) @@ -45,9 +46,8 @@ public interface Drawable { * @param data the platform specific GC data * @return the platform specific GC handle * - * @noreference This method is not intended to be referenced by clients. */ - +@NoReference("This method is not intended to be referenced by clients.") long internal_new_GC (GCData data); /** @@ -63,8 +63,8 @@ public interface Drawable { * @param handle the platform specific GC handle * @param data the platform specific GC data * - * @noreference This method is not intended to be referenced by clients. */ + @NoReference("This method is not intended to be referenced by clients.") void internal_dispose_GC (long handle, GCData data); /** @@ -75,8 +75,8 @@ public interface Drawable { * * @return true if auto-scaling is enabled for this drawable * - * @noreference This method is not intended to be referenced by clients. */ + @NoReference("This method is not intended to be referenced by clients.") default boolean isAutoScalable () { return true; } diff --git a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/graphics/ImageData.java b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/graphics/ImageData.java index c268e5caaed..81cf6e88ce7 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/graphics/ImageData.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/graphics/ImageData.java @@ -16,6 +16,7 @@ import java.io.*; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.internal.*; @@ -509,8 +510,8 @@ void setAllFields(int width, int height, int depth, int scanlinePad, * This method is for internal use, and is not described further. *

    * - * @noreference This method is not intended to be referenced by clients. */ + @NoReference("This method is not intended to be referenced by clients.") public static ImageData internal_new( int width, int height, int depth, PaletteData palette, int scanlinePad, byte[] data, int maskPad, byte[] maskData, diff --git a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/widgets/Tray.java b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/widgets/Tray.java index f1ceb44ace9..c6b877e6e31 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/widgets/Tray.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/widgets/Tray.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; /** @@ -35,8 +36,8 @@ * @see Sample code and further information * * @since 3.0 - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class Tray extends Widget { int itemCount; TrayItem [] items = new TrayItem [4]; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/widgets/TypedListener.java b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/widgets/TypedListener.java index 0b08029889c..be3d64c2f41 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/widgets/TypedListener.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/widgets/TypedListener.java @@ -16,6 +16,7 @@ import java.util.*; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; @@ -32,10 +33,10 @@ * * @see Listener * @see Sample code and further information - * @noreference This class is not intended to be referenced by clients. - * @noextend This class is not intended to be subclassed by clients. - * @noinstantiate This class is not intended to be instantiated by clients. */ +@NoReference("This class is not intended to be referenced by clients.") +@NoExtend("This class is not intended to be subclassed by clients.") +@NoInstantiate("This class is not intended to be instantiated by clients.") public class TypedListener implements Listener { /** @@ -53,9 +54,8 @@ public class TypedListener implements Listener { *

    * * @param listener the event listener to store in the receiver - * - * @noreference This method is not intended to be referenced by clients. */ +@NoReference("This method is not intended to be referenced by clients.") public TypedListener (EventListener listener) { eventListener = listener; } @@ -70,9 +70,8 @@ public TypedListener (EventListener listener) { *

    * * @return the receiver's event listener - * - * @noreference This method is not intended to be referenced by clients. */ +@NoReference("This method is not intended to be referenced by clients.") public EventListener getEventListener () { return eventListener; } @@ -86,10 +85,9 @@ public EventListener getEventListener () { * referenced from application code. *

    * @param e the event to handle - * - * @noreference This method is not intended to be referenced by clients. */ @Override +@NoReference("This method is not intended to be referenced by clients.") public void handleEvent (Event e) { switch (e.type) { case SWT.Activate: { diff --git a/bundles/org.eclipse.swt/Eclipse SWT/emulated/coolbar/org/eclipse/swt/widgets/CoolBar.java b/bundles/org.eclipse.swt/Eclipse SWT/emulated/coolbar/org/eclipse/swt/widgets/CoolBar.java index bea149da9eb..9122571af59 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/emulated/coolbar/org/eclipse/swt/widgets/CoolBar.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/emulated/coolbar/org/eclipse/swt/widgets/CoolBar.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; @@ -43,8 +44,8 @@ * @see CoolBar snippets * @see SWT Example: ControlExample * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class CoolBar extends Composite { CoolItem[][] items = new CoolItem[0][0]; CoolItem[] originalItems = new CoolItem[0]; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/emulated/coolbar/org/eclipse/swt/widgets/CoolItem.java b/bundles/org.eclipse.swt/Eclipse SWT/emulated/coolbar/org/eclipse/swt/widgets/CoolItem.java index 2c0c0619d7f..b85e6d071cf 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/emulated/coolbar/org/eclipse/swt/widgets/CoolItem.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/emulated/coolbar/org/eclipse/swt/widgets/CoolItem.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; @@ -33,8 +34,8 @@ *

    * * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class CoolItem extends Item { Control control; CoolBar parent; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/emulated/expand/org/eclipse/swt/widgets/ExpandBar.java b/bundles/org.eclipse.swt/Eclipse SWT/emulated/expand/org/eclipse/swt/widgets/ExpandBar.java index cee64d90e1e..f9f63a812f3 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/emulated/expand/org/eclipse/swt/widgets/ExpandBar.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/emulated/expand/org/eclipse/swt/widgets/ExpandBar.java @@ -13,6 +13,7 @@ *******************************************************************************/ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; @@ -43,8 +44,8 @@ * @see Sample code and further information * * @since 3.2 - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class ExpandBar extends Composite { ExpandItem [] items; int itemCount; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/emulated/expand/org/eclipse/swt/widgets/ExpandItem.java b/bundles/org.eclipse.swt/Eclipse SWT/emulated/expand/org/eclipse/swt/widgets/ExpandItem.java index f50b692eb1b..db76b047015 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/emulated/expand/org/eclipse/swt/widgets/ExpandItem.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/emulated/expand/org/eclipse/swt/widgets/ExpandItem.java @@ -13,6 +13,7 @@ *******************************************************************************/ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; @@ -33,8 +34,8 @@ * @see Sample code and further information * * @since 3.2 - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class ExpandItem extends Item { ExpandBar parent; Control control; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/emulated/taskbar/org/eclipse/swt/widgets/TaskBar.java b/bundles/org.eclipse.swt/Eclipse SWT/emulated/taskbar/org/eclipse/swt/widgets/TaskBar.java index f37128e3b86..4277f97c19e 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/emulated/taskbar/org/eclipse/swt/widgets/TaskBar.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/emulated/taskbar/org/eclipse/swt/widgets/TaskBar.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; /** @@ -31,8 +32,8 @@ * * @since 3.6 * - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class TaskBar extends Widget { int itemCount; TaskItem [] items = new TaskItem [4]; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/emulated/taskbar/org/eclipse/swt/widgets/TaskItem.java b/bundles/org.eclipse.swt/Eclipse SWT/emulated/taskbar/org/eclipse/swt/widgets/TaskItem.java index 589ca8671ba..6b905e5cf94 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/emulated/taskbar/org/eclipse/swt/widgets/TaskItem.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/emulated/taskbar/org/eclipse/swt/widgets/TaskItem.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; @@ -31,8 +32,8 @@ * * @since 3.6 * - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class TaskItem extends Item { TaskBar parent; Shell shell; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/emulated/tooltip/org/eclipse/swt/widgets/ToolTip.java b/bundles/org.eclipse.swt/Eclipse SWT/emulated/tooltip/org/eclipse/swt/widgets/ToolTip.java index 193390ef52d..aaaa2026e88 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/emulated/tooltip/org/eclipse/swt/widgets/ToolTip.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/emulated/tooltip/org/eclipse/swt/widgets/ToolTip.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; @@ -39,8 +40,8 @@ * @see Sample code and further information * * @since 3.2 - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class ToolTip extends Widget { Shell parent, tip; TrayItem item; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Color.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Color.java index f6260f94275..018b474b05e 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Color.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Color.java @@ -14,6 +14,7 @@ package org.eclipse.swt.graphics; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.internal.gtk.*; @@ -44,9 +45,8 @@ public final class Color extends Resource { * within the packages provided by SWT. It is not available on all * platforms and should never be accessed from application code. *

    - * - * @noreference This field is not intended to be referenced by clients. */ + @NoReference("This field is not intended to be referenced by clients.") public GdkRGBA handle; int alpha = 0; @@ -471,9 +471,8 @@ public RGBA getRGBA () { * * @param device the device on which to allocate the color * @param gdkRGBA the handle for the color - * - * @noreference This method is not intended to be referenced by clients. */ +@NoReference("This method is not intended to be referenced by clients.") public static Color gtk_new(Device device, GdkRGBA gdkRGBA) { Color color = new Color(device); color.handle = gdkRGBA; @@ -494,9 +493,8 @@ public static Color gtk_new(Device device, GdkRGBA gdkRGBA) { * @param device the device on which to allocate the color * @param gdkRGBA the handle for the color * @param alpha the int for the alpha content in the color(Currently SWT honors extreme values for alpha ie. 0 or 255) - * - * @noreference This method is not intended to be referenced by clients. */ +@NoReference("This method is not intended to be referenced by clients.") public static Color gtk_new(Device device, GdkRGBA gdkRGBA, int alpha) { Color color = new Color(device); color.handle = gdkRGBA; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Cursor.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Cursor.java index 422386d30e4..dd10aef253f 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Cursor.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Cursor.java @@ -14,6 +14,7 @@ package org.eclipse.swt.graphics; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.internal.*; import org.eclipse.swt.internal.gtk.*; @@ -56,8 +57,8 @@ public final class Cursor extends Resource { * platforms and should never be accessed from application code. *

    * - * @noreference This field is not intended to be referenced by clients. */ + @NoReference("This field is not intended to be referenced by clients.") public long handle; Cursor (Device device) { @@ -460,8 +461,8 @@ public boolean equals(Object object) { * @param device the device on which to allocate the color * @param handle the handle for the cursor * - * @noreference This method is not intended to be referenced by clients. */ +@NoReference("This method is not intended to be referenced by clients.") public static Cursor gtk_new(Device device, long handle) { Cursor cursor = new Cursor(device); cursor.handle = handle; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Device.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Device.java index 3363ea5ae86..475fda064da 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Device.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Device.java @@ -18,6 +18,7 @@ import java.util.function.*; import java.util.stream.*; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.internal.*; import org.eclipse.swt.internal.gtk.*; @@ -34,9 +35,9 @@ */ public abstract class Device implements Drawable { /** - * @noreference This field is not intended to be referenced by clients. * @since 3.105 */ + @NoReference("This field is not intended to be referenced by clients.") protected static final int CHANGE_SCALEFACTOR = 1; /* Settings callbacks */ long gsettingsProc; @@ -54,8 +55,8 @@ public abstract class Device implements Drawable { * platforms and should never be accessed from application code. *

    * - * @noreference This field is not intended to be referenced by clients. */ + @NoReference("This field is not intended to be referenced by clients.") protected long xDisplay; long shellHandle; @@ -836,10 +837,9 @@ private void overrideThemeValues () { * * @param data the platform specific GC data * @return the platform specific GC handle - * - * @noreference This method is not intended to be referenced by clients. */ @Override +@NoReference("This method is not intended to be referenced by clients.") public abstract long internal_new_GC (GCData data); /** @@ -854,10 +854,9 @@ private void overrideThemeValues () { * * @param hDC the platform specific GC handle * @param data the platform specific GC data - * - * @noreference This method is not intended to be referenced by clients. */ @Override +@NoReference("This method is not intended to be referenced by clients.") public abstract void internal_dispose_GC (long hDC, GCData data); /** @@ -1084,10 +1083,10 @@ static long XIOErrorProc (long xDisplay) { * Gets the scaling factor from the device and calculates the zoom level. * @return zoom in percentage * - * @noreference This method is not intended to be referenced by clients. - * @nooverride This method is not intended to be re-implemented or extended by clients. * @since 3.105 */ +@NoReference("This method is not intended to be referenced by clients.") +@NoOverride("This method is not intended to be re-implemented or extended by clients.") protected int getDeviceZoom() { /* * We can hard-code 96 as gdk_screen_get_resolution will always return -1 diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/DeviceData.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/DeviceData.java index b7061d52e94..5f95ccbae9e 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/DeviceData.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/DeviceData.java @@ -13,6 +13,7 @@ *******************************************************************************/ package org.eclipse.swt.graphics; +import org.eclipse.pde.api.tools.annotations.*; public class DeviceData { /** @@ -24,8 +25,8 @@ public class DeviceData { * platforms and should never be accessed from application code. *

    * - * @noreference This field is not intended to be referenced by clients. */ + @NoReference("This field is not intended to be referenced by clients.") public String display_name; /** @@ -37,8 +38,8 @@ public class DeviceData { * platforms and should never be accessed from application code. *

    * - * @noreference This field is not intended to be referenced by clients. */ + @NoReference("This field is not intended to be referenced by clients.") public String application_name; /** @@ -50,8 +51,8 @@ public class DeviceData { * platforms and should never be accessed from application code. *

    * - * @noreference This field is not intended to be referenced by clients. */ + @NoReference("This field is not intended to be referenced by clients.") public String application_class; /* diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Font.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Font.java index 30b80fa9300..a42bf1b42dd 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Font.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Font.java @@ -14,6 +14,7 @@ package org.eclipse.swt.graphics; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.internal.*; import org.eclipse.swt.internal.gtk.*; @@ -45,8 +46,8 @@ public final class Font extends Resource { * platforms and should never be accessed from application code. *

    * - * @noreference This field is not intended to be referenced by clients. */ + @NoReference("This field is not intended to be referenced by clients.") public long handle; Font(Device device) { @@ -228,8 +229,8 @@ public FontData[] getFontData() { * @param device the device on which to allocate the color * @param handle the handle for the font * - * @noreference This method is not intended to be referenced by clients. */ +@NoReference("This method is not intended to be referenced by clients.") public static Font gtk_new(Device device, long handle) { Font font = new Font(device); font.handle = handle; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/FontData.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/FontData.java index ca717f680a1..b858bbe393a 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/FontData.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/FontData.java @@ -14,6 +14,7 @@ package org.eclipse.swt.graphics; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; /** @@ -52,8 +53,8 @@ public final class FontData { * platforms and should never be accessed from application code. *

    * - * @noreference This field is not intended to be referenced by clients. */ + @NoReference("This field is not intended to be referenced by clients.") public String name; /** @@ -66,8 +67,8 @@ public final class FontData { * platforms and should never be accessed from application code. *

    * - * @noreference This field is not intended to be referenced by clients. */ + @NoReference("This field is not intended to be referenced by clients.") public float height; /** @@ -80,8 +81,8 @@ public final class FontData { * platforms and should never be accessed from application code. *

    * - * @noreference This field is not intended to be referenced by clients. */ + @NoReference("This field is not intended to be referenced by clients.") public int style; /** @@ -94,8 +95,8 @@ public final class FontData { * platforms and should never be accessed from application code. *

    * - * @noreference This field is not intended to be referenced by clients. */ + @NoReference("This field is not intended to be referenced by clients.") public byte[] string; /** diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java index cc0551c55e8..2198ab0417d 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java @@ -15,6 +15,7 @@ import java.util.*; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.internal.*; import org.eclipse.swt.internal.cairo.*; @@ -70,9 +71,8 @@ public final class GC extends Resource { * within the packages provided by SWT. It is not available on all * platforms and should never be accessed from application code. *

    - * - * @noreference This field is not intended to be referenced by clients. */ + @NoReference("This field is not intended to be referenced by clients.") public long handle; Drawable drawable; @@ -249,9 +249,8 @@ void cairoClipRegion (long cairo) { * @param data the data for the receiver. * * @return a new GC - * - * @noreference This method is not intended to be referenced by clients. */ +@NoReference("This method is not intended to be referenced by clients.") public static GC gtk_new(long handle, GCData data) { GC gc = new GC(); gc.device = data.device; @@ -273,9 +272,8 @@ public static GC gtk_new(long handle, GCData data) { * @param data the data for the receiver. * * @return a new GC - * - * @noreference This method is not intended to be referenced by clients. */ +@NoReference("This method is not intended to be referenced by clients.") public static GC gtk_new(Drawable drawable, GCData data) { GC gc = new GC(); long gdkGC = drawable.internal_new_GC(data); @@ -2302,10 +2300,9 @@ public Pattern getForegroundPattern() { * * @see GCData * - * @noreference This method is not intended to be referenced by clients. - * * @since 3.2 */ +@NoReference("This method is not intended to be referenced by clients.") public GCData getGCData() { if (handle == 0) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED); return data; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GCData.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GCData.java index ad4a198c4cb..433fb8c209e 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GCData.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GCData.java @@ -14,6 +14,7 @@ package org.eclipse.swt.graphics; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.internal.gtk.*; @@ -27,8 +28,8 @@ * platforms, and should never be called from application code. *

    * @see Sample code and further information - * @noreference This class is not intended to be referenced by clients */ +@NoReference("This class is not intended to be referenced by clients") public final class GCData { public Device device; public int style, state = -1; @@ -40,9 +41,8 @@ public final class GCData { * within the packages provided by SWT. It is not available on all * platforms and should never be accessed from application code. *

    - * - * @noreference This field is not intended to be referenced by clients. */ + @NoReference("This field is not intended to be referenced by clients.") public GdkRGBA foregroundRGBA, backgroundRGBA; public Font font; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Image.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Image.java index 6a44fc0c61a..a1e9d3cb1f7 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Image.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Image.java @@ -16,6 +16,7 @@ import java.io.*; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.internal.*; import org.eclipse.swt.internal.DPIUtil.*; @@ -83,9 +84,8 @@ public final class Image extends Resource implements Drawable { * within the packages provided by SWT. It is not available on all * platforms and should never be accessed from application code. *

    - * - * @noreference This field is not intended to be referenced by clients. */ + @NoReference("This field is not intended to be referenced by clients.") public int type; /** @@ -97,9 +97,8 @@ public final class Image extends Resource implements Drawable { * within the packages provided by SWT. It is not available on all * platforms and should never be accessed from application code. *

    - * - * @noreference This field is not intended to be referenced by clients. */ + @NoReference("This field is not intended to be referenced by clients.") public long mask; /** @@ -111,9 +110,8 @@ public final class Image extends Resource implements Drawable { * within the packages provided by SWT. It is not available on all * platforms and should never be accessed from application code. *

    - * - * @noreference This field is not intended to be referenced by clients. */ + @NoReference("This field is not intended to be referenced by clients.") public long surface; /** @@ -669,9 +667,8 @@ public Image(Device device, ImageDataProvider imageDataProvider) { * within the packages provided by SWT. It is not available on all * platforms and should never be used from application code. *

    - * - * @noreference This function is not intended to be referenced by clients. */ +@NoReference("This function is not intended to be referenced by clients.") public boolean internal_gtk_refreshImageForZoom() { return refreshImageForZoom(); } @@ -1129,9 +1126,8 @@ public ImageData getImageData (int zoom) { * @param type the type of the image (SWT.BITMAP or SWT.ICON) * @param imageHandle the OS handle for the image * @param mask the OS handle for the image mask - * - * @noreference This method is not intended to be referenced by clients. */ +@NoReference("This method is not intended to be referenced by clients.") public static Image gtk_new(Device device, int type, long imageHandle, long mask) { Image image = new Image(device); image.type = type; @@ -1153,9 +1149,8 @@ public static Image gtk_new(Device device, int type, long imageHandle, long mask * @param device the device on which to allocate the color * @param type the type of the image (SWT.BITMAP or SWT.ICON) * @param pixbuf an GdkPixbuf - * - * @noreference This method is not intended to be referenced by clients. */ +@NoReference("This method is not intended to be referenced by clients.") public static Image gtk_new_from_pixbuf(Device device, int type, long pixbuf) { Image image = new Image(device); image.createFromPixbuf(type, pixbuf); @@ -1371,10 +1366,9 @@ void init(ImageData image) { * * @param data the platform specific GC data * @return the platform specific GC handle - * - * @noreference This method is not intended to be referenced by clients. */ @Override +@NoReference("This method is not intended to be referenced by clients.") public long internal_new_GC (GCData data) { if (isDisposed()) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED); if (type != SWT.BITMAP || memGC != null) { @@ -1411,10 +1405,9 @@ public long internal_new_GC (GCData data) { * * @param hDC the platform specific GC handle * @param data the platform specific GC data - * - * @noreference This method is not intended to be referenced by clients. */ @Override +@NoReference("This method is not intended to be referenced by clients.") public void internal_dispose_GC (long hDC, GCData data) { Cairo.cairo_destroy(hDC); } diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Region.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Region.java index 283d19df049..e3470a9e773 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Region.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Region.java @@ -14,6 +14,7 @@ package org.eclipse.swt.graphics; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.internal.*; import org.eclipse.swt.internal.cairo.*; @@ -42,9 +43,8 @@ public final class Region extends Resource { * within the packages provided by SWT. It is not available on all * platforms and should never be accessed from application code. *

    - * - * @noreference This field is not intended to be referenced by clients. */ + @NoReference("This field is not intended to be referenced by clients.") public long handle; /** @@ -352,9 +352,8 @@ Rectangle getBoundsInPixels() { * @param device the device on which to allocate the region * @param handle the handle for the region * @return a new region object containing the specified device and handle - * - * @noreference This method is not intended to be referenced by clients. */ +@NoReference("This method is not intended to be referenced by clients.") public static Region gtk_new(Device device, long handle) { return new Region(device, handle); } diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/TextLayout.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/TextLayout.java index a0eb06dee5e..dc4737bb7cd 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/TextLayout.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/TextLayout.java @@ -15,6 +15,7 @@ import java.util.*; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.internal.*; import org.eclipse.swt.internal.cairo.*; @@ -2553,11 +2554,10 @@ int width () { *
  • ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed
  • * * - * @noreference This method is not intended to be referenced by clients. - * * DO NOT USE This might be removed in 4.8 * @since 3.107 */ +@NoReference("This method is not intended to be referenced by clients.") public void setDefaultTabWidth(int tabLength) { //unused in GTK } diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Button.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Button.java index 422607f649f..f2a6cb267d0 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Button.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Button.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; @@ -47,8 +48,8 @@ * @see Button snippets * @see SWT Example: ControlExample * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class Button extends Control { long boxHandle, labelHandle, imageHandle, arrowHandle, groupHandle; boolean selected, grayed; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Caret.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Caret.java index 73b1c713a33..69d77c2a121 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Caret.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Caret.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.internal.*; @@ -36,8 +37,8 @@ * @see Caret snippets * @see SWT Example: ControlExample, Canvas tab * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class Caret extends Widget { Canvas parent; // Table or Tree the parent might be embedded into (also indirectly) diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ColorDialog.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ColorDialog.java index cd0a73e4126..26b68a32d91 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ColorDialog.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ColorDialog.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.internal.*; @@ -36,8 +37,8 @@ * * @see SWT Example: ControlExample, Dialog tab * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class ColorDialog extends Dialog { RGB rgb; RGB [] rgbs; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Combo.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Combo.java index 0f698d1bf5b..00c5f1e955b 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Combo.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Combo.java @@ -14,6 +14,7 @@ *******************************************************************************/ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; @@ -59,8 +60,8 @@ * @see Combo snippets * @see SWT Example: ControlExample * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class Combo extends Composite { long buttonHandle, entryHandle, textRenderer, cellHandle, popupHandle, menuHandle, buttonBoxHandle, cellBoxHandle, arrowHandle; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Composite.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Composite.java index adae7906a9f..f10f0b5ab7b 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Composite.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Composite.java @@ -16,6 +16,7 @@ import java.util.*; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.internal.*; @@ -64,9 +65,8 @@ public class Composite extends Scrollable { * within the packages provided by SWT. It is not available on all * platforms and should never be accessed from application code. *

    - * - * @noreference This field is not intended to be referenced by clients. */ + @NoReference("This field is not intended to be referenced by clients.") public long embeddedHandle; long imHandle, socketHandle; Layout layout; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java index 224dab38809..77dadfaeb77 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java @@ -18,6 +18,7 @@ import java.lang.reflect.*; import java.util.*; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.accessibility.*; import org.eclipse.swt.events.*; @@ -49,8 +50,8 @@ * @see Control snippets * @see SWT Example: ControlExample * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public abstract class Control extends Widget implements Drawable { // allows to disable context menu entry for "insert emoji" @@ -4430,10 +4431,9 @@ long gtk_unrealize (long widget) { * * @param data the platform specific GC data * @return the platform specific GC handle - * - * @noreference This method is not intended to be referenced by clients. */ @Override +@NoReference("This method is not intended to be referenced by clients.") public long internal_new_GC (GCData data) { checkWidget (); long gdkResource = GTK.GTK4 ? paintSurface () : paintWindow (); @@ -4487,10 +4487,9 @@ long imHandle () { * * @param hDC the platform specific GC handle * @param data the platform specific GC data - * - * @noreference This method is not intended to be referenced by clients. */ @Override +@NoReference("This method is not intended to be referenced by clients.") public void internal_dispose_GC (long hDC, GCData data) { checkWidget (); Cairo.cairo_destroy (hDC); diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DateTime.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DateTime.java index 1e200aa53b8..adc73df178b 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DateTime.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DateTime.java @@ -20,6 +20,7 @@ import java.text.DateFormat.*; import java.util.*; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.accessibility.*; import org.eclipse.swt.events.*; @@ -61,8 +62,8 @@ * @see Sample code and further information * * @since 3.3 - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class DateTime extends Composite { int day, month, year, hours, minutes, seconds; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Decorations.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Decorations.java index a5c0d23a9d2..c2a9207031b 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Decorations.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Decorations.java @@ -13,6 +13,7 @@ *******************************************************************************/ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.internal.*; @@ -97,8 +98,8 @@ * @see Shell * @see SWT * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class Decorations extends Canvas { String text; Image image; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DirectoryDialog.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DirectoryDialog.java index 71ead22189a..107fc40360c 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DirectoryDialog.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DirectoryDialog.java @@ -17,6 +17,7 @@ import java.io.*; import java.util.*; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.internal.*; import org.eclipse.swt.internal.gtk.*; @@ -39,8 +40,8 @@ * @see DirectoryDialog snippets * @see SWT Example: ControlExample, Dialog tab * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class DirectoryDialog extends Dialog { String message = "", filterPath = ""; static final String SEPARATOR = File.separator; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Display.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Display.java index 169bb178f42..f3a476b4de9 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Display.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Display.java @@ -26,6 +26,7 @@ import java.util.regex.*; import java.util.regex.Pattern; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.internal.*; @@ -112,8 +113,8 @@ * @see Device#dispose * @see Display snippets * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class Display extends Device implements Executor { static boolean strictChecks = System.getProperty("org.eclipse.swt.internal.gtk.enableStrictChecks") != null; @@ -1617,9 +1618,8 @@ long eventProc (long event, long data) { *
  • ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver
  • *
  • ERROR_DEVICE_DISPOSED - if the receiver has been disposed
  • * - * - * @noreference This method is not intended to be referenced by clients. */ +@NoReference("This method is not intended to be referenced by clients.") public Widget findWidget (long handle) { checkDevice (); return getWidget (handle); @@ -1645,10 +1645,9 @@ public Widget findWidget (long handle) { *
  • ERROR_DEVICE_DISPOSED - if the receiver has been disposed
  • * * - * @noreference This method is not intended to be referenced by clients. - * * @since 3.1 */ +@NoReference("This method is not intended to be referenced by clients.") public Widget findWidget (long handle, long id) { checkDevice (); return null; @@ -1669,10 +1668,9 @@ public Widget findWidget (long handle, long id) { *
  • ERROR_DEVICE_DISPOSED - if the receiver has been disposed
  • * * - * @noreference This method is not intended to be referenced by clients. - * * @since 3.3 */ +@NoReference("This method is not intended to be referenced by clients.") public Widget findWidget (Widget widget, long id) { checkDevice (); return null; @@ -3829,9 +3827,8 @@ void initializeSessionManager() { * * @param errorPtr pointer to the GError * @return a String representing the error message that was set - * - * @noreference This method is not intended to be referenced by clients. */ +@NoReference("This method is not intended to be referenced by clients.") public static String extractFreeGError(long errorPtr) { long errorMessageC = OS.g_error_get_message(errorPtr); String errorMessageStr = Converter.cCharPtrToJavaString(errorMessageC, false); @@ -3860,10 +3857,9 @@ void releaseSessionManager() { * * @param hDC the platform specific GC handle * @param data the platform specific GC data - * - * @noreference This method is not intended to be referenced by clients. */ @Override +@NoReference("This method is not intended to be referenced by clients.") public void internal_dispose_GC (long hDC, GCData data) { Cairo.cairo_destroy (hDC); } @@ -3887,10 +3883,9 @@ public void internal_dispose_GC (long hDC, GCData data) { * @exception SWTError
      *
    • ERROR_NO_HANDLES if a handle could not be obtained for gc creation
    • *
    - * - * @noreference This method is not intended to be referenced by clients. */ @Override +@NoReference("This method is not intended to be referenced by clients.") public long internal_new_GC (GCData data) { if (isDisposed()) error(SWT.ERROR_DEVICE_DISPOSED); long gc = 0; @@ -5876,18 +5871,16 @@ void sendPostEvent (int eventType) { /** * Sends a SWT.PreExternalEventDispatch event. - * - * @noreference This method is not intended to be referenced by clients. */ +@NoReference("This method is not intended to be referenced by clients.") public void sendPreExternalEventDispatchEvent () { sendJDKInternalEvent (SWT.PreExternalEventDispatch); } /** * Sends a SWT.PostExternalEventDispatch event. - * - * @noreference This method is not intended to be referenced by clients. */ +@NoReference("This method is not intended to be referenced by clients.") public void sendPostExternalEventDispatchEvent () { sendJDKInternalEvent (SWT.PostExternalEventDispatch); } diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ExpandBar.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ExpandBar.java index 15898650919..c3475d7ab60 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ExpandBar.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ExpandBar.java @@ -13,6 +13,7 @@ *******************************************************************************/ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; @@ -47,8 +48,8 @@ * @see Sample code and further information * * @since 3.2 - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class ExpandBar extends Composite { ExpandItem [] items; ExpandItem lastFocus; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ExpandItem.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ExpandItem.java index 08e611ebee6..b6a3f8480d4 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ExpandItem.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ExpandItem.java @@ -13,6 +13,7 @@ *******************************************************************************/ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.internal.*; @@ -37,8 +38,8 @@ * @see Sample code and further information * * @since 3.2 - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class ExpandItem extends Item { ExpandBar parent; Control control; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/FileDialog.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/FileDialog.java index 958c62e691a..a5810898409 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/FileDialog.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/FileDialog.java @@ -17,6 +17,7 @@ import java.io.*; import java.util.*; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.internal.*; import org.eclipse.swt.internal.gtk.*; @@ -41,8 +42,8 @@ * @see FileDialog snippets * @see SWT Example: ControlExample, Dialog tab * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class FileDialog extends Dialog { String [] filterNames = new String [0]; String [] filterExtensions = new String [0]; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/FontDialog.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/FontDialog.java index 1a26b29ab0a..31be3d0d905 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/FontDialog.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/FontDialog.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.NoExtend; import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.internal.*; @@ -36,8 +37,8 @@ * * @see SWT Example: ControlExample, Dialog tab * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class FontDialog extends Dialog { FontData fontData; RGB rgb; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Group.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Group.java index 7e20a4986a0..45a5ec1b13c 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Group.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Group.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.internal.*; @@ -43,8 +44,8 @@ * * @see SWT Example: ControlExample * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class Group extends Composite { long clientHandle, labelHandle; String text = ""; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/IME.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/IME.java index 1a6facaa40b..9bf92b01eaf 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/IME.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/IME.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.internal.*; @@ -39,8 +40,8 @@ * @see Sample code and further information * * @since 3.4 - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class IME extends Widget { Canvas parent; int caretOffset; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Label.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Label.java index ed2eb59080f..53911de4eaf 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Label.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Label.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.accessibility.*; import org.eclipse.swt.graphics.*; @@ -52,8 +53,8 @@ * @see Label snippets * @see SWT Example: ControlExample * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class Label extends Control { long frameHandle, labelHandle, imageHandle, boxHandle; Image image; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Link.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Link.java index 026138e2fbe..8876a85bf22 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Link.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Link.java @@ -14,6 +14,7 @@ *******************************************************************************/ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.accessibility.*; import org.eclipse.swt.events.*; @@ -42,8 +43,8 @@ * @see Sample code and further information * * @since 3.1 - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class Link extends Control { String text; TextLayout layout; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/List.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/List.java index d67807cdd78..0ec486e87a8 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/List.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/List.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; @@ -41,8 +42,8 @@ * @see List snippets * @see SWT Example: ControlExample * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class List extends Scrollable { long modelHandle; int topIndex; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Menu.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Menu.java index 0ca0eabbfa2..217d48a5fa8 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Menu.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Menu.java @@ -15,6 +15,7 @@ import java.util.*; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; @@ -43,8 +44,8 @@ * @see Menu snippets * @see SWT Example: ControlExample * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class Menu extends Widget { int x, y; boolean hasLocation; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/MenuItem.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/MenuItem.java index 17d7c6860a7..c913c71e6b4 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/MenuItem.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/MenuItem.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; @@ -40,8 +41,8 @@ *

    * * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class MenuItem extends Item { Menu parent, menu; long groupHandle, labelHandle, imageHandle; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/MessageBox.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/MessageBox.java index 503859d4f56..2b826958f01 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/MessageBox.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/MessageBox.java @@ -16,6 +16,7 @@ import java.util.*; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.internal.*; import org.eclipse.swt.internal.gtk.*; @@ -43,8 +44,8 @@ * * @see SWT Example: ControlExample, Dialog tab * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class MessageBox extends Dialog { String message = ""; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ProgressBar.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ProgressBar.java index 90883931bba..5d65f741b55 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ProgressBar.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ProgressBar.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.internal.gtk.*; @@ -38,8 +39,8 @@ * @see ProgressBar snippets * @see SWT Example: ControlExample * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class ProgressBar extends Control { int timerId, minimum = 0, maximum = 100, selection = 0; static final int DELAY = 100; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Sash.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Sash.java index 33cc1c8365e..9525577f85c 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Sash.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Sash.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; @@ -41,8 +42,8 @@ * @see Sash snippets * @see SWT Example: ControlExample * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class Sash extends Control { boolean dragging; int startX, startY, lastX, lastY; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Scale.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Scale.java index bc6af88beb7..d4c1f2c8b55 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Scale.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Scale.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; @@ -40,8 +41,8 @@ * @see Scale snippets * @see SWT Example: ControlExample * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class Scale extends Control { /** diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ScrollBar.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ScrollBar.java index 187e2bfa610..b7654c4ba69 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ScrollBar.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ScrollBar.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; @@ -87,8 +88,8 @@ * @see Scrollable#getVerticalBar * @see SWT Example: ControlExample * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class ScrollBar extends Widget { Scrollable parent; long adjustmentHandle; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Scrollable.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Scrollable.java index 0157962e686..3f856403b1f 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Scrollable.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Scrollable.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.internal.*; @@ -36,8 +37,8 @@ *

    * * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public abstract class Scrollable extends Control { long scrolledHandle; ScrollBar horizontalBar, verticalBar; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java index 3843e20124c..6c67ba28322 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; @@ -121,8 +122,8 @@ * @see Shell snippets * @see SWT Example: ControlExample * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class Shell extends Decorations { long shellHandle, tooltipsHandle, tooltipWindow, group, modalGroup; boolean mapped, moved, resized, opened, fullScreen, showWithParent, modified, center; @@ -393,9 +394,8 @@ public Shell (Shell parent, int style) { * @param display the display for the shell * @param handle the handle for the shell * @return a new shell object containing the specified display and handle - * - * @noreference This method is not intended to be referenced by clients. */ +@NoReference("This method is not intended to be referenced by clients.") public static Shell gtk_new (Display display, long handle) { return new Shell (display, null, SWT.NO_TRIM, handle, true); } @@ -415,10 +415,9 @@ public static Shell gtk_new (Display display, long handle) { * @param handle the handle for the shell * @return a new shell object containing the specified display and handle * - * @noreference This method is not intended to be referenced by clients. - * * @since 3.3 */ +@NoReference("This method is not intended to be referenced by clients.") public static Shell internal_new (Display display, long handle) { return new Shell (display, null, SWT.NO_TRIM, handle, false); } diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Slider.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Slider.java index 1897b74493c..78518e14693 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Slider.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Slider.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; @@ -73,8 +74,8 @@ * @see Slider snippets * @see SWT Example: ControlExample * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class Slider extends Control { /** diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Spinner.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Spinner.java index dd4031d3720..6b51d5deff4 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Spinner.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Spinner.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; @@ -45,8 +46,8 @@ * @see Sample code and further information * * @since 3.1 - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class Spinner extends Composite { static final int MIN_ARROW_WIDTH = 6; int lastEventTime = 0; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TabFolder.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TabFolder.java index 77cb971b160..7ed059c4978 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TabFolder.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TabFolder.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; @@ -50,8 +51,8 @@ * @see TabFolder, TabItem snippets * @see SWT Example: ControlExample * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class TabFolder extends Composite { /* * Implementation note (see bug 454936, bug 480794): diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TabItem.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TabItem.java index 64479c09e02..0a5bec4edab 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TabItem.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TabItem.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.internal.*; @@ -36,8 +37,8 @@ * * @see TabFolder, TabItem snippets * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class TabItem extends Item { long labelHandle, imageHandle, pageHandle; long cssProvider; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Table.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Table.java index bc3fedc5f92..3509b45de77 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Table.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Table.java @@ -15,6 +15,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; @@ -72,8 +73,8 @@ * @see Table, TableItem, TableColumn snippets * @see SWT Example: ControlExample * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class Table extends Composite { long modelHandle, checkRenderer; int itemCount, columnCount, lastIndexOf, sortDirection; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TableColumn.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TableColumn.java index 8fbaec89777..228df54f64a 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TableColumn.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TableColumn.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; @@ -38,8 +39,8 @@ * * @see Table, TableItem, TableColumn snippets * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class TableColumn extends Item { long headerButtonCSSProvider = 0; long labelHandle, imageHandle, buttonHandle; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TableItem.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TableItem.java index 92af154acff..e08440969e2 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TableItem.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TableItem.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.internal.*; @@ -37,8 +38,8 @@ * * @see Table, TableItem, TableColumn snippets * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class TableItem extends Item { Table parent; Font font; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Text.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Text.java index c6f99130fed..f85f18cee7e 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Text.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Text.java @@ -16,6 +16,7 @@ import java.util.*; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; @@ -62,8 +63,8 @@ * @see Text snippets * @see SWT Example: ControlExample * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class Text extends Scrollable { long bufferHandle; long imContext; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolBar.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolBar.java index be019ea0d78..ac7189c6b95 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolBar.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolBar.java @@ -16,6 +16,7 @@ import java.util.*; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.internal.*; @@ -49,8 +50,8 @@ * @see ToolBar, ToolItem snippets * @see SWT Example: ControlExample * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class ToolBar extends Composite { ToolItem currentFocusItem; ToolItem [] tabItemList; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java index cd970973ab9..7a63c301fce 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java @@ -17,6 +17,7 @@ import java.util.*; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; @@ -43,8 +44,8 @@ * * @see ToolBar, ToolItem snippets * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class ToolItem extends Item { long arrowHandle, labelHandle, imageHandle; long eventHandle, proxyMenuItem, provider; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolTip.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolTip.java index 9f467287625..a1bc2ec83a4 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolTip.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolTip.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; @@ -44,8 +45,8 @@ * @see Sample code and further information * * @since 3.2 - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class ToolTip extends Widget { Shell parent; String text, message; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tracker.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tracker.java index d2d967f0a62..b7e7d90fd1a 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tracker.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tracker.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; @@ -44,8 +45,8 @@ * * @see Tracker snippets * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class Tracker extends Widget { Composite parent; Cursor cursor; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TrayItem.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TrayItem.java index a2fd985e199..665bc409c8c 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TrayItem.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TrayItem.java @@ -13,6 +13,7 @@ *******************************************************************************/ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; @@ -37,8 +38,8 @@ * @see Sample code and further information * * @since 3.0 - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class TrayItem extends Item { Tray parent; ToolTip toolTip; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tree.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tree.java index 4dfa8df4ba1..8d210a71d9e 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tree.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tree.java @@ -16,6 +16,7 @@ import java.util.*; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; @@ -80,8 +81,8 @@ * @see Tree, TreeItem, TreeColumn snippets * @see SWT Example: ControlExample * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class Tree extends Composite { long modelHandle, checkRenderer; int columnCount, sortDirection; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeColumn.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeColumn.java index 6208ef498a2..06248d00262 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeColumn.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeColumn.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; @@ -40,8 +41,8 @@ * @see Sample code and further information * * @since 3.1 - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class TreeColumn extends Item { long headerButtonCSSProvider = 0; long labelHandle, imageHandle, buttonHandle; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeItem.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeItem.java index 15ca6fd4ec3..2000ef36fc9 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeItem.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeItem.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.internal.*; @@ -37,8 +38,8 @@ * * @see Tree, TreeItem, TreeColumn snippets * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class TreeItem extends Item { Tree parent; Font font; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java index e4c5612fa5b..50904b9668a 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java @@ -16,6 +16,7 @@ import java.util.*; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; @@ -62,8 +63,8 @@ public abstract class Widget { * platforms and should never be accessed from application code. *

    * - * @noreference This field is not intended to be referenced by clients. */ + @NoReference("This field is not intended to be referenced by clients.") public long handle; int style, state; Display display; @@ -1432,10 +1433,9 @@ public void removeListener (int eventType, Listener listener) { * * @see Listener * @see #addListener - * - * @noreference This method is not intended to be referenced by clients. - * @nooverride This method is not intended to be re-implemented or extended by clients. */ +@NoReference("This method is not intended to be referenced by clients.") +@NoOverride("This method is not intended to be re-implemented or extended by clients.") protected void removeListener (int eventType, EventListener handler) { checkWidget (); if (handler == null) error (SWT.ERROR_NULL_ARGUMENT); diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Color.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Color.java index f9547d512ba..380e0d86459 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Color.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Color.java @@ -14,6 +14,7 @@ package org.eclipse.swt.graphics; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; /** @@ -44,9 +45,8 @@ public final class Color extends Resource { * within the packages provided by SWT. It is not available on all * platforms and should never be accessed from application code. *

    - * - * @noreference This field is not intended to be referenced by clients. */ + @NoReference("This field is not intended to be referenced by clients.") public int handle; int alpha = 255; @@ -517,9 +517,8 @@ public String toString () { * @param device the device on which to allocate the color * @param handle the handle for the color * @return a new color object containing the specified device and handle - * - * @noreference This method is not intended to be referenced by clients. */ +@NoReference("This method is not intended to be referenced by clients.") public static Color win32_new(Device device, int handle) { return win32_new(device, handle, 255); } @@ -538,9 +537,8 @@ public static Color win32_new(Device device, int handle) { * @param handle the handle for the color * @param alpha the int for the alpha content in the color * @return a new color object containing the specified device and handle - * - * @noreference This method is not intended to be referenced by clients. */ +@NoReference("This method is not intended to be referenced by clients.") public static Color win32_new(Device device, int handle, int alpha) { Color color = new Color(device); color.handle = handle; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Cursor.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Cursor.java index d742fc314bb..dba6919fc82 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Cursor.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Cursor.java @@ -14,6 +14,7 @@ package org.eclipse.swt.graphics; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.internal.win32.*; @@ -55,9 +56,8 @@ public final class Cursor extends Resource { * within the packages provided by SWT. It is not available on all * platforms and should never be accessed from application code. *

    - * - * @noreference This field is not intended to be referenced by clients. */ + @NoReference("This field is not intended to be referenced by clients.") public long handle; boolean isIcon; @@ -423,9 +423,8 @@ public String toString () { * @param device the device on which to allocate the color * @param handle the handle for the cursor * @return a new cursor object containing the specified device and handle - * - * @noreference This method is not intended to be referenced by clients. */ +@NoReference("This method is not intended to be referenced by clients.") public static Cursor win32_new(Device device, int handle) { Cursor cursor = new Cursor(device); cursor.handle = handle; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Device.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Device.java index a3cc4f554a1..2a8022ffdba 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Device.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Device.java @@ -14,6 +14,7 @@ package org.eclipse.swt.graphics; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.internal.*; import org.eclipse.swt.internal.gdip.*; @@ -731,10 +732,9 @@ protected void init () { * * @param data the platform specific GC data * @return the platform specific GC handle - * - * @noreference This method is not intended to be referenced by clients. */ @Override +@NoReference("This method is not intended to be referenced by clients.") public abstract long internal_new_GC (GCData data); /** @@ -749,10 +749,9 @@ protected void init () { * * @param hDC the platform specific GC handle * @param data the platform specific GC data - * - * @noreference This method is not intended to be referenced by clients. */ @Override +@NoReference("This method is not intended to be referenced by clients.") public abstract void /*long*/ internal_dispose_GC (long hDC, GCData data); /** @@ -939,10 +938,10 @@ void setEnableAutoScaling(boolean value) { * Gets the scaling factor from the device and calculates the zoom level. * @return zoom in percentage * - * @noreference This method is not intended to be referenced by clients. - * @nooverride This method is not intended to be re-implemented or extended by clients. * @since 3.105 */ +@NoReference("This method is not intended to be referenced by clients.") +@NoOverride("This method is not intended to be re-implemented or extended by clients.") protected int getDeviceZoom () { return DPIUtil.mapDPIToZoom ( _getDPIx ()); } diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Font.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Font.java index 63492501df4..3d0e97f9aea 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Font.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Font.java @@ -14,6 +14,7 @@ package org.eclipse.swt.graphics; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.internal.win32.*; @@ -44,9 +45,8 @@ public final class Font extends Resource { * within the packages provided by SWT. It is not available on all * platforms and should never be accessed from application code. *

    - * - * @noreference This field is not intended to be referenced by clients. */ + @NoReference("This field is not intended to be referenced by clients.") public long handle; /** @@ -263,9 +263,8 @@ public String toString () { * @param device the device on which to allocate the color * @param handle the handle for the font * @return a new font object containing the specified device and handle - * - * @noreference This method is not intended to be referenced by clients. */ +@NoReference("This method is not intended to be referenced by clients.") public static Font win32_new(Device device, long handle) { Font font = new Font(device); font.handle = handle; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/FontData.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/FontData.java index 247842e13d9..882f2ddd1f9 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/FontData.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/FontData.java @@ -14,6 +14,7 @@ package org.eclipse.swt.graphics; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.internal.*; import org.eclipse.swt.internal.win32.*; @@ -54,9 +55,8 @@ public final class FontData { * within the packages provided by SWT. It is not available on all * platforms and should never be accessed from application code. *

    - * - * @noreference This field is not intended to be referenced by clients. */ + @NoReference("This field is not intended to be referenced by clients.") public LOGFONT data; /** @@ -68,9 +68,8 @@ public final class FontData { * within the packages provided by SWT. It is not available on all * platforms and should never be accessed from application code. *

    - * - * @noreference This field is not intended to be referenced by clients. */ + @NoReference("This field is not intended to be referenced by clients.") public float height; /** @@ -649,9 +648,8 @@ public String toString() { * @param data the LOGFONT for the font data * @param height the height of the font data * @return a new font data object containing the specified LOGFONT and height - * - * @noreference This method is not intended to be referenced by clients. */ +@NoReference("This method is not intended to be referenced by clients.") public static FontData win32_new(LOGFONT data, float height) { return new FontData(data, height); } diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/FontMetrics.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/FontMetrics.java index debee632946..dd5ac8b0501 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/FontMetrics.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/FontMetrics.java @@ -14,6 +14,7 @@ package org.eclipse.swt.graphics; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.internal.*; import org.eclipse.swt.internal.win32.*; @@ -39,8 +40,8 @@ public final class FontMetrics { * platforms and should never be accessed from application code. *

    * - * @noreference This field is not intended to be referenced by clients. */ + @NoReference("This field is not intended to be referenced by clients.") public TEXTMETRIC handle; /** @@ -206,8 +207,8 @@ public int hashCode() { * @param handle the TEXTMETRIC containing information about a font * @return a new font metrics object containing the specified TEXTMETRIC * - * @noreference This method is not intended to be referenced by clients. */ + @NoReference("This method is not intended to be referenced by clients.") public static FontMetrics win32_new(TEXTMETRIC handle) { FontMetrics fontMetrics = new FontMetrics(); fontMetrics.handle = handle; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java index baa5273ea5f..5b0603d7224 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java @@ -14,6 +14,7 @@ package org.eclipse.swt.graphics; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.internal.*; import org.eclipse.swt.internal.gdip.*; @@ -70,9 +71,8 @@ public final class GC extends Resource { * within the packages provided by SWT. It is not available on all * platforms and should never be accessed from application code. *

    - * - * @noreference This field is not intended to be referenced by clients. */ + @NoReference("This field is not intended to be referenced by clients.") public long handle; Drawable drawable; @@ -3526,10 +3526,9 @@ public Pattern getForegroundPattern() { * * @see GCData * - * @noreference This method is not intended to be referenced by clients. - * * @since 3.2 */ +@NoReference("This method is not intended to be referenced by clients.") public GCData getGCData() { if (handle == 0) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED); return data; @@ -5053,9 +5052,8 @@ public String toString () { * @param data the data for the receiver. * * @return a new GC - * - * @noreference This method is not intended to be referenced by clients. */ +@NoReference("This method is not intended to be referenced by clients.") public static GC win32_new(Drawable drawable, GCData data) { GC gc = new GC(); long hDC = drawable.internal_new_GC(data); @@ -5078,9 +5076,8 @@ public static GC win32_new(Drawable drawable, GCData data) { * @param data the data for the receiver. * * @return a new GC - * - * @noreference This method is not intended to be referenced by clients. */ +@NoReference("This method is not intended to be referenced by clients.") public static GC win32_new(long hDC, GCData data) { GC gc = new GC(); gc.device = data.device; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GCData.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GCData.java index fa177db2c83..a9a1e7c83c0 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GCData.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GCData.java @@ -14,6 +14,7 @@ package org.eclipse.swt.graphics; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.internal.win32.*; @@ -27,8 +28,8 @@ * platforms, and should never be called from application code. *

    * @see Sample code and further information - * @noreference This class is not intended to be referenced by clients */ +@NoReference("This class is not intended to be referenced by clients") public final class GCData { public Device device; public int style, state = -1; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Image.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Image.java index 29573d09907..ede931c3b4a 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Image.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Image.java @@ -16,6 +16,7 @@ import java.io.*; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.internal.*; import org.eclipse.swt.internal.DPIUtil.*; @@ -83,9 +84,8 @@ public final class Image extends Resource implements Drawable { * within the packages provided by SWT. It is not available on all * platforms and should never be accessed from application code. *

    - * - * @noreference This field is not intended to be referenced by clients. */ + @NoReference("This field is not intended to be referenced by clients.") public int type; /** @@ -97,9 +97,8 @@ public final class Image extends Resource implements Drawable { * within the packages provided by SWT. It is not available on all * platforms and should never be accessed from application code. *

    - * - * @noreference This field is not intended to be referenced by clients. */ + @NoReference("This field is not intended to be referenced by clients.") public long handle; /** @@ -2067,10 +2066,9 @@ void init(ImageData i) { * * @param data the platform specific GC data * @return the platform specific GC handle - * - * @noreference This method is not intended to be referenced by clients. */ @Override +@NoReference("This method is not intended to be referenced by clients.") public long internal_new_GC (GCData data) { if (handle == 0) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED); /* @@ -2114,10 +2112,9 @@ public long internal_new_GC (GCData data) { * * @param hDC the platform specific GC handle * @param data the platform specific GC data - * - * @noreference This method is not intended to be referenced by clients. */ @Override +@NoReference("This method is not intended to be referenced by clients.") public void internal_dispose_GC (long hDC, GCData data) { OS.DeleteDC(hDC); } @@ -2226,9 +2223,8 @@ public String toString () { * @param type the type of the image (SWT.BITMAP or SWT.ICON) * @param handle the OS handle for the image * @return a new image object containing the specified device, type and handle - * - * @noreference This method is not intended to be referenced by clients. */ +@NoReference("This method is not intended to be referenced by clients.") public static Image win32_new(Device device, int type, long handle) { Image image = new Image(device); image.type = type; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Path.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Path.java index 09d50d0766e..04163e60786 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Path.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Path.java @@ -13,6 +13,7 @@ *******************************************************************************/ package org.eclipse.swt.graphics; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.internal.*; import org.eclipse.swt.internal.gdip.*; @@ -50,9 +51,8 @@ public class Path extends Resource { * within the packages provided by SWT. It is not available on all * platforms and should never be accessed from application code. *

    - * - * @noreference This field is not intended to be referenced by clients. */ + @NoReference("This field is not intended to be referenced by clients.") public long handle; PointF currentPoint = new PointF(), startPoint = new PointF(); diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Pattern.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Pattern.java index 38a9eb8629a..367880673da 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Pattern.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Pattern.java @@ -13,6 +13,7 @@ *******************************************************************************/ package org.eclipse.swt.graphics; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.internal.*; import org.eclipse.swt.internal.gdip.*; @@ -48,9 +49,8 @@ public class Pattern extends Resource { * within the packages provided by SWT. It is not available on all * platforms and should never be accessed from application code. *

    - * - * @noreference This field is not intended to be referenced by clients. */ + @NoReference("This field is not intended to be referenced by clients.") public long handle; private Runnable bitmapDestructor; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Region.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Region.java index 4cdea1cd0c8..a8c658dc429 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Region.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Region.java @@ -14,6 +14,7 @@ package org.eclipse.swt.graphics; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.internal.*; import org.eclipse.swt.internal.win32.*; @@ -42,9 +43,8 @@ public final class Region extends Resource { * within the packages provided by SWT. It is not available on all * platforms and should never be accessed from application code. *

    - * - * @noreference This field is not intended to be referenced by clients. */ + @NoReference("This field is not intended to be referenced by clients.") public long handle; /** @@ -643,9 +643,8 @@ public String toString () { * @param device the device on which to allocate the region * @param handle the handle for the region * @return a new region object containing the specified device and handle - * - * @noreference This method is not intended to be referenced by clients. */ +@NoReference("This method is not intended to be referenced by clients.") public static Region win32_new(Device device, int handle) { return new Region(device, handle); } diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/TextLayout.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/TextLayout.java index 0805a5a21b7..454285f65d8 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/TextLayout.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/TextLayout.java @@ -15,6 +15,7 @@ import java.util.*; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.internal.*; import org.eclipse.swt.internal.gdip.*; @@ -4013,11 +4014,10 @@ int untranslateOffset(int offset) { *
  • ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed
  • * * - * @noreference This method is not intended to be referenced by clients. - * * DO NOT USE This might be removed in 4.8 * @since 3.107 */ +@NoReference("This method is not intended to be referenced by clients.") public void setDefaultTabWidth(int tabLength) { // unused in win32 } diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Transform.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Transform.java index f1294d59f22..818ffbab87f 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Transform.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Transform.java @@ -13,6 +13,7 @@ *******************************************************************************/ package org.eclipse.swt.graphics; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.internal.*; import org.eclipse.swt.internal.gdip.*; @@ -46,9 +47,8 @@ public class Transform extends Resource { * within the packages provided by SWT. It is not available on all * platforms and should never be accessed from application code. *

    - * - * @noreference This field is not intended to be referenced by clients. */ + @NoReference("This field is not intended to be referenced by clients.") public long handle; /** @@ -147,7 +147,7 @@ public Transform(Device device, float[] elements) { public Transform (Device device, float m11, float m12, float m21, float m22, float dx, float dy) { super(device); this.device.checkGDIP(); - handle = Gdip.Matrix_new(m11, m12, m21, m22, + handle = Gdip.Matrix_new(m11, m12, m21, m22, DPIUtil.autoScaleUp(this.device, dx), DPIUtil.autoScaleUp(this.device, dy)); if (handle == 0) SWT.error(SWT.ERROR_NO_HANDLES); init(); @@ -318,7 +318,7 @@ public void scale(float scaleX, float scaleY) { public void setElements(float m11, float m12, float m21, float m22, float dx, float dy) { if (isDisposed()) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED); Drawable drawable = getDevice(); - Gdip.Matrix_SetElements(handle, m11, m12, m21, m22, + Gdip.Matrix_SetElements(handle, m11, m12, m21, m22, DPIUtil.autoScaleUp(drawable, dx), DPIUtil.autoScaleUp(drawable, dy)); } diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Button.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Button.java index ba4db6517d0..c7f2920bde4 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Button.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Button.java @@ -15,6 +15,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; @@ -46,8 +47,8 @@ * @see Button snippets * @see SWT Example: ControlExample * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class Button extends Control { String text = "", message = ""; Image image, disabledImage; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Caret.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Caret.java index 5b5342b9404..9e725445130 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Caret.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Caret.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.internal.*; @@ -35,8 +36,8 @@ * @see Caret snippets * @see SWT Example: ControlExample, Canvas tab * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class Caret extends Widget { /** The Caret last updated on the OS-level */ private static Caret currentCaret; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ColorDialog.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ColorDialog.java index 77f74229040..3098f6ff5cc 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ColorDialog.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ColorDialog.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.internal.*; @@ -34,8 +35,8 @@ * * @see SWT Example: ControlExample, Dialog tab * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class ColorDialog extends Dialog { static final int CUSTOM_COLOR_COUNT = 16; // from the MS spec for CHOOSECOLOR.lpCustColors RGB rgb; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Combo.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Combo.java index fc7f4879b94..9fd2d6b8253 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Combo.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Combo.java @@ -15,6 +15,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; @@ -58,8 +59,8 @@ * @see Combo snippets * @see SWT Example: ControlExample * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class Combo extends Composite { boolean noSelection, ignoreDefaultSelection, ignoreCharacter, ignoreModify, ignoreResize, lockText; int scrollWidth, visibleCount; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java index aadf4d6c8eb..3e998f5d3a0 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java @@ -17,6 +17,7 @@ import java.util.*; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.accessibility.*; import org.eclipse.swt.events.*; @@ -46,8 +47,8 @@ * @see Control snippets * @see SWT Example: ControlExample * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public abstract class Control extends Widget implements Drawable { /** @@ -59,9 +60,8 @@ public abstract class Control extends Widget implements Drawable { * within the packages provided by SWT. It is not available on all * platforms and should never be accessed from application code. *

    - * - * @noreference This field is not intended to be referenced by clients. */ + @NoReference("This field is not intended to be referenced by clients.") public long handle; Composite parent; Cursor cursor; @@ -1757,10 +1757,9 @@ boolean hasFocus () { * * @param data the platform specific GC data * @return the platform specific GC handle - * - * @noreference This method is not intended to be referenced by clients. */ @Override +@NoReference("This method is not intended to be referenced by clients.") public long internal_new_GC (GCData data) { checkWidget(); long hwnd = handle; @@ -1810,10 +1809,9 @@ public long internal_new_GC (GCData data) { * * @param hDC the platform specific GC handle * @param data the platform specific GC data - * - * @noreference This method is not intended to be referenced by clients. */ @Override +@NoReference("This method is not intended to be referenced by clients.") public void internal_dispose_GC (long hDC, GCData data) { checkWidget (); long hwnd = handle; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/CoolBar.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/CoolBar.java index ec12e6c5043..7ed0868fd99 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/CoolBar.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/CoolBar.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.internal.*; @@ -45,8 +46,8 @@ * @see CoolBar snippets * @see SWT Example: ControlExample * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class CoolBar extends Composite { CoolItem [] items; CoolItem [] originalItems; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/CoolItem.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/CoolItem.java index 52e6a2cc7a9..f41d8560510 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/CoolItem.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/CoolItem.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; @@ -35,8 +36,8 @@ *

    * * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class CoolItem extends Item { CoolBar parent; Control control; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/DateTime.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/DateTime.java index 1b45d44cf0f..87bbae9bf23 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/DateTime.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/DateTime.java @@ -13,6 +13,7 @@ *******************************************************************************/ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; @@ -45,8 +46,8 @@ * @see Sample code and further information * * @since 3.3 - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class DateTime extends Composite { static final int MIN_YEAR = 1752; // Gregorian switchover in North America: September 19, 1752 static final int MAX_YEAR = 9999; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Decorations.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Decorations.java index fc31029f76b..fcac44dc47c 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Decorations.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Decorations.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.internal.*; @@ -96,8 +97,8 @@ * @see Shell * @see SWT * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class Decorations extends Canvas { Image image, smallImage, largeImage; Image [] images; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/DirectoryDialog.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/DirectoryDialog.java index 13701b11236..130b2703c8a 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/DirectoryDialog.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/DirectoryDialog.java @@ -17,6 +17,7 @@ import java.util.*; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.internal.ole.win32.*; import org.eclipse.swt.internal.win32.*; @@ -37,8 +38,8 @@ * @see DirectoryDialog snippets * @see SWT Example: ControlExample, Dialog tab * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class DirectoryDialog extends Dialog { String message = "", filterPath = ""; //$NON-NLS-1$//$NON-NLS-2$ String directoryPath; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Display.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Display.java index 9fb96b8ebb5..84c669021c9 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Display.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Display.java @@ -20,6 +20,7 @@ import java.util.concurrent.atomic.*; import java.util.function.*; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.internal.*; @@ -103,8 +104,8 @@ * @see Device#dispose * @see Display snippets * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class Display extends Device implements Executor { /** @@ -116,9 +117,8 @@ public class Display extends Device implements Executor { * within the packages provided by SWT. It is not available on all * platforms and should never be accessed from application code. *

    - * - * @noreference This field is not intended to be referenced by clients. */ + @NoReference("This field is not intended to be referenced by clients.") public MSG msg = new MSG (); static String APP_NAME = "SWT"; //$NON-NLS-1$ @@ -1341,9 +1341,8 @@ Control findControl (long handle) { *
  • ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver
  • *
  • ERROR_DEVICE_DISPOSED - if the receiver has been disposed
  • * - * - * @noreference This method is not intended to be referenced by clients. */ +@NoReference("This method is not intended to be referenced by clients.") public Widget findWidget (long handle) { checkDevice (); return getControl (handle); @@ -1369,10 +1368,9 @@ public Widget findWidget (long handle) { *
  • ERROR_DEVICE_DISPOSED - if the receiver has been disposed
  • * * - * @noreference This method is not intended to be referenced by clients. - * * @since 3.1 */ +@NoReference("This method is not intended to be referenced by clients.") public Widget findWidget (long handle, long id) { checkDevice (); Control control = getControl (handle); @@ -1394,10 +1392,9 @@ public Widget findWidget (long handle, long id) { *
  • ERROR_DEVICE_DISPOSED - if the receiver has been disposed
  • * * - * @noreference This method is not intended to be referenced by clients. - * * @since 3.3 */ +@NoReference("This method is not intended to be referenced by clients.") public Widget findWidget (Widget widget, long id) { checkDevice (); if (widget instanceof Control) { @@ -2720,10 +2717,9 @@ void resetThemes() { * @exception SWTError
      *
    • ERROR_NO_HANDLES if a handle could not be obtained for gc creation
    • *
    - * - * @noreference This method is not intended to be referenced by clients. */ @Override +@NoReference("This method is not intended to be referenced by clients.") public long internal_new_GC (GCData data) { if (isDisposed()) error(SWT.ERROR_DEVICE_DISPOSED); long hDC = OS.GetDC (0); @@ -2867,10 +2863,9 @@ protected void init () { * * @param hDC the platform specific GC handle * @param data the platform specific GC data - * - * @noreference This method is not intended to be referenced by clients. */ @Override +@NoReference("This method is not intended to be referenced by clients.") public void internal_dispose_GC (long hDC, GCData data) { OS.ReleaseDC (0, hDC); } @@ -4295,18 +4290,16 @@ void sendPostEvent (int eventType) { /** * Sends a SWT.PreExternalEventDispatch event. - * - * @noreference This method is not intended to be referenced by clients. */ +@NoReference("This method is not intended to be referenced by clients.") public void sendPreExternalEventDispatchEvent () { sendJDKInternalEvent (SWT.PreExternalEventDispatch); } /** * Sends a SWT.PostExternalEventDispatch event. - * - * @noreference This method is not intended to be referenced by clients. */ +@NoReference("This method is not intended to be referenced by clients.") public void sendPostExternalEventDispatchEvent () { sendJDKInternalEvent (SWT.PostExternalEventDispatch); } diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ExpandBar.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ExpandBar.java index d32e364b81b..f0906f163eb 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ExpandBar.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ExpandBar.java @@ -13,6 +13,7 @@ *******************************************************************************/ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; @@ -45,8 +46,8 @@ * @see Sample code and further information * * @since 3.2 - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class ExpandBar extends Composite { ExpandItem[] items; int itemCount; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ExpandItem.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ExpandItem.java index a092e41093d..45fa4c24ed2 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ExpandItem.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ExpandItem.java @@ -13,6 +13,7 @@ *******************************************************************************/ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.internal.*; @@ -35,8 +36,8 @@ * @see Sample code and further information * * @since 3.2 - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class ExpandItem extends Item { ExpandBar parent; Control control; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/FileDialog.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/FileDialog.java index 40527b58430..b10253792cf 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/FileDialog.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/FileDialog.java @@ -16,6 +16,7 @@ import java.nio.file.*; import java.util.*; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.internal.ole.win32.*; import org.eclipse.swt.internal.win32.*; @@ -38,8 +39,8 @@ * @see FileDialog snippets * @see SWT Example: ControlExample, Dialog tab * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class FileDialog extends Dialog { String [] filterNames = new String [0]; String [] filterExtensions = new String [0]; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/FontDialog.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/FontDialog.java index 10598c0a1b5..16b2e22a84f 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/FontDialog.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/FontDialog.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.internal.win32.*; @@ -33,8 +34,8 @@ * * @see SWT Example: ControlExample, Dialog tab * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class FontDialog extends Dialog { FontData fontData; RGB rgb; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Group.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Group.java index 0277d353dec..72d2d77ea30 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Group.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Group.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.internal.*; @@ -41,8 +42,8 @@ * * @see SWT Example: ControlExample * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class Group extends Composite { String text = ""; static final int CLIENT_INSET = 3; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/IME.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/IME.java index f6b7f858183..5080ee53637 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/IME.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/IME.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.internal.ole.win32.*; @@ -38,8 +39,8 @@ * @see Sample code and further information * * @since 3.4 - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class IME extends Widget { Canvas parent; int caretOffset; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Label.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Label.java index af95d89e38d..52f6c7c54dd 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Label.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Label.java @@ -15,6 +15,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.internal.*; @@ -50,8 +51,8 @@ * @see Label snippets * @see SWT Example: ControlExample * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class Label extends Control { String text = ""; Image image; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Link.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Link.java index 6bf7cd3bf33..d73900fe55d 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Link.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Link.java @@ -16,6 +16,7 @@ import java.util.*; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.accessibility.*; import org.eclipse.swt.events.*; @@ -42,8 +43,8 @@ * @see Sample code and further information * * @since 3.1 - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class Link extends Control { String text; int linkForeground = -1; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/List.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/List.java index 5de5feaeb3f..15806b057d3 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/List.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/List.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; @@ -39,8 +40,8 @@ * @see List snippets * @see SWT Example: ControlExample * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class List extends Scrollable { static final int INSET = 3; static final long ListProc; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Menu.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Menu.java index 8bb55eb1c6a..0913f125b62 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Menu.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Menu.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; @@ -40,8 +41,8 @@ * @see Menu snippets * @see SWT Example: ControlExample * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class Menu extends Widget { /** * the handle to the OS resource @@ -52,9 +53,8 @@ public class Menu extends Widget { * within the packages provided by SWT. It is not available on all * platforms and should never be accessed from application code. *

    - * - * @noreference This field is not intended to be referenced by clients. */ + @NoReference("This field is not intended to be referenced by clients.") public long handle; int x, y; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/MenuItem.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/MenuItem.java index f06b704655a..5270de949f3 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/MenuItem.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/MenuItem.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; @@ -37,8 +38,8 @@ *

    * * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class MenuItem extends Item { Menu parent, menu; long hBitmap; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/MessageBox.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/MessageBox.java index d596cd10c7c..1c4ef53a1da 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/MessageBox.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/MessageBox.java @@ -16,6 +16,7 @@ import java.util.*; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.internal.*; import org.eclipse.swt.internal.win32.*; @@ -41,8 +42,8 @@ * * @see SWT Example: ControlExample, Dialog tab * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class MessageBox extends Dialog { String message = ""; private long cbtHook; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ProgressBar.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ProgressBar.java index 88124e9178b..fb841b22238 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ProgressBar.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ProgressBar.java @@ -14,9 +14,10 @@ package org.eclipse.swt.widgets; -import org.eclipse.swt.internal.win32.*; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; +import org.eclipse.swt.internal.win32.*; /** * Instances of the receiver represent an unselectable @@ -37,8 +38,8 @@ * @see ProgressBar snippets * @see SWT Example: ControlExample * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class ProgressBar extends Control { static final int DELAY = 100; static final int TIMER_ID = 100; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Sash.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Sash.java index 59eb302b268..cef597a55ed 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Sash.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Sash.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; @@ -38,8 +39,8 @@ * @see Sash snippets * @see SWT Example: ControlExample * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class Sash extends Control { boolean dragging; int startX, startY, lastX, lastY; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Scale.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Scale.java index 65d41a87af3..d68ae1de005 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Scale.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Scale.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; @@ -39,8 +40,8 @@ * @see Scale snippets * @see SWT Example: ControlExample * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class Scale extends Control { boolean ignoreResize, ignoreSelection; static final long TrackBarProc; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ScrollBar.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ScrollBar.java index 347214f2c97..225edd3e9e1 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ScrollBar.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ScrollBar.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; @@ -85,8 +86,8 @@ * @see Scrollable#getVerticalBar * @see SWT Example: ControlExample * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class ScrollBar extends Widget { Scrollable parent; int increment, pageIncrement; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Scrollable.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Scrollable.java index 2b28e5aee3c..47bcd96dee2 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Scrollable.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Scrollable.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.internal.*; @@ -34,8 +35,8 @@ *

    * * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public abstract class Scrollable extends Control { ScrollBar horizontalBar, verticalBar; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Shell.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Shell.java index cb96a2cbd91..7d8604f4bea 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Shell.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Shell.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; @@ -118,8 +119,8 @@ * @see Shell snippets * @see SWT Example: ControlExample * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class Shell extends Decorations { Menu activeMenu; ToolTip [] toolTips; @@ -395,9 +396,8 @@ public Shell (Shell parent, int style) { * @param display the display for the shell * @param handle the handle for the shell * @return a new shell object containing the specified display and handle - * - * @noreference This method is not intended to be referenced by clients. */ +@NoReference("This method is not intended to be referenced by clients.") public static Shell win32_new (Display display, long handle) { return new Shell (display, null, SWT.NO_TRIM, handle, true); } @@ -417,10 +417,9 @@ public static Shell win32_new (Display display, long handle) { * @param handle the handle for the shell * @return a new shell object containing the specified display and handle * - * @noreference This method is not intended to be referenced by clients. - * * @since 3.3 */ +@NoReference("This method is not intended to be referenced by clients.") public static Shell internal_new (Display display, long handle) { return new Shell (display, null, SWT.NO_TRIM, handle, false); } diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Slider.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Slider.java index 66d6f7a6d34..bfd1a39af28 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Slider.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Slider.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; @@ -71,8 +72,8 @@ * @see Slider snippets * @see SWT Example: ControlExample * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class Slider extends Control { int increment, pageIncrement; boolean ignoreFocus; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Spinner.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Spinner.java index 1001d65e469..ada949365ed 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Spinner.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Spinner.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; @@ -42,8 +43,8 @@ * @see Sample code and further information * * @since 3.1 - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class Spinner extends Composite { long hwndText, hwndUpDown; boolean ignoreModify, ignoreCharacter; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TabFolder.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TabFolder.java index ddd8df6bc85..0abd1599083 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TabFolder.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TabFolder.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; @@ -48,8 +49,8 @@ * @see TabFolder, TabItem snippets * @see SWT Example: ControlExample * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class TabFolder extends Composite { TabItem [] items; ImageList imageList; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TabItem.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TabItem.java index d8cea0913b3..97a00718f6d 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TabItem.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TabItem.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.internal.*; @@ -34,8 +35,8 @@ * * @see TabFolder, TabItem snippets * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class TabItem extends Item { TabFolder parent; Control control; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java index d9acb9239ee..cb590049820 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java @@ -16,6 +16,8 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; + //import java.util.*; import org.eclipse.swt.*; @@ -72,8 +74,8 @@ * @see Table, TableItem, TableColumn snippets * @see SWT Example: ControlExample * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class Table extends Composite { TableItem [] items; int [] keys; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TableColumn.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TableColumn.java index 9ba9d5d4c50..f971d089cf5 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TableColumn.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TableColumn.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; @@ -36,8 +37,8 @@ * * @see Table, TableItem, TableColumn snippets * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class TableColumn extends Item { Table parent; boolean resizable, moveable; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TableItem.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TableItem.java index 0206d30cb39..fce0e9f732f 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TableItem.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TableItem.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.internal.*; @@ -34,8 +35,8 @@ * * @see Table, TableItem, TableColumn snippets * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class TableItem extends Item { Table parent; String [] strings; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TaskBar.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TaskBar.java index e0bc571bad3..40de8de2b97 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TaskBar.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TaskBar.java @@ -17,6 +17,7 @@ import java.io.*; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.internal.*; @@ -37,9 +38,8 @@ * @see Sample code and further information * * @since 3.6 - * - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class TaskBar extends Widget { int itemCount; TaskItem [] items = new TaskItem [4]; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TaskItem.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TaskItem.java index bffb472388a..1a3dc72416a 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TaskItem.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TaskItem.java @@ -15,6 +15,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.internal.win32.*; @@ -32,9 +33,8 @@ * @see Sample code and further information * * @since 3.6 - * - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class TaskItem extends Item { TaskBar parent; Shell shell; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java index b640c4d710d..a442c8a7b89 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java @@ -16,6 +16,7 @@ import java.util.*; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; @@ -60,8 +61,8 @@ * @see Text snippets * @see SWT Example: ControlExample * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class Text extends Scrollable { int tabs, oldStart, oldEnd; boolean doubleClick, ignoreModify, ignoreVerify, ignoreCharacter, allowPasswordChar; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ToolBar.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ToolBar.java index a9b35172594..662d1478486 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ToolBar.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ToolBar.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.internal.*; @@ -45,8 +46,8 @@ * @see ToolBar, ToolItem snippets * @see SWT Example: ControlExample * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class ToolBar extends Composite { int lastFocusId, lastArrowId, lastHotId, _width, _height, _count = -1, _wHint = -1, _hHint = -1; long currentToolItemToolTip; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ToolItem.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ToolItem.java index 76fde07cf19..3fcac243c69 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ToolItem.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ToolItem.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; @@ -38,8 +39,8 @@ * * @see ToolBar, ToolItem snippets * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class ToolItem extends Item { ToolBar parent; Control control; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ToolTip.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ToolTip.java index fcef3775924..a40602ac6f5 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ToolTip.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ToolTip.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; @@ -41,8 +42,8 @@ * @see Sample code and further information * * @since 3.2 - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class ToolTip extends Widget { Shell parent; TrayItem item; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tracker.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tracker.java index c6c88c56c17..c33d8fa532b 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tracker.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tracker.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; @@ -41,8 +42,8 @@ * * @see Tracker snippets * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class Tracker extends Widget { Control parent; boolean tracking, cancelled, stippled; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TrayItem.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TrayItem.java index ea39f2614cf..ed7fcee792b 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TrayItem.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TrayItem.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; @@ -36,8 +37,8 @@ * @see Sample code and further information * * @since 3.0 - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class TrayItem extends Item { Tray parent; int id; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java index 98b366e98a1..9c17882bbe5 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; @@ -75,8 +76,8 @@ * @see Tree, TreeItem, TreeColumn snippets * @see SWT Example: ControlExample * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class Tree extends Composite { TreeItem [] items; TreeColumn [] columns; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TreeColumn.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TreeColumn.java index f5db5f961be..2ada1c4e8b7 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TreeColumn.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TreeColumn.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; @@ -38,8 +39,8 @@ * @see Sample code and further information * * @since 3.1 - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class TreeColumn extends Item { Tree parent; boolean resizable, moveable; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TreeItem.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TreeItem.java index 4758478318f..6da095794d2 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TreeItem.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TreeItem.java @@ -14,6 +14,7 @@ package org.eclipse.swt.widgets; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.internal.*; @@ -35,8 +36,8 @@ * * @see Tree, TreeItem, TreeColumn snippets * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ +@NoExtend("This class is not intended to be subclassed by clients.") public class TreeItem extends Item { /** * the handle to the OS resource @@ -47,9 +48,8 @@ public class TreeItem extends Item { * within the packages provided by SWT. It is not available on all * platforms and should never be accessed from application code. *

    - * - * @noreference This field is not intended to be referenced by clients. */ + @NoReference("This field is not intended to be referenced by clients.") public long handle; Tree parent; String [] strings; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Widget.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Widget.java index 54d2c4b670f..9d865116a47 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Widget.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Widget.java @@ -17,6 +17,7 @@ import java.util.*; +import org.eclipse.pde.api.tools.annotations.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; @@ -963,10 +964,9 @@ public void removeListener (int eventType, Listener listener) { * * @see Listener * @see #addListener - * - * @noreference This method is not intended to be referenced by clients. - * @nooverride This method is not intended to be re-implemented or extended by clients. */ +@NoReference("This method is not intended to be referenced by clients.") +@NoOverride("This method is not intended to be re-implemented or extended by clients.") protected void removeListener (int eventType, EventListener listener) { checkWidget(); if (listener == null) error (SWT.ERROR_NULL_ARGUMENT); diff --git a/examples/org.eclipse.swt.examples.watchdog/src/org/eclipse/swt/examples/watchdog/TimedEventWatchdog.java b/examples/org.eclipse.swt.examples.watchdog/src/org/eclipse/swt/examples/watchdog/TimedEventWatchdog.java index e202aa49e00..75498a14915 100644 --- a/examples/org.eclipse.swt.examples.watchdog/src/org/eclipse/swt/examples/watchdog/TimedEventWatchdog.java +++ b/examples/org.eclipse.swt.examples.watchdog/src/org/eclipse/swt/examples/watchdog/TimedEventWatchdog.java @@ -40,8 +40,6 @@ class TimedEventWatchdog implements Listener { * recursively before the first event finished. If events are invoked recursively and any event * is longer than a watchdog's threshold, each enclosing event will also be longer than the * threshold and will be reported as the stack unwinds. - * - * @noextend This class is not intended to be subclassed by clients. */ private static class LongEventInfo { /** diff --git a/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/accessibility/CTable.java b/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/accessibility/CTable.java index 6e102e879b1..3d40f3a0f68 100644 --- a/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/accessibility/CTable.java +++ b/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/accessibility/CTable.java @@ -96,7 +96,6 @@ * @see Table, TableItem, TableColumn snippets * @see SWT Example: ControlExample * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ public class CTable extends Composite { Canvas header; diff --git a/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/accessibility/CTableColumn.java b/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/accessibility/CTableColumn.java index 2542316a313..1f93c7ef40b 100644 --- a/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/accessibility/CTableColumn.java +++ b/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/accessibility/CTableColumn.java @@ -50,7 +50,6 @@ * * @see Table, TableItem, TableColumn snippets * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ public class CTableColumn extends Item { CTable parent; diff --git a/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/accessibility/CTableItem.java b/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/accessibility/CTableItem.java index 9d492249a58..85ee668ad0a 100644 --- a/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/accessibility/CTableItem.java +++ b/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/accessibility/CTableItem.java @@ -50,7 +50,6 @@ * * @see Table, TableItem, TableColumn snippets * @see Sample code and further information - * @noextend This class is not intended to be subclassed by clients. */ public class CTableItem extends Item { CTable parent;