// File: ActionReorderParts.java
// Classes: ActionReorderParts
// Author: Kedar Patankar

package EDU.neu.ccs.demeter.tools.apstudio.graphedit;

public class ActionReorderParts extends Action
{
	UVertex _v;

	public ActionReorderParts(Editor e,UVertex v) { super(e);_v=v;}
	
	public String name() { return "Reorder parts of classes"; }

	public void doIt() 
	{
//		if(_v.get_outArcIdList().size()<=1)
//			return;
		if(_v instanceof UConstVertex)
		{
			ConstVertPartReorderDialog dd = new ConstVertPartReorderDialog(_editor,"Reorder parts ...",_v);
			dd.setVisible(true);
		}
		else
		{
			AltVertPartReorderDialog dd = new AltVertPartReorderDialog(_editor,"Reorder parts ...",_v);
			dd.setVisible(true);
		}
	}

	public void undoIt() { }

} /* end class ActionReorderParts */
