Revision fd294c94 src/gr/ebs/gss/client/Groups.java
b/src/gr/ebs/gss/client/Groups.java | ||
---|---|---|
68 | 68 |
ImageResource delete(); |
69 | 69 |
|
70 | 70 |
} |
71 |
private boolean ctrlKeyPressed = false; |
|
72 |
|
|
73 |
private boolean leftClicked = false; |
|
74 |
|
|
75 |
private boolean rightClicked = false; |
|
76 | 71 |
|
77 | 72 |
/** |
78 | 73 |
* cached latest group selection (for selecting and expanding on refresh) |
... | ... | |
95 | 90 |
private TreeItem previous; |
96 | 91 |
|
97 | 92 |
/** |
98 |
* A cached copy of the currently changed group widget. |
|
99 |
*/ |
|
100 |
private TreeItem changed; |
|
101 |
|
|
102 |
/** |
|
103 | 93 |
* The widget's image bundle. |
104 | 94 |
*/ |
105 | 95 |
private final Images images; |
106 | 96 |
|
107 | 97 |
private GroupContextMenu menu; |
108 | 98 |
|
109 |
private boolean showMenu=false; |
|
110 | 99 |
/** |
111 | 100 |
* Constructs a new groups widget with a bundle of images. |
112 | 101 |
* |
... | ... | |
243 | 232 |
menu.hide(); |
244 | 233 |
menu = new GroupContextMenu(images); |
245 | 234 |
menu.setPopupPosition(x, y); |
246 |
showMenu=false; |
|
247 | 235 |
menu.show(); |
248 | 236 |
} |
249 | 237 |
|
... | ... | |
310 | 298 |
} |
311 | 299 |
|
312 | 300 |
/** |
313 |
* Modify the changed. |
|
314 |
* |
|
315 |
* @param newChanged the changed to set |
|
316 |
*/ |
|
317 |
private void setChanged(final TreeItem newChanged) { |
|
318 |
changed = newChanged; |
|
319 |
} |
|
320 |
|
|
321 |
/** |
|
322 | 301 |
* Retrieve the previous. |
323 | 302 |
* |
324 | 303 |
* @return the previous |
... | ... | |
370 | 349 |
@Override |
371 | 350 |
public void onOpen(OpenEvent event) { |
372 | 351 |
final TreeItem item = (TreeItem) event.getTarget(); |
373 |
setChanged(item); |
|
374 | 352 |
updateUsers(item); |
375 |
|
|
376 | 353 |
} |
377 | 354 |
} |
Also available in: Unified diff