| Summary: | Migrate Xtext support in old Remus to current Remus | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Joerg Reichert <joerg83reichert> | ||||||
| Component: | Remus | Assignee: | Tom Seidel <tom.seidel> | ||||||
| Status: | VERIFIED FIXED | QA Contact: | |||||||
| Severity: | enhancement | ||||||||
| Priority: | P3 | ||||||||
| Version: | unspecified | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows Vista | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Joerg Reichert
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. |