Bug 350882 - Perspective Error - Referenced part does not exist yet: org.eclipse.jdt.ui.PackageExplorer.
Summary: Perspective Error - Referenced part does not exist yet: org.eclipse.jdt.ui.Pa...
Status: RESOLVED FIXED
Alias: None
Product: EGit
Classification: Technology
Component: UI (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
: 351875 424760 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-06-30 16:37 EDT by Patrick Chuong CLA
Modified: 2014-01-02 07:46 EST (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Chuong CLA 2011-06-30 16:37:50 EDT
When I switch to a new perspective that isn't a java perspective, I get this error: Referenced part does not exist yet: org.eclipse.jdt.ui.PackageExplorer.

Here is the callstack that trigger this error:
Status.setMessage(String) line: 225	
Status.<init>(int, String, int, String, Throwable) line: 89	
StatusUtil.newStatus(int, String, Throwable) line: 179	
WorkbenchPlugin.log(String) line: 749	
PageLayout.addPart(LayoutPart, String, int, float, String) line: 276	
PageLayout.addPlaceholder(String, int, float, String) line: 305	
PerspectiveExtensionReader.processView(IConfigurationElement) line: 307	
PerspectiveExtensionReader.processExtension(IConfigurationElement) line: 118	
PerspectiveExtensionReader.readElement(IConfigurationElement) line: 355	
PerspectiveExtensionReader(RegistryReader).readElements(IConfigurationElement[]) line: 144	
PerspectiveExtensionReader(RegistryReader).readExtension(IExtension) line: 155	
PerspectiveExtensionReader(RegistryReader).readRegistry(IExtensionRegistry, String, String) line: 176	
PerspectiveExtensionReader.extendLayout(IExtensionTracker, String, PageLayout) line: 82	
Perspective.loadPredefinedPersp(PerspectiveDescriptor) line: 818	
Perspective.createPresentation(PerspectiveDescriptor) line: 270	
Perspective.<init>(PerspectiveDescriptor, WorkbenchPage) line: 156	
Workbench3xImplementation.createPerspective(PerspectiveDescriptor, WorkbenchPage) line: 55	
WorkbenchPage.createPerspective(PerspectiveDescriptor, boolean) line: 1748	
WorkbenchPage.busySetPerspective(IPerspectiveDescriptor) line: 1108	
WorkbenchPage.access$16(WorkbenchPage, IPerspectiveDescriptor) line: 1099	
WorkbenchPage$19.run() line: 3814	
BusyIndicator.showWhile(Display, Runnable) line: 70	
WorkbenchPage.setPerspective(IPerspectiveDescriptor) line: 3812	
ShowPerspectiveHandler.openPerspective(String, IWorkbenchWindow) line: 146	
ShowPerspectiveHandler.execute(ExecutionEvent) line: 61	
HandlerProxy.execute(ExecutionEvent) line: 293	
Command.executeWithChecks(ExecutionEvent) line: 476	
...
Comment 1 Dani Megert CLA 2011-07-05 03:10:52 EDT
I cannot reproduce this. Can you please
1. provide the build ID (is it 3.7 or 3.8?)
2. steps to reproduce
3. entire .log
Comment 2 Patrick Chuong CLA 2011-07-05 22:08:40 EDT
1. I am using 3.7 for C/C++ Developer.
2. I simply switch perspective to resource perspective (or my custom perspective).
3. The log contains one error status without any stack, the message is "Referenced part does not exist yet: org.eclipse.jdt.ui.PackageExplorer."

I am on vacation this week, if you can't reproduce it, then I'll try to reproduce it next week when I return to the office.
Comment 3 Dani Megert CLA 2011-07-06 06:50:57 EDT
This is a bug in EGit: they place their org.eclipse.egit.ui.RepositoriesView relative to the Package Explorer which of course is not available in the C++ package.
Comment 4 Dani Megert CLA 2011-07-06 06:58:43 EDT
EGit should not reference any JDT stuff in their plugin.xml.
Comment 5 christian e CLA 2011-07-09 04:52:01 EDT
This issue also appears with the scala perspective.
I got this error message when I switch from java to scala perspective.

Either the scala ide has placed one view relative to the package explorer, like Dani Megert said in relation to egit or it is another issue.
Comment 6 Kevin Sawicki CLA 2011-07-13 18:26:29 EDT
*** Bug 351875 has been marked as a duplicate of this bug. ***
Comment 7 Matthias Sohn CLA 2011-08-10 07:38:31 EDT
proposed patch http://egit.eclipse.org/r/#change,3983
Comment 8 Stefan Lay CLA 2011-08-15 09:04:22 EDT
Fixed with 03e3e73785a6d3b462680bfc8d57e3f0ccd4a851
Comment 9 Wojciech Sudol CLA 2014-01-02 07:46:29 EST
*** Bug 424760 has been marked as a duplicate of this bug. ***