Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use PDE API-Tools java-annotations instead of javadoc-annotations #1039

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions binaries/.classpath_cocoa
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="Eclipse SWT/cocoa"/>
<classpathentry kind="src" path="Eclipse SWT/common"/>
<classpathentry kind="src" path="Eclipse SWT/emulated/bidi"/>
Expand Down
1 change: 1 addition & 0 deletions binaries/.classpath_gtk
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="Eclipse SWT/gtk"/>
<classpathentry kind="src" path="Eclipse SWT/cairo"/>
<classpathentry kind="src" path="Eclipse SWT/emulated/bidi"/>
Expand Down
1 change: 1 addition & 0 deletions binaries/.classpath_win32
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="Eclipse SWT/win32"/>
<classpathentry kind="src" path="Eclipse SWT/common"/>
<classpathentry kind="src" path="Eclipse SWT PI/common"/>
Expand Down
2 changes: 2 additions & 0 deletions bundles/org.eclipse.swt.tools/Oomph/platformSwt.setup
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@
activeRepositoryList="${eclipse.target.platform}">
<requirement
name="*"/>
<requirement
name="org.eclipse.pde.api.tools.annotations"/>
<sourceLocator
rootFolder="${github.clone.platform.swt.location}"
locateNestedProjects="true">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.*;
Expand Down Expand Up @@ -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);
}
Expand Down Expand Up @@ -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.
* </p>
*
* @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();
Expand Down Expand Up @@ -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.
* </p>
*
* @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);
Expand Down Expand Up @@ -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.
* </p>
*
* @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;
Expand All @@ -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.
* </p>
*
* @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.
Expand Down Expand Up @@ -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.
* </p>
*
* @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);
Expand Down Expand Up @@ -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.
* </p>
*
* @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);
Expand All @@ -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.
* </p>
*
* @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()
Expand Down Expand Up @@ -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.
* </p>
*
* @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;
Expand Down Expand Up @@ -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.
* </p>
*
* @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;
Expand All @@ -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.
* </p>
*
* @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;
Expand Down Expand Up @@ -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.
* </p>
*
* @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) {
Expand Down Expand Up @@ -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.
* </p>
*
* @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);
Expand Down Expand Up @@ -1586,9 +1574,8 @@ public Control getControl() {
* available on all platforms, and should never be called from
* application code.
* </p>
*
* @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);
}
Expand Down Expand Up @@ -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.
* </p>
*
* @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());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.*;
Expand Down Expand Up @@ -533,9 +534,8 @@ long getControlHandle () {
* available on all platforms, and should never be called from
* application code.
* </p>
*
* @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 ();
}
Expand All @@ -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);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.*;
Expand Down Expand Up @@ -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);
}
Expand Down Expand Up @@ -907,9 +907,8 @@ public Control getControl() {
* available on all platforms, and should never be called from
* application code.
* </p>
*
* @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();
Expand All @@ -931,9 +930,8 @@ public void internal_dispose_Accessible() {
* available on all platforms, and should never be called from
* application code.
* </p>
*
* @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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.*;

Expand All @@ -39,9 +40,8 @@
* @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
*
* @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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.*;
Expand Down Expand Up @@ -42,9 +43,8 @@
* @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
*
* @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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.*;
Expand Down Expand Up @@ -51,9 +52,8 @@
* @see <a href="http://www.eclipse.org/swt/snippets/#ctabfolder">CTabFolder, CTabItem snippets</a>
* @see <a href="http://www.eclipse.org/swt/examples.php">SWT Example: CustomControlExample</a>
* @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
* @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 {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.*;
Expand All @@ -34,8 +35,8 @@
*
* @see <a href="http://www.eclipse.org/swt/snippets/#ctabfolder">CTabFolder, CTabItem snippets</a>
* @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
* @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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.*;
Expand Down Expand Up @@ -85,8 +86,8 @@
* @see <a href="http://www.eclipse.org/swt/snippets/#styledtext">StyledText snippets</a>
* @see <a href="http://www.eclipse.org/swt/examples.php">SWT Examples: CustomControlExample, TextEditor</a>
* @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
* @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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.*;
Expand All @@ -38,9 +39,8 @@
* </p>
*
* @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
* @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 {

/**
Expand Down
Loading
Loading