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 178636 Details for
Bug 324995
[preferences] New formatter profile version must not automatically touch existing projects
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Fix
patch.txt (text/plain), 2.07 KB, created by
Markus Keller
on 2010-09-10 13:16:16 EDT
(
hide
)
Description:
Fix
Filename:
MIME Type:
Creator:
Markus Keller
Created:
2010-09-10 13:16:16 EDT
Size:
2.07 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.ui >Index: ui/org/eclipse/jdt/internal/ui/preferences/formatter/FormatterProfileStore.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/formatter/FormatterProfileStore.java,v >retrieving revision 1.3 >diff -u -r1.3 FormatterProfileStore.java >--- ui/org/eclipse/jdt/internal/ui/preferences/formatter/FormatterProfileStore.java 31 Dec 2008 21:13:25 -0000 1.3 >+++ ui/org/eclipse/jdt/internal/ui/preferences/formatter/FormatterProfileStore.java 10 Sep 2010 17:16:00 -0000 >@@ -1,5 +1,5 @@ > /******************************************************************************* >- * Copyright (c) 2000, 2008 IBM Corporation and others. >+ * Copyright (c) 2000, 2010 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 >@@ -24,9 +24,6 @@ > import org.eclipse.core.runtime.preferences.IEclipsePreferences; > import org.eclipse.core.runtime.preferences.IScopeContext; > >-import org.eclipse.core.resources.IProject; >-import org.eclipse.core.resources.ResourcesPlugin; >- > import org.eclipse.jdt.core.JavaCore; > > import org.eclipse.jdt.ui.JavaUI; >@@ -122,16 +119,6 @@ > } > uiPreferences.putInt(PREF_FORMATTER_PROFILES + VERSION_KEY_SUFFIX, profileVersioner.getCurrentVersion()); > savePreferences(instanceScope); >- >- IProject[] projects= ResourcesPlugin.getWorkspace().getRoot().getProjects(); >- for (int i= 0; i < projects.length; i++) { >- IScopeContext scope= access.getProjectScope(projects[i]); >- if (manager.hasProjectSpecificSettings(scope)) { >- manager= new FormatterProfileManager(profiles, scope, access, profileVersioner); >- manager.commitChanges(scope); // updates JavaCore project options >- savePreferences(scope); >- } >- } > } catch (CoreException e) { > JavaPlugin.log(e); > } catch (BackingStoreException e) {
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 324995
: 178636