diff options
author | Lakshmi Shanmugam | 2015-04-06 10:30:55 +0000 |
---|---|---|
committer | Lakshmi Shanmugam | 2015-04-06 10:30:55 +0000 |
commit | d76080f14f09214866765e249932d8097c165600 (patch) | |
tree | fd58324ddcd257d7756c01a6cb7d4a5b1bc4b1f3 /bundles/org.eclipse.swt/Eclipse SWT PI/cocoa | |
parent | 4d4ab6ed36b1007d1b4342be1bf9a23c50463bad (diff) | |
download | eclipse.platform.swt-d76080f14f09214866765e249932d8097c165600.tar.gz eclipse.platform.swt-d76080f14f09214866765e249932d8097c165600.tar.xz eclipse.platform.swt-d76080f14f09214866765e249932d8097c165600.zip |
Bug 462401 - [Cocoa] Can't access plugins folder using new Mac App
layout
Code determines if the app bundle should be treated as directory by
looking at the filter extensions and sets the property in the
NSSavePanel.
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/cocoa')
3 files changed, 10 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/AppKitFull.bridgesupport.extras b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/AppKitFull.bridgesupport.extras index 2c8b1d1ecd..d9dd9f436b 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/AppKitFull.bridgesupport.extras +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/AppKitFull.bridgesupport.extras @@ -2793,6 +2793,10 @@ <arg swt_gen="true"></arg> <retval swt_gen="true"></retval> </method> + <method selector="setTreatsFilePackagesAsDirectories:" swt_gen="true"> + <arg swt_gen="true"></arg> + <retval swt_gen="true"></retval> + </method> <method selector="validateVisibleColumns" swt_gen="true"> <retval swt_gen="true"></retval> </method> diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSSavePanel.java b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSSavePanel.java index 8629222536..6a6ac48ece 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSSavePanel.java +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSSavePanel.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2014 IBM Corporation and others. + * Copyright (c) 2000, 2015 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -70,6 +70,10 @@ public void setTitle(NSString title) { OS.objc_msgSend(this.id, OS.sel_setTitle_, title != null ? title.id : 0); } +public void setTreatsFilePackagesAsDirectories(boolean flag) { + OS.objc_msgSend(this.id, OS.sel_setTreatsFilePackagesAsDirectories_, flag); +} + public void validateVisibleColumns() { OS.objc_msgSend(this.id, OS.sel_validateVisibleColumns); } diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java index 4f6118e115..ec54475f29 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java @@ -2071,6 +2071,7 @@ public static final long /*int*/ sel_setToolTip_forSegment_ = sel_registerName(" public static final long /*int*/ sel_setToolbar_ = sel_registerName("setToolbar:"); public static final long /*int*/ sel_setTrackingMode_ = sel_registerName("setTrackingMode:"); public static final long /*int*/ sel_setTransformStruct_ = sel_registerName("setTransformStruct:"); +public static final long /*int*/ sel_setTreatsFilePackagesAsDirectories_ = sel_registerName("setTreatsFilePackagesAsDirectories:"); public static final long /*int*/ sel_setUIDelegate_ = sel_registerName("setUIDelegate:"); public static final long /*int*/ sel_setURL_ = sel_registerName("setURL:"); public static final long /*int*/ sel_setUpPrintOperationDefaultValues = sel_registerName("setUpPrintOperationDefaultValues"); |