From 9699273a0dd1d1b553030ea14d565c8fb142c1d0 Mon Sep 17 00:00:00 2001 From: Lakshmi Shanmugam Date: Tue, 30 Jan 2018 12:35:43 +0530 Subject: 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 --- .../Eclipse SWT/cocoa/org/eclipse/swt/widgets/Display.java | 4 ++++ 1 file changed, 4 insertions(+) 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); } -- cgit v1.2.3