Skip to main content


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 #529427] Sun, 25 April 2010 09:30 Go to next message
tei is currently offline teiFriend
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 #529433 is a reply to message #529427] Sun, 25 April 2010 12:10 Go to previous message
tei is currently offline teiFriend
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:Continuously got "java.lang.outofmemory PemSize"
Next Topic:Accessing a selected Java file in a multipage editor
Goto Forum:
  


Current Time: Tue Mar 19 11:10:43 GMT 2024

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

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

Back to the top