Skip to content
Snippets Groups Projects
Commit 3bedbd4d authored by Dongyue Mou's avatar Dongyue Mou
Browse files

No commit message

No commit message
parent a4d86182
No related branches found
No related tags found
No related merge requests found
......@@ -28,8 +28,11 @@ import org.eclipse.draw2d.IFigure;
import org.eclipse.draw2d.Label;
import org.eclipse.draw2d.PositionConstants;
import org.eclipse.draw2d.XYLayout;
import org.eclipse.draw2d.geometry.Insets;
import org.eclipse.draw2d.geometry.Rectangle;
import org.fortiss.tooling.base.layout.DefaultLayoutConstants;
import org.fortiss.tooling.base.model.layout.ILayoutedModelElement;
import org.fortiss.tooling.base.ui.editpart.figure.PrettyRoundedRectangle;
import org.fortiss.tooling.base.ui.utils.LayoutDataUtils;
import org.fortiss.tooling.kernel.model.INamedCommentedElement;
......@@ -43,7 +46,7 @@ import org.fortiss.tooling.kernel.model.INamedCommentedElement;
* @author mou
* @author $Author: hoelzl $
* @version $Rev: 8344 $
* @ConQAT.Rating YELLOW Hash: 3804FA8B123026E3F6491108A4226863
* @ConQAT.Rating YELLOW Hash: EEB93FADF83491DB779EE5D849CCF0C8
*/
public abstract class SubDiagramEditPartBase<T extends ILayoutedModelElement & INamedCommentedElement>
extends ElementEditPartBase<T> {
......@@ -69,6 +72,19 @@ public abstract class SubDiagramEditPartBase<T extends ILayoutedModelElement & I
return result;
}
/** {@inheritDoc} */
@Override
protected IFigure createBaseFigure() {
return new PrettyRoundedRectangle(0, new Insets(
DefaultLayoutConstants.DEFAULT_CONNECTOR_SIZE / 2 - 2)) {
/** {@inheritDoc} */
@Override
protected boolean useLocalCoordinates() {
return true;
}
};
}
/** {@inheritDoc} */
@Override
protected Rectangle determineBaseFigureBounds() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment