Bug 28133 - [Navigator] Access of ClipBoard on file activation
Summary: [Navigator] Access of ClipBoard on file activation
Status: RESOLVED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Knut Radloff CLA
QA Contact:
URL:
Whiteboard:
Keywords: performance
Depends on:
Blocks:
 
Reported: 2002-12-11 15:28 EST by Andrew Irvine CLA
Modified: 2003-01-02 14:57 EST (History)
0 users

See Also:


Attachments
stacktrace illustrating path to ClipBoard#getContents (2.87 KB, text/plain)
2002-12-11 15:28 EST, Andrew Irvine CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Irvine CLA 2002-12-11 15:28:05 EST
Eclipse 20021210

When I select an entry from either the Navigator, or the Package Explorer the 
ClipBoard is accessed.  Is this access required?  I do not understand why we 
would want to involve the clipboard on a selection event.

My workspace had one simple project, consisting of two files, aFile.txt and 
bFile.txt.  There were two accesses to the ClipBoard.  After the file is open, 
I tried a paste to a window outside of eclipse, I did not get the file names, 
rather the last thing I had put in the clipboard.  A paste within eclipse 
produced the same results.  This makes sense.  I had a breakpoint on both 
setContents and getContents, only getContents was hit.
Comment 1 Andrew Irvine CLA 2002-12-11 15:28:56 EST
Created attachment 2760 [details]
stacktrace illustrating path to ClipBoard#getContents
Comment 2 Andrew Irvine CLA 2002-12-11 15:41:33 EST
When I select a file(s) (single click) the menu item Editor#Copy is enabled, 
Editor#paste is disabled.  Editor#paste is only enabled after I invoke the copy 
action via Editor#Copy.  So I guess this is what it is trying to determine; 
should Editor#paste be enabled (and other menu items).  Still don't see why 
this would be done each time I select an editor, the selection action has 
nothing to do with setting of these edit menu items. 
Comment 3 Knut Radloff CLA 2003-01-02 14:57:17 EST
Copy/paste actions are in the workbench Edit menu. Enablement state can only be 
set during selectionChanged.