@@ -21,7 +21,7 @@ public class CommandDelete implements CommandInterface { | |||
private model mdl; | |||
private Preferences prfs; | |||
private String pid; | |||
private Stack adressEintraegeDaten; | |||
private Stack adressEintraegeDaten; //stack immer mit Typ | |||
private Stack pos; | |||
@@ -13,5 +13,6 @@ package commands; | |||
public interface CommandInterface { | |||
public void execute(); | |||
public void undo(); | |||
//public boolean isUndoAble(); | |||
//public void redo | |||
} |
@@ -45,7 +45,7 @@ public class CommandOpen implements CommandInterface { | |||
JFileChooser fc = this.g.getFileChooser(); | |||
try | |||
{ | |||
fc.setCurrentDirectory(new File(this.pref.get(PATH_ID, ""))); | |||
fc.setCurrentDirectory(new File(this.pref.get(PATH_ID, "."))); //Pref ins Model | |||
} | |||
catch(Exception ex) | |||
{ |
@@ -16,7 +16,7 @@ import view.gui; | |||
* Command Controller undo | |||
* @author matthias | |||
*/ | |||
public class C_MenuListener_undo implements ActionListener{ | |||
public class C_MenuListener_undo implements ActionListener{ //keine unterstriche in Klassen und Objektnamen | |||
private gui view; | |||
private CommandInvoker invoker; | |||
private String PathID; |
@@ -97,6 +97,7 @@ | |||
<SubComponents> | |||
<Menu class="javax.swing.JMenu" name="jmFile"> | |||
<Properties> | |||
<Property name="mnemonic" type="int" value="70"/> | |||
<Property name="text" type="java.lang.String" value="File"/> | |||
</Properties> | |||
<SubComponents> | |||
@@ -148,6 +149,7 @@ | |||
</Menu> | |||
<Menu class="javax.swing.JMenu" name="jmEdit"> | |||
<Properties> | |||
<Property name="mnemonic" type="int" value="69"/> | |||
<Property name="text" type="java.lang.String" value="Edit"/> | |||
</Properties> | |||
</Menu> |
@@ -230,6 +230,7 @@ public class gui extends javax.swing.JFrame { | |||
contentTable1.setComponentPopupMenu(jPopupMenu1); | |||
getContentPane().add(contentTable1, java.awt.BorderLayout.CENTER); | |||
jmFile.setMnemonic('F'); | |||
jmFile.setText("File"); | |||
miSave.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.CTRL_MASK)); | |||
@@ -259,6 +260,7 @@ public class gui extends javax.swing.JFrame { | |||
jMenuBar1.add(jmFile); | |||
jmEdit.setMnemonic('E'); | |||
jmEdit.setText("Edit"); | |||
jMenuBar1.add(jmEdit); | |||