Classes not being resolved when exporting as plugin [message #1047139] |
Mon, 22 April 2013 17:10  |
Eclipse User |
|
|
|
I got everything working for my language when I launch a new Eclipse instance from the Eclipse I'm working in. Now, I tried to export the project as a plug-in in order to deploy the editor in my Eclipse installation.
I selected my language project, clicked Export... -> Deployable plug-ins and fragments, selected all three projects (mylang, mylang.ui and mylang.tests) and hit finish. It didn't work, and the log for the ui project showed the following errors:
Toggle Spoiler
1. ERROR in C:\workspace\org.xtext.example.mylang.ui\src-gen\org\xtext\example\mydsl\ui\AbstractMyLangUiModule.java (at line 83)
return org.xtext.example.mydsl.ui.labeling.MyLangLabelProvider.class;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
org.xtext.example.mydsl.ui.labeling.MyLangLabelProvider cannot be resolved to a type
----------
2. ERROR in C:\workspace\org.xtext.example.mylang.ui\src-gen\org\xtext\example\mydsl\ui\AbstractMyLangUiModule.java (at line 83)
return org.xtext.example.mydsl.ui.labeling.MyLangLabelProvider.class;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Class<MyLangLabelProvider> cannot be resolved to a type
----------
3. ERROR in C:\workspace\org.xtext.example.mylang.ui\src-gen\org\xtext\example\mydsl\ui\AbstractMyLangUiModule.java (at line 88)
binder.bind(org.eclipse.jface.viewers.ILabelProvider.class).annotatedWith(org.eclipse.xtext.ui.resource.ResourceServiceDescriptionLabelProvider.class).to(org.xtext.example.mydsl.ui.labeling.MyLangDescriptionLabelProvider.class);
^^
The method to(Class<? extends ILabelProvider>) in the type LinkedBindingBuilder<ILabelProvider> is not applicable for the arguments (Class<MyLangDescriptionLabelProvider>)
----------
4. ERROR in C:\workspace\org.xtext.example.mylang.ui\src-gen\org\xtext\example\mydsl\ui\AbstractMyLangUiModule.java (at line 88)
binder.bind(org.eclipse.jface.viewers.ILabelProvider.class).annotatedWith(org.eclipse.xtext.ui.resource.ResourceServiceDescriptionLabelProvider.class).to(org.xtext.example.mydsl.ui.labeling.MyLangDescriptionLabelProvider.class);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
org.xtext.example.mydsl.ui.labeling.MyLangDescriptionLabelProvider cannot be resolved to a type
----------
5. ERROR in C:\workspace\org.xtext.example.mylang.ui\src-gen\org\xtext\example\mydsl\ui\AbstractMyLangUiModule.java (at line 93)
return org.xtext.example.mydsl.ui.outline.MyLangOutlineTreeProvider.class;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
org.xtext.example.mydsl.ui.outline.MyLangOutlineTreeProvider cannot be resolved to a type
----------
6. ERROR in C:\workspace\org.xtext.example.mylang.ui\src-gen\org\xtext\example\mydsl\ui\AbstractMyLangUiModule.java (at line 93)
return org.xtext.example.mydsl.ui.outline.MyLangOutlineTreeProvider.class;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Class<MyLangOutlineTreeProvider> cannot be resolved to a type
----------
7. ERROR in C:\workspace\org.xtext.example.mylang.ui\src-gen\org\xtext\example\mydsl\ui\AbstractMyLangUiModule.java (at line 98)
return org.xtext.example.mydsl.ui.outline.MyLangOutlineTreeProvider.class;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
org.xtext.example.mydsl.ui.outline.MyLangOutlineTreeProvider cannot be resolved to a type
----------
8. ERROR in C:\workspace\org.xtext.example.mylang.ui\src-gen\org\xtext\example\mydsl\ui\AbstractMyLangUiModule.java (at line 98)
return org.xtext.example.mydsl.ui.outline.MyLangOutlineTreeProvider.class;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Class<MyLangOutlineTreeProvider> cannot be resolved to a type
----------
9. ERROR in C:\workspace\org.xtext.example.mylang.ui\src-gen\org\xtext\example\mydsl\ui\AbstractMyLangUiModule.java (at line 103)
return org.xtext.example.mydsl.ui.quickfix.MyLangQuickfixProvider.class;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
org.xtext.example.mydsl.ui.quickfix.MyLangQuickfixProvider cannot be resolved to a type
----------
10. ERROR in C:\workspace\org.xtext.example.mylang.ui\src-gen\org\xtext\example\mydsl\ui\AbstractMyLangUiModule.java (at line 103)
return org.xtext.example.mydsl.ui.quickfix.MyLangQuickfixProvider.class;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Class<MyLangQuickfixProvider> cannot be resolved to a type
----------
11. ERROR in C:\workspace\org.xtext.example.mylang.ui\src-gen\org\xtext\example\mydsl\ui\AbstractMyLangUiModule.java (at line 108)
return org.xtext.example.mydsl.ui.contentassist.MyLangProposalProvider.class;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
org.xtext.example.mydsl.ui.contentassist.MyLangProposalProvider cannot be resolved to a type
----------
12. ERROR in C:\workspace\org.xtext.example.mylang.ui\src-gen\org\xtext\example\mydsl\ui\AbstractMyLangUiModule.java (at line 108)
return org.xtext.example.mydsl.ui.contentassist.MyLangProposalProvider.class;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Class<MyLangProposalProvider> cannot be resolved to a type
I didn't touch any of these classes, just left what was created by default. What is missing? Is there a better way to deploy the editor in my Eclipse installation?
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.07739 seconds