tracking tool activate in palette-less applications [message #87034] |
Sun, 13 July 2003 22:50  |
Eclipse User |
|
|
|
I'm experimenting with a palette-less approach where I forego the GEF
palette and instead set the EditDomain's current tool using tool bar
buttons. I have it working, but there is a UI snag. I would like the
toolbar button to have the style Action.AS_RADIO_BUTTON so that it
remains depressed until the tool it activates becomes deactivated by the
EditDomain. I was planning to have my action be a listener for the
tool's deactivation. I wondered if I could use the PaletteListener
interface for this, but because the PaletteListener is inextricably tied
to the GEF palette viewer, I don't see a straightforward way to make
this work.
I am thinking of subclassing DefaultEditDomain to add support for
listeners who want to know when tool activation changes. This would
support a more generic palette model, where "palette" buttons are spread
across different UI pieces, including the GEF palette but also on the
tool bar or potentially in another view that is not a GEF PaletteViewer.
Does this seem like the right technique?
|
|
|
Re: tracking tool activate in palette-less applications [message #87049 is a reply to message #87034] |
Mon, 14 July 2003 07:40  |
Eclipse User |
|
|
|
....FYI..... I did the same kind of thing for the Web Diagram Editor in the
WSSD tooling. I never bothered making the button stay depressed
though.....so, no, I'm not answering your question..... We have decided to
go back to the palette because 1. it just didn't look very good and 2. it
looked different to any other GEF based graphical editor. The reason we did
it in the first place was that we didn't like all the real estate the
palette tool took from the free form surface. In fact, what I ended up doing
was taking advantage(?) of a new view in WSSD called, believe it or not, the
palette view..... so now the palette is in it's own viewer. What I also have
is all the 'new' actions in the context menu of the FFS.
There are plans afoot I believe for eclipse 3.0 that will help in the real
estate area..... the eclipse gods are having another look at floating
(detachable) views. So the palette could exist in a separate view and be off
to the side somewhere.
Guy
|
|
|
Powered by
FUDForum. Page generated in 0.02955 seconds