Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLakshmi Shanmugam2018-01-30 07:05:43 +0000
committerLakshmi Shanmugam2018-01-30 07:05:54 +0000
commit9699273a0dd1d1b553030ea14d565c8fb142c1d0 (patch)
treea57d2264a4931787fc027e1cb456923acbecb24e
parent52427fafaff0c4bede7c1758704c8800d97dba07 (diff)
downloadeclipse.platform.swt-9699273a0dd1d1b553030ea14d565c8fb142c1d0.tar.gz
eclipse.platform.swt-9699273a0dd1d1b553030ea14d565c8fb142c1d0.tar.xz
eclipse.platform.swt-9699273a0dd1d1b553030ea14d565c8fb142c1d0.zip
Bug 530315: OS X automatically replaced -- with dash in "OS arguments"
field of launch configuration Disable automatic quote & dash substitution for the application by default. Change-Id: I5d555c6a3bc9305bf089d303d97cadd0811b211f Signed-off-by: Lakshmi Shanmugam <lshanmug@in.ibm.com>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Display.java4
1 files changed, 4 insertions, 0 deletions
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 5e09eeed16..1b6dfaf86c 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
@@ -2276,6 +2276,10 @@ protected void init () {
if (blink != null) blinkTime = (int)new NSNumber(blink).integerValue();
if (blinkTime == 0) blinkTime = 560;
+ /** Disable automatic quote & dash substitution for the application by default **/
+ defaults.setInteger(0, NSString.stringWith("NSAutomaticQuoteSubstitutionEnabled"));
+ defaults.setInteger(0, NSString.stringWith("NSAutomaticDashSubstitutionEnabled"));
+
isPainting = (NSMutableArray)new NSMutableArray().alloc();
isPainting = isPainting.initWithCapacity(12);
}

Back to the top