//----------------------------BEGIN LICENSE----------------------------
/* 
 * Willow : the Open Source WorkFlow Project
 * Distributable under GNU LGPL license by gun.org
 *
 * Copyright (C) 2004-2010 huihoo.org 
 * Copyright (C) 2004-2010  ZosaTapo <dertyang@hotmail.com> 
 * 
 * ====================================================================
 * Project Homepage : http://www.huihoo.org/willow
 * Source Forge     : http://sourceforge.net/projects/huihoo
 * Mailing list     : willow@lists.sourceforge.net 
 */
//----------------------------END  LICENSE----------------------------
package org.huihoo.god4j.actions;

import javax.swing.AbstractAction;
import javax.swing.Action;

import org.huihoo.god4j.GOD4JConstants;
import org.huihoo.god4j.jgraph.JGraphConstants;
import org.huihoo.god4j.util.StringManager;
import org.huihoo.god4j.util.ToolUtils;

/**
 * @author liangce
 *
 * To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Generation - Code and Comments
 */
public abstract class ActionBase extends AbstractAction
{
	protected static StringManager sm_jgraph = StringManager.getManager(JGraphConstants.PACKAGE);
	protected static StringManager sm_god4j = StringManager.getManager(GOD4JConstants.PACKAGE);
	
	/**
	 * The Abstract action uses unqualified class name as action name.
	 *
	 */
	public ActionBase()
	{
		putValue(Action.NAME, ToolUtils.getUnqualifiedClassName(getClass()));
	}

	/**
		* Constructor which accepts the action name.
		* 
		* @param name Name of this action
		*/

	public ActionBase(String name)
	{
		super(name);
	}
	
	public void update()
	{
	}
}
