[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [cdt-dev] how do I open eclipse windows programmatically?
|
Thanks..
It was not easy to find the property page id.. only through debugging the createPropertyDialogOn I managed to find it..
here is the solution if anyone else need it..
public static int openLaunchConfigurationsDialog(Shell shell, IProject project) {
String propertyPageId = "org.eclipse.debug.ui.properties.defaultLaunchConfigurations"; // a.k.a project->Properties->Run/Debug Settings..
String [] displayedIds = null;
Object data = "">
PreferenceDialog dialog = PreferencesUtil.createPropertyDialogOn(shell, project, propertyPageId, displayedIds, data);
return dialog.open();
}
/Jimmie
2009/4/29 Leherbauer, Anton (Toni)
<Anton.Leherbauer@xxxxxxxxxxxxx>
See
org.eclipse.ui.dialogs.PreferencesUtil.
You also need to find out the Run/Debug property page
id.
HTH,
Toni
Hi
How do I open eclipse windows programmatically from my
plug-in?
In my case I want to open the selected project -> Properties
-> Run/Debug Settings?
My selected project is an IProject reference and
want to go from there.
/Jimmie
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev