Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Reusing Interface Selection UI JDT(Reusing Interface Selection UI JDT)
Reusing Interface Selection UI JDT [message #941129] Fri, 12 October 2012 08:33 Go to next message
Gerd Van Woensel is currently offline Gerd Van WoenselFriend
Messages: 3
Registered: October 2012
Location: Belgium
Junior Member
Hi there, fellow developers,

I have a question about JDT. I'm developing an Eclipse plugin, and somewhere in a Wizard, I need to select a Java Interface out of my project. My intend is to do this like the "Create new class"-wizard.

A label "Select Interface" , a textfield with content proposal, and a "Browse" button. But all the classes used in JDT are in the internal package... So my actual question is: can I reuse the UI elements from the org.eclipse.jdt.internal packages, or should I
implement my own solution with a content proposal based on a JDT Search Engine API?

I spent a whole day searching/trying/reading to get this, but I couldn't find any answers...

Thank you in advance!!!
Re: Reusing Interface Selection UI JDT [message #941171 is a reply to message #941129] Fri, 12 October 2012 09:13 Go to previous messageGo to next message
Gerd Van Woensel is currently offline Gerd Van WoenselFriend
Messages: 3
Registered: October 2012
Location: Belgium
Junior Member
I already found the JavaUI class for the "Open Type Dialog", but can someone tell me how to implement the textfield with content proposal? is there a pre-defined way of doing this?
Re: Reusing Interface Selection UI JDT [message #945237 is a reply to message #941129] Mon, 15 October 2012 09:55 Go to previous message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
On 12.10.2012 10:33, Gerd Van Woensel wrote:
> Hi there, fellow developers,
>
> I have a question about JDT. I'm developing an Eclipse plugin, and
> somewhere in a Wizard, I need to select a Java Interface out of my
> project. My intend is to do this like the "Create new class"-wizard.
>
> A label "Select Interface" , a textfield with content proposal, and a
> "Browse" button. But all the classes used in JDT are in the internal
> package... So my actual question is: can I reuse the UI elements from
> the org.eclipse.jdt.internal packages, or should I
> implement my own solution with a content proposal based on a JDT
> Search Engine API?
In general you should not use stuff from *.internal.* packages because
you risk that your product is broken with the next Eclipse release.

Dani
>
> I spent a whole day searching/trying/reading to get this, but I
> couldn't find any answers...
>
> Thank you in advance!!!
>
Previous Topic:Views information update
Next Topic:Refresh and classpath initialisation
Goto Forum:
  


Current Time: Thu Apr 25 05:17:26 GMT 2024

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

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

Back to the top