[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[platform-ui-dev] State of IContext support
|
Is the context support in a state where it should be working?
I'm playing around with it today, but I seem to be missing something
because when I activate my context programatically (I verified by
debugging that my code to activate is being called), my actions
don't appear in the top-level workbench menu.
If this scenario is supposed to work at this point, can someone (Chris)
take a look at the following and tell me what I'm missing?
Thanks,
- Jared
Here's the context definition:
<extension
point="org.eclipse.ui.contexts">
<context
name="Debugging"
description="Debugging"
id="org.eclipse.debug.ui.Debugging">
</context>
</extension>
Here's the command definition:
<extension
point="org.eclipse.ui.commands">
<category
name="%runCategory.name"
description="%runCategory.description"
id="org.eclipse.debug.ui.category.run">
</category>
<command
name="%ActionDefinition.stepWithFilters.name"
description="%ActionDefinition.stepWithFilters.description"
category="org.eclipse.debug.ui.category.run"
id="org.eclipse.debug.internal.ui.actions.StepWithFiltersActionDelegate">
</command>
<contextBinding
commandId="org.eclipse.debug.internal.ui.actions.StepWithFiltersActionDelegate"
contextId="org.eclipse.debug.ui.Debugging">
</contextBinding>
</extension>
Here's the action definition:
<extension
point="org.eclipse.ui.actionSets">
<actionSet
label="%DebugActionSet.label"
visible="false"
id="org.eclipse.debug.ui.debugActionSet">
<menu
label="%RunMenu.label"
path="additions"
id="org.eclipse.ui.run">
<groupMarker
name="stepIntoGroup">
</groupMarker>
</menu>
<action
id="org.eclipse.debug.internal.ui.actions.StepWithFiltersActionDelegate"
hoverIcon="icons/full/clcl16/stepbystep_co.gif"
class="org.eclipse.debug.internal.ui.actions.StepWithFiltersActionDelegate"
definitionId="org.eclipse.debug.internal.ui.actions.StepWithFiltersActionDelegate"
disabledIcon="icons/full/dlcl16/stepbystep_co.gif"
icon="icons/full/elcl16/stepbystep_co.gif"
helpContextId="step_with_filters_action_context"
label="%StepWithFiltersAction.label"
menubarPath="org.eclipse.ui.run/stepIntoGroup">
</action>
</actionSet>
</extension>
This is what I'm doing programatically to activate the context:
((Workbench) PlatformUI.getWorkbench()).getContextActivationService().activateContext("org.eclipse.debug.ui.Debugging");
P.S. Since this is a work in progress, I chose the mailing list instead
of the newsgroup. Please advise if you'd prefer the discussion moved.