Bug 38734 - [Navigator] PasteAction should get clipboard contents only when needed
Summary: [Navigator] PasteAction should get clipboard contents only when needed
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 3.0 M2   Edit
Assignee: Knut Radloff CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 38952
  Show dependency tree
 
Reported: 2003-06-10 16:46 EDT by Knut Radloff CLA
Modified: 2003-06-17 10:00 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Knut Radloff CLA 2003-06-10 16:46:56 EDT
build 20030605

PasteAction.updateSelection checks whether there is a valid paste target after 
getting the clipboard contents. The paste target check does not involve the 
clipboard content and should therefore be done earlier, before reading the 
clipboard.

The method also reads the FileTransfer data from the clipboard to check if the 
paste action should be enabled if there is no resource data. It does not 
actually use the file data. The new Clipboard.getAvailableTypes API should be 
used instead.
Comment 1 Knut Radloff CLA 2003-06-17 10:00:50 EDT
Fixed in >20030617
When an open project is pasted the selected paste target is irrelevant (since 
the workspace is the target, regardless of selection). Therefore we still get 
the Clipboard resource data to test for projects. However for FileTransfer 
(paste from file system/Windows Explorer) we now use the new getAvailableTypes 
API instead of getting the clipboard data. This should no longer block bug 
38952.