Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » JFace Templates
JFace Templates [message #836260] Wed, 04 April 2012 05:37 Go to next message
Mike Moor is currently offline Mike Moor
Messages: 20
Registered: November 2010
Location: Steffisburg, Switzerland
Junior Member
Hi,

In our project (railway stuff) we have a Search-Field which allows the user to search for his data with different search-patterns:


  • <from>-<to> (e.g: Berlin-Hamburg)
  • <line>:<part>:<sequence> (e.g: 451:0:11)
  • cc:<country-code> (e.g: cc:80)
  • ...


now i would like to give the user the possibility to choose his search template with the content assistant and jump to each placeholder by pressing the tab-key.

To be clear: I want the exactly the same functionality like one can use it in Eclipse Java Editor when you type "for" and press Ctrl+Space. When he chooses the first template he can jump from "i" to "array" to the for-body.

Do you know what I mean?
How can I provide this functionality to our users?

thank you for your help!
cheers,
mike
Re: JFace Templates [message #839317 is a reply to message #836260] Sun, 08 April 2012 09:36 Go to previous message
Brian de Alwis is currently offline Brian de Alwis
Messages: 242
Registered: July 2009
Senior Member
You can get some of this through the JFace Field Assist support.
Previous Topic:Creating additional Bar (like Status bar or Toolbar)
Next Topic:How to implement AbstractInformationControl
Goto Forum:
  


Current Time: Thu Aug 21 08:22:05 EDT 2014

Powered by FUDForum. Page generated in 0.01904 seconds