Examples of RuntimeInfo


Examples of org.erlide.runtime.runtimeinfo.RuntimeInfo

        if (erlideRuntime == null) {
            erlideRuntime = defaultRuntime;
        }

        boolean restart = false;
        final RuntimeInfo oldDefault = catalog.getDefaultRuntime();
        if (oldDefault != RuntimeInfo.NO_RUNTIME_INFO
                && !defaultRuntime.equals(oldDefault)) {
            restart = RestartDialog.openQuestion(getShell());
        }
View Full Code Here

Examples of org.erlide.runtime.runtimeinfo.RuntimeInfo

        defaultRuntime = catalog.getDefaultRuntime();
        erlideRuntime = catalog.getErlideRuntime();
    }

    void checkValid() {
        final RuntimeInfo def = getCheckedRuntime();

        if (def == null && getRuntimes().size() > 0) {
            setValid(false);
            setErrorMessage("Please select a default runtime.");
        } else {
View Full Code Here

Examples of org.erlide.runtime.runtimeinfo.RuntimeInfo

         * @see ITableLabelProvider#getColumnText(Object, int)
         */
        @Override
        public String getColumnText(final Object element, final int columnIndex) {
            if (element instanceof RuntimeInfo) {
                final RuntimeInfo vm = (RuntimeInfo) element;
                switch (columnIndex) {
                case 0:
                    return vm.getName();
                case 1:
                    return vm.getOtpHome();
                case 2:
                    return vm.getVersion().toString();
                }
            }
            return element.toString();
        }
View Full Code Here

Examples of org.erlide.runtime.runtimeinfo.RuntimeInfo

            }
            return Status.OK_STATUS;
        }

        private IBackend createBackend() {
            final RuntimeInfo erlideRuntime = BackendCore.getRuntimeInfoCatalog()
                    .getErlideRuntime();
            if (erlideRuntime == null) {
                return null;
            }
            final RuntimeInfo info = new RuntimeInfo(erlideRuntime);
            final BackendData data = new BackendData(info);
            final String nodeName = BackendUtils.getErlideNodeNameTag() + "_dialyzer";
            data.setNodeName(nodeName);
            data.setDebug(false);
            data.setConsole(false);
View Full Code Here

Examples of org.erlide.runtime.runtimeinfo.RuntimeInfo

        }
    }

    @Override
    public IBackend getBuildBackend(@NonNull final IErlProject project) {
        final RuntimeInfo info = project.getRuntimeInfo();
        if (info == null) {
            ErlLogger
                    .info("Project %s has no runtime info, using ide", project.getName());
            return getIdeBackend();
        }
        final String version = info.getVersion().asMajor().toString();
        IBackend b = buildBackends.get(version);
        if (b == null) {
            b = factory.createBuildBackend(info);
            buildBackends.put(version, b);
            addBackend(b);
View Full Code Here

Examples of org.erlide.runtime.runtimeinfo.RuntimeInfo

        return null;
    }

    @Override
    public IOtpRpc getByVersion(final RuntimeVersion version) {
        final RuntimeInfo info = BackendCore.getRuntimeInfoCatalog().getRuntime(version,
                null);
        if (info == null) {
            return null;
        }
        final Collection<IBackend> list = getAllBackends();
View Full Code Here

Examples of org.erlide.runtime.runtimeinfo.RuntimeInfo

            final String mode, final ILaunch launch) throws CoreException {
        if (config == null) {
            throw new IllegalArgumentException();
        }

        RuntimeInfo runtimeInfo = BackendCore.getRuntimeInfoCatalog().getRuntime(
                config.getAttribute(ErlRuntimeAttributes.RUNTIME_NAME, ""));
        if (runtimeInfo == null) {
            runtimeInfo = BackendCore.getRuntimeInfoCatalog().getDefaultRuntime();
        }
        if (runtimeInfo == null) {
View Full Code Here

Examples of org.erlide.runtime.runtimeinfo.RuntimeInfo

        if (containers.isEmpty()) {
            containers.add(new WorkspaceSourceContainer());
        }
        final String runtimeName = configuration.getAttribute(
                ErlRuntimeAttributes.RUNTIME_NAME, "").trim();
        final RuntimeInfo info = BackendCore.getRuntimeInfoCatalog().getRuntime(
                runtimeName);
        containers.add(new ErlangOtpSourceContainer(new Path(info.getOtpHome())));
        return containers.toArray(new ISourceContainer[containers.size()]);
    }
View Full Code Here

Examples of org.erlide.runtime.runtimeinfo.RuntimeInfo

        node.put(ARGS, info.getArgs());
    }

    public static RuntimeInfo load(final Preferences node) {
        final String path = node.get(CODE_PATH, "");
        final RuntimeInfo info = new RuntimeInfo(node.name(), node.get(HOME_DIR, ""),
                node.get(ARGS, ""), PreferencesUtils.unpackList(path));
        return info;
    }
View Full Code Here

Examples of org.erlide.runtime.runtimeinfo.RuntimeInfo

        String[] children;
        final Collection<RuntimeInfo> runtimes = new ArrayList<RuntimeInfo>(data.runtimes);
        try {
            children = root.childrenNames();
            for (final String name : children) {
                final RuntimeInfo rt = RuntimeInfoLoader.load(root.node(name));
                runtimes.add(rt);
            }
        } catch (final BackingStoreException e) {
            ErlLogger.warn(e);
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.