Community
Participate
Working Groups
Build Identifier: Eclipse SDK, Version: 3.7.0, Build id: I20110310-1119, Remus Information Management (Incubation) 0.1.0.201104061020 The Xtext extension (http://www.richclient2.de/2009_09_01/extending-rim-with-xtext/#more-219) only works with an older Remus version. It should be updated to Xtext 1.0.2 and current Remus. Actually I started working on that task but did not get it running yet (see appendix), the editor is still a simple text editor. With Xtext 1.0 it is now possible to remove the dependecy on JDT. Maybe the Xtext forms integration can be also used: http://mdenutshell.blogspot.com/2010/09/how-to-embed-xtext-editors-within.html Reproducible: Always
Created attachment 192909 [details] first rough non working draft
Created attachment 193255 [details] Fixed version to integrate Xtext
FIXED, actually the only thing that had to be changed was Injector injector = org.xtext.example.ui.internal.MyDslActivator.getInstance().getInjector("org.xtext.example.MyDsl"); to Injector injector = org.xtext.example.ui.internal.MyDslActivator .getInstance().getInjector("org.xtext.example.MyDsl"); in org.remus.infomngmnt.mydsl.extension.XTextDelegationEditorPart
Sorry, typo: WAS: Injector injector = Guice.createInjector(new org.xtext.example.MyDslRuntimeModule()); IS: Injector injector = org.xtext.example.ui.internal.MyDslActivator .getInstance().getInjector("org.xtext.example.MyDsl");
Great, it works. Note that you have to adapt the .ui project to export the internal package, where the org.xtext.example.ui.internal.MyDslActivator resides. One thing I missed in the new information unit extension point is the possibility to define an icon or have I overseen something? In the MyDslInformationRepresentation I commented out the getBodyForIndexing - is this method resp. its functionality superfluent now? (In reply to comment #4) > Sorry, typo: > > WAS: > > Injector injector = Guice.createInjector(new > org.xtext.example.MyDslRuntimeModule()); > > IS: > > Injector injector = org.xtext.example.ui.internal.MyDslActivator > .getInstance().getInjector("org.xtext.example.MyDsl");
To define an image for the information unit you have to add a dependency to org.eclipse.remus.ui.infotypes bundle. Afterwards you can create an extension org.eclipse.remus.ui.infotypes.infotypeimages to map the information-type to an icon.
Great, set informationType to MYDSL and selected the icon and it works. (In reply to comment #6) > To define an image for the information unit you have to add a dependency to > org.eclipse.remus.ui.infotypes bundle. Afterwards you can create an extension > org.eclipse.remus.ui.infotypes.infotypeimages to map the information-type to an > icon.