1 | String action = e.getActionCommand();↵ | | 1 | String action = ev.getActionCommand();↵
|
|
2 | if (action.equals("OK")) {↵ | | 2 | if (action.equals("OK")) {↵
|
3 | bool = true;↵ | | |
|
4 | setVisible(false);↵ | | |
|
5 | } else if (action.equals("CANCEL")) {↵ | | |
|
6 | bool = false;↵ | | |
|
7 | setVisible(false);↵ | | |
|
8 | } else if (action.equals("NEW")) {↵ | | |
|
9 | /*↵ | | |
|
10 | * EditFolderDialog dialog = treeViewer.getEditFolderDialog( "New↵ | | |
|
11 | * Folder" ); dialog.showDialog(); String name; if (↵ | | |
|
12 | * dialog.↵ | | 3 | success = true;↵
|
| | | 4 | setVisible(false);↵
|
| | | 5 | } else if (action.equals("CANCEL")) {↵
|
13 | success() == true ) { // ok pressed name =↵ | | 6 | success↵
|
14 | * dialog.getName(); } else { // cancel pressed return; }↵ | | |
|
15 | * treeViewer.getFolderTree().addUserFolder( getSelectedFolder(),↵ | | |
|
16 | * name ); //TreeNodeEvent updateEvent2 = new TreeNodeEvent(↵ | | |
|
17 | * getSelectedFolder(), TreeNodeEvent.STRUCTURE_CHANGED );↵ | | |
|
18 | * //treeViewer.mainInterface.crossbar.fireTreeNodeChanged(updateEvent2);↵ | | |
|
19 | */↵ | | |
|
20 | ↵ | | 7 | = false;↵
|
| | | 8 | setVisible(false);↵
|
21 | } | | 9 | }
|