Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Problem to active a perspective of another pluin
Problem to active a perspective of another pluin [message #452812] Mon, 17 July 2006 06:06
Jason is currently offline JasonFriend
Messages: 45
Registered: July 2009
Member
Hi, there,

I'm using Eclipse3.2 to development my RCP application.
Currently I have one basic product application with no perspective on it;
and another plugin A with a perspective to show.
I tried to get perspective information from the ExtensionRegistry to
create a perspective toolbar(clicking on it to show the perspective) with
the code snippet as following:

IExtensionPoint point = Platform.getExtensionRegistry().

getExtensionPoint("org.eclipse.ui.perspectives");
IExtension[] extensions = point.getExtensions();
for (int i = 0; i < extensions.length; i++) {
IConfigurationElement[] ele =
extensions[i].getConfigurationElements();
for (int j = 0; j < ele.length; j++) {
String perspectiveId = ele[j].getAttribute("id");
perspectiveIdList.add(perspectiveId);
}
}

Everything works perfectly running in IDE.

And I exported the product application and plugin A running as a stand
alone application instead of in IDE; from debug I can see the code snippet
above gets the perspective id.

But the default perspective I make in the code is not shown.
I use the code below to show the default perspective:
window.getWorkbench().showPerspective(defaultPerspective, window);

Clicking on the perspective button in the perspective bar to show the
perspective, it complains with the error dialog "Problems opening
perspectives 'com.my.perspective'".

So I looked into the OSGI console with status command, everything looks
just fine, the basic product application is in 'Active' and plugin A in
'Resolved'.

Hope some one could shed some light on this problem.

Thanks in advance,
Jason
Previous Topic:Extern jars into RCP Product
Next Topic:ClassNotFoundException in RCP tutorial
Goto Forum:
  


Current Time: Sat Oct 12 09:47:53 GMT 2024

Powered by FUDForum. Page generated in 0.03496 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top