Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » column number
column number [message #525571] Tue, 06 April 2010 22:23 Go to next message
majid  is currently offline majid Friend
Messages: 72
Registered: November 2009
Member
Hi,
I use this code to get line number:
adapter.getNode().getLine()
So how can i get column number?

Simo
Re: column number [message #525603 is a reply to message #525571] Wed, 07 April 2010 07:02 Go to previous message
Sven Efftinge is currently offline Sven EfftingeFriend
Messages: 1771
Registered: July 2009
Senior Member
Simo schrieb:
> Hi,
> I use this code to get line number:
> adapter.getNode().getLine()
> So how can i get column number?
>
> Simo

We don't collect information about the column.
I'm afraid you'll have to compute it by scanning the text.

Sven


--
Need professional support for Xtext and EMF?
Go to: http://xtext.itemis.com
Twitter : @svenefftinge
Blog : blog.efftinge.de


--
Need professional support on Xtext or Xtend?
Mail to: xtext (at) itemis.com
Twitter : @svenefftinge
Blog : blog.efftinge.de
Previous Topic:Problem with reference to model in other Xtext language
Next Topic:JUnit Boilerplate for Xtext grammar testing
Goto Forum:
  


Current Time: Sat Nov 22 10:50:57 GMT 2014

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

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