|
From: <caw...@us...> - 2007-09-14 15:25:09
|
Revision: 3180
http://rubyeclipse.svn.sourceforge.net/rubyeclipse/?rev=3180&view=rev
Author: cawilliams
Date: 2007-09-14 08:25:00 -0700 (Fri, 14 Sep 2007)
Log Message:
-----------
try to fix enablement of run as menu in Ruby Explorer!
Modified Paths:
--------------
trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/core/IMethod.java
trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/codeassist/CompletionEngine.java
trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/RubyMethod.java
Modified: trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/core/IMethod.java
===================================================================
--- trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/core/IMethod.java 2007-09-14 15:24:54 UTC (rev 3179)
+++ trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/core/IMethod.java 2007-09-14 15:25:00 UTC (rev 3180)
@@ -47,4 +47,8 @@
public boolean isPrivate() throws RubyModelException;
+ public boolean isPublic() throws RubyModelException;
+
+ public boolean isProtected() throws RubyModelException;
+
}
\ No newline at end of file
Modified: trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/codeassist/CompletionEngine.java
===================================================================
--- trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/codeassist/CompletionEngine.java 2007-09-14 15:24:54 UTC (rev 3179)
+++ trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/codeassist/CompletionEngine.java 2007-09-14 15:25:00 UTC (rev 3180)
@@ -892,5 +892,15 @@
return false;
}
+ public boolean isProtected() throws RubyModelException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ public boolean isPublic() throws RubyModelException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
}
}
Modified: trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/RubyMethod.java
===================================================================
--- trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/RubyMethod.java 2007-09-14 15:24:54 UTC (rev 3179)
+++ trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/RubyMethod.java 2007-09-14 15:25:00 UTC (rev 3180)
@@ -164,5 +164,13 @@
public boolean isPrivate() throws RubyModelException {
return getVisibility() == PRIVATE;
}
+
+ public boolean isPublic() throws RubyModelException {
+ return getVisibility() == PUBLIC;
+ }
+
+ public boolean isProtected() throws RubyModelException {
+ return getVisibility() == PROTECTED;
+ }
}
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|