[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools] Re: New Perspective question

Check you .log file  Is there any error messages?

Simon :-)

"Royi Ronen" <royi@xxxxxxxxxx> wrote in message
news:akcmp4$k71$1@xxxxxxxxxxxxxxxx
> Hello,
>
> I am trying to open a new perspective in a plug-in for eclipse.
>
> I added the following to the XML segment:
>
>   <extension
>         point="org.eclipse.ui.perspectives">
>      <perspective
>             name="ExamplePerspective"
>             icon="icons/sample.gif"
>             class="ExamplePerspective"
>             id="org.eclipse.ui.ExamplePerspective">
>      </perspective>
>    </extension>
>
> and implemented the class following the example in the documentation:
>
> public class ExamplePerspective implements IPerspectiveFactory {
>
> public void createInitialLayout(IPageLayout layout) {
> // Get the editor area.
> String editorArea = layout.getEditorArea();
>
> // Top left: Resource Navigator view and Bookmarks view placeholder
> IFolderLayout topLeft = layout.createFolder("topLeft", IPageLayout.LEFT,
> 0.25f,
> editorArea);
> topLeft.addView(IPageLayout.ID_RES_NAV);
> topLeft.addPlaceholder(IPageLayout.ID_BOOKMARKS);
>
> // Bottom left: Outline view and Property Sheet view
> IFolderLayout bottomLeft = layout.createFolder("bottomLeft",
> IPageLayout.BOTTOM, 0.50f,
> "topLeft");
> bottomLeft.addView(IPageLayout.ID_OUTLINE);
> bottomLeft.addView(IPageLayout.ID_PROP_SHEET);
>
> // Bottom right: Task List view
> layout.addView(IPageLayout.ID_TASK_LIST, IPageLayout.BOTTOM, 0.66f,
> editorArea);
> }
>
>
>
> I expect a default layout for the perspective (am I right?).  Instead I
> get a blank screen, with a shortcut button for my perspective, in the
> vertical toolbar on the left side of the screen. Each clicking on that
> shortcut results in another shortcut button, but no change on the screen.
>
> Could you help me out with this?
>
> Thank you very much,
> Royi.
>