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 88782 Details for
Bug 215914
[prov] Enabling / disabling old update UI
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]
Enable/Disable Old Update UI v02
patch-oldUpdateManager_v02.txt (text/plain), 23.40 KB, created by
Tim Mok
on 2008-02-04 10:32:53 EST
(
hide
)
Description:
Enable/Disable Old Update UI v02
Filename:
MIME Type:
Creator:
Tim Mok
Created:
2008-02-04 10:32:53 EST
Size:
23.40 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.ui.ide >Index: plugin.xml >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.ui.ide/plugin.xml,v >retrieving revision 1.263 >diff -u -r1.263 plugin.xml >--- plugin.xml 25 Jan 2008 21:09:42 -0000 1.263 >+++ plugin.xml 4 Feb 2008 15:19:35 -0000 >@@ -791,20 +791,6 @@ > categoryId="org.eclipse.ui.category.edit" > id="org.eclipse.ui.navigate.removeFromWorkingSet"> > </command> >- <category >- description="%category.update.description" >- id="org.eclipse.ui.category.update" >- name="%category.update.name"/> >- <command >- categoryId="org.eclipse.ui.category.update" >- description="%command.manageConfiguration.description" >- id="org.eclipse.ui.update.manageConfiguration" >- name="%command.manageConfiguration.name"/> >- <command >- categoryId="org.eclipse.ui.category.update" >- description="%command.findAndInstallUpdates.description" >- id="org.eclipse.ui.update.findAndInstallUpdates" >- name="%command.findAndInstallUpdates.name"/> > <command > categoryId="org.eclipse.ui.category.navigate" > defaultHandler="org.eclipse.ui.internal.ide.handlers.ShowResourceByPathHandler" >@@ -991,43 +977,6 @@ > > <!-- Update Actions --> > <extension >- point="org.eclipse.ui.actionSets"> >- <actionSet >- label="%UpdateActionSet.label" >- visible="true" >- id="org.eclipse.update.ui.softwareUpdates"> >- <menu >- label="%UpdateActionSet.menu.label" >- path="help/group.updates" >- id="org.eclipse.update.ui.updateMenu"> >- <separator >- name="group0"> >- </separator> >- <separator >- name="group1"> >- </separator> >- </menu> >- <action >- class="org.eclipse.ui.internal.ide.update.ConfigurationManagerAction" >- definitionId="org.eclipse.ui.update.manageConfiguration" >- helpContextId="org.eclipse.update.ui.newUpdates" >- icon="$nl$/icons/full/elcl16/configs.gif" >- id="org.eclipse.update.ui.configManager" >- label="%UpdateActionSet.configManager.label" >- menubarPath="help/org.eclipse.update.ui.updateMenu/group0"> >- </action> >- <action >- class="org.eclipse.ui.internal.ide.update.InstallWizardAction" >- definitionId="org.eclipse.ui.update.findAndInstallUpdates" >- helpContextId="org.eclipse.update.ui.newUpdates" >- icon="$nl$/icons/full/elcl16/usearch_obj.gif" >- id="org.eclipse.update.ui.newUpdates" >- label="%UpdateActionSet.updates.label" >- menubarPath="help/org.eclipse.update.ui.updateMenu/group0"> >- </action> >- </actionSet> >- </extension> >- <extension > point="org.eclipse.core.runtime.preferences"> > <initializer class="org.eclipse.ui.internal.ide.IDEPreferenceInitializer"/> > </extension> >@@ -2186,5 +2135,4 @@ > type="org.eclipse.ui.internal.views.markers.ExtendedMarkersView"> > </propertyTester> > </extension> >- > </plugin> >Index: plugin.properties >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.ui.ide/plugin.properties,v >retrieving revision 1.127 >diff -u -r1.127 plugin.properties >--- plugin.properties 22 Jan 2008 18:20:25 -0000 1.127 >+++ plugin.properties 4 Feb 2008 15:19:34 -0000 >@@ -174,23 +174,11 @@ > command.newQuickMenu.name= New menu > command.newQuickMenu.description= Open the New menu > >-category.update.name= Update >-category.update.description= Commands for Software Updates >-command.manageConfiguration.name= Manage Configuration >-command.manageConfiguration.description= Open the product configuration dialog >-command.findAndInstallUpdates.name= Find and Install Updates >-command.findAndInstallUpdates.description= Open the feature install and update dialog >- > commandParameter.openFileByPath.filePath.name= File Path > command.showResourceByPath.name= Show Resource in Navigator > command.showResourceByPath.description= Show a resource in the Navigator given its path > commandParameter.showResourceByPath.resourcePath.name= Resource Path > >-UpdateActionSet.label = Software Updates >-UpdateActionSet.menu.label = &Software Updates >-UpdateActionSet.updates.label = &Find and Install... >-UpdateActionSet.configManager.label = &Manage Configuration >- > KeyBindingActionSet.label = Keyboard Shortcuts > KeyBindingActionSet.showKeyAssist.label = &Key Assist... > >#P org.eclipse.update.ui >Index: plugin.xml >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.update.ui/plugin.xml,v >retrieving revision 1.92 >diff -u -r1.92 plugin.xml >--- plugin.xml 6 May 2005 16:36:03 -0000 1.92 >+++ plugin.xml 4 Feb 2008 15:19:35 -0000 >@@ -57,4 +57,84 @@ > label="%preferenceKeywords.general" > id="org.eclipse.update.ui.general"/> > </extension> >+ <extension >+ point="org.eclipse.ui.commands"> >+ <command >+ categoryId="org.eclipse.ui.category.update" >+ description="%command.manageConfiguration.description" >+ id="org.eclipse.ui.update.manageConfiguration" >+ name="%command.manageConfiguration.name"/> >+ <command >+ categoryId="org.eclipse.ui.category.update" >+ description="%command.findAndInstallUpdates.description" >+ id="org.eclipse.ui.update.findAndInstallUpdates" >+ name="%command.findAndInstallUpdates.name"/> >+ <category >+ description="%category.update.description" >+ id="org.eclipse.ui.category.update" >+ name="%category.update.name"> >+ </category> >+ </extension> >+ <extension >+ point="org.eclipse.ui.menus"> >+ <menuContribution >+ locationURI="menu:help?after=additions"> >+ <menu label="%UpdateActionSet.menu.label"> >+ <command >+ commandId="org.eclipse.ui.update.findAndInstallUpdates" >+ helpContextId="org.eclipse.update.ui.newUpdates" >+ icon="icons/elcl16/usearch_obj.gif" >+ label="%UpdateActionSet.updates.label" >+ style="push"> >+ </command> >+ <command >+ commandId="org.eclipse.ui.update.manageConfiguration" >+ helpContextId="org.eclipse.update.ui.newUpdates" >+ icon="icons/elcl16/configs.gif" >+ label="%UpdateActionSet.configManager.label" >+ style="push"> >+ </command> >+ <visibleWhen >+ checkEnabled="false"> >+ <and> >+ <with >+ variable="activePart"> >+ <instanceof >+ value="org.eclipse.ui.IWorkbenchPart"> >+ </instanceof> >+ </with> >+ <with >+ variable="activeWorkbenchWindow"> >+ <test >+ forcePluginActivation="true" >+ property="org.eclipse.ui.update.oldUpdate" >+ value="true"> >+ </test> >+ </with> >+ </and> >+ </visibleWhen> >+ </menu> >+ </menuContribution> >+ </extension> >+ <extension >+ point="org.eclipse.core.expressions.propertyTesters"> >+ <propertyTester >+ class="org.eclipse.equinox.internal.p2.ui.sdk.prefs.UseOldUpdateManagerTester" >+ id="org.eclipse.ui.update.oldUpdateTester" >+ namespace="org.eclipse.ui.update" >+ properties="oldUpdate" >+ type="java.lang.Object"> >+ </propertyTester> >+ </extension> >+ <extension >+ point="org.eclipse.ui.handlers"> >+ <handler >+ class="org.eclipse.update.internal.ui.views.ManageConfigurationHandler" >+ commandId="org.eclipse.ui.update.manageConfiguration"> >+ </handler> >+ <handler >+ class="org.eclipse.update.internal.ui.views.FindAndInstallHandler" >+ commandId="org.eclipse.ui.update.findAndInstallUpdates"> >+ </handler> >+ </extension> > </plugin> >Index: plugin.properties >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.update.ui/plugin.properties,v >retrieving revision 1.43 >diff -u -r1.43 plugin.properties >--- plugin.properties 6 Jun 2007 19:42:39 -0000 1.43 >+++ plugin.properties 4 Feb 2008 15:19:35 -0000 >@@ -21,6 +21,19 @@ > actionSets.configManager.label = &Manage Configuration... > actionSets.webSites.label = &Update Sites (experimental) > >+UpdateActionSet.label = Software Updates >+UpdateActionSet.menu.label = &Software Updates >+UpdateActionSet.updates.label = &Find and Install... >+UpdateActionSet.configManager.label = &Manage Configuration >+ >+command.manageConfiguration.name= Manage Configuration >+command.manageConfiguration.description= Open the product configuration dialog >+command.findAndInstallUpdates.name= Find and Install Updates >+command.findAndInstallUpdates.description= Open the feature install and update dialog >+ >+category.update.name= Update >+category.update.description= Commands for Software Updates >+ > searchCategory.name = Search Category > searchCategories.updates = Available Updates > searchCategories.updates.desc = <form><p>Search for updates to \ >Index: META-INF/MANIFEST.MF >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.update.ui/META-INF/MANIFEST.MF,v >retrieving revision 1.10 >diff -u -r1.10 MANIFEST.MF >--- META-INF/MANIFEST.MF 14 Dec 2006 15:58:51 -0000 1.10 >+++ META-INF/MANIFEST.MF 4 Feb 2008 15:19:35 -0000 >@@ -19,7 +19,8 @@ > org.eclipse.ui;bundle-version="[3.2.0,4.0.0)", > org.eclipse.update.core;bundle-version="[3.1.0,4.0.0)", > org.eclipse.update.configurator;bundle-version="[3.1.0,4.0.0)", >- org.eclipse.ui.forms;bundle-version="[3.2.0,4.0.0)" >+ org.eclipse.ui.forms;bundle-version="[3.2.0,4.0.0)", >+ org.eclipse.equinox.p2.ui.sdk;bundle-version="0.1.0";resolution:=optional > Eclipse-LazyStart: true > Bundle-RequiredExecutionEnvironment: J2SE-1.4, > CDC-1.0/Foundation-1.0, >Index: icons/elcl16/configs.gif >=================================================================== >RCS file: icons/elcl16/configs.gif >diff -N icons/elcl16/configs.gif >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ icons/elcl16/configs.gif 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,5 @@ >+GIF89aÕ??_M`{Iáêöèîö®¹Æãìöåíöçîö?¿àëöâìöäíöèïöòôöXuçïöëñöäîöíòöïóöN?½ñôö_¿óõö¿¿ÅÜÛÙàܿ߿ÒÕËáêºéì¿¿¿òìÆúîËÿîÎÿÿÿ!ù$,?@pH,?F@a£I<*?ËÆX@N I\À(PÀ0Nà;Ô"2Èât§Â§²n(l$UCVoVC >+?C KCz¶v xBv >+ >+ >+j§ Z\^HOQ¼HÓA; >Index: src/org/eclipse/update/internal/ui/views/FindAndInstallHandler.java >=================================================================== >RCS file: src/org/eclipse/update/internal/ui/views/FindAndInstallHandler.java >diff -N src/org/eclipse/update/internal/ui/views/FindAndInstallHandler.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/update/internal/ui/views/FindAndInstallHandler.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,32 @@ >+/******************************************************************************* >+ * Copyright (c) 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 >+ * http://www.eclipse.org/legal/epl-v10.html >+ * >+ * Contributors: >+ * IBM Corporation - initial API and implementation >+ *******************************************************************************/ >+package org.eclipse.update.internal.ui.views; >+ >+import org.eclipse.core.commands.*; >+import org.eclipse.ui.IWorkbenchWindow; >+import org.eclipse.ui.handlers.HandlerUtil; >+import org.eclipse.update.ui.UpdateManagerUI; >+ >+/** >+ * >+ */ >+public class FindAndInstallHandler extends AbstractHandler { >+ >+ public Object execute(ExecutionEvent event) throws ExecutionException { >+ IWorkbenchWindow window = HandlerUtil.getActiveWorkbenchWindow(event); >+ if (window == null) { >+ return null; >+ } >+ UpdateManagerUI.openInstaller(window.getShell()); >+ return null; >+ } >+ >+} >Index: icons/elcl16/usearch_obj.gif >=================================================================== >RCS file: icons/elcl16/usearch_obj.gif >diff -N icons/elcl16/usearch_obj.gif >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ icons/elcl16/usearch_obj.gif 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,3 @@ >+GIF89aæ°¥¬»µ¹³©°ª?§§¤«¨ÄÀö´´«²±§¯£«À»¿¾¹½§¥½¶¼¹²¸ÇÄÇÁ¾ÁÊÈÊêéêèçèçæèIm¡ÿÿÉÿÿþþýïþô?êà¤ûð³ûð´ýùáéÖsûéùéªôæ®ùÝzñÚúéªúé«ñÓsûÞ ùÓfúÚ}÷ßùÍ_õÕôÕ½õÔ±x¹ß½«p«qä¢9¦ké¯Wë²]_¹f§\öß¼ð¥;²?bÜϾ}V?}VoN?nM?oNrPrQÿÿÿÿÿÿ!ùI,§I//>E?;3 /">8;$¡$2=%+?I/' ¯¯#1!+-EI4(,45()4&+.9>º½I7)7@Ä+0È4I:77BÆÔ:Fß:ë >+CÉ6<Dõ?IP@¿Cÿ0(¼p¤ÁÁC.ÔPäá¡ >+1\Ð Âb¢?; >Index: src/org/eclipse/update/internal/ui/views/ManageConfigurationHandler.java >=================================================================== >RCS file: src/org/eclipse/update/internal/ui/views/ManageConfigurationHandler.java >diff -N src/org/eclipse/update/internal/ui/views/ManageConfigurationHandler.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/update/internal/ui/views/ManageConfigurationHandler.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,29 @@ >+/******************************************************************************* >+ * Copyright (c) 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 >+ * http://www.eclipse.org/legal/epl-v10.html >+ * >+ * Contributors: >+ * IBM Corporation - initial API and implementation >+ *******************************************************************************/ >+package org.eclipse.update.internal.ui.views; >+ >+import org.eclipse.core.commands.*; >+import org.eclipse.ui.IWorkbenchWindow; >+import org.eclipse.ui.handlers.HandlerUtil; >+import org.eclipse.update.ui.UpdateManagerUI; >+ >+public class ManageConfigurationHandler extends AbstractHandler { >+ >+ public Object execute(ExecutionEvent event) throws ExecutionException { >+ IWorkbenchWindow window = HandlerUtil.getActiveWorkbenchWindow(event); >+ if (window == null) { >+ return null; >+ } >+ UpdateManagerUI.openConfigurationManager(window.getShell()); >+ return null; >+ } >+ >+} >#P org.eclipse.equinox.p2.ui.sdk >Index: src/org/eclipse/equinox/internal/p2/ui/sdk/messages.properties >=================================================================== >RCS file: /cvsroot/eclipse/equinox-incubator/provisioning/org.eclipse.equinox.p2.ui.sdk/src/org/eclipse/equinox/internal/p2/ui/sdk/messages.properties,v >retrieving revision 1.18 >diff -u -r1.18 messages.properties >--- src/org/eclipse/equinox/internal/p2/ui/sdk/messages.properties 1 Feb 2008 00:36:46 -0000 1.18 >+++ src/org/eclipse/equinox/internal/p2/ui/sdk/messages.properties 4 Feb 2008 15:19:36 -0000 >@@ -95,3 +95,4 @@ > ProvisioningPreferencePage_enableGC=Automatically delete unused files > ProvisioningPreferencePage_gcImmediately=Delete unused files immediately > ProvisioningPreferencePage_gcRetentionTime=Keep unused files for ??? >+ProvisioningPreferencePage_oldUpdateUI=Use update manager interface >Index: src/org/eclipse/equinox/internal/p2/ui/sdk/ProvSDKMessages.java >=================================================================== >RCS file: /cvsroot/eclipse/equinox-incubator/provisioning/org.eclipse.equinox.p2.ui.sdk/src/org/eclipse/equinox/internal/p2/ui/sdk/ProvSDKMessages.java,v >retrieving revision 1.16 >diff -u -r1.16 ProvSDKMessages.java >--- src/org/eclipse/equinox/internal/p2/ui/sdk/ProvSDKMessages.java 1 Feb 2008 00:36:46 -0000 1.16 >+++ src/org/eclipse/equinox/internal/p2/ui/sdk/ProvSDKMessages.java 4 Feb 2008 15:19:36 -0000 >@@ -108,6 +108,7 @@ > public static String ProvisioningPreferencePage_enableGC; > public static String ProvisioningPreferencePage_gcImmediately; > public static String ProvisioningPreferencePage_gcRetentionTime; >+ public static String ProvisioningPreferencePage_oldUpdateUI; > public static String ProvSDKUIActivator_ErrorWritingLicenseRegistry; > public static String ProvSDKUIActivator_LicenseManagerReadError; > public static String ProvSDKUIActivator_NoSelfProfile; >Index: plugin.properties >=================================================================== >RCS file: /cvsroot/eclipse/equinox-incubator/provisioning/org.eclipse.equinox.p2.ui.sdk/plugin.properties,v >retrieving revision 1.4 >diff -u -r1.4 plugin.properties >--- plugin.properties 30 Jan 2008 00:48:05 -0000 1.4 >+++ plugin.properties 4 Feb 2008 15:19:36 -0000 >@@ -18,6 +18,9 @@ > IU.copyright=Copyright > Repository.name=General Information > Update.command=Software Updates (Incubation)... >+OldUpdate.menu=Software Updates >+OldUpdate.FindAndInstall.command=Find and Install... >+OldUpdate.ManageConfiguration.command=Manage Configuration > automaticUpdatesPrefPage = Automatic Updates > provisioningPrefPage = Install/Update > preferenceKeywords.general=automatic update schedule download software install >Index: src/org/eclipse/equinox/internal/p2/ui/sdk/prefs/ProvisioningPreferencePage.java >=================================================================== >RCS file: /cvsroot/eclipse/equinox-incubator/provisioning/org.eclipse.equinox.p2.ui.sdk/src/org/eclipse/equinox/internal/p2/ui/sdk/prefs/ProvisioningPreferencePage.java,v >retrieving revision 1.5 >diff -u -r1.5 ProvisioningPreferencePage.java >--- src/org/eclipse/equinox/internal/p2/ui/sdk/prefs/ProvisioningPreferencePage.java 31 Jan 2008 04:37:18 -0000 1.5 >+++ src/org/eclipse/equinox/internal/p2/ui/sdk/prefs/ProvisioningPreferencePage.java 4 Feb 2008 15:19:36 -0000 >@@ -34,6 +34,7 @@ > // private Button garbageCollectorCheck; > // private Button deleteImmediatelyRadio, scheduleRadio; > private Button showLatestRadio, showAllRadio; >+ private Button oldUpdateUICheck; > > // private static final int INDENT = 30; > >@@ -108,6 +109,11 @@ > } > }); > */ >+ oldUpdateUICheck = new Button(container, SWT.CHECK); >+ oldUpdateUICheck.setText(ProvSDKMessages.ProvisioningPreferencePage_oldUpdateUI); >+ gd = new GridData(); >+ gd.horizontalSpan = 2; >+ oldUpdateUICheck.setLayoutData(gd); > > initialize(); > >@@ -123,6 +129,7 @@ > // deleteImmediatelyRadio.setSelection(pref.getBoolean(PreferenceConstants.PREF_GC_IMMEDIATELY)); > showLatestRadio.setSelection(pref.getBoolean(PreferenceConstants.PREF_SHOW_LATEST_VERSION)); > showAllRadio.setSelection(!pref.getBoolean(PreferenceConstants.PREF_SHOW_LATEST_VERSION)); >+ oldUpdateUICheck.setSelection(pref.getBoolean(PreferenceConstants.PREF_OLD_UPDATE_MANAGER)); > } > > protected void performDefaults() { >@@ -133,6 +140,7 @@ > // scheduleRadio.setSelection(!pref.getDefaultBoolean(PreferenceConstants.PREF_GC_IMMEDIATELY)); > showLatestRadio.setSelection(pref.getDefaultBoolean(PreferenceConstants.PREF_SHOW_LATEST_VERSION)); > showAllRadio.setSelection(!pref.getDefaultBoolean(PreferenceConstants.PREF_SHOW_LATEST_VERSION)); >+ oldUpdateUICheck.setSelection(pref.getDefaultBoolean(PreferenceConstants.PREF_OLD_UPDATE_MANAGER)); > } > > public boolean performOk() { >@@ -140,6 +148,7 @@ > // pref.setValue(PreferenceConstants.PREF_ENABLE_GC, garbageCollectorCheck.getSelection()); > pref.setValue(PreferenceConstants.PREF_SHOW_LATEST_VERSION, showLatestRadio.getSelection()); > // pref.setValue(PreferenceConstants.PREF_GC_IMMEDIATELY, deleteImmediatelyRadio.getSelection()); >+ pref.setValue(PreferenceConstants.PREF_OLD_UPDATE_MANAGER, oldUpdateUICheck.getSelection()); > ProvSDKUIActivator.getDefault().savePluginPreferences(); > return true; > } >Index: src/org/eclipse/equinox/internal/p2/ui/sdk/prefs/PreferenceConstants.java >=================================================================== >RCS file: /cvsroot/eclipse/equinox-incubator/provisioning/org.eclipse.equinox.p2.ui.sdk/src/org/eclipse/equinox/internal/p2/ui/sdk/prefs/PreferenceConstants.java,v >retrieving revision 1.5 >diff -u -r1.5 PreferenceConstants.java >--- src/org/eclipse/equinox/internal/p2/ui/sdk/prefs/PreferenceConstants.java 30 Nov 2007 00:12:56 -0000 1.5 >+++ src/org/eclipse/equinox/internal/p2/ui/sdk/prefs/PreferenceConstants.java 4 Feb 2008 15:19:36 -0000 >@@ -26,4 +26,5 @@ > public static final String PREF_SHOW_LATEST_VERSION = "showLatestVersion"; //$NON-NLS-1$ > public static final String PREF_ENABLE_GC = "enableArtifactGC"; //$NON-NLS-1$ > public static final String PREF_GC_IMMEDIATELY = "gcUnusedFilesImmediately"; //$NON-NLS-1$ >+ public static final String PREF_OLD_UPDATE_MANAGER = "enableUpdateManagerUI"; //$NON-NLS-1$ > } >Index: META-INF/MANIFEST.MF >=================================================================== >RCS file: /cvsroot/eclipse/equinox-incubator/provisioning/org.eclipse.equinox.p2.ui.sdk/META-INF/MANIFEST.MF,v >retrieving revision 1.9 >diff -u -r1.9 MANIFEST.MF >--- META-INF/MANIFEST.MF 28 Jan 2008 16:00:09 -0000 1.9 >+++ META-INF/MANIFEST.MF 4 Feb 2008 15:19:36 -0000 >@@ -34,7 +34,8 @@ > org.eclipse.equinox.internal.p2.ui.sdk.updates;x-internal:=true, > org.eclipse.equinox.p2.ui.sdk > Require-Bundle: org.eclipse.ui, >- org.eclipse.core.runtime >+ org.eclipse.core.runtime, >+ org.eclipse.core.expressions > Eclipse-LazyStart: true > Bundle-RequiredExecutionEnvironment: J2SE-1.4, > CDC-1.1/Foundation-1.1 >Index: src/org/eclipse/equinox/internal/p2/ui/sdk/prefs/UseOldUpdateManagerTester.java >=================================================================== >RCS file: src/org/eclipse/equinox/internal/p2/ui/sdk/prefs/UseOldUpdateManagerTester.java >diff -N src/org/eclipse/equinox/internal/p2/ui/sdk/prefs/UseOldUpdateManagerTester.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/equinox/internal/p2/ui/sdk/prefs/UseOldUpdateManagerTester.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,23 @@ >+package org.eclipse.equinox.internal.p2.ui.sdk.prefs; >+ >+import org.eclipse.core.expressions.PropertyTester; >+import org.eclipse.core.runtime.Preferences; >+import org.eclipse.equinox.internal.p2.ui.sdk.ProvSDKUIActivator; >+ >+public class UseOldUpdateManagerTester extends PropertyTester { >+ >+ private static final String OLD_UPDATE = "oldUpdate"; //$NON-NLS-1$ >+ >+ public UseOldUpdateManagerTester() { >+ super(); >+ } >+ >+ public boolean test(Object receiver, String property, Object[] args, Object expectedValue) { >+ if (property.equals(OLD_UPDATE)) { >+ Preferences pref = ProvSDKUIActivator.getDefault().getPluginPreferences(); >+ return pref.getBoolean(PreferenceConstants.PREF_OLD_UPDATE_MANAGER); >+ } >+ return false; >+ } >+ >+}
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 215914
:
88333
|
88782
|
89320
|
90390
|
90391
|
90680