Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Content assist for Text in GMF
Content assist for Text in GMF [message #221285] Thu, 12 March 2009 11:09 Go to next message
Sheela is currently offline SheelaFriend
Messages: 52
Registered: July 2009
Member
Hi,

We have developed a graphical Rules editor based on GMF, by following the
Mindmap example. Its worked out great.
But now we need to move on to the next step, provide content assist inside
the blocks, (say how would i provide content assist inside the
Topic/Thread/ThreadItem block in the mindmap example)

Thanks in Advance

Regards,

Sheela
Re: Content assist for Text in GMF [message #234782 is a reply to message #221285] Fri, 26 June 2009 14:05 Go to previous messageGo to next message
Esteban Dugueperoux is currently offline Esteban DugueperouxFriend
Messages: 472
Registered: July 2009
Senior Member
Hi Sheela,

I have experiment content assist in CellEditor with GMF editor. I use
org.eclipse.jface.fieldassist package's class. In concerned
EditPart.getManager(), I extend
TextDirectEditManager.createCellEditorOn() operation to create a
ContentProposalAdapter associated to the created CellEditor and I create
my custom IContentProposalProvider and IContentProposal to display my
custom proposals.
Re: Content assist for Text in GMF [message #234798 is a reply to message #234782] Fri, 26 June 2009 15:26 Go to previous messageGo to next message
Jan van der Ven is currently offline Jan van der VenFriend
Messages: 18
Registered: July 2009
Junior Member
Hi list,



We have a plugin that defines a view and it depends on a GMF editor. The
view needs the name of the editor file, to pass it as a parameter in a
web service. We could deduce that from the URIEditorInput.

But now there is a feature request that requires access to the model.

I implemented it by opening the file (because I had the name) and
parsing the XML, but that was not my original idea. The whole model is
present as part of the editor. But how to get at it?

I have the IEditorPart and from that I want to access the model. I can
see in the Local variables that through the Edit(ing)Domain I can access
the viewers, and from there all the children on the diagram. But when I
try to code this, I am stuck at the URIEditorInput.

I hope I made myself clear. I have access to the code of the editor too.
So I can change it. But I would love to hear about a solution where
the editor code is not available.

Kind regards,


Jan
How to access the model from another plug-in [message #234806 is a reply to message #234798] Fri, 26 June 2009 15:32 Go to previous message
Jan van der Ven is currently offline Jan van der VenFriend
Messages: 18
Registered: July 2009
Junior Member
Hi list,


Excuse me for my previous post. I forgot to change the subject.

We have a plugin that defines a view and it depends on a GMF editor. The
view needs the name of the editor file, to pass it as a parameter in a
web service. We could deduce that from the URIEditorInput.

But now there is a feature request that requires access to the model.

I implemented it by opening the file (because I had the name) and
parsing the XML, but that was not my original idea. The whole model is
present as part of the editor. But how to get at it?

I have the IEditorPart and from that I want to access the model. I can
see in the Local variables that through the Edit(ing)Domain I can access
the viewers, and from there all the children on the diagram. But when I
try to code this, I am stuck at the URIEditorInput.

I hope I made myself clear. I have access to the code of the editor too.
So I can change it. But I would love to hear about a solution where
the editor code is not available.

Kind regards,


Jan
Previous Topic:Diagram resource modified
Next Topic:Arrange all without an editor
Goto Forum:
  


Current Time: Thu Apr 25 11:27:30 GMT 2024

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

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

Back to the top