Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 351875 - Error "Referenced part does not exist yet: org.eclipse.jdt.ui.PackageExplorer."
Summary: Error "Referenced part does not exist yet: org.eclipse.jdt.ui.PackageExplorer."
Status: RESOLVED DUPLICATE of bug 350882
Alias: None
Product: EGit
Classification: Technology
Component: UI (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-12 11:58 EDT by Oleg Besedin CLA
Modified: 2011-07-13 18:26 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oleg Besedin CLA 2011-07-12 11:58:19 EDT
1. Install EGit
2. Open Resource perspective.
3. Note the error message in the log:

"Referenced part does not exist yet: org.eclipse.jdt.ui.PackageExplorer."

The bug also causes Platform/UI JUnit test failure in IWorkbenchPageTest#testOpenAndHideEditor11().

The problem is in the following code in the plugin.xml of the "org.eclipse.egit.ui" bundle:

   <extension
         point="org.eclipse.ui.perspectiveExtensions">
      <perspectiveExtension
            targetID="*">
         <view
               id="org.eclipse.egit.ui.RepositoriesView"
               minimized="false"
               ratio="0.6"
               relationship="bottom"
               relative="org.eclipse.jdt.ui.PackageExplorer"
               visible="false">
         </view>
      </perspectiveExtension>
   </extension>

Note that this extension applies to all perspectives ("*") and it wants to be positioned relative to the PackageExplorer.

Well, not all perspectives have PackageExplorer view. For those that do not, this extension creates a error.

I'd highly suggest removing this extension.
Comment 1 Kevin Sawicki CLA 2011-07-13 18:26:29 EDT
I believe this is a duplicate of bug350882

*** This bug has been marked as a duplicate of bug 350882 ***