Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to set the default perspective (my own)
How to set the default perspective (my own) [message #165362] Fri, 14 December 2007 09:38 Go to next message
Eclipse UserFriend
Originally posted by: fbanica.soluta.net

Hello everybody,

I need your help. I have a RCP GMF editor and I don't succeed in making my
own perspective (actually created when the editor was generated) as default
perspective. The application ALWAYS starts in the Resource perspective...


Please help,



Floppy
Re: How to set the default perspective (my own) [message #165405 is a reply to message #165362] Fri, 14 December 2007 11:01 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: 5d5.mail.ru

See WorkbenchAdvisor.getInitialWindowPerspectiveId()

Florin Banica wrote:
> Hello everybody,
>
> I need your help. I have a RCP GMF editor and I don't succeed in making my
> own perspective (actually created when the editor was generated) as default
> perspective. The application ALWAYS starts in the Resource perspective...
>
>
> Please help,
>
>
>
> Floppy
>
>
Re: How to set the default perspective (my own) [message #165414 is a reply to message #165405] Fri, 14 December 2007 11:16 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: fbanica.soluta.net

I checked that, it is OK, it gets the right id. I also modified the
"createInitialLayout" on DiagramPerspectiveEditor, but still with no
result...

public void createInitialLayout(IPageLayout layout) {

layout.setEditorAreaVisible(true);

layout.addPerspectiveShortcut(org.one_project.one_neg_mod.fa ctory.negotiation.diagram.application.DiagramEditorWorkbench Advisor.PERSPECTIVE_ID);


IFolderLayout bottomLeft = layout.createFolder("bottomLeft",
IPageLayout.BOTTOM, 0.7f, layout.getEditorArea());

bottomLeft.addView(IPageLayout.ID_PROP_SHEET);

IFolderLayout right = layout.createFolder("right", IPageLayout.RIGHT, 0.85f,
layout.getEditorArea());

right.addView(" org.one_project.one_neg_mod.factory.negotiation.diagram.mode lview ");


layout.setFixed(true);

}

I have my view wich should show up inside the perspective, but the
application always starts with the empty area editor, the Properties and
Outline views...

Any other clue, please?


F.


"Dmitry Stadnik" <5d5@mail.ru> wrote in message
news:fjtnph$58p$3@build.eclipse.org...
> See WorkbenchAdvisor.getInitialWindowPerspectiveId()
>
> Florin Banica wrote:
>> Hello everybody,
>>
>> I need your help. I have a RCP GMF editor and I don't succeed in making
>> my own perspective (actually created when the editor was generated) as
>> default perspective. The application ALWAYS starts in the Resource
>> perspective...
>>
>>
>> Please help,
>>
>>
>>
>> Floppy
>>
Re: How to set the default perspective (my own) [message #165421 is a reply to message #165414] Fri, 14 December 2007 11:26 Go to previous message
Eclipse UserFriend
Originally posted by: fbanica.soluta.net

I tried to debug, but it doesn't even stop at the breakpoints into these
methods...


"Florin Banica" <fbanica@soluta.net> wrote in message
news:fjtp11$ngj$1@build.eclipse.org...
>I checked that, it is OK, it gets the right id. I also modified the
>"createInitialLayout" on DiagramPerspectiveEditor, but still with no
>result...
>
> public void createInitialLayout(IPageLayout layout) {
>
> layout.setEditorAreaVisible(true);
>
> layout.addPerspectiveShortcut(org.one_project.one_neg_mod.fa ctory.negotiation.diagram.application.DiagramEditorWorkbench Advisor.PERSPECTIVE_ID);
>
>
> IFolderLayout bottomLeft = layout.createFolder("bottomLeft",
> IPageLayout.BOTTOM, 0.7f, layout.getEditorArea());
>
> bottomLeft.addView(IPageLayout.ID_PROP_SHEET);
>
> IFolderLayout right = layout.createFolder("right", IPageLayout.RIGHT,
> 0.85f, layout.getEditorArea());
>
> right.addView(" org.one_project.one_neg_mod.factory.negotiation.diagram.mode lview ");
>
>
> layout.setFixed(true);
>
> }
>
> I have my view wich should show up inside the perspective, but the
> application always starts with the empty area editor, the Properties and
> Outline views...
>
> Any other clue, please?
>
>
> F.
>
>
> "Dmitry Stadnik" <5d5@mail.ru> wrote in message
> news:fjtnph$58p$3@build.eclipse.org...
>> See WorkbenchAdvisor.getInitialWindowPerspectiveId()
>>
>> Florin Banica wrote:
>>> Hello everybody,
>>>
>>> I need your help. I have a RCP GMF editor and I don't succeed in making
>>> my own perspective (actually created when the editor was generated) as
>>> default perspective. The application ALWAYS starts in the Resource
>>> perspective...
>>>
>>>
>>> Please help,
>>>
>>>
>>>
>>> Floppy
>>>
>
Previous Topic:Overlap on connection
Next Topic:Customizing Note
Goto Forum:
  


Current Time: Sat Apr 20 03:31:16 GMT 2024

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

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

Back to the top