diff options
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/FontDialog.java')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/FontDialog.java | 12 |
1 files changed, 6 insertions, 6 deletions
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 b1ec63df48..b180df08d3 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 @@ -85,7 +85,7 @@ public FontDialog (Shell parent, int style) { checkSubclass (); } -void changeFont(int /*long*/ id, int /*long*/ sel, int /*long*/ arg0) { +void changeFont(long /*int*/ id, long /*int*/ sel, long /*int*/ arg0) { selected = true; } @@ -165,7 +165,7 @@ public FontData open () { Font font = create ? new Font(display, fontData) : display.getSystemFont(); panel.setPanelFont(font.handle, false); SWTPanelDelegate delegate = (SWTPanelDelegate)new SWTPanelDelegate().alloc().init(); - int /*long*/ jniRef = OS.NewGlobalRef(this); + long /*int*/ jniRef = OS.NewGlobalRef(this); if (jniRef == 0) error(SWT.ERROR_NO_HANDLES); OS.object_setInstanceVariable(delegate.id, Display.SWT_OBJECT, jniRef); panel.setDelegate(delegate); @@ -188,12 +188,12 @@ public FontData open () { return fontData; } -void setColor_forAttribute(int /*long*/ id, int /*long*/ sel, int /*long*/ colorArg, int /*long*/ attribute) { +void setColor_forAttribute(long /*int*/ id, long /*int*/ sel, long /*int*/ colorArg, long /*int*/ attribute) { if (attribute != 0 && NSString.stringWith("NSColor").isEqualToString(new NSString(attribute))) { //$NON-NLS-1$ if (colorArg != 0) { NSColor color = new NSColor(colorArg); Display display = parent != null ? parent.getDisplay() : Display.getCurrent(); - float /*double*/ [] handle = display.getNSColorRGB(color); + double /*float*/ [] handle = display.getNSColorRGB(color); rgb = new RGB((int)(handle[0] * 255), (int)(handle[1] * 255), (int)(handle[2] * 255)); } else { rgb = null; @@ -264,11 +264,11 @@ public void setRGB (RGB rgb) { this.rgb = rgb; } -int validModesForFontPanel(int /*long*/ id, int /*long*/ sel, int /*long*/ arg0) { +int validModesForFontPanel(long /*int*/ id, long /*int*/ sel, long /*int*/ arg0) { return effectsVisible ? OS.NSFontPanelAllModesMask : OS.NSFontPanelAllModesMask & ~OS.NSFontPanelAllEffectsModeMask; } -void windowWillClose(int /*long*/ id, int /*long*/ sel, int /*long*/ sender) { +void windowWillClose(long /*int*/ id, long /*int*/ sel, long /*int*/ sender) { NSApplication.sharedApplication().stop(null); } |