Revision 39212 branches/v2_0_0_prep/applications/appgvSIG/src/org/gvsig/app/gui/command/CommandStackDialog.java
CommandStackDialog.java | ||
---|---|---|
47 | 47 |
private JScrollPane jScrollPane = null; |
48 | 48 |
private JPanel tablePanel = null; |
49 | 49 |
|
50 |
private static final ImageIcon imodify = IconThemeHelper.getImageIcon("layout-tool-undo-redo-actions-modify");
|
|
51 |
private static final ImageIcon iadd = IconThemeHelper.getImageIcon("layout-tool-undo-redo-actions-add");
|
|
52 |
private static final ImageIcon idel = IconThemeHelper.getImageIcon("layout-tool-undo-redo-actions-delete");
|
|
50 |
private static final ImageIcon imodify = IconThemeHelper.getImageIcon("edit-undo-redo-actions-modify");
|
|
51 |
private static final ImageIcon iadd = IconThemeHelper.getImageIcon("edit-undo-redo-actions-add");
|
|
52 |
private static final ImageIcon idel = IconThemeHelper.getImageIcon("edit-undo-redo-actions-delete");
|
|
53 | 53 |
|
54 | 54 |
private CommandTableModel commandTableModel = null; |
55 | 55 |
/** |
... | ... | |
145 | 145 |
int newpos = commandTable.getSelectedRow(); |
146 | 146 |
if (newpos >= 0){ |
147 | 147 |
commandTableModel.setPos(newpos); |
148 |
PluginServices.getMainFrame().enableControls();
|
|
148 |
ApplicationLocator.getManager().refreshMenusAndToolBars();
|
|
149 | 149 |
} |
150 | 150 |
} |
151 | 151 |
}); |
... | ... | |
252 | 252 |
refreshing = true; |
253 | 253 |
currentSliderValue = value; |
254 | 254 |
commandTableModel.setPos(value); |
255 |
ApplicationLocator.getManager().refreshMenusAndToolBars(); |
|
255 | 256 |
refreshing = false; |
256 | 257 |
} |
257 | 258 |
} |
... | ... | |
288 | 289 |
} |
289 | 290 |
if (number != currentValue) { |
290 | 291 |
currentValue = number; |
291 |
refreshControls(); |
|
292 | 292 |
if (fireEvent) { |
293 | 293 |
callValueChanged(new Integer(currentValue)); |
294 | 294 |
} |
295 |
} |
|
295 |
} |
|
296 |
/* |
|
297 |
* This needs to be refreshed also when same number is set |
|
298 |
* Example: select one feature and click 'delete' key |
|
299 |
*/ |
|
300 |
refreshControls(); |
|
296 | 301 |
} |
297 | 302 |
|
298 | 303 |
/** |
Also available in: Unified diff