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 121688 Details for
Bug 201125
External Discouraged Access warnings in o.e.d.connectivity.ui
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Revised Patch
201125_patch2.txt (text/plain), 6.68 KB, created by
Linda Chan
on 2009-01-06 15:42:06 EST
(
hide
)
Description:
Revised Patch
Filename:
MIME Type:
Creator:
Linda Chan
Created:
2009-01-06 15:42:06 EST
Size:
6.68 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.datatools.connectivity.ui >Index: src/org/eclipse/datatools/connectivity/internal/ui/ProfileUIManager.java >=================================================================== >RCS file: /cvsroot/datatools/org.eclipse.datatools.connectivity/plugins/org.eclipse.datatools.connectivity.ui/src/org/eclipse/datatools/connectivity/internal/ui/ProfileUIManager.java,v >retrieving revision 1.3 >diff -u -r1.3 ProfileUIManager.java >--- src/org/eclipse/datatools/connectivity/internal/ui/ProfileUIManager.java 22 Feb 2008 05:24:20 -0000 1.3 >+++ src/org/eclipse/datatools/connectivity/internal/ui/ProfileUIManager.java 6 Jan 2009 20:35:40 -0000 >@@ -15,27 +15,20 @@ > > package org.eclipse.datatools.connectivity.internal.ui; > >-import java.util.Collection; >-import java.util.List; >- > import org.eclipse.core.runtime.IAdaptable; > import org.eclipse.datatools.connectivity.IConnectionProfile; > import org.eclipse.datatools.connectivity.ui.wizards.ProfilePropertyPage; > import org.eclipse.jface.preference.IPreferenceNode; > import org.eclipse.jface.preference.IPreferencePage; > import org.eclipse.jface.preference.PreferenceDialog; >-import org.eclipse.jface.preference.PreferenceManager; > import org.eclipse.swt.widgets.Shell; > import org.eclipse.ui.dialogs.PreferencesUtil; >-import org.eclipse.ui.internal.dialogs.PropertyPageContributorManager; >-import org.eclipse.ui.internal.dialogs.PropertyPageManager; > > /** > * An internal utility class of the Connection Profile UI Manager. >- * This currently uses internal Platform UI packages to get at property page details. >- * It is pending switch to use Platform UI patch (Bugzilla 208830) in 3.4, >- * when DTP no longer needs to provide backward compatibility to Platform version 3.3. >- * See TODO tags below. >+ * This has now switched from using internal Platform UI packages >+ * to Platform UI API methods that were added in 3.4 (Bugzilla 208830). >+ * Backward compatibility to Eclipse Platform version 3.3 is no longer supported from DTP 1.7 on. > * @since DTP 1.6 > */ > public class ProfileUIManager >@@ -47,8 +40,7 @@ > */ > public static boolean hasContributors( Object element ) > { >- // TODO replace with call to method in org.eclipse.ui.dialogs.PreferencesUtil >- return hasPropertiesContributors( element ); >+ return PreferencesUtil.hasPropertiesContributors( element ); > } > > /** >@@ -64,8 +56,7 @@ > if ( element == null || !(element instanceof IAdaptable) ) > return null; > >- // TODO replace with call to method in org.eclipse.ui.dialogs.PreferencesUtil >- IPreferenceNode[] nodes = propertiesContributorsFor( element ); >+ IPreferenceNode[] nodes = PreferencesUtil.propertiesContributorsFor( element ); > > String[] displayedIds = new String[nodes.length]; > for ( int i = 0; i < nodes.length; i++ ) >@@ -85,8 +76,7 @@ > */ > public static ProfilePropertyPage createPropertyPage( IConnectionProfile profile ) > { >- // TODO replace with call to method in org.eclipse.ui.dialogs.PreferencesUtil >- IPreferenceNode[] nodes = propertiesContributorsFor( profile ); >+ IPreferenceNode[] nodes = PreferencesUtil.propertiesContributorsFor( profile ); > > for( int i=0; i < nodes.length; i++ ) > { >@@ -110,51 +100,5 @@ > > return null; > } >- >- /* >- * TODO Below utility methods are a copy of new utility API methods added to >- * org.eclipse.ui.dialogs.PreferencesUtil in 3.4 M6 (Bugzilla 208830 patch 89658). >- * Need to remove these methods when DTP no longer needs to provide >- * backward compatibility to Eclipse platform version 3.3. >- */ >- >- /** >- * Indicates whether the specified element has at least one property page >- * contributor. >- * >- * @param element >- * an adapter element of a property page >- * @return true for having at least one contributor; false otherwise >- * @since 3.4 >- */ >- public static boolean hasPropertiesContributors(Object element) { >- if (element == null || !(element instanceof IAdaptable)) >- return false; >- Collection contributors = PropertyPageContributorManager.getManager() >- .getApplicableContributors(element); >- return contributors != null && contributors.size() > 0; >- } >- >- /** >- * Return all of the properties page contributors for an element. >- * @param element >- * @return {@link IPreferenceNode}[] >- * @since 3.4 >- */ >- public static IPreferenceNode[] propertiesContributorsFor(Object element) { >- PropertyPageManager pageManager = new PropertyPageManager(); >- if (element == null) { >- return null; >- } >- // load pages for the selection >- // fill the manager with contributions from the matching contributors >- PropertyPageContributorManager.getManager().contribute(pageManager, >- element); >- // testing if there are pages in the manager >- List pages = pageManager.getElements(PreferenceManager.PRE_ORDER); >- IPreferenceNode[] nodes = new IPreferenceNode[pages.size()]; >- pages.toArray(nodes); >- return nodes; >- } > > } >Index: META-INF/MANIFEST.MF >=================================================================== >RCS file: /cvsroot/datatools/org.eclipse.datatools.connectivity/plugins/org.eclipse.datatools.connectivity.ui/META-INF/MANIFEST.MF,v >retrieving revision 1.136 >diff -u -r1.136 MANIFEST.MF >--- META-INF/MANIFEST.MF 21 Oct 2008 20:17:08 -0000 1.136 >+++ META-INF/MANIFEST.MF 6 Jan 2009 20:35:40 -0000 >@@ -2,16 +2,16 @@ > Bundle-ManifestVersion: 2 > Bundle-Name: %Plugin.Name > Bundle-SymbolicName: org.eclipse.datatools.connectivity.ui; singleton:=true >-Bundle-Version: 1.1.3.qualifier >+Bundle-Version: 1.1.4.qualifier > Bundle-Activator: org.eclipse.datatools.connectivity.internal.ui.ConnectivityUIPlugin > Bundle-Vendor: %Plugin.ProviderName > Bundle-Localization: plugin > Bundle-RequiredExecutionEnvironment: J2SE-1.4 > Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.2.0,4.0.0)", > org.eclipse.core.resources;bundle-version="[3.2.0,4.0.0)", >- org.eclipse.ui;bundle-version="[3.2.0,4.0.0)", >+ org.eclipse.ui;bundle-version="[3.4.0,4.0.0)", > org.eclipse.ui.views;bundle-version="[3.2.0,4.0.0)", >- org.eclipse.datatools.connectivity;bundle-version="[0.9.1,1.5.0)", >+ org.eclipse.datatools.connectivity;bundle-version="[1.1.0,1.5.0)", > org.eclipse.ui.navigator;bundle-version="[3.2.0,4.0.0)", > org.eclipse.core.expressions;bundle-version="[3.2.0,4.0.0)", > com.ibm.icu;bundle-version="[3.4.0,4.0.0)",
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 201125
:
121195
| 121688