Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 98892 Details for
Bug 197113
Project Explorer drag and drop selection not working properly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Added correct copyright notice to the patch and updated it per HEAD
197113a.txt (text/plain), 2.68 KB, created by
Francis Upton IV
on 2008-05-06 13:45:48 EDT
(
hide
)
Description:
Added correct copyright notice to the patch and updated it per HEAD
Filename:
MIME Type:
Creator:
Francis Upton IV
Created:
2008-05-06 13:45:48 EDT
Size:
2.68 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.ui.navigator >Index: src/org/eclipse/ui/navigator/CommonViewer.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.ui.navigator/src/org/eclipse/ui/navigator/CommonViewer.java,v >retrieving revision 1.28 >diff -u -r1.28 CommonViewer.java >--- src/org/eclipse/ui/navigator/CommonViewer.java 17 Apr 2008 17:15:16 -0000 1.28 >+++ src/org/eclipse/ui/navigator/CommonViewer.java 6 May 2008 17:44:09 -0000 >@@ -1,5 +1,5 @@ > /******************************************************************************* >- * Copyright (c) 2003, 2008 IBM Corporation and others. >+ * Copyright (c) 2003, 2007, 2008 IBM Corporation and others. > * All rights reserved. This program and the accompanying materials > * are made available under the terms of the Eclipse Public License v1.0 > * which accompanies this distribution, and is available at >@@ -7,6 +7,8 @@ > * > * Contributors: > * IBM Corporation - initial API and implementation >+ * Oakland Software (Francis Upton - francisu@ieee.org) >+ * bug 197113 Project Explorer drag and drop selection not working properly > *******************************************************************************/ > package org.eclipse.ui.navigator; > >@@ -23,8 +25,11 @@ > import org.eclipse.jface.viewers.ViewerSorter; > import org.eclipse.swt.dnd.DND; > import org.eclipse.swt.events.DisposeEvent; >+import org.eclipse.swt.events.MouseAdapter; >+import org.eclipse.swt.events.MouseEvent; > import org.eclipse.swt.events.SelectionEvent; > import org.eclipse.swt.widgets.Composite; >+import org.eclipse.swt.widgets.Control; > import org.eclipse.swt.widgets.Widget; > import org.eclipse.ui.internal.navigator.ContributorTrackingSet; > import org.eclipse.ui.internal.navigator.NavigatorContentService; >@@ -324,6 +329,24 @@ > } > } > >+ /* (non-Javadoc) >+ * @see org.eclipse.jface.viewers.AbstractTreeViewer#hookEditingSupport(Control) >+ */ >+ protected void hookEditingSupport(Control control) { >+ // FIXME - This caching thing should not be here; it's brittle. >+ // The underlying problem of over-calling of getSelection() should >+ // be addressed instead (see bugs 144294 and 140032) >+ // The DragStart event will come before the SelectionEvent on >+ // some platforms (GTK). Since DragStart can turn around and >+ // call getSelection(), we need to clear the cache. >+ control.addMouseListener(new MouseAdapter() { >+ public void mouseDown(MouseEvent e) { >+ clearSelectionCache(); >+ } >+ }); >+ } >+ >+ > /* (non-Javadoc) > * @see org.eclipse.jface.viewers.AbstractTreeViewer#setSelectionToWidget(java.util.List, boolean) > */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 197113
:
89482
|
98892
|
100016