Dave,
I don't know if this is related, but only buttons in the <rm:control-state> with a <rm:show-if> are dynamically checked as they change state. Using an attribute is does not cause the control-state to be updated in real-time, but it does check it the next time the launch config is opened. So if you close the profile launch configuration and reopen it then the attribute is checked and the show-if behavior is handled. Please try that. I think we need to change the control-state open-source code to handle not just button dynamically, but as attributes change their valued. I'm being quite brief in my response so If any of this is confusing, please repost and I'll explain more.
Bri
I'm trying to modify the content of a pane
in the Performance Analysis tab of a profile configuration dialog based
on the value of an attribute stored in the launch configuration.
I defined an attribute, com.ibm.ppedev.hpct.INSTRUMENTATION_WORKFLOW
that I set in the profile configuration based on choices made by the user
in the profile configuration dialog.
I'm currently setting this attribute
in a class registered with the org.eclipse.ptp.etfw.dataManagers extension
point and specified in the XML file that builds the Performance Analysis
tab as an analysisTool. If I look at the *.launch file in the .metadata/.plugins/org.eclipse.debug.core/.launces
directory I see that the attribute value is set as I expected.
I've defined a label widget in the XML
file where I have specified a <rm:control-state> with a <rm:show-if>
specifying the attribute name and the required value, but the widget never
appears.
I think I have two problems
1) I think the timing for when the <analysisTool>
runs is too late, where it doesn't run until after the Profile button is
clicked. I'm trying to get this to work where the attribute is checked
before the Performance Analysis tab is opened. For instance, I change the
application path on the Application tab and expect to set the com.ibm.ppedev.hpct.INSTRUMENTATION_WORKFLOW
attribute based on this value before the Performance Analysis tab is opened.
I don't see any way to specify a class/method
to get control at that point. Am I missing something or is this not possible?
2) I don't seem to be able to access
the com.ibm.ppedev.hpct.INSTRUMENTATION_WORKFLOW attribute value within
the XML file as a target of a <show-if>. I am expecting the attribute
value that is currently in the .launch file to be accessible in the <show-if>
but it seems to be ignored. I've specified this attribute in an <attribute>
in the <controlData> section.
Am I allowed to use an arbitrary attribute
in a <show-if> or is there only a subset of attributes I can use?
If I'm allowed to use an arbitrary attribute, is my coding incorrect?
<rm:control-state>
<rm:show-if attribute="com.ibm.ppedev.hpct.INSTRUMENTATION_WORKFLOW"
value="ProfileDialog"/>
</rm:control-state>
Dave_______________________________________________ ptp-dev mailing list ptp-dev@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/ptp-dev
|