Community
Participate
Working Groups
This class is needed to successfully resolve bug 173414.
Sorry, I can't see why providing an API in JDT UI would help Platform UI to fix bug 173414. Maybe you meant that Platform UI should provide this as API?
Yes, I meant that Platform UI should provide this API. I opened it against JDT since JDT owns this class right now. If this is incorrect and Platform should own this bug, please move it accordingly.
> If this is incorrect and Platform should own this bug, please move it >accordingly. Platform UI has to decided whether they want to provide this as API and also make sure that it is in API quality.
I like this idea Let's see how hard this is ;)
Boris, I'll give this one to you as API-dude (which we don't have a component area for...).
ProjectSelectionDialog has references to JDT-specific types: import org.eclipse.jdt.core.IJavaModel; import org.eclipse.jdt.core.JavaCore; import org.eclipse.jdt.ui.JavaElementComparator; import org.eclipse.jdt.ui.JavaElementLabelProvider; import org.eclipse.jdt.ui.StandardJavaElementContentProvider; import org.eclipse.jdt.internal.ui.JavaPlugin; import org.eclipse.jdt.internal.ui.dialogs.StatusInfo; This means that we cannot just push it down into the platform. Could you please explain exactly what you need to resolve bug 173414? (A screenshot of the dialog would help, too.)
Created attachment 108382 [details] The requested screenshot of the dialog. Boris, to see it for yourself, please perform the following: 1. Window > Preferences > Java > Compiler 2. Click on the 'Configure Project Settings...' link at the top right hand corner. There are two similarly named dialogs in PDE. Exposing this as API would help reduce the amount of duplicate code in multiple Eclipse plug-ins (as I imagine other people are also using this code in their product). The dialog, as you can imagine from the link, allows a user to select a specific project and open that project's properties page so that a user can modify that specific project's settings instead of modifying it globally. Please see bug 173414 comment 12 for some "wants" of the community. As a first cut, maybe just taking in an IProject[] in the dialog's constructor to determine what should be shown would be good enough for most people? But what do I know about Platform/UI APIs? :P
(In reply to comment #7) > The dialog, as you can imagine from the link, allows a user to select a > specific project and open that project's properties page so that a user can > modify that specific project's settings instead of modifying it globally. By globally I mean at the workspace-level of course.
From bug 173414 comment 12: yes, we would like to extend/reuse this project selection dialog. We would then like to customize it: - reduce the scope of projects shown: only some of projects (like "java only" or "custom nature" only) has to be shown for selection - change also the text/checkboxes shown etc. So to do all this things it would be nice to have this dialog as non-internal (API).
The jdt.internal.ui.preferences.ProjectSelectionDialog has same implementation as org.eclipse.pde.ui.internal.ui.preferences.ProjectSelectionDialog.. I have reported an enhancement to the Eclipse for publishing the pde ProjectSelectionDialog. It will be better to reuse the eclipse package itself.
*** Bug 342412 has been marked as a duplicate of this bug. ***
New Gerrit change created: https://git.eclipse.org/r/45428