|
From: <caw...@us...> - 2007-01-18 15:52:22
|
Revision: 1795
http://svn.sourceforge.net/rubyeclipse/?rev=1795&view=rev
Author: cawilliams
Date: 2007-01-18 07:52:20 -0800 (Thu, 18 Jan 2007)
Log Message:
-----------
doing some renaming back to what JDT uses - it's easier
Modified Paths:
--------------
trunk/org.rubypeople.rdt.debug.ui/src/org/rubypeople/rdt/internal/debug/ui/preferences/EditInterpreterDialog.java
trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/internal/launching/RubyContainerInitializer.java
trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/internal/launching/RubyVMContainer.java
trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/launching/IInterpreterInstallChangedListener.java
trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/launching/IInterpreterInstallType.java
trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/launching/RubyRuntime.java
Modified: trunk/org.rubypeople.rdt.debug.ui/src/org/rubypeople/rdt/internal/debug/ui/preferences/EditInterpreterDialog.java
===================================================================
--- trunk/org.rubypeople.rdt.debug.ui/src/org/rubypeople/rdt/internal/debug/ui/preferences/EditInterpreterDialog.java 2007-01-18 15:50:52 UTC (rev 1794)
+++ trunk/org.rubypeople.rdt.debug.ui/src/org/rubypeople/rdt/internal/debug/ui/preferences/EditInterpreterDialog.java 2007-01-18 15:52:20 UTC (rev 1795)
@@ -120,7 +120,7 @@
String id= null;
do {
id= String.valueOf(System.currentTimeMillis());
- } while (vmType.findInterpreterInstall(id) != null);
+ } while (vmType.findVMInstall(id) != null);
return id;
}
Modified: trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/internal/launching/RubyContainerInitializer.java
===================================================================
--- trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/internal/launching/RubyContainerInitializer.java 2007-01-18 15:50:52 UTC (rev 1794)
+++ trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/internal/launching/RubyContainerInitializer.java 2007-01-18 15:52:20 UTC (rev 1795)
@@ -44,7 +44,7 @@
IInterpreterInstallType vmType = RubyRuntime
.getInterpreterInstallType(vmTypeId);
if (vmType != null) {
- vm = vmType.findInterpreterInstallByName(vmName);
+ vm = vmType.findVMInstallByName(vmName);
}
} else {
// workspace default Ruby VM
Modified: trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/internal/launching/RubyVMContainer.java
===================================================================
--- trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/internal/launching/RubyVMContainer.java 2007-01-18 15:50:52 UTC (rev 1794)
+++ trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/internal/launching/RubyVMContainer.java 2007-01-18 15:52:20 UTC (rev 1795)
@@ -44,19 +44,19 @@
fgLoadpathEntries = new HashMap(10);
// add a listener to clear cached value when a VM changes or is removed
IInterpreterInstallChangedListener listener = new IInterpreterInstallChangedListener() {
- public void defaultInterpreterInstallChanged(IVMInstall previous, IVMInstall current) {
+ public void defaultVMInstallChanged(IVMInstall previous, IVMInstall current) {
}
- public void interpreterChanged(PropertyChangeEvent event) {
+ public void vmChanged(PropertyChangeEvent event) {
if (event.getSource() != null) {
fgLoadpathEntries.remove(event.getSource());
}
}
- public void interpreterAdded(IVMInstall newVm) {
+ public void vmAdded(IVMInstall newVm) {
}
- public void interpreterRemoved(IVMInstall removedVm) {
+ public void vmRemoved(IVMInstall removedVm) {
fgLoadpathEntries.remove(removedVm);
}
};
Modified: trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/launching/IInterpreterInstallChangedListener.java
===================================================================
--- trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/launching/IInterpreterInstallChangedListener.java 2007-01-18 15:50:52 UTC (rev 1794)
+++ trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/launching/IInterpreterInstallChangedListener.java 2007-01-18 15:52:20 UTC (rev 1795)
@@ -32,11 +32,11 @@
public static final String PROPERTY_VM_ARGUMENTS = RdtLaunchingPlugin.getUniqueIdentifier() + ".PROPERTY_VM_ARGUMENTS"; //$NON-NLS-1$
- public void defaultInterpreterInstallChanged(IVMInstall previous, IVMInstall current);
+ public void defaultVMInstallChanged(IVMInstall previous, IVMInstall current);
- public void interpreterChanged(PropertyChangeEvent event);
+ public void vmChanged(PropertyChangeEvent event);
- public void interpreterAdded(IVMInstall newVm);
+ public void vmAdded(IVMInstall newVm);
- public void interpreterRemoved(IVMInstall removedVm);
+ public void vmRemoved(IVMInstall removedVm);
}
Modified: trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/launching/IInterpreterInstallType.java
===================================================================
--- trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/launching/IInterpreterInstallType.java 2007-01-18 15:50:52 UTC (rev 1794)
+++ trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/launching/IInterpreterInstallType.java 2007-01-18 15:52:20 UTC (rev 1795)
@@ -7,15 +7,15 @@
public interface IInterpreterInstallType {
- IVMInstall findInterpreterInstallByName(String vmName);
+ IVMInstall findVMInstallByName(String vmName);
String getId();
- IVMInstall[] getInterpreterInstalls();
+ IVMInstall[] getVMInstalls();
IStatus validateInstallLocation(File installLocation);
- IVMInstall findInterpreterInstall(String id);
+ IVMInstall findVMInstall(String id);
IPath[] getDefaultLibraryLocations(File installLocation);
Modified: trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/launching/RubyRuntime.java
===================================================================
--- trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/launching/RubyRuntime.java 2007-01-18 15:50:52 UTC (rev 1794)
+++ trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/launching/RubyRuntime.java 2007-01-18 15:52:20 UTC (rev 1795)
@@ -147,7 +147,7 @@
Object[] listeners = fgVMListeners.getListeners();
for (int i = 0; i < listeners.length; i++) {
IInterpreterInstallChangedListener listener = (IInterpreterInstallChangedListener)listeners[i];
- listener.defaultInterpreterInstallChanged(oldInterpreter, anInterpreter);
+ listener.defaultVMInstallChanged(oldInterpreter, anInterpreter);
}
}
@@ -380,7 +380,7 @@
IInterpreterInstallType[] installTypes = getInterpreterInstallTypes();
for (int i = 0; i < installTypes.length; i++) {
IInterpreterInstallType type = installTypes[i];
- IVMInstall[] installs = type.getInterpreterInstalls();
+ IVMInstall[] installs = type.getVMInstalls();
for (int j = 0; j < installs.length; j++) {
fireInterpreterAdded(installs[j]);
}
@@ -525,7 +525,7 @@
abort(MessageFormat.format("vmInstall {0} contributed by {1} references undefined VM install type {2}", //$NON-NLS-1$
(Object[]) new String[]{id, element.getContributor().getName(), vmType}), null);
}
- IVMInstall install = installType.findInterpreterInstall(id);
+ IVMInstall install = installType.findVMInstall(id);
if (install == null) {
// only load/create if first time we've seen this VM install
String name = element.getAttribute("name"); //$NON-NLS-1$
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|