Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Java Field Assist(Is it possible to use this feature in custom plugin?)
Java Field Assist [message #946573] Tue, 16 October 2012 05:57 Go to next message
Eclipse UserFriend
Is it possible to reuse the textfields or ContentProposalAdapters / -Providers that are used in the "new Class wizard"? I'd like to add ContentProposal to a specific textfield in order to "propose" classes,packages,interfaces....

Thanks in advance!
Gerd
Re: Java Field Assist [message #951564 is a reply to message #946573] Sat, 20 October 2012 17:11 Go to previous message
Eclipse UserFriend
I think you'll have to choose from:
- try to reuse via sub-classing an existing class like NewTypeWizardPage
- program against internal classes - do at your own risk since these are not guaranteed to be stable across versions
- copy the existing implementation into your code, will probably cause a big ripple effect
- request a new API, make a clear point why this would benefit many clients, but don't expect that the request will be promptly fulfilled.
I may be missing other options.

Whether any of these are acceptable for you depends on several parameters of your project.

Regarding a "Browse..." button next to the text field chances for reuse based on official API are better.

best,
Stephan
Previous Topic:J2EE 4.2.1 from 4.2.0 update fail
Next Topic:import org.eclipse.swt.*; not resolved
Goto Forum:
  


Current Time: Sat May 24 11:40:56 EDT 2025

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

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

Back to the top