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 75048 Details for
Bug 198408
[dnd] selection feedback if 'drop_none' is confusing
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
fix
fix_198408.txt (text/plain), 2.22 KB, created by
Benno Baumgartner
on 2007-07-31 11:41:14 EDT
(
hide
)
Description:
fix
Filename:
MIME Type:
Creator:
Benno Baumgartner
Created:
2007-07-31 11:41:14 EDT
Size:
2.22 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.ui >Index: ui/org/eclipse/jdt/internal/ui/dnd/JdtViewerDropAdapter.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dnd/JdtViewerDropAdapter.java,v >retrieving revision 1.20 >diff -u -r1.20 JdtViewerDropAdapter.java >--- ui/org/eclipse/jdt/internal/ui/dnd/JdtViewerDropAdapter.java 31 Jul 2007 07:35:18 -0000 1.20 >+++ ui/org/eclipse/jdt/internal/ui/dnd/JdtViewerDropAdapter.java 31 Jul 2007 15:42:05 -0000 >@@ -183,6 +183,7 @@ > private void doDropValidation(DropTargetEvent event) { > currentOperation= determineOperation(currentTarget, lastValidOperation, event.currentDataType); > event.detail = currentOperation; >+ setFeedback(event, currentLocation); > } > > /* (non-Javadoc) >Index: ui/org/eclipse/jdt/internal/ui/packageview/SelectionTransferDropAdapter.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/SelectionTransferDropAdapter.java,v >retrieving revision 1.65 >diff -u -r1.65 SelectionTransferDropAdapter.java >--- ui/org/eclipse/jdt/internal/ui/packageview/SelectionTransferDropAdapter.java 31 Jul 2007 07:35:18 -0000 1.65 >+++ ui/org/eclipse/jdt/internal/ui/packageview/SelectionTransferDropAdapter.java 31 Jul 2007 15:42:05 -0000 >@@ -59,6 +59,7 @@ > > setScrollEnabled(true); > setExpandEnabled(true); >+ setSelectionFeedbackEnabled(false); > setFeedbackEnabled(false); > } > >@@ -100,6 +101,7 @@ > } > > private void clear() { >+ setSelectionFeedbackEnabled(false); > fElements= null; > fSelection= null; > fMoveProcessor= null; >@@ -119,6 +121,18 @@ > * {@inheritDoc} > */ > protected int determineOperation(Object target, int operation, TransferData transferType) { >+ int result= internalDetermineOperation(target, operation); >+ >+ if (result == DND.DROP_NONE) { >+ setSelectionFeedbackEnabled(false); >+ } else { >+ setSelectionFeedbackEnabled(true); >+ } >+ >+ return result; >+ } >+ >+ private int internalDetermineOperation(Object target, int operation) { > > initializeSelection(); >
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 198408
: 75048