Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » View not showing in perspective
View not showing in perspective [message #460546] Thu, 21 December 2006 15:21 Go to next message
Eclipse UserFriend
I'm writing a plain jane RCP application that serves as a generic
workbench into which I can add our business applications as plugins.

I'm contributing a perspective extenstion in my business application
plugin. When I run the rcp workbench and switch to the plugin's
perspective, the view associated with it does not display though the
actionSet does. I can get to the view from the FastView and it display's
fine.

Here is the relevant code from my perspective.java file in the plugin
project:

public void createInitialLayout(IPageLayout layout) {

layout.addView(PeopleView.ID, IPageLayout.RIGHT, 0.5f, layout
.getEditorArea());
layout.addActionSet(EDITOR_ACTION_ID);
layout.addFastView(PeopleView.ID);
}

I can't figure why the layout.addView is not displaying. Would
appreciate any help.

Thanks
-sud
Re: View not showing in perspective [message #460558 is a reply to message #460546] Thu, 21 December 2006 17:15 Go to previous message
Eclipse UserFriend
I googled the error message in the workspace log file and sure enough
found my problem -- classic case of Fat Finger
(http://eclipsezone.com/eclipse/forums/t77844.rhtml)

I corrected my view id and everything works well now.
-sud

sudhakar wrote:
> I'm writing a plain jane RCP application that serves as a generic
> workbench into which I can add our business applications as plugins.
>
> I'm contributing a perspective extenstion in my business application
> plugin. When I run the rcp workbench and switch to the plugin's
> perspective, the view associated with it does not display though the
> actionSet does. I can get to the view from the FastView and it display's
> fine.
>
> Here is the relevant code from my perspective.java file in the plugin
> project:
>
> public void createInitialLayout(IPageLayout layout) {
>
> layout.addView(PeopleView.ID, IPageLayout.RIGHT, 0.5f, layout
> .getEditorArea());
> layout.addActionSet(EDITOR_ACTION_ID);
> layout.addFastView(PeopleView.ID);
> }
>
> I can't figure why the layout.addView is not displaying. Would
> appreciate any help.
>
> Thanks
> -sud
Previous Topic:Filter text in preferences dialog
Next Topic:Update RCP application
Goto Forum:
  


Current Time: Sat Mar 15 04:55:03 EDT 2025

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

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

Back to the top