View not showing in perspective [message #460546] |
Thu, 21 December 2006 15:21  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03575 seconds