summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Label.java
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Label.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Label.java14
1 files changed, 7 insertions, 7 deletions
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 db3b4b135b..81ee8adb89 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
@@ -95,11 +95,11 @@ public Label (Composite parent, int style) {
super (parent, checkStyle (style));
}
-int /*long*/ accessibleHandle() {
+long /*int*/ accessibleHandle() {
return eventView().id;
}
-boolean accessibilityIsIgnored(int /*long*/ id, int /*long*/ sel) {
+boolean accessibilityIsIgnored(long /*int*/ id, long /*int*/ sel) {
if (id == view.id) return true;
return super.accessibilityIsIgnored(id, sel);
}
@@ -135,7 +135,7 @@ public Point computeSize (int wHint, int hHint, boolean changed) {
int width = DEFAULT_WIDTH;
int height = DEFAULT_HEIGHT;
if ((style & SWT.SEPARATOR) != 0) {
- float /*double*/ lineWidth = ((NSBox)view).borderWidth ();
+ double /*float*/ lineWidth = ((NSBox)view).borderWidth ();
if ((style & SWT.HORIZONTAL) != 0) {
height = (int)Math.ceil (lineWidth * 2);
} else {
@@ -197,7 +197,7 @@ void createHandle () {
widget.setBoxType (OS.NSBoxCustom);
widget.setContentViewMargins (new NSSize());
- float /*double*/ lineWidth = widget.borderWidth ();
+ double /*float*/ lineWidth = widget.borderWidth ();
if ((style & SWT.HORIZONTAL) != 0) {
rect.height = (int)Math.ceil (lineWidth * 2);
rect.y = (DEFAULT_HEIGHT / 2) - (rect.height / 2);
@@ -281,12 +281,12 @@ void deregister () {
if (separator != null) display.removeWidget(separator);
}
-void drawBackground (int /*long*/ id, NSGraphicsContext context, NSRect rect) {
+void drawBackground (long /*int*/ id, NSGraphicsContext context, NSRect rect) {
if (id != view.id) return;
fillBackground(view, context, rect, -1);
}
-int /*long*/ imageView() {
+long /*int*/ imageView() {
return imageView.id;
};
@@ -436,7 +436,7 @@ void setFont(NSFont font) {
}
}
-void setForeground (float /*double*/ [] color) {
+void setForeground (double /*float*/ [] color) {
if ((style & SWT.SEPARATOR) != 0) return;
NSCell cell = new NSCell(textView.cell());
cell.setAttributedStringValue(createString());