Skip to main content



      Home
Home » Eclipse Projects » GEF » Palette (gmf): Layout, ToolEntry, ContextMenu
Palette (gmf): Layout, ToolEntry, ContextMenu [message #239009] Wed, 10 October 2007 05:38 Go to next message
Eclipse UserFriend
Originally posted by: agatha.schmitz.gmx.de

Hello Everybody...

I've tried to find something usefull in the newsgroups but i wasn't very
successful... Perhaps some of you have ideas or hints how i could solve
my problems.


1. Is there a way to change the initial layout mode of the palette?


2. I want to have a second ZoomTool on my palette which could be used to
zoom out.
I found this newsgroup threads but i could'd figure out how create the
toolEntry by using my extended AbstractTool:
http://dev.eclipse.org/newslists/news.eclipse.modeling.gmf/m sg04132.html
http://dev.eclipse.org/newslists/news.eclipse.tools.gef/msg1 2974.html


3. How could i add/remove entries to the context(popup) menu of the
palette which are sensitive for the ToolEntry ?
After reading this
(http://www.eclipsezone.com/eclipse/forums/m92176531.html) i created my
own PaletteViewerProvider. But now i face the problem to get it used
instead of the genereated one. I could't find a classes where this
provider is set or a appropriate extension point.

Well, i'm stucked and any help would be great...


TIA
Agatha
Re: Palette (gmf): Layout, ToolEntry, ContextMenu [message #239030 is a reply to message #239009] Wed, 10 October 2007 07:57 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: shady_86.sify.com

for your 1st problem try out the palette preference method, dig about it and you will get some code,

for rest wait for others to reply..,
Re: Palette (gmf): Layout, ToolEntry, ContextMenu [message #239253 is a reply to message #239009] Sun, 14 October 2007 14:34 Go to previous message
Eclipse UserFriend
Originally posted by: none.ibm.com

> 2. I want to have a second ZoomTool on my palette which could be used to
> zoom out.
> I found this newsgroup threads but i could'd figure out how create the
> toolEntry by using my extended AbstractTool:
> http://dev.eclipse.org/newslists/news.eclipse.modeling.gmf/m sg04132.html
> http://dev.eclipse.org/newslists/news.eclipse.tools.gef/msg1 2974.html

You just create a toolentry and set the tool class to be used.

> 3. How could i add/remove entries to the context(popup) menu of the
> palette which are sensitive for the ToolEntry ?
> After reading this
> (http://www.eclipsezone.com/eclipse/forums/m92176531.html) i created my
> own PaletteViewerProvider.

The editor is asked for its palette [provider].
Previous Topic:ShortestPathConnectionRouter not working for layers
Next Topic:Popup Menu
Goto Forum:
  


Current Time: Sun Nov 09 22:22:13 EST 2025

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

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

Back to the top