|
From: <caw...@us...> - 2007-09-10 14:56:32
|
Revision: 3119
http://rubyeclipse.svn.sourceforge.net/rubyeclipse/?rev=3119&view=rev
Author: cawilliams
Date: 2007-09-10 07:56:26 -0700 (Mon, 10 Sep 2007)
Log Message:
-----------
add a find references in hierarchy action
Modified Paths:
--------------
trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/LocalVariable.java
Added Paths:
-----------
trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/core/ILocalVariable.java
Added: trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/core/ILocalVariable.java
===================================================================
--- trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/core/ILocalVariable.java (rev 0)
+++ trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/core/ILocalVariable.java 2007-09-10 14:56:26 UTC (rev 3119)
@@ -0,0 +1,42 @@
+/*******************************************************************************
+ * Copyright (c) 2000, 2006 IBM Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package org.rubypeople.rdt.core;
+
+/**
+ * Represents a local variable declared in a method or an initializer.
+ * <code>ILocalVariable</code> are pseudo-elements created as the result of a <code>ICodeAssist.codeSelect(...)</code>
+ * operation. They are not part of the Java model (<code>exists()</code> returns whether the parent exists rather than
+ * whether the local variable exists in the parent) and they are not included in the children of an <code>IMethod</code>
+ * or an <code>IInitializer</code>.
+ * <p>
+ * In particular such a pseudo-element should not be used as a handle. For example its name range won't be updated
+ * if the underlying source changes.
+ * </p><p>
+ * This interface is not intended to be implemented by clients.
+ * </p>
+ * @since 3.0
+ */
+public interface ILocalVariable extends IRubyElement, ISourceReference {
+
+ /**
+ * Returns the name of this local variable.
+ *
+ * @return the name of this local variable.
+ */
+ String getElementName();
+
+ /**
+ * Returns the source range of this local variable's name.
+ *
+ * @return the source range of this local variable's name
+ */
+ ISourceRange getNameRange() throws RubyModelException;
+}
Property changes on: trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/core/ILocalVariable.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/LocalVariable.java
===================================================================
--- trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/LocalVariable.java 2007-09-10 14:56:18 UTC (rev 3118)
+++ trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/LocalVariable.java 2007-09-10 14:56:26 UTC (rev 3119)
@@ -28,13 +28,14 @@
import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.IProgressMonitor;
+import org.rubypeople.rdt.core.ILocalVariable;
import org.rubypeople.rdt.internal.core.util.Util;
/**
* @author Chris
*
*/
-public class LocalVariable extends RubyField {
+public class LocalVariable extends RubyField implements ILocalVariable {
private int start;
private int end;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|