Skip to content
Snippets Groups Projects
Commit ce2015a2 authored by tcarver's avatar tcarver
Browse files

update undo / redo

parent cd7874f5
No related branches found
No related tags found
No related merge requests found
...@@ -60,8 +60,8 @@ public class ActionController ...@@ -60,8 +60,8 @@ public class ActionController
private ActionVector undo_action_vector = new ActionVector (); private ActionVector undo_action_vector = new ActionVector ();
private ActionVector redo_action_vector = new ActionVector (); private ActionVector redo_action_vector = new ActionVector ();
private List undo; private List<JMenuItem> undo;
private List redo; private List<JMenuItem> redo;
/** /**
* Note the start of an action. Create a new Action and add all * Note the start of an action. Create a new Action and add all
...@@ -203,7 +203,7 @@ public class ActionController ...@@ -203,7 +203,7 @@ public class ActionController
final Action temp_current_action = current_action; final Action temp_current_action = current_action;
// discard the in-progress Action (if any) and throw an eception below // discard the in-progress Action (if any) and throw an exception below
current_action = null; current_action = null;
try try
...@@ -357,7 +357,7 @@ public class ActionController ...@@ -357,7 +357,7 @@ public class ActionController
public void addUndoMenu(final JMenuItem undo_item) public void addUndoMenu(final JMenuItem undo_item)
{ {
if(undo == null) if(undo == null)
undo = new Vector(); undo = new Vector<JMenuItem>();
undo.add(undo_item); undo.add(undo_item);
setEnabledMenuItems(); setEnabledMenuItems();
} }
...@@ -365,7 +365,7 @@ public class ActionController ...@@ -365,7 +365,7 @@ public class ActionController
public void addRedoMenu(final JMenuItem redo_item) public void addRedoMenu(final JMenuItem redo_item)
{ {
if(redo == null) if(redo == null)
redo = new Vector(); redo = new Vector<JMenuItem>();
redo.add(redo_item); redo.add(redo_item);
setEnabledMenuItems(); setEnabledMenuItems();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment