Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 119199 Details for
Bug 2035
[Wizards] Previous location of project content area not remembered (1GDQUX8)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
modified patch
patch-2035.txt (text/plain), 2.58 KB, created by
Boris Bokowski
on 2008-12-01 14:51:15 EST
(
hide
)
Description:
modified patch
Filename:
MIME Type:
Creator:
Boris Bokowski
Created:
2008-12-01 14:51:15 EST
Size:
2.58 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.ui.ide >Index: src/org/eclipse/ui/internal/ide/dialogs/ProjectContentsLocationArea.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/ProjectContentsLocationArea.java,v >retrieving revision 1.21 >diff -u -r1.21 ProjectContentsLocationArea.java >--- src/org/eclipse/ui/internal/ide/dialogs/ProjectContentsLocationArea.java 9 May 2008 14:13:06 -0000 1.21 >+++ src/org/eclipse/ui/internal/ide/dialogs/ProjectContentsLocationArea.java 1 Dec 2008 19:50:24 -0000 >@@ -24,6 +24,7 @@ > import org.eclipse.core.resources.ResourcesPlugin; > import org.eclipse.core.runtime.IStatus; > import org.eclipse.core.runtime.Platform; >+import org.eclipse.jface.dialogs.IDialogSettings; > import org.eclipse.osgi.util.TextProcessor; > import org.eclipse.swt.SWT; > import org.eclipse.swt.events.ModifyEvent; >@@ -38,6 +39,7 @@ > import org.eclipse.swt.widgets.Label; > import org.eclipse.swt.widgets.Text; > import org.eclipse.ui.internal.ide.IDEWorkbenchMessages; >+import org.eclipse.ui.internal.ide.IDEWorkbenchPlugin; > import org.eclipse.ui.internal.ide.filesystem.FileSystemConfiguration; > import org.eclipse.ui.internal.ide.filesystem.FileSystemSupportRegistry; > >@@ -75,6 +77,8 @@ > > private static final String FILE_SCHEME = "file"; //$NON-NLS-1$ > >+ private static final String SAVED_LOCATION_ATTR = "OUTSIDE_LOCATION"; //$NON-NLS-1$ >+ > private Label locationLabel; > > private Text locationPathField; >@@ -308,6 +312,15 @@ > return browseButton; > } > >+ private IDialogSettings getDialogSettings() { >+ IDialogSettings ideDialogSettings = IDEWorkbenchPlugin.getDefault().getDialogSettings(); >+ IDialogSettings result = ideDialogSettings.getSection(getClass().getName()); >+ if (result == null) { >+ result = ideDialogSettings.addNewSection(getClass().getName()); >+ } >+ return result; >+ } >+ > /** > * Open an appropriate directory browser > */ >@@ -322,6 +335,11 @@ > > if (info == null || !(info.exists())) > dirName = IDEResourceInfoUtils.EMPTY_STRING; >+ } else { >+ String value = getDialogSettings().get(SAVED_LOCATION_ATTR); >+ if (value != null) { >+ dirName = value; >+ } > } > > FileSystemConfiguration config = getSelectedConfiguration(); >@@ -344,8 +362,10 @@ > selectedDirectory = uri.toString(); > } > >- if (selectedDirectory != null) >+ if (selectedDirectory != null) { > updateLocationField(selectedDirectory); >+ getDialogSettings().put(SAVED_LOCATION_ATTR, selectedDirectory); >+ } > } > > /**
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 2035
:
116421
| 119199