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 95920 Details for
Bug 226037
initialization policy for target platform should be different based on location
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
org.eclipse.pde.patch
clipboard.txt (text/plain), 4.56 KB, created by
Chris Aniszczyk
on 2008-04-14 10:19:18 EDT
(
hide
)
Description:
org.eclipse.pde.patch
Filename:
MIME Type:
Creator:
Chris Aniszczyk
Created:
2008-04-14 10:19:18 EDT
Size:
4.56 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.pde.ui >Index: src/org/eclipse/pde/internal/ui/preferences/TargetPlatformPreferencePage.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/preferences/TargetPlatformPreferencePage.java,v >retrieving revision 1.82 >diff -u -r1.82 TargetPlatformPreferencePage.java >--- src/org/eclipse/pde/internal/ui/preferences/TargetPlatformPreferencePage.java 7 Apr 2008 10:31:31 -0000 1.82 >+++ src/org/eclipse/pde/internal/ui/preferences/TargetPlatformPreferencePage.java 14 Apr 2008 14:15:38 -0000 >@@ -187,6 +187,8 @@ > fHomeText.addModifyListener(new ModifyListener() { > public void modifyText(ModifyEvent e) { > fNeedsReload = true; >+ fPreferences.setDefault(ICoreConstants.TARGET_PLATFORM_REALIZATION, TargetPlatform.getDefaultLocation().equals(fHomeText.getText())); >+ fTargetRealization.setSelection(fPreferences.getBoolean(ICoreConstants.TARGET_PLATFORM_REALIZATION)); > } > }); > >@@ -215,6 +217,11 @@ > fTargetRealization = new Button(target, SWT.CHECK); > fTargetRealization.setText(PDEUIMessages.MainPreferencePage_targetPlatformRealization); > fTargetRealization.setSelection(fPreferences.getBoolean(ICoreConstants.TARGET_PLATFORM_REALIZATION)); >+ fTargetRealization.addSelectionListener(new SelectionAdapter() { >+ public void widgetSelected(SelectionEvent e) { >+ fNeedsReload = true; >+ } >+ }); > GridData gd = new GridData(GridData.FILL_HORIZONTAL); > gd.horizontalSpan = 4; > fTargetRealization.setLayoutData(gd); >@@ -536,6 +543,8 @@ > } > fPluginsTab.handleReload(new ArrayList()); > resetTargetProfile(); >+ >+ fPreferences.setDefault(ICoreConstants.TARGET_PLATFORM_REALIZATION, TargetPlatform.getDefaultLocation().equals(TargetPlatform.getLocation())); > } > // if performOK is getting run in lieu of performApply, we need update the fOriginalText so if the user changes it back to the first state, we know we need to reload > fOriginalText = fHomeText.getText(); >Index: src/org/eclipse/pde/internal/ui/pderesources.properties >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/pderesources.properties,v >retrieving revision 1.982 >diff -u -r1.982 pderesources.properties >--- src/org/eclipse/pde/internal/ui/pderesources.properties 12 Apr 2008 11:35:17 -0000 1.982 >+++ src/org/eclipse/pde/internal/ui/pderesources.properties 14 Apr 2008 14:15:38 -0000 >@@ -314,7 +314,7 @@ > > MainPreferencePage_group2=Automated Management of Dependencies > MainPreferencePage_updateStale=&Update stale manifest files prior to launching >-MainPreferencePage_targetPlatformRealization=Attempt to reali&ze target platform based on target configuration >+MainPreferencePage_targetPlatformRealization=Build target platform based on t&he target's installed plug-ins > > ManifestEditorContributor_externStringsActionName=Externalize Strings... > >#P org.eclipse.pde.core >Index: src/org/eclipse/pde/internal/core/PreferenceInitializer.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.pde.core/src/org/eclipse/pde/internal/core/PreferenceInitializer.java,v >retrieving revision 1.5 >diff -u -r1.5 PreferenceInitializer.java >--- src/org/eclipse/pde/internal/core/PreferenceInitializer.java 2 Jan 2008 15:56:18 -0000 1.5 >+++ src/org/eclipse/pde/internal/core/PreferenceInitializer.java 14 Apr 2008 14:15:40 -0000 >@@ -1,5 +1,5 @@ > /******************************************************************************* >- * Copyright (c) 2005, 2007 IBM Corporation and others. >+ * Copyright (c) 2005, 2008 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 >@@ -11,7 +11,6 @@ > package org.eclipse.pde.internal.core; > > import java.util.Locale; >- > import org.eclipse.core.runtime.Platform; > import org.eclipse.core.runtime.Preferences; > import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer; >@@ -38,6 +37,8 @@ > preferences.setDefault(ICoreConstants.WS, Platform.getWS()); > preferences.setDefault(ICoreConstants.NL, Locale.getDefault().toString()); > preferences.setDefault(ICoreConstants.ARCH, Platform.getOSArch()); >- } > >+ preferences.setDefault(ICoreConstants.TARGET_PLATFORM_REALIZATION, TargetPlatform.getDefaultLocation().equals(TargetPlatform.getLocation())); >+ >+ } > }
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 226037
: 95920 |
95921