Java Reference
In-Depth Information
Object feature = notification.getFeature();
if
(StylePackage.eINSTANCE.getCustomStyle_Default()
.equals(feature)) {
handleMajorSemanticChange();
}
else
{
super
.handleNotificationEvent(notification);
}
}
}
At this point, we can launch our runtime workspace and test our new action.
At this point, we can launch our runtime workspace and test our new action.
Figure 10-55 is an image of our SVG figure and the menu item that allows us to
restore the original figure for display.
Figure 10-55
SVG image menu
10.9.3 Custom EditPolicy
We now add a custom
EditPolicy
to take advantage of the
hyperlink:
EString
attribute on our
CustomStyle
notation element. We'll add the fol-
lowing contribution to the
editpolicyProviders
extension-point.
<extension
point="org.eclipse.gmf.runtime.diagram.ui.editpolicyProviders">
<editpolicyProvider
class="org.eclipse.scenario.diagram.custom.providers.
ScenarioEditPolicyProvider">
<Priority name="High"/>
</editpolicyProvider>
</extension>
Search WWH ::
Custom Search