org.eclipse.gmf.runtime.diagram.ui.label.ILabelDelegate Java Examples

The following examples show how to use org.eclipse.gmf.runtime.diagram.ui.label.ILabelDelegate. 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: XtextDirectEditManager.java    From statecharts with Eclipse Public License 1.0 6 votes vote down vote up
protected void hookListeners() {
	super.hookListeners();

	// TODO: This gets around the problem of the cell editor not growing big
	// enough when in autosize mode because it doesn't listen to textflow
	// size changes. The superclass should be modified to not assume we want
	// to listen to the editpart's figure.
	ILabelDelegate label = (ILabelDelegate) getEditPart().getAdapter(ILabelDelegate.class);
	if (label != null && getEditPart().getFigure() instanceof WrappingLabel) {

		textFigureListener = new AncestorListener.Stub() {

			public void ancestorMoved(IFigure ancestor) {
				getLocator().relocate(getCellEditor());
			}
		};
		((IFigure) ((WrappingLabel) getEditPart().getFigure()).getTextFigure().getChildren().get(0))
				.addAncestorListener(textFigureListener);
	}
}
 
Example #2
Source File: IntermediateErrorCatchEventLabelEditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
@Override
public Object getAdapter(Class key) {
	if (ILabelDelegate.class.equals(key)) {
		return getLabelDelegate();
	}
	return super.getAdapter(key);
}
 
Example #3
Source File: BoundaryTimerEventLabel2EditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
@Override
public Object getAdapter(Class key) {
	if (ILabelDelegate.class.equals(key)) {
		return getLabelDelegate();
	}
	return super.getAdapter(key);
}
 
Example #4
Source File: ScriptTaskLabel2EditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
@Override
public Object getAdapter(Class key) {
	if (ILabelDelegate.class.equals(key)) {
		return getLabelDelegate();
	}
	return super.getAdapter(key);
}
 
Example #5
Source File: BoundaryMessageEventLabelEditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
@Override
public Object getAdapter(Class key) {
	if (ILabelDelegate.class.equals(key)) {
		return getLabelDelegate();
	}
	return super.getAdapter(key);
}
 
Example #6
Source File: InclusiveGatewayLabelEditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
@Override
public Object getAdapter(Class key) {
	if (ILabelDelegate.class.equals(key)) {
		return getLabelDelegate();
	}
	return super.getAdapter(key);
}
 
Example #7
Source File: StartEventLabel2EditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
@Override
public Object getAdapter(Class key) {
	if (ILabelDelegate.class.equals(key)) {
		return getLabelDelegate();
	}
	return super.getAdapter(key);
}
 
Example #8
Source File: XORGatewayLabel2EditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
@Override
public Object getAdapter(Class key) {
	if (ILabelDelegate.class.equals(key)) {
		return getLabelDelegate();
	}
	return super.getAdapter(key);
}
 
Example #9
Source File: NonInterruptingBoundaryTimerEventNameEditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
@Override
public Object getAdapter(Class key) {
	if (ILabelDelegate.class.equals(key)) {
		return getLabelDelegate();
	}
	return super.getAdapter(key);
}
 
Example #10
Source File: IntermediateCatchSignalEventLabelEditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
@Override
public Object getAdapter(Class key) {
	if (ILabelDelegate.class.equals(key)) {
		return getLabelDelegate();
	}
	return super.getAdapter(key);
}
 
Example #11
Source File: StartSignalEventLabelEditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
@Override
public Object getAdapter(Class key) {
	if (ILabelDelegate.class.equals(key)) {
		return getLabelDelegate();
	}
	return super.getAdapter(key);
}
 
Example #12
Source File: IntermediateThrowMessageEventLabelEditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
@Override
public Object getAdapter(Class key) {
	if (ILabelDelegate.class.equals(key)) {
		return getLabelDelegate();
	}
	return super.getAdapter(key);
}
 
Example #13
Source File: IntermediateThrowMessageEventLabel2EditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
@Override
public Object getAdapter(Class key) {
	if (ILabelDelegate.class.equals(key)) {
		return getLabelDelegate();
	}
	return super.getAdapter(key);
}
 
Example #14
Source File: TaskName2EditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
@Override
public Object getAdapter(Class key) {
	if (ILabelDelegate.class.equals(key)) {
		return getLabelDelegate();
	}
	return super.getAdapter(key);
}
 
Example #15
Source File: SendTaskLabel2EditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
@Override
public Object getAdapter(Class key) {
	if (ILabelDelegate.class.equals(key)) {
		return getLabelDelegate();
	}
	return super.getAdapter(key);
}
 
Example #16
Source File: IntermediateErrorCatchEventLabel5EditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
@Override
public Object getAdapter(Class key) {
	if (ILabelDelegate.class.equals(key)) {
		return getLabelDelegate();
	}
	return super.getAdapter(key);
}
 
Example #17
Source File: BoundarySignalEventLabelEditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
@Override
public Object getAdapter(Class key) {
	if (ILabelDelegate.class.equals(key)) {
		return getLabelDelegate();
	}
	return super.getAdapter(key);
}
 
Example #18
Source File: SendTaskLabelEditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
@Override
public Object getAdapter(Class key) {
	if (ILabelDelegate.class.equals(key)) {
		return getLabelDelegate();
	}
	return super.getAdapter(key);
}
 
Example #19
Source File: ActivityName2EditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
@Override
public Object getAdapter(Class key) {
	if (ILabelDelegate.class.equals(key)) {
		return getLabelDelegate();
	}
	return super.getAdapter(key);
}
 
Example #20
Source File: SubProcessEventLabelEditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
@Override
public Object getAdapter(Class key) {
	if (ILabelDelegate.class.equals(key)) {
		return getLabelDelegate();
	}
	return super.getAdapter(key);
}
 
Example #21
Source File: ANDGatewayLabel2EditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
@Override
public Object getAdapter(Class key) {
	if (ILabelDelegate.class.equals(key)) {
		return getLabelDelegate();
	}
	return super.getAdapter(key);
}
 
Example #22
Source File: StartEventLabelEditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
@Override
public Object getAdapter(Class key) {
	if (ILabelDelegate.class.equals(key)) {
		return getLabelDelegate();
	}
	return super.getAdapter(key);
}
 
Example #23
Source File: StartMessageEventLabel2EditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
@Override
public Object getAdapter(Class key) {
	if (ILabelDelegate.class.equals(key)) {
		return getLabelDelegate();
	}
	return super.getAdapter(key);
}
 
Example #24
Source File: SubProcessEventLabel2EditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
@Override
public Object getAdapter(Class key) {
	if (ILabelDelegate.class.equals(key)) {
		return getLabelDelegate();
	}
	return super.getAdapter(key);
}
 
Example #25
Source File: PoolNameEditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
@Override
public Object getAdapter(Class key) {
	if (ILabelDelegate.class.equals(key)) {
		return getLabelDelegate();
	}
	return super.getAdapter(key);
}
 
Example #26
Source File: CatchLinkEventLabel2EditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
@Override
public Object getAdapter(Class key) {
	if (ILabelDelegate.class.equals(key)) {
		return getLabelDelegate();
	}
	return super.getAdapter(key);
}
 
Example #27
Source File: TextAnnotationText2EditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
@Override
public Object getAdapter(Class key) {
	if (ILabelDelegate.class.equals(key)) {
		return getLabelDelegate();
	}
	return super.getAdapter(key);
}
 
Example #28
Source File: StartErrorEventLabelEditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
@Override
public Object getAdapter(Class key) {
	if (ILabelDelegate.class.equals(key)) {
		return getLabelDelegate();
	}
	return super.getAdapter(key);
}
 
Example #29
Source File: ThrowLinkEventLabel2EditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
@Override
public Object getAdapter(Class key) {
	if (ILabelDelegate.class.equals(key)) {
		return getLabelDelegate();
	}
	return super.getAdapter(key);
}
 
Example #30
Source File: IntermediateErrorCatchEventLabel2EditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
@Override
public Object getAdapter(Class key) {
	if (ILabelDelegate.class.equals(key)) {
		return getLabelDelegate();
	}
	return super.getAdapter(key);
}