Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Greate Job! and I have some questions
Greate Job! and I have some questions [message #906940] Mon, 03 September 2012 01:30 Go to next message
Jeeeyul Lee is currently offline Jeeeyul LeeFriend
Messages: 117
Registered: July 2009
Location: Seoul
Senior Member

I'm very impressed with Graphiti.

Most I like features are:
* Modeled View: PictogramElement and GA. (SVG Export)
* Simplified as Feature Context from All complex GEF things (Tool, EditDomain, EditPart, EditPolicy).
* Declarative Approach. (Incremental Development)
* Many automated feature against of EMF model.

I created commercial GEF plugins for 3 years.
GEF is relatively complex, It's big deal to training my team.
Graphiti is really good alternative solution.

But I have some worries for now:
* Is it really unnecessary to access native library? (likes GEF API)
* I couldn't not find a way to show more appropriate feedback to user.
* Undo / Redo may update pictogram elements which are invisible area.(IE: other drill down context, not in viewport) Can I highlight them or select them?
* SVG Export feature seems not work well with Non-English Text GA. (It was rendered as a image which have little bit broken, with English Text GA, it rendered as SVG Text element)
* Direct editing (F2) works with only selected PE which is located under mouse pointer. Using mouse makes user get slow on their job. Can I change this behavior?
Re: Greate Job! and I have some questions [message #907120 is a reply to message #906940] Mon, 03 September 2012 10:20 Go to previous messageGo to next message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1931
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Lee, thanks for those flowers! :-)

See my answers below.

Michael


"Jeeeyul Lee" schrieb im Newsbeitrag news:k21179$5gb$1@xxxxxxxxe.org...

But I have some worries for now:
* Is it really unnecessary to access native library? (likes GEF API)
Graphiti aims at hiding the underlying library; although we currently only
support GEF, we have the option to replace it with another graphics library
in the futire, e.g. JavaFX. We allow to embed native GEF shapes into a
diagram and have opened ther dedicated APIs to directly access the layer
below. But the rest is emcapsulated on purpose. Just let us know spots were
it hurts and we will check and try to open up if needed.

* I couldn't not find a way to show more appropriate feedback to user.
Could you go into some more details here? Which kind of feedback would you
like to give to users?

* Undo / Redo may update pictogram elements which are invisible area.(IE:
other drill down context, not in viewport) Can I highlight them or select
them?
DiagramEditor offers a selectPictogramElement method that allows that.

* SVG Export feature seems not work well with Non-English Text GA. (It was
rendered as a image which have little bit broken, with English Text GA, it
rendered as SVG Text element)
That seems to be a bug. Would you open a bugzilla for this?

* Direct editing (F2) works with only selected PE which is located under
mouse pointer. Using mouse makes user get slow on their job. Can I change
this behavior?
Hm, if that's the case, it also appears to be a bug. Would you file that as
a bugzilla as well?
Re: Greate Job! and I have some questions [message #907157 is a reply to message #907120] Mon, 03 September 2012 12:21 Go to previous messageGo to next message
Jeeeyul Lee is currently offline Jeeeyul LeeFriend
Messages: 117
Registered: July 2009
Location: Seoul
Senior Member

Quote:

* I couldn't not find a way to show more appropriate feedback to user.
Could you go into some more details here? Which kind of feedback would you
like to give to users?


For instance, Consider OrderedLayout or GridLayout in GEF.
When user create or move entry element,
The Insertion Indicator needed to be shown.

I think something likes below will be needed. (not deep thinking)
public interface IFeedbackFeature{
 - canShow(IContext)
 - showFeedback(IContext)
 - hideFeedback(IContext) // may be automatic removing using EMF ChangeRecorder against of Pictogram.
}


I think most important entry points are creating and moving.
So Selection Tool should have to be updated to support this needs.
Re: Greate Job! and I have some questions [message #907940 is a reply to message #907157] Tue, 04 September 2012 13:00 Go to previous messageGo to next message
Rui Domingues is currently offline Rui DominguesFriend
Messages: 194
Registered: October 2010
Senior Member
I've an editor doing that, but I had to add the feedback shapes, and make them appear and disappear, when cancreate, create, canmove and move is invoked, or mouse goes outside diagram (ugly). So far, I think there is not a direct way of doing that.
I hope an enhancement is created for that.

Re: Greate Job! and I have some questions [message #908541 is a reply to message #907157] Wed, 05 September 2012 14:47 Go to previous messageGo to next message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1931
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Lee,

we have that available for creating connections, the chess example shows how
to implement it. For creating shapes this is in the backlog, see
https://bugs.eclipse.org/bugs/show_bug.cgi?id=384271. For move operations it
would be a new enhancement request, feel free to create it.

Regarding your interface proposal: that looks really good at a first glance,
but I have some doubts that we can get hooks for all kinds of features into
one interface, just have a look at ICreateConnection to check the special
hook methods we have for connection creation.

Michael
Re: Greate Job! and I have some questions [message #908594 is a reply to message #908541] Wed, 05 September 2012 16:06 Go to previous messageGo to next message
Rui Domingues is currently offline Rui DominguesFriend
Messages: 194
Registered: October 2010
Senior Member
The link you posted is broken. Can you re-post
Re: Greate Job! and I have some questions [message #909076 is a reply to message #908594] Thu, 06 September 2012 13:43 Go to previous messageGo to next message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1931
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Strange, it works for me:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=384271

Alternatively you may search for the bug number (384271) on
https://bugs.eclipse.org/bugs/

Michael
Re: Greate Job! and I have some questions [message #909718 is a reply to message #909076] Fri, 07 September 2012 16:34 Go to previous message
Rui Domingues is currently offline Rui DominguesFriend
Messages: 194
Registered: October 2010
Senior Member
Thanks. I see now what happened. A full point in the end of the link i didnt notice. Sorry Sad
Previous Topic:Add feature (inside not active container shape)
Next Topic:how to deal with EDataType
Goto Forum:
  


Current Time: Thu Apr 18 14:41:25 GMT 2024

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

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

Back to the top