summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSTextList.java
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSTextList.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSTextList.java32
1 files changed, 32 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSTextList.java b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSTextList.java
new file mode 100644
index 0000000000..4634e94fc4
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSTextList.java
@@ -0,0 +1,32 @@
+package org.eclipse.swt.internal.cocoa;
+
+public class NSTextList extends NSObject {
+
+public NSTextList() {
+ super();
+}
+
+public NSTextList(int id) {
+ super(id);
+}
+
+public NSTextList initWithMarkerFormat(NSString format, int mask) {
+ int result = OS.objc_msgSend(this.id, OS.sel_initWithMarkerFormat_1options_1, format != null ? format.id : 0, mask);
+ return result != 0 ? this : null;
+}
+
+public int listOptions() {
+ return OS.objc_msgSend(this.id, OS.sel_listOptions);
+}
+
+public NSString markerForItemNumber(int itemNum) {
+ int result = OS.objc_msgSend(this.id, OS.sel_markerForItemNumber_1, itemNum);
+ return result != 0 ? new NSString(result) : null;
+}
+
+public NSString markerFormat() {
+ int result = OS.objc_msgSend(this.id, OS.sel_markerFormat);
+ return result != 0 ? new NSString(result) : null;
+}
+
+}