Package org.erlide.runtime.runtimeinfo

Examples of org.erlide.runtime.runtimeinfo.RuntimeInfoCatalogData


    private static RuntimeInfoCatalog runtimeInfoCatalog;

    public static final synchronized IRuntimeInfoCatalog getRuntimeInfoCatalog(
            final IRuntimeInfoSerializer serializer) {
        if (runtimeInfoCatalog == null) {
            final RuntimeInfoCatalogData data = serializer.load();

            runtimeInfoCatalog = new RuntimeInfoCatalog();
            runtimeInfoCatalog.setRuntimes(data.runtimes, data.defaultRuntimeName,
                    data.erlideRuntimeName);
            for (final RuntimeInfo info : runtimeInfoCatalog.getRuntimes()) {
View Full Code Here


            restart = RestartDialog.openQuestion(getShell());
        }

        catalog.setRuntimes(runtimes, defaultRuntime.getName(), erlideRuntime.getName());
        final RuntimeInfoPreferencesSerializer serializer = new RuntimeInfoPreferencesSerializer();
        serializer.store(new RuntimeInfoCatalogData(runtimes, defaultRuntime.getName(),
                erlideRuntime.getName()));

        // save column widths
        final IDialogSettings settings = ErlideUIPlugin.getDefault().getDialogSettings();
        saveColumnSettings(settings, RUNTIMES_PREFERENCE_PAGE);
View Full Code Here

        }
    }

    @Override
    public synchronized RuntimeInfoCatalogData load() {
        RuntimeInfoCatalogData data = new RuntimeInfoCatalogData();
        data = loadPrefs(data, getDefaultOldRootNode());
        data = loadPrefs(data, defaultRootNode);
        data = loadPrefs(data, getInstanceOldRootNode());
        data = loadPrefs(data, instanceRootNode);

        String dflt = null;
        String ide = null;
        if (data.runtimes.size() > 0) {
            dflt = data.defaultRuntimeName != null ? data.defaultRuntimeName
                    : data.runtimes.iterator().next().getName();
            ide = data.erlideRuntimeName != null ? data.erlideRuntimeName : dflt;
        }
        return new RuntimeInfoCatalogData(data.runtimes, dflt, ide);
    }
View Full Code Here

            ErlLogger.warn(e);
        }

        final String defaultRuntimeName = root.get(DEFAULT_KEY, data.defaultRuntimeName);
        final String ideRuntimeName = root.get(ERLIDE_KEY, data.erlideRuntimeName);
        return new RuntimeInfoCatalogData(runtimes, defaultRuntimeName, ideRuntimeName);
    }
View Full Code Here

TOP

Related Classes of org.erlide.runtime.runtimeinfo.RuntimeInfoCatalogData

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.