Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[ptp-dev] Launch attributes unavailable to Profile Analysis widget models unless apply button clicked

I have a ETFw/JAXB custom widget model that extends org.eclipse.ptp.rm.jaxb.control.ui.AbstractUpdateModel and which needs access to the application executable path name from the launch configuration so it can perform some processing on that executable.

 If I switch from the Application tab to the Profile Analysis tab without clicking the apply button before switching to the Profile Analysis tab then I cannot get the executable name.

If I click the apply button between filling in the Application tab and clicking the Performance Analysis tab then I get the executable name.

Stepping thru my custom widget model where I don't click the apply button, I see that the application path name attribute is not available in either the ILaunchConfiguration object or either of the IVariableMap objects passed to my class. Also, if I look at the .launch file in the .metadata/.plugins directory while suspended at this point I see that the application path attribute has not been stored in the .launch file.

I've also tried using an ILaunchConfigurationWorkingCopy object created from the ILaunchConfiguration object as ell as calling nthe doSave() method for the ILaunchConfigurationWorkingCopy object and that did not help.

If I click the apply button between filling in the Application tab and clicking the Performance Analysis tab, then the application path attribute is available, and if I look in the .launch file I see the attribute is stored there.

Is there something I should be doing to get this attribute value without requiring the user to click the Apply button?
Dave

Back to the top