Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Customizing diagram menus & perspectives
Customizing diagram menus & perspectives [message #229893] Wed, 13 May 2009 03:50 Go to next message
Eclipse UserFriend
Hi all,

I'd like my diagram to have my own menus and an perspective switcher
with 2 different perspectives.
I am researching how to manage it, but the info I get is related with
RPC apps which, i.e, use org.eclipse.ui.perspectives extension point
and then define the layout of the perspective by creating a perspective
factory class implementing the IPerspectiveFactory interface.

Is that method valid for GMF diagrams? Is there a faster/easier/other
method?

Thanks in advance.
Re: Customizing diagram menus & perspectives [message #230163 is a reply to message #229893] Wed, 13 May 2009 13:51 Go to previous message
Eclipse UserFriend
Originally posted by: cayla_sha.gmx.net

Hi,

Well, I don't know another way to make a perspective.

But it's really fast. The entry in the plugin.xml is short and then you
only need one class for defining the perspective. (so you need two
classes, because you want two different perspectives) Only the defining
itself is a bit of trial and error until you find the right percentages
for each part.

Perhaps this helps you:
http://www.eclipse.org/articles/using-perspectives/Perspecti veArticle.html
http://help.eclipse.org/stable/index.jsp?topic=/org.eclipse. platform.doc.isv/reference/api/org/eclipse/ui/IPerspectiveFa ctory.html

And for menus you also need an extension point. Take a look at
"org.eclipse.ui.menus".

Best wishes
Julia


Juan Miguel Ávila Nieto schrieb:
> Hi all,
>
> I'd like my diagram to have my own menus and an perspective switcher
> with 2 different perspectives.
> I am researching how to manage it, but the info I get is related with
> RPC apps which, i.e, use org.eclipse.ui.perspectives extension point
> and then define the layout of the perspective by creating a perspective
> factory class implementing the IPerspectiveFactory interface.
>
> Is that method valid for GMF diagrams? Is there a faster/easier/other
> method?
>
> Thanks in advance.
Previous Topic:How to avoid scrollbars
Next Topic:Error in Installing GMF via Update manager
Goto Forum:
  


Current Time: Mon Jul 14 09:28:46 EDT 2025

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

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

Back to the top