Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » RCP3.2: Perspective is not being read nor loaded
RCP3.2: Perspective is not being read nor loaded [message #453117] Sat, 22 July 2006 01:06 Go to next message
Bruno is currently offline BrunoFriend
Messages: 26
Registered: July 2009
Junior Member
Hi Guys,

I trying to create a very simple perspective with just one view. The code
is right (i'm folloing a the http://eclipsercp/book), it runs correctly in
Eclipse 3.1 but is not running correctly on Eclipse 3.2.

What happens is the perspective class is not read by the UI. I verified it
by letting a breakpoint inside the perspective. It is never reached. As a
consequence my View is not opened.

What is happening? Did something change from 3.1 to 3.2?

The code of my perspective is bellow:

package org.eclipsercp.hyperbola;

import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;

public class Perspective implements IPerspectiveFactory {

public void createInitialLayout(IPageLayout layout) {
layout.setEditorAreaVisible(false);
layout.addStandaloneView(ContactsView.ID, false, IPageLayout.LEFT,
1.0f, layout.getEditorArea());
}
}
Re: RCP3.2: Perspective is not being read nor loaded [message #453118 is a reply to message #453117] Sat, 22 July 2006 01:43 Go to previous messageGo to next message
Bruno is currently offline BrunoFriend
Messages: 26
Registered: July 2009
Junior Member
And this is the plugin.xml I'm using.

<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.1"?>
<plugin>

<extension
id="application"
point="org.eclipse.core.runtime.applications">
<application>
<run
class="org.eclipsercp.hyperbola.Application">
</run>
</application>
</extension>
<extension
point="org.eclipse.ui.perspectives">
<perspective
name="Hyperbola Perspective"
class="org.eclipsercp.hyperbola.Perspective"
id="org.eclipsercp.hyperbola.perspective">
</perspective>
</extension>
<extension
point="org.eclipse.ui.views">
<view
class="org.eclipsercp.hyperbola.ContactsView"
icon="icons/groups.gif"
id="org.eclipsercp.hyperbola.views.contacts"
name="Contacts"/>
</extension>

</plugin>
Re: RCP3.2: Perspective is not being read nor loaded [message #453119 is a reply to message #453118] Sat, 22 July 2006 01:52 Go to previous messageGo to next message
Bruno is currently offline BrunoFriend
Messages: 26
Registered: July 2009
Junior Member
Guys I discovered what was preventing my Perspective class from being
loaded.

This happens when the "configurer.setSaveAndRestore(true)" is called from
inside the "initalize(IWorkbenchConfigurer configurer)" method of my
ApplicationWorkbenchAdvisor class. WHen I commented it out, the
Perspective and the View were loaded correctly. Does someone know how can
I be happening?

thank you,
bruno.

public class ApplicationWorkbenchAdvisor extends WorkbenchAdvisor {

private static final String PERSPECTIVE_ID =
"org.eclipsercp.hyperbola.perspective";

public WorkbenchWindowAdvisor createWorkbenchWindowAdvisor(
IWorkbenchWindowConfigurer configurer) {
return new ApplicationWorkbenchWindowAdvisor(configurer);
}

public String getInitialWindowPerspectiveId() {
return PERSPECTIVE_ID;
}

public void initialize(IWorkbenchConfigurer configurer) {
//configurer.setSaveAndRestore(true);
}
}
Re: RCP3.2: Perspective is not being read nor loaded [message #453120 is a reply to message #453119] Sat, 22 July 2006 02:15 Go to previous message
Bruno is currently offline BrunoFriend
Messages: 26
Registered: July 2009
Junior Member
Ok, I found the answer on this thread.

http://www.velocityreviews.com/forums/t170717-problem-with-e clipse-rcp-example.html

forget it, is not really a problem with Eclipse.

bruno
Previous Topic:right click menu
Next Topic:Right click In treeViewer
Goto Forum:
  


Current Time: Mon Dec 30 18:07:47 GMT 2024

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

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

Back to the top