Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

rename RuntimeInfoManagerData to R_I_CatalogData

  • Loading branch information...
commit 094b1eb048e05f2b0fc6d597c6935140a768e47f 1 parent 44b18e8
@vladdu vladdu authored
View
12 org.erlide.backend/src/org/erlide/backend/runtimeinfo/RuntimeInfoPreferencesSerializer.java
@@ -8,7 +8,7 @@
import org.eclipse.core.runtime.preferences.InstanceScope;
import org.erlide.runtime.runtimeinfo.IRuntimeInfoSerializer;
import org.erlide.runtime.runtimeinfo.RuntimeInfo;
-import org.erlide.runtime.runtimeinfo.RuntimeInfoManagerData;
+import org.erlide.runtime.runtimeinfo.RuntimeInfoCatalogData;
import org.erlide.utils.ErlLogger;
import org.osgi.service.prefs.BackingStoreException;
@@ -39,7 +39,7 @@ public RuntimeInfoPreferencesSerializer() {
}
@Override
- public synchronized void store(final RuntimeInfoManagerData data) {
+ public synchronized void store(final RuntimeInfoCatalogData data) {
try {
instanceRootNode.clear();
for (final String node : instanceRootNode.childrenNames()) {
@@ -62,15 +62,15 @@ public synchronized void store(final RuntimeInfoManagerData data) {
}
@Override
- public synchronized RuntimeInfoManagerData load() {
- RuntimeInfoManagerData data = new RuntimeInfoManagerData();
+ public synchronized RuntimeInfoCatalogData load() {
+ RuntimeInfoCatalogData data = new RuntimeInfoCatalogData();
data = loadPrefs(data, defaultRootNode);
data = loadPrefs(data, instanceRootNode);
return data;
}
- private RuntimeInfoManagerData loadPrefs(final RuntimeInfoManagerData data,
+ private RuntimeInfoCatalogData loadPrefs(final RuntimeInfoCatalogData data,
final IEclipsePreferences root) {
final String defrt = root.get("default", null);
String defaultRuntimeName = null;
@@ -94,6 +94,6 @@ private RuntimeInfoManagerData loadPrefs(final RuntimeInfoManagerData data,
if (data.defaultRuntimeName == null && data.runtimes.size() > 0) {
defaultRuntimeName = data.runtimes.iterator().next().getName();
}
- return new RuntimeInfoManagerData(runtimes, defaultRuntimeName, null);
+ return new RuntimeInfoCatalogData(runtimes, defaultRuntimeName, null);
}
}
View
4 org.erlide.runtime/src/org/erlide/runtime/RuntimeCore.java
@@ -2,7 +2,7 @@
import org.erlide.runtime.runtimeinfo.IRuntimeInfoSerializer;
import org.erlide.runtime.runtimeinfo.RuntimeInfoCatalog;
-import org.erlide.runtime.runtimeinfo.RuntimeInfoManagerData;
+import org.erlide.runtime.runtimeinfo.RuntimeInfoCatalogData;
public class RuntimeCore {
@@ -11,7 +11,7 @@
public static final RuntimeInfoCatalog getRuntimeInfoCatalog(
final IRuntimeInfoSerializer serializer) {
if (runtimeInfoCatalog == null) {
- final RuntimeInfoManagerData data = serializer.load();
+ final RuntimeInfoCatalogData data = serializer.load();
runtimeInfoCatalog = new RuntimeInfoCatalog();
runtimeInfoCatalog.setRuntimes(data.runtimes,
View
4 org.erlide.runtime/src/org/erlide/runtime/runtimeinfo/IRuntimeInfoSerializer.java
@@ -2,8 +2,8 @@
public interface IRuntimeInfoSerializer {
- RuntimeInfoManagerData load();
+ RuntimeInfoCatalogData load();
- void store(RuntimeInfoManagerData data);
+ void store(RuntimeInfoCatalogData data);
}
View
6 ...e/runtimeinfo/RuntimeInfoManagerData.java → ...e/runtimeinfo/RuntimeInfoCatalogData.java
@@ -4,19 +4,19 @@
import java.util.Collection;
import java.util.Collections;
-public final class RuntimeInfoManagerData {
+public final class RuntimeInfoCatalogData {
public final String erlideRuntimeName;
public final Collection<RuntimeInfo> runtimes;
public final String defaultRuntimeName;
- public RuntimeInfoManagerData(final Collection<RuntimeInfo> runtimes,
+ public RuntimeInfoCatalogData(final Collection<RuntimeInfo> runtimes,
final String defaultRuntimeName, final String erlideRuntimeName) {
this.runtimes = Collections.unmodifiableCollection(runtimes);
this.defaultRuntimeName = defaultRuntimeName;
this.erlideRuntimeName = erlideRuntimeName;
}
- public RuntimeInfoManagerData() {
+ public RuntimeInfoCatalogData() {
this(new ArrayList<RuntimeInfo>(), null, null);
}
}
View
4 org.erlide.ui/src/org/erlide/ui/prefs/RuntimePreferencePage.java
@@ -65,7 +65,7 @@
import org.erlide.backend.runtimeinfo.RuntimeInfoPreferencesSerializer;
import org.erlide.runtime.runtimeinfo.RuntimeInfo;
import org.erlide.runtime.runtimeinfo.RuntimeInfoCatalog;
-import org.erlide.runtime.runtimeinfo.RuntimeInfoManagerData;
+import org.erlide.runtime.runtimeinfo.RuntimeInfoCatalogData;
import org.erlide.ui.internal.ErlideUIPlugin;
import org.erlide.ui.util.SWTUtil;
@@ -792,7 +792,7 @@ public boolean performOk() {
catalog.setRuntimes(runtimes, defaultRuntime.getName(),
erlideRuntime.getName());
final RuntimeInfoPreferencesSerializer serializer = new RuntimeInfoPreferencesSerializer();
- serializer.store(new RuntimeInfoManagerData(runtimes, defaultRuntime
+ serializer.store(new RuntimeInfoCatalogData(runtimes, defaultRuntime
.getName(), erlideRuntime.getName()));
// save column widths
Please sign in to comment.
Something went wrong with that request. Please try again.