|
|
@ -6,16 +6,12 @@ import com.fr.design.widget.ui.designer.NewFormPane; |
|
|
|
|
|
|
|
|
|
|
|
import javax.swing.KeyStroke; |
|
|
|
import javax.swing.KeyStroke; |
|
|
|
import java.awt.event.ActionEvent; |
|
|
|
import java.awt.event.ActionEvent; |
|
|
|
import java.awt.event.KeyEvent; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import static com.fr.design.gui.syntax.ui.rtextarea.RTADefaultInputMap.DEFAULT_MODIFIER; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class NewFormAction extends UpdateAction { |
|
|
|
public class NewFormAction extends UpdateAction { |
|
|
|
|
|
|
|
|
|
|
|
public NewFormAction() { |
|
|
|
public NewFormAction() { |
|
|
|
this.setMenuKeySet(NEW_FORM); |
|
|
|
this.setMenuKeySet(NEW_FORM); |
|
|
|
this.setName(getMenuKeySet().getMenuKeySetName()); |
|
|
|
this.setName(getMenuKeySet().getMenuName()); |
|
|
|
this.setMnemonic(getMenuKeySet().getMnemonic()); |
|
|
|
|
|
|
|
this.setSmallIcon("/com/fr/design/images/buttonicon/new_form3"); |
|
|
|
this.setSmallIcon("/com/fr/design/images/buttonicon/new_form3"); |
|
|
|
this.setAccelerator(getMenuKeySet().getKeyStroke()); |
|
|
|
this.setAccelerator(getMenuKeySet().getKeyStroke()); |
|
|
|
} |
|
|
|
} |
|
|
@ -33,7 +29,7 @@ public class NewFormAction extends UpdateAction { |
|
|
|
public static final MenuKeySet NEW_FORM = new MenuKeySet() { |
|
|
|
public static final MenuKeySet NEW_FORM = new MenuKeySet() { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public char getMnemonic() { |
|
|
|
public char getMnemonic() { |
|
|
|
return 'F'; |
|
|
|
return 0; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|