Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 44817 - Opening Java perspective causes an error to occur
Summary: Opening Java perspective causes an error to occur
Status: RESOLVED DUPLICATE of bug 44915
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.0   Edit
Hardware: PC Linux-GTK
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Markus Keller CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-14 09:48 EDT by Douglas Pollock CLA
Modified: 2003-10-17 09:09 EDT (History)
1 user (show)

See Also:


Attachments
Eclipse Log File (7.81 KB, text/plain)
2003-10-14 09:48 EDT, Douglas Pollock CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Douglas Pollock CLA 2003-10-14 09:48:09 EDT
I'm not sure how reproducible this is.  I closed the Java perspective, and then
opened it again.  It said that an error had occurred, but it did not interfere
with any functionality (that I could see).  I'll attach the log.

Eclipse-GTK-3.0M4
Comment 1 Douglas Pollock CLA 2003-10-14 09:48:56 EDT
Created attachment 6416 [details]
Eclipse Log File
Comment 2 Debbie Wilson CLA 2003-10-14 11:11:47 EDT
Transferring to JDT/UI as this looks like it might be a Package Explorer 
issue.  Please reassign if this isn't correct.
Comment 3 Martin Aeschlimann CLA 2003-10-15 05:53:03 EDT
PackageExplorerPart.createPartControl ends up calling itself:
Seems to be a GTK problem with ethe event handling. Steve, can you have a quick
look at the stack trace (attachment 6416 [details])?

We should remove the 'update(getSelection());' from the PasteAction constructor. 
Markus, can you do that?
Comment 4 Steve Northover CLA 2003-10-15 12:05:17 EDT
Veronika will look a this.  GTK runs a free event loop for you in their 
clipboard code that allows callbacks to come spilling in.  So far as I know, 
there is nothing we can do about it because we need to make this clipboard 
call and the event loop is deep in the GTK source.  We will try again.  This 
bug belongs to SWT.
Comment 5 Veronika Irvine CLA 2003-10-15 12:19:00 EDT

*** This bug has been marked as a duplicate of 44915 ***
Comment 6 Markus Keller CLA 2003-10-17 09:09:13 EDT
We should not remove update(getSelection()) from PasteAction and its friends,
since it initially disables the action when the part is created.

Steps to see incorrect enablement when removing the call to update(...) in
PasteAction:
- copy some text to the clipboard
- new (empty) workspace, open Java Perspective, activate Package Explorer
-> Edit > Copy is enabled, but shouldn't be.

As an intermediate action, we could use update(StructuredSelection.EMPTY), but
the general problem seems indeed to be in GTK event-handling.