View Javadoc
1 /* 2 * Created on 05.03.2004 3 */ 4 package org.xpcards.actions; 5 6 import org.eclipse.swt.SWT; 7 import org.eclipse.swt.widgets.MessageBox; 8 import org.eclipse.swt.widgets.Shell; 9 import org.xpcards.XPCards; 10 11 /*** 12 * @author galu02 13 */ 14 public abstract class AbstractAction { 15 16 protected boolean enabled = true; 17 18 public abstract void performAction(final Shell shell, XPCards parent, Object[] args); 19 20 public void displayError(String msg, Shell shell) { 21 MessageBox box = new MessageBox(shell, SWT.ICON_ERROR); 22 box.setMessage(msg); 23 box.open(); 24 } 25 26 }

This page was automatically generated by Maven