/*******************************************************************************
* Copyright (c) 2004, 2008 John Krasnay and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* John Krasnay - initial API and implementation
*******************************************************************************/
package net.sf.vex.editor.action;
import net.sf.vex.action.IVexAction;
import net.sf.vex.editor.InsertAssistant;
import net.sf.vex.swt.VexWidget;
import net.sf.vex.widget.IVexWidget;
/**
* @author john
*
* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Style - Code Templates
*/
public class InsertElementAction implements IVexAction {
public void run(IVexWidget vexWidget) {
new InsertAssistant().show((VexWidget) vexWidget);
}
public boolean isEnabled(IVexWidget vexWidget) {
return true;
}
}