/*
* Copyright (c) 2010 National Aeronautics and Space Administration. All rights reserved.
*/
package net.certware.argument.euz.diagram.edit.parts;
import net.certware.argument.euz.diagram.edit.policies.ArgumentArgumentJustificationsItemSemanticEditPolicy;
import org.eclipse.draw2d.Connection;
import org.eclipse.gmf.runtime.diagram.ui.editparts.ConnectionNodeEditPart;
import org.eclipse.gmf.runtime.diagram.ui.editparts.ITreeBranchEditPart;
import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
import org.eclipse.gmf.runtime.draw2d.ui.figures.PolylineConnectionEx;
import org.eclipse.gmf.runtime.notation.View;
import org.eclipse.swt.graphics.Color;
/**
* @generated
*/
public class ArgumentArgumentJustificationsEditPart extends
ConnectionNodeEditPart implements ITreeBranchEditPart {
/**
* @generated
*/
public static final int VISUAL_ID = 4006;
/**
* @generated
*/
public ArgumentArgumentJustificationsEditPart(View view) {
super(view);
}
/**
* @generated
*/
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE,
new ArgumentArgumentJustificationsItemSemanticEditPolicy());
}
/**
* Creates figure for this edit part.
*
* Body of this method does not depend on settings in generation model
* so you may safely remove <i>generated</i> tag and modify it.
*
* @generated
*/
protected Connection createConnectionFigure() {
return new ArgumentArgumentJustificationsFigure();
}
/**
* @generated
*/
public ArgumentArgumentJustificationsFigure getPrimaryShape() {
return (ArgumentArgumentJustificationsFigure) getFigure();
}
/**
* @generated
*/
public class ArgumentArgumentJustificationsFigure extends
PolylineConnectionEx {
/**
* @generated
*/
public ArgumentArgumentJustificationsFigure() {
this.setForegroundColor(THIS_FORE);
}
}
/**
* @generated
*/
static final Color THIS_FORE = new Color(null, 0, 0, 0);
}