Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Adapting working Eclipse plugin to Eclipse C++
Adapting working Eclipse plugin to Eclipse C++ [message #1065708] Thu, 27 June 2013 08:34
Yury Levin is currently offline 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.
Previous Topic:Eclipse CDT Juno, C++11, GCC 4.8 on OS X Lion and MLion
Next Topic:Problems when following the article "Getting started with CDT development"
Goto Forum:
  


Current Time: Mon Sep 15 02:18:10 GMT 2014

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

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