Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[ptp-dev] A couple PTP questions

Randy,

I'm working on implementing a class derived from 
AbstractRMLaunchConfigurationDynamicTab and noticed while running with the 
debugger that the createControl() method is getting called three times 
before the parallel tab appears. My class seems to be working correctly, 
but I'm worried that this could be a performance problem on a loaded 
machine. Could I be doing something wrong that is causing createControl to 
be called several times?

Also, I looked at the notes in IRMLaunchConfigurationDynamicTab about 
canSave and isValid. I understand the notes, but am curious about if I 
need to worry about the distinction. My thoughts are that I would not want 
to save a launch configuration unless all fields are valid, and I also 
would not want to launch an application unless all fields were valid, so 
both could call the same validation logic. The only reason I can see why I 
might need to distinguish is that I need to ensure that if the user enters 
some fields in the parallel tab, where there may be invalid values, 
switches to another tab such as arguments, then comes back to parallel tab 
to fill in the rest of the fields, that the first fields the user entered 
into the parallel tab have not been reset. If that is the reason for the 
distinction, then when would I not want to save settings as part of 
canSave processing?

Thanks
Dave


Back to the top