Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Technology Project and PMC » jdt class not resolved in PDE java editor
jdt class not resolved in PDE java editor [message #60936] Wed, 14 January 2004 16:16 Go to next message
Eclipse UserFriend
Originally posted by: Bill_Mooney.us.ibm.com

This is a multipart message in MIME format.
--=_alternative 00597C4C85256E1B_=
Content-Type: text/plain; charset="US-ASCII"

I'm writing a plugin (first one) and was doing fine until I needed to get
the ICompilationUnit Java Element.
The PDE tells me this is not a type or cannot be resolved. I tried
importing org.eclipse.jdt.core... and it tells
me this cannot be resolved. I have all the plugins selected in the Target
Platform list.


I worked around this by importing the org.eclipse.jdt.core plugin from the
run time workbench into my workspace and adding
the jdtcore.jar to my build path libraries.

Question is, shouldn't the PDE have picked this up from the Target
Platform list?
I created this plugin from the wizard. Might that have messed up
something?
Thanks for any info....
--=_alternative 00597C4C85256E1B_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2 face="sans-serif">I'm writing a plugin (first one) and
was doing fine until I needed to get the ICompilationUnit Java Element.</font>
<br><font size=2 face="sans-serif">The PDE tells me this is not a type
or cannot be resolved. I tried importing</font><font size=1 face="Trebuchet MS">
org.eclipse.jdt.core... </font><font size=2 face="sans-serif">and it tells</font>
<br><font size=2 face="sans-serif">me this cannot be resolved. I have all
the plugins selected in the Target Platform list.</font>
<br>
<br>
<br><font size=2 face="sans-serif">I worked around this by importing the
org.eclipse.jdt.core plugin from the run time workbench into my workspace
and adding </font>
<br><font size=2 face="sans-serif">the jdtcore.jar to my build path libraries.</font>
<br>
<br><font size=2 face="sans-serif">Question is, shouldn't the PDE have
picked this up from the Target Platform list?</font>
<br><font size=2 face="sans-serif">I created this plugin from the wizard.
Might that have messed up something?</font>
<br><font size=2 face="sans-serif">Thanks for any info....</font>
--=_alternative 00597C4C85256E1B_=--
Re: jdt class not resolved in PDE java editor [message #60960 is a reply to message #60936] Wed, 14 January 2004 20:02 Go to previous message
Eclipse UserFriend
Originally posted by: Bill_Mooney.notesdev.ibm.com

This is a multipart message in MIME format.
--=_alternative 006E3B7785256E1B_=
Content-Type: text/plain; charset="US-ASCII"

Needed this in my <requires> element in the plugin.xml...

<import plugin="org.eclipse.jdt.core"/>
<import plugin="org.eclipse.jdt.ui"/>
--=_alternative 006E3B7785256E1B_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2 face="sans-serif">Needed this in my &lt;requires&gt; element
in the plugin.xml...</font>
<br>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; </font><font size=2 color=#000080 face="Courier New">&lt;import</font><font size=2 face="Courier New">
</font><font size=2 color=#000080 face="Courier New">plugin=</font><font size=2 color=#008000 face="Courier New">&quot;org.eclipse.jdt.core&quot;</font><font size=2 color=#000080 face="Courier New">/&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; </font><font size=2 color=#000080 face="Courier New">&lt;import</font><font size=2 face="Courier New">
</font><font size=2 color=#000080 face="Courier New">plugin=</font><font size=2 color=#008000 face="Courier New">&quot;org.eclipse.jdt.ui&quot;</font><font size=2 color=#000080 face="Courier New">/&gt;</font>
--=_alternative 006E3B7785256E1B_=--
Re: jdt class not resolved in PDE java editor [message #596410 is a reply to message #60936] Wed, 14 January 2004 20:02 Go to previous message
Eclipse UserFriend
Originally posted by: Bill_Mooney.notesdev.ibm.com

This is a multipart message in MIME format.
--=_alternative 006E3B7785256E1B_=
Content-Type: text/plain; charset="US-ASCII"

Needed this in my <requires> element in the plugin.xml...

<import plugin="org.eclipse.jdt.core"/>
<import plugin="org.eclipse.jdt.ui"/>
--=_alternative 006E3B7785256E1B_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2 face="sans-serif">Needed this in my &lt;requires&gt; element
in the plugin.xml...</font>
<br>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; </font><font size=2 color=#000080 face="Courier New">&lt;import</font><font size=2 face="Courier New">
</font><font size=2 color=#000080 face="Courier New">plugin=</font><font size=2 color=#008000 face="Courier New">&quot;org.eclipse.jdt.core&quot;</font><font size=2 color=#000080 face="Courier New">/&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; </font><font size=2 color=#000080 face="Courier New">&lt;import</font><font size=2 face="Courier New">
</font><font size=2 color=#000080 face="Courier New">plugin=</font><font size=2 color=#008000 face="Courier New">&quot;org.eclipse.jdt.ui&quot;</font><font size=2 color=#000080 face="Courier New">/&gt;</font>
--=_alternative 006E3B7785256E1B_=--
Previous Topic:jdt class not resolved in PDE java editor
Next Topic:JUnit question in Eclipse
Goto Forum:
  


Current Time: Fri Apr 26 15:44:14 GMT 2024

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

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

Back to the top