Hi,
I have to implement a scenario where on click on any container shape it will highlight any connection associated with it.Thus I used selection Listener inside the Editor class.But In editor class I don't get the editing domain.Thus the command stack is also not available so I cant make changes to on any graphiti model.Thus I tried implementing the functionality in a feature class by extending AbstractCustomFeature.But I have to instantiate the feature class explicitly and the editor also becomes dirty when any changes happen.So I have to handle the dirty thing explicitly.Can any one suggest any other way to do solve this problem.If you need I can also provide the code I have used

But in my case as I am calling the feature explicitly this method is not called automatically and my editor becomes dirty.So I uses the above part of code in order to clear the dirtiness.But this process makes the editor dirty for fraction of second.

You can use the method getEditingDomain defined in DiagramEditorInternal to
get the TransactionalEditingDomain of the Editor. But any change you do
there will automatically make the editor dirty. After execution you might
reset that by removing the corresponding EMF operation from the command
stack (see GFCommandStack line 177 and following, there Graphiti does the
same for evaluating the hasDoneChanges feature method).

Just as a warning: this is tricky and not really supported in Graphiti now.
But this is a resonable request; would you please open an enhancement
Bugzilla for to request this?

Hi,
I have to implement a scenario where on click on any container shape it
will highlight any connection associated with it.Thus I used selection
Listener inside the Editor class.But In editor class I don't get the editing
domain.Thus the command stack is also not available so I cant make changes
to on any graphiti model.Thus I tried implementing the functionality in a
feature class by extending AbstractCustomFeature.But I have to instantiate
the feature class explicitly and the editor also becomes dirty when any
changes happen.So I have to handle the dirty thing explicitly.Can any one
suggest any other way to do solve this problem.If you need I can also
provide the code I have used