Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Accessing a selected Java file in a multipage editor
Accessing a selected Java file in a multipage editor [message #605668] Sun, 25 April 2010 09:30 Go to next message
tei is currently offline tei
Messages: 13
Registered: April 2010
Junior Member
I have created a Multipage editor with the following plug-in dependencies:
org.eclipse.ui,
org.eclipse.core.runtime,
org.eclipse.jface.text,
org.eclipse.core.resources,
org.eclipse.ui.editors,
org.eclipse.ui.ide,
org.eclipse.jdt.core;bundle-version="3.5.2"

I am trying to access the compilationunit using the following snippet

...
...
IFile file = ((FileEditorInput)getEditorInput()).getFile();
JavaCore.createCompilationUnitFrom(file);
...
...

I get a java.lang.NoClassDefFoundError: org/eclipse/jdt/core/JavaCore when the plugin is executed.

Am I missing any dependencies? Has anyone faced similar issues before?
Re: Accessing a selected Java file in a multipage editor [message #605670 is a reply to message #605668] Sun, 25 April 2010 12:10 Go to previous message
tei is currently offline tei
Messages: 13
Registered: April 2010
Junior Member
Update: When I renamed the plugin (changed the qualifier) everything works fine. If someone can de-mistify this for me, it would be really great! I am guessing, my renaming the plug-in somehow cleaned up the dependencies and added the required ones.
Previous Topic:Accessing a selected Java file in a multipage editor
Next Topic:F12 and F10 Keys won't work when using SWT components in PDE
Goto Forum:
  


Current Time: Sun Sep 21 00:08:26 GMT 2014

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

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