|
From: Christopher W. <caw...@us...> - 2006-04-04 23:11:55
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/ui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24679/src/org/rubypeople/rdt/ui Modified Files: RubyElementLabels.java Log Message: add new option and code for appending file information to types (where that particular declaration/modification starts) Index: RubyElementLabels.java =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/ui/RubyElementLabels.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** RubyElementLabels.java 30 Mar 2006 03:05:01 -0000 1.3 --- RubyElementLabels.java 4 Apr 2006 23:11:52 -0000 1.4 *************** *** 27,31 **** * Ruby elements. * ! * @since 3.1 */ public class RubyElementLabels { --- 27,31 ---- * Ruby elements. * ! * @since 0.8.0 */ public class RubyElementLabels { *************** *** 174,177 **** --- 174,179 ---- */ public final static long REFERENCED_ROOT_POST_QUALIFIED = 1L << 45; + + static public final long T_DECLARATION_POINT = 1L << 46; /** *************** *** 515,518 **** --- 517,534 ---- } buf.append(typeName); + + if (getFlag(flags, T_DECLARATION_POINT)) { + buf.append(" ["); + buf.append(type.getPath().makeRelative().toOSString()); + try { + int offset = type.getNameRange().getOffset(); + buf.append(", offset: "); + buf.append(offset); + } catch (RubyModelException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + buf.append("] "); + } // post qualification |