Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » problem with content assistant
problem with content assistant [message #250250] Tue, 18 December 2007 04:04 Go to next message
nick tan is currently offline nick tanFriend
Messages: 56
Registered: July 2009
Member
Hi, all:
here's a problem with content assistant when we developing our own IDE
by extending JDT.
Our IDE is similar withe EclipeME.
We have a new container by extending
org.eclipse.jdt.core.classpathContainerInitializer, and every thing works
fine: compile, run/debug etc.
But when edit the .java source file, the content assistant does not work
correctly, e.g. suppose that I want to type String.ValueOf(...)
typing "Stri", content assistant works ok
typing "String.", content assistant can not find any static members
typing "String.va", content assistant list all static members that
start with "va"
why content assist failed when I type "String." (note the dot "." here)
What does the magic?
Can any body help?

Thanks for advanced.

Nick
Re: problem with content assistant [message #250254 is a reply to message #250250] Tue, 18 December 2007 08:07 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
nick.tan wrote:

> Hi, all:
> here's a problem with content assistant when we developing our own
> IDE by extending JDT.
> Our IDE is similar withe EclipeME.
> We have a new container by extending
> org.eclipse.jdt.core.classpathContainerInitializer, and every thing
> works fine: compile, run/debug etc.
> But when edit the .java source file, the content assistant does not
> work correctly, e.g. suppose that I want to type String.ValueOf(...)
> typing "Stri", content assistant works ok
> typing "String.", content assistant can not find any static members
> typing "String.va", content assistant list all static members that
> start with "va"
> why content assist failed when I type "String." (note the dot "." here)
> What does the magic?

> Can any body help?

Anything in .log? Did you also extend content assist? If not, I suggest
to file a bug with steps to reproduce / test case against JDT Core.

Dani

>
> Thanks for advanced.
>
> Nick
>
Re: problem with content assistant [message #250282 is a reply to message #250254] Wed, 19 December 2007 03:04 Go to previous message
nick tan is currently offline nick tanFriend
Messages: 56
Registered: July 2009
Member
Daniel Megert wrote:

> Anything in .log? Did you also extend content assist? If not, I suggest
> to file a bug with steps to reproduce / test case against JDT Core.

Finally I find out that the evil is in my own rt.jar
I created it by according to the GP STIP Spec
(http://www.globalplatform.org):
The core Java API selected by STIP technology is a strict subset of the
core API defined by the CLDC configurations of Sun's J2ME. It contains
only the two packages java.lang and java.util. The package java.io is here
present only to contain one exception needed for the class
java.lang.String. blah blah blah...

I copy part of .class files from cldcapi11.jar and package a new rt.jar.
So I guess that it failed when JDT trying to parse .class into AST because
it can not find e.g. com.sun.midp.io.SystemOutputStream in my new rt.jar.
Previous Topic:Consistency problems when custom builder uses ICompilationUnit for externally up
Next Topic:StringBuffer Quick Assist
Goto Forum:
  


Current Time: Wed Jan 15 07:09:03 GMT 2025

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

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

Back to the top