org.eclipse.gmf.runtime.diagram.ui.figures.ResizableCompartmentFigure Java Examples

The following examples show how to use org.eclipse.gmf.runtime.diagram.ui.figures.ResizableCompartmentFigure. 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: StateTextCompartmentEditPart.java    From statecharts with Eclipse Public License 1.0 5 votes vote down vote up
@Override
protected IFigure createFigure() {
	ResizableCompartmentFigure figure = (ResizableCompartmentFigure) super.createFigure();
	GridLayout gridLayout = new GridLayout(1, true);
	gridLayout.marginHeight = 0;
	gridLayout.marginWidth = 0;
	figure.getContentPane().setLayoutManager(gridLayout);
	figure.setBorder(null);
	figure.setToolTip((String) null);
	return figure;
}
 
Example #2
Source File: CustomSubProcessResizableCompartmentEditPolicy.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
@Override
public void deactivate() {
	super.deactivate();
	super.hideSelection();
	if (getHost().getSelected() == EditPart.SELECTED_NONE) {
		ResizableCompartmentFigure compartmentFigure = getCompartmentFigure();
		if (compartmentFigure != null) {
			compartmentFigure.setSelected(false);
		}
	}
}
 
Example #3
Source File: ScriptedTaskScriptedTaskOutputVariablesCompartmentEditPart.java    From scava with Eclipse Public License 2.0 4 votes vote down vote up
/**
* @generated
*/
public IFigure createFigure() {
	ResizableCompartmentFigure result = (ResizableCompartmentFigure) super.createFigure();
	result.setTitleVisibility(false);
	return result;
}
 
Example #4
Source File: TypeTypeFieldsCompartmentEditPart.java    From scava with Eclipse Public License 2.0 4 votes vote down vote up
/**
* @generated
*/
public IFigure createFigure() {
	ResizableCompartmentFigure result = (ResizableCompartmentFigure) super.createFigure();
	result.setTitleVisibility(false);
	return result;
}
 
Example #5
Source File: LanguageLanguageParametersCompartmentEditPart.java    From scava with Eclipse Public License 2.0 4 votes vote down vote up
/**
* @generated
*/
public IFigure createFigure() {
	ResizableCompartmentFigure result = (ResizableCompartmentFigure) super.createFigure();
	result.setTitleVisibility(false);
	return result;
}
 
Example #6
Source File: RegionCompartmentEditPart.java    From statecharts with Eclipse Public License 1.0 4 votes vote down vote up
@Override
protected void refreshVisuals() {
	super.refreshVisuals();
	((ResizableCompartmentFigure) getFigure()).getScrollPane()
			.setScrollBarVisibility(org.eclipse.draw2d.ScrollPane.NEVER);
}
 
Example #7
Source File: CustomPoolCompartmentEditPart.java    From bonita-studio with GNU General Public License v2.0 4 votes vote down vote up
@Override
public ResizableCompartmentFigure getCompartmentFigure() {
    return (ResizableCompartmentFigure) getFigure();
}
 
Example #8
Source File: CustomSubprocessEventCompartmentEditPart.java    From bonita-studio with GNU General Public License v2.0 4 votes vote down vote up
@Override
public ResizableCompartmentFigure getCompartmentFigure() {
    return (ResizableCompartmentFigure) getFigure();
}
 
Example #9
Source File: SubProcessEventSubProcessCompartment2EditPart.java    From bonita-studio with GNU General Public License v2.0 4 votes vote down vote up
/**
* @generated
*/
public IFigure createFigure() {
	ResizableCompartmentFigure result = (ResizableCompartmentFigure) super.createFigure();
	result.setTitleVisibility(false);
	return result;
}
 
Example #10
Source File: LaneLaneCompartmentEditPart.java    From bonita-studio with GNU General Public License v2.0 4 votes vote down vote up
/**
* @generated
*/
public IFigure createFigure() {
	ResizableCompartmentFigure result = (ResizableCompartmentFigure) super.createFigure();
	result.setTitleVisibility(false);
	return result;
}
 
Example #11
Source File: SubProcessEventSubProcessCompartmentEditPart.java    From bonita-studio with GNU General Public License v2.0 4 votes vote down vote up
/**
* @generated
*/
public IFigure createFigure() {
	ResizableCompartmentFigure result = (ResizableCompartmentFigure) super.createFigure();
	result.setTitleVisibility(false);
	return result;
}
 
Example #12
Source File: PoolPoolCompartmentEditPart.java    From bonita-studio with GNU General Public License v2.0 4 votes vote down vote up
/**
* @generated
*/
public IFigure createFigure() {
	ResizableCompartmentFigure result = (ResizableCompartmentFigure) super.createFigure();
	result.setTitleVisibility(false);
	return result;
}