Revision 1483

tmp/org.txm.rcp/src/main/java/org/txm/rcp/views/corpora/CorporaView.java (revision 1483)
336 336
			}
337 337
		}
338 338

  
339

  
340 339
		treeViewer.addDoubleClickListener(new IDoubleClickListener() {
341 340
			@Override
342 341
			public void doubleClick(DoubleClickEvent event) {
......
346 345
					String commandId = doubleClickInstalledCommands.get(selectedItem.getClass().getName());
347 346
					if (commandId != null) {
348 347
						BaseAbstractHandler.executeCommand(commandId);
348
					} else {
349
						if (treeViewer.getExpandedState(selectedItem)) {
350
							treeViewer.collapseToLevel(selectedItem, 99);
351
						} else {
352
							treeViewer.expandToLevel(selectedItem, 99);
353
						}
349 354
					}
350 355
				}
351 356
			}

Also available in: Unified diff