Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] new launch configuration is not populated with values

Create new launch configuration programmatically with prefilled values and open it in launch configuration dialog.

Mikael Engbom wrote:
I am developing a plugin which will launch the users project if an launch configuration is available, if none is available it will open the "Run/Debug settings" property window. The problem is when I press the "New..." button and choose "C/C++ Local Application" the fields "Name" is filled with "New_configuration" and "Project" and "C/++ Application" are empty.

I want the filed to be filled with the same information as if I had opened the property page from Project -> Properties -> Run/Debug Settings.

I open the property page with the following commando:

PreferencesUtil.createPropertyDialogOn(shell, project, propertyPageId, displayedIds, data);

Where data = null, project is of type IProject, displayedIds = and displayedIds = null

I assume I need pass some information via data, but I do not know what. Any hints would be appreciated!

The plugin is developed to work with eclipse 3.4 and CDT 5 at the moment.



cdt-dev mailing list

Back to the top