|
From: <caw...@us...> - 2007-01-18 15:56:08
|
Revision: 1797
http://svn.sourceforge.net/rubyeclipse/?rev=1797&view=rev
Author: cawilliams
Date: 2007-01-18 07:56:04 -0800 (Thu, 18 Jan 2007)
Log Message:
-----------
doing some renaming back to what JDT uses - it's easier
Modified Paths:
--------------
trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/internal/launching/RubyVMContainer.java
trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/launching/AbstractInterpreter.java
trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/launching/RubyRuntime.java
Added Paths:
-----------
trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/launching/IVMInstallChangedListener.java
Removed Paths:
-------------
trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/launching/IInterpreterInstallChangedListener.java
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:54:37 UTC (rev 1796)
+++ trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/internal/launching/RubyVMContainer.java 2007-01-18 15:56:04 UTC (rev 1797)
@@ -10,7 +10,7 @@
import org.rubypeople.rdt.core.ILoadpathEntry;
import org.rubypeople.rdt.core.RubyCore;
import org.rubypeople.rdt.launching.IVMInstall;
-import org.rubypeople.rdt.launching.IInterpreterInstallChangedListener;
+import org.rubypeople.rdt.launching.IVMInstallChangedListener;
import org.rubypeople.rdt.launching.PropertyChangeEvent;
import org.rubypeople.rdt.launching.RubyRuntime;
@@ -43,7 +43,7 @@
if (fgLoadpathEntries == null) {
fgLoadpathEntries = new HashMap(10);
// add a listener to clear cached value when a VM changes or is removed
- IInterpreterInstallChangedListener listener = new IInterpreterInstallChangedListener() {
+ IVMInstallChangedListener listener = new IVMInstallChangedListener() {
public void defaultVMInstallChanged(IVMInstall previous, IVMInstall current) {
}
Modified: trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/launching/AbstractInterpreter.java
===================================================================
--- trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/launching/AbstractInterpreter.java 2007-01-18 15:54:37 UTC (rev 1796)
+++ trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/launching/AbstractInterpreter.java 2007-01-18 15:56:04 UTC (rev 1797)
@@ -80,7 +80,7 @@
*/
public void setName(String name) {
if (!name.equals(fName)) {
- PropertyChangeEvent event = new PropertyChangeEvent(this, IInterpreterInstallChangedListener.PROPERTY_NAME, fName, name);
+ PropertyChangeEvent event = new PropertyChangeEvent(this, IVMInstallChangedListener.PROPERTY_NAME, fName, name);
fName= name;
if (fNotify) {
RubyRuntime.fireInterpreterChanged(event);
@@ -102,7 +102,7 @@
*/
public void setInstallLocation(File installLocation) {
if (!installLocation.equals(fInstallLocation)) {
- PropertyChangeEvent event = new PropertyChangeEvent(this, IInterpreterInstallChangedListener.PROPERTY_INSTALL_LOCATION, fInstallLocation, installLocation);
+ PropertyChangeEvent event = new PropertyChangeEvent(this, IVMInstallChangedListener.PROPERTY_INSTALL_LOCATION, fInstallLocation, installLocation);
fInstallLocation= installLocation;
if (fNotify) {
RubyRuntime.fireInterpreterChanged(event);
@@ -161,7 +161,7 @@
}
}
- PropertyChangeEvent event = new PropertyChangeEvent(this, IInterpreterInstallChangedListener.PROPERTY_LIBRARY_LOCATIONS, prevLocations, newLocations);
+ PropertyChangeEvent event = new PropertyChangeEvent(this, IVMInstallChangedListener.PROPERTY_LIBRARY_LOCATIONS, prevLocations, newLocations);
fSystemLibraryDescriptions = locations;
if (fNotify) {
RubyRuntime.fireInterpreterChanged(event);
@@ -250,7 +250,7 @@
// No change
return;
}
- PropertyChangeEvent event = new PropertyChangeEvent(this, IInterpreterInstallChangedListener.PROPERTY_VM_ARGUMENTS, fInterpreterArgs, vmArgs);
+ PropertyChangeEvent event = new PropertyChangeEvent(this, IVMInstallChangedListener.PROPERTY_VM_ARGUMENTS, fInterpreterArgs, vmArgs);
fInterpreterArgs = vmArgs;
if (fNotify) {
RubyRuntime.fireInterpreterChanged(event);
Deleted: 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:54:37 UTC (rev 1796)
+++ trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/launching/IInterpreterInstallChangedListener.java 2007-01-18 15:56:04 UTC (rev 1797)
@@ -1,42 +0,0 @@
-package org.rubypeople.rdt.launching;
-
-import org.rubypeople.rdt.internal.launching.RdtLaunchingPlugin;
-
-public interface IInterpreterInstallChangedListener {
-
-
- /**
- * Property constant indicating the name associated
- * with a VM install has changed.
- */
- public static final String PROPERTY_NAME = RdtLaunchingPlugin.getUniqueIdentifier() + ".PROPERTY_NAME"; //$NON-NLS-1$
-
- /**
- * Property constant indicating the install location of
- * a VM install has changed.
- */
- public static final String PROPERTY_INSTALL_LOCATION = RdtLaunchingPlugin.getUniqueIdentifier() + ".PROPERTY_INSTALL_LOCATION"; //$NON-NLS-1$
-
- /**
- * Property constant indicating the library locations associated
- * with a VM install have changed.
- */
- public static final String PROPERTY_LIBRARY_LOCATIONS = RdtLaunchingPlugin.getUniqueIdentifier() + ".PROPERTY_LIBRARY_LOCATIONS"; //$NON-NLS-1$
-
- /**
- * Property constant indicating the VM arguments associated
- * with a VM install has changed.
- *
- * @since 0.9.0
- */
- public static final String PROPERTY_VM_ARGUMENTS = RdtLaunchingPlugin.getUniqueIdentifier() + ".PROPERTY_VM_ARGUMENTS"; //$NON-NLS-1$
-
-
- public void defaultVMInstallChanged(IVMInstall previous, IVMInstall current);
-
- public void vmChanged(PropertyChangeEvent event);
-
- public void vmAdded(IVMInstall newVm);
-
- public void vmRemoved(IVMInstall removedVm);
-}
Added: trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/launching/IVMInstallChangedListener.java
===================================================================
--- trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/launching/IVMInstallChangedListener.java (rev 0)
+++ trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/launching/IVMInstallChangedListener.java 2007-01-18 15:56:04 UTC (rev 1797)
@@ -0,0 +1,42 @@
+package org.rubypeople.rdt.launching;
+
+import org.rubypeople.rdt.internal.launching.RdtLaunchingPlugin;
+
+public interface IVMInstallChangedListener {
+
+
+ /**
+ * Property constant indicating the name associated
+ * with a VM install has changed.
+ */
+ public static final String PROPERTY_NAME = RdtLaunchingPlugin.getUniqueIdentifier() + ".PROPERTY_NAME"; //$NON-NLS-1$
+
+ /**
+ * Property constant indicating the install location of
+ * a VM install has changed.
+ */
+ public static final String PROPERTY_INSTALL_LOCATION = RdtLaunchingPlugin.getUniqueIdentifier() + ".PROPERTY_INSTALL_LOCATION"; //$NON-NLS-1$
+
+ /**
+ * Property constant indicating the library locations associated
+ * with a VM install have changed.
+ */
+ public static final String PROPERTY_LIBRARY_LOCATIONS = RdtLaunchingPlugin.getUniqueIdentifier() + ".PROPERTY_LIBRARY_LOCATIONS"; //$NON-NLS-1$
+
+ /**
+ * Property constant indicating the VM arguments associated
+ * with a VM install has changed.
+ *
+ * @since 0.9.0
+ */
+ public static final String PROPERTY_VM_ARGUMENTS = RdtLaunchingPlugin.getUniqueIdentifier() + ".PROPERTY_VM_ARGUMENTS"; //$NON-NLS-1$
+
+
+ public void defaultVMInstallChanged(IVMInstall previous, IVMInstall current);
+
+ public void vmChanged(PropertyChangeEvent event);
+
+ public void vmAdded(IVMInstall newVm);
+
+ public void vmRemoved(IVMInstall removedVm);
+}
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:54:37 UTC (rev 1796)
+++ trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/launching/RubyRuntime.java 2007-01-18 15:56:04 UTC (rev 1797)
@@ -118,7 +118,7 @@
return runtime;
}
- public static void removeInterpreterInstallChangedListener(IInterpreterInstallChangedListener listener) {
+ public static void removeInterpreterInstallChangedListener(IVMInstallChangedListener listener) {
fgVMListeners.remove(listener);
}
@@ -146,7 +146,7 @@
saveRuntimeConfiguration();
Object[] listeners = fgVMListeners.getListeners();
for (int i = 0; i < listeners.length; i++) {
- IInterpreterInstallChangedListener listener = (IInterpreterInstallChangedListener)listeners[i];
+ IVMInstallChangedListener listener = (IVMInstallChangedListener)listeners[i];
listener.defaultVMInstallChanged(oldInterpreter, anInterpreter);
}
}
@@ -274,7 +274,7 @@
return new File(fileLocation.toOSString());
}
- public static void addInterpreterInstallChangedListener(IInterpreterInstallChangedListener listener) {
+ public static void addInterpreterInstallChangedListener(IVMInstallChangedListener listener) {
fgVMListeners.add(listener);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|