Skip to main content



      Home
Home » Eclipse Projects » GEF » Getting the contents of the current EditPartViewer
Getting the contents of the current EditPartViewer [message #68526] Thu, 06 March 2003 07:21 Go to next message
Eclipse UserFriend
Originally posted by: m.spork.NOSPAMtpg.com.au

Hi,

I want to provide an action on the workbench toolbar like is done with
the increment and decrement actions in the Logic example.

I'm looking at the IncrementDecrementAction class in the Logic
example where the currently selected editpart is retrieved by using
getSelectedObjects(). Instead I want to get the contents (the
top-most EditPart) of the current EditPartViewer. My goal is to
provide a serialisation function for serialising my model to XML.

Thanks,
Murray
Re: Getting the contents of the current EditPartViewer [message #68656 is a reply to message #68526] Thu, 06 March 2003 08:51 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

Can you just give your Action the EditPartViewer in its contructor?
If not, you can call editpart.getRoot().getViewer()

In tomorrows build, you will be able to call just editpart.getViewer().

"Murray Spork" <m.spork@NOSPAMtpg.com.au> wrote in message
news:n1fe6vkdrbf677cb7j2r5iccii51ltmkm5@4ax.com...
> Hi,
>
> I want to provide an action on the workbench toolbar like is done with
> the increment and decrement actions in the Logic example.
>
> I'm looking at the IncrementDecrementAction class in the Logic
> example where the currently selected editpart is retrieved by using
> getSelectedObjects(). Instead I want to get the contents (the
> top-most EditPart) of the current EditPartViewer. My goal is to
> provide a serialisation function for serialising my model to XML.
>
> Thanks,
> Murray
Previous Topic:Selecting nodes
Next Topic:labels on printout truncated
Goto Forum:
  


Current Time: Fri May 02 13:00:53 EDT 2025

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

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

Back to the top