org.eclipse.gmf.runtime.diagram.ui.label.WrappingLabelDelegate Java Examples
The following examples show how to use
org.eclipse.gmf.runtime.diagram.ui.label.WrappingLabelDelegate.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TextAwareExternalLabelEditPart.java From statecharts with Eclipse Public License 1.0 | 5 votes |
@Override public Object getAdapter(@SuppressWarnings("rawtypes") Class key) { if (key.equals(ILabelDelegate.class)) { WrappingLabel wrappingLabel = getWrappingLabel(); if (wrappingLabel == null) return super.getAdapter(key); return new WrappingLabelDelegate(wrappingLabel); } return super.getAdapter(key); }
Example #2
Source File: TextAwareLabelEditPart.java From statecharts with Eclipse Public License 1.0 | 5 votes |
@Override public Object getAdapter(@SuppressWarnings("rawtypes") Class key) { if (key.equals(ILabelDelegate.class)) { WrappingLabel wrappingLabel = getWrappingLabel(); if (wrappingLabel == null) return super.getAdapter(key); return new WrappingLabelDelegate(wrappingLabel); } return super.getAdapter(key); }