Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » code markers - how are they implemented?
code markers - how are they implemented? [message #994855] Fri, 28 December 2012 08:20 Go to next message
Simon Schäfer is currently offline Simon Schäfer
Messages: 12
Registered: June 2011
Junior Member
Hello,

when one types for example a string literal (") the editor inserts the following:

"^"|

where ^ is the cursor and | a code marker one can jump to after pressing enter or tabulator key.

Is this feature really called code markers, or does it have a different name? And where can I find its implementation, i.e. in which packages/classes?

Greetings,
Simon
Re: code markers - how are they implemented? [message #997608 is a reply to message #994855] Mon, 07 January 2013 05:33 Go to previous messageGo to next message
Dani Megert is currently offline Dani Megert
Messages: 3801
Registered: July 2009
Senior Member
On 28.12.2012 14:20, Simon Schäfer wrote:
> Hello,
>
> when one types for example a string literal (") the editor inserts the
> following:
>
> "^"|
>
> where ^ is the cursor and | a code marker one can jump to after
> pressing enter or tabulator key.
>
> Is this feature really called code markers, or does it have a
> different name? And where can I find its implementation, i.e. in which
> packages/classes?
It is called Linked Mode. Use this as an entry point:
http://help.eclipse.org/juno/index.jsp?topic=%252Forg.eclipse.platform.doc.isv%252Freference%252Fapi%252Forg%252Feclipse%252Fjface%252Ftext%252Flink%252Fpackage-summary.html

Dani
>
> Greetings,
> Simon
Re: code markers - how are they implemented? [message #997702 is a reply to message #997608] Tue, 08 January 2013 10:18 Go to previous message
Simon Schäfer is currently offline Simon Schäfer
Messages: 12
Registered: June 2011
Junior Member
Hi Dani,

this is exactly what I searched for. Thanks very much for the link, it helps me a lot.

Greetings,
Simon
Previous Topic:Code Assist Not Work In Ubuntu 12.04
Next Topic:Why is a return type erased
Goto Forum:
  


Current Time: Tue Jul 29 13:03:04 EDT 2014

Powered by FUDForum. Page generated in 0.01731 seconds