Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » How to customize the content assist?
How to customize the content assist? [message #257458] Wed, 19 November 2008 08:40 Go to next message
Eclipse UserFriend
Hello.

We use the Eclipse Java editor to develop applications using SuperWaba, a
software development platform for PDAs and Smartphones.
Projects are created as Java project and a external jar is added to the
build path, because we need both the Java jre and the superwaba jar.
When we use classes from java.lang, like String, the content assist shows
the methods available on the jre, but on device the String implementation
is replaced by SuperWaba's implementation, which does not have all the
methods available on the jre.

Is there a way to customize the content assist to make it not show the
methods I know I should not use?


Thanks in advance.
Re: How to customize the content assist? [message #257473 is a reply to message #257458] Wed, 19 November 2008 11:38 Go to previous messageGo to next message
Eclipse UserFriend
Fabio wrote:
> Hello.
>
> We use the Eclipse Java editor to develop applications using
> SuperWaba, a software development platform for PDAs and Smartphones.
> Projects are created as Java project and a external jar is added to
> the build path, because we need both the Java jre and the superwaba jar.
> When we use classes from java.lang, like String, the content assist
> shows the methods available on the jre, but on device the String
> implementation is replaced by SuperWaba's implementation, which does
> not have all the methods available on the jre.
Why can't you use only the SuperWaba implementation instead of the Java jre?

Dani
>
> Is there a way to customize the content assist to make it not show the
> methods I know I should not use?
>
>
> Thanks in advance.
>
Re: How to customize the content assist? [message #257481 is a reply to message #257473] Wed, 19 November 2008 12:29 Go to previous messageGo to next message
Eclipse UserFriend
Hi Dani.

SuperWaba was designed to allow the usage of Java IDE tools to develop
applications.
To use String on my code, I import java.lang.String and I can run my
application on a Java applet on the desktop to see how it looks like.
When I deploy the application for a specific device, the java.lang.String
import is replaced by waba.lang.String, which has the native
implementation for the device.

So I need the JRE to run the application using Java on desktop, and some
SuperWaba classes are directly mapped to Java classes, so we can develop
applications almost like the same way we do with Java.

Although classes like String are replaced by a SuperWaba version of the
same class, not always it implements all methods available on the JRE
version. For instance, methods like contentEquals(StringBuffer) and
contentEquals(CharSequence) that are respectively 1.4 and 1.5, are not
implemented by waba.lang.String.

That's why I'd like to configure the content assist to not show specific
methods for some classes, because they will work when I run the
application on desktop using the JRE, but they won't work on the device.


Thanks again.
Re: How to customize the content assist? [message #257511 is a reply to message #257481] Thu, 20 November 2008 02:45 Go to previous message
Eclipse UserFriend
Fabio wrote:
> Hi Dani.
>
> SuperWaba was designed to allow the usage of Java IDE tools to develop
> applications.
> To use String on my code, I import java.lang.String and I can run my
> application on a Java applet on the desktop to see how it looks like.
> When I deploy the application for a specific device, the
> java.lang.String import is replaced by waba.lang.String, which has the
> native implementation for the device.
Ah I see. Why don't they ship a library that contains java.lang.String
instead of tweaking the package? Anyway, what you seek isn't possible
yet, see: https://bugs.eclipse.org/bugs/show_bug.cgi?id=115495.

Dani
>
> So I need the JRE to run the application using Java on desktop, and
> some SuperWaba classes are directly mapped to Java classes, so we can
> develop applications almost like the same way we do with Java.
>
> Although classes like String are replaced by a SuperWaba version of
> the same class, not always it implements all methods available on the
> JRE version. For instance, methods like contentEquals(StringBuffer)
> and contentEquals(CharSequence) that are respectively 1.4 and 1.5, are
> not implemented by waba.lang.String.
>
> That's why I'd like to configure the content assist to not show
> specific methods for some classes, because they will work when I run
> the application on desktop using the JRE, but they won't work on the
> device.
>
>
> Thanks again.
>
Previous Topic:Breakpoint: show me where you are right now
Next Topic:run as junit classpath
Goto Forum:
  


Current Time: Wed Apr 30 04:25:40 EDT 2025

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

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

Back to the top