Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Content Assist thru org.eclipse.gmf.runtime.common.ui.services.parserProviders?
Content Assist thru org.eclipse.gmf.runtime.common.ui.services.parserProviders? [message #90604] Mon, 08 January 2007 12:02
Eclipse UserFriend
Originally posted by: peer.toerngren.sungard.com

Trying to add "code completion" for editing in diagrams and/or property
sheets, similar to the way Content Assist works in Java and other text
editors.

As far as I can understand, I need to extend
'org.eclipse.gmf.runtime.common.ui.services.parserProviders' ? Judging by the
IParser interface, I would expect to get what I want by implementing
'IContentAssistProcessor getCompletionProcessor()' and/or 'ICommand
getParseCommand()'.

Hence, I created my own parser and provider, and managed to get my parser
instantiated and have 'getPrintString(...)' return my own string as the
heading of the property tab as I navigate the elements on the diagram.
However, no other methods of my Parser class gets called.

I am probably misunderstanding something fundamental about the intended
behavior and/or how and when the parser is expected to execute, but fail to
find any documentation or examples (except for the javadoc of the classes
and the extension point reference).

So ... two questions:
1) Where can I learn more about
org.eclipse.gmf.runtime.common.ui.services.parserProviders?
2) Or ... what extension point should I be looking for in order to be able
to provide content assist ("code completion") while editing diagram
elements?

Regards

Peer T
Previous Topic:Using a non FileEditorInput with a diagram editor
Next Topic:Extending a centralised diagram by generation.
Goto Forum:
  


Current Time: Thu May 08 00:05:27 EDT 2025

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

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

Back to the top