Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » StickyNoteFigure (Comment Box) in the logic example
StickyNoteFigure (Comment Box) in the logic example [message #187767] Fri, 15 July 2005 13:22 Go to next message
Eclipse UserFriend
Originally posted by: harsh.ti.com

All,

I am in need of writing a Comment Box in my editor for storing textual
information about the editor. I saw the Logic diagram uses something
similar to what I need. My question is do we need to split up the figure
information from the actual model object? Because in this case, the model
object is fairly simply and is just storing text so why do we need a
BentCornerFigure which extends figure and then StickyNoteFigure which
extends BentCornerFigure? Can't we combine the functionality within the
model object? I understand the need for the feedback figure so we can
provide visual feedback when the object is being moved around.

Any thoughts?

Thank you,
Harsh
Re: StickyNoteFigure (Comment Box) in the logic example [message #187784 is a reply to message #187767] Fri, 15 July 2005 15:23 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.unknown.com

"Harsh Sabikhi" <harsh@ti.com> wrote in message
news:4e87adfa299c6d0fd7adfd7f9eee9c3b$1@www.eclipse.org...
> All,
>
> I am in need of writing a Comment Box in my editor for storing textual
> information about the editor. I saw the Logic diagram uses something
> similar to what I need. My question is do we need to split up the figure
> information from the actual model object? Because in this case, the model
> object is fairly simply and is just storing text so why do we need a
> BentCornerFigure which extends figure and then StickyNoteFigure which
> extends BentCornerFigure? Can't we combine the functionality within the
> model object? I understand the need for the feedback figure so we can

Combine what functionality in the model? I'm not sure what you're getting
at.

> provide visual feedback when the object is being moved around.
>
> Any thoughts?
>
> Thank you,
> Harsh
>
Re: StickyNoteFigure (Comment Box) in the logic example [message #187799 is a reply to message #187784] Fri, 15 July 2005 15:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: harsh.ti.com

Combining the GUI functionality and the data within the model object.

Harsh
Re: StickyNoteFigure (Comment Box) in the logic example [message #187938 is a reply to message #187799] Mon, 18 July 2005 05:41 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7680
Registered: July 2009
Senior Member
Harsh Sabikhi wrote:
> Combining the GUI functionality and the data within the model object.
> Harsh
>

This still doesn't make sense.

The model object has (static/non-visual) attributes/data.

The edit part provides (dynamic/visual) GUI functionality.

The model object may be shared with other applications so cannot possibly
have GUI functionality.

If by GUI functionality you mean graphical attributes then that is data
but annotation data, that should not polute the model. You will find that
the EDiagram example handles this by leaving an Ecore model unpoluted and
adding an extra graphical model.

Your original question suggested merging ...Figures. The examples are
examples. You can of course refactor to taste.

Regards

Ed Willink
Previous Topic:SelectionActions & Eclipse Contribution Context Menu
Next Topic:org.eclipse.ui.popupMenus + GEF
Goto Forum:
  


Current Time: Thu Dec 12 18:16:35 GMT 2024

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

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

Back to the top