Adapting working Eclipse plugin to Eclipse C++ [message #1065708] |
Thu, 27 June 2013 08:34 |
Yury Levin Messages: 1 Registered: June 2013 |
Junior Member |
|
|
I've developed plugin for Eclipse. It includes property page, several actions and specific view. All these features were added by specific extension points. I tried to add sections for specific CDT views and resource types:
<page
class="MyPropertyPage"
id="MyPage1"
name="My Project"
nameFilter="*"
selectionFilter="single">
<enabledWhen>
<instanceof
value="org.eclipse.core.resources.IProject">
</instanceof>
</enabledWhen>
</page>
<page
class="MyPropertyPage"
id="MyPage2"
name="My Project"
nameFilter="*"
selectionFilter="single">
<enabledWhen>
<instanceof
value="org.eclipse.cdt.internal.core.model.CProject">
</instanceof>
</enabledWhen>
</page>
The action command class contents code:
if (obj instanceof IJavaProject) {
...
} else if (obj instanceof CompilationUnit) {
...
} else if (obj instanceof TranslationUnit) {
...
}
In debug mode, when the second eclipse is opened with C++ perspective, it works perfectly. But in runtime, it fails with error java.lang.NoClassDefFoundError: org/eclipse/cdt/internal/ui/cview/CView.
The attempt to execute my action command fails as well with similar error java.lang.NoClassDefFoundError: org/eclipse/cdt/internal/core/model/TranslationUnit.
Help to overcome the error? Thanks a lot in advance.
|
|
|
Powered by
FUDForum. Page generated in 0.03282 seconds