Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 23204
Collapse All | Expand All

(-)src/org/eclipse/team/internal/ccvs/ui/repo/RemoteViewPart.java (-7 / +6 lines)
Lines 275-285 Link Here
275
		tbm.add(collapseAllAction);
275
		tbm.add(collapseAllAction);
276
		tbm.update(false);
276
		tbm.update(false);
277
277
278
		// Create the open action for double clicks
278
		// Register the open handler
279
		openAction = new OpenRemoteFileAction();
279
		openAction = new OpenRemoteFileAction();
280
		viewer.addDoubleClickListener(new IDoubleClickListener() {
280
		viewer.addOpenListener(new IOpenListener() {
281
			public void doubleClick(DoubleClickEvent e) {
281
			public void open(OpenEvent event) {
282
				handleDoubleClick(e);
282
				handleOpen(event);
283
			}
283
			}
284
		});
284
		});
285
285
Lines 361-370 Link Here
361
		viewer.getControl().setRedraw(true);
361
		viewer.getControl().setRedraw(true);
362
	}
362
	}
363
	/**
363
	/**
364
	 * The mouse has been double-clicked in the tree, perform appropriate
364
	 * Handle open request.
365
	 * behaviour.
366
	 */
365
	 */
367
	private void handleDoubleClick(DoubleClickEvent e) {
366
	private void handleOpen(OpenEvent e) {
368
		// Only act on single selection
367
		// Only act on single selection
369
		ISelection selection = e.getSelection();
368
		ISelection selection = e.getSelection();
370
		if (selection instanceof IStructuredSelection) {
369
		if (selection instanceof IStructuredSelection) {

Return to bug 23204