Examples of RuntimeInfo


Examples of org.erlide.runtime.runtimeinfo.RuntimeInfo

        doOkPressed();
        super.okPressed();
    }

    private void doOkPressed() {
        final RuntimeInfo info = new RuntimeInfo(fName.getText().trim(), fOtpHome
                .getText().trim(), fArgs.getText().trim(), fCodePath.getElements());
        fRequestor.itemAdded(info);
    }
View Full Code Here

Examples of org.erlide.runtime.runtimeinfo.RuntimeInfo

    // RuntimeInfo getRuntimeInfo();
    @Test
    public void getRuntimeInfo() throws Exception {
        final IErlProject aProject = project2;
        final RuntimeInfo info = aProject.getRuntimeInfo();
        // final String expected = ResourcesPlugin.getWorkspace().getRoot()
        // .getLocation().toString();
        assertNotNull(info);
        // The working dir might be relative to the project and can also be "."
        // We need to convert it to a canonical absolute path in order to be
View Full Code Here

Examples of org.erlide.runtime.runtimeinfo.RuntimeInfo

                final Cursor cursor = new Cursor(parent.getDisplay(), SWT.CURSOR_WAIT);
                try {
                    parent.setCursor(cursor);
                    parent.setEnabled(false);

                    final RuntimeInfo runtime = BackendCore.getRuntimeInfoCatalog()
                            .getErlideRuntime();
                    HostnameUtils.detectHostNames(runtime.getOtpHome());
                    updateHostNames();
                } finally {
                    parent.setCursor(null);
                    parent.setEnabled(true);
                    cursor.dispose();
View Full Code Here

Examples of org.erlide.runtime.runtimeinfo.RuntimeInfo

public class RuntimeInfoTest {

    @Test
    public void codePath_Runtime_1() {
        final RuntimeInfo info = new RuntimeInfo("dummy");
        final Collection<String> pa = info.getCodePath();
        assertThat(pa.size(), is(0));
    }
View Full Code Here

Examples of org.erlide.runtime.runtimeinfo.RuntimeInfo

        fRuntimeList.setSorter(new ViewerSorter() {

            @Override
            public int compare(final Viewer viewer, final Object e1, final Object e2) {
                if (e1 instanceof RuntimeInfo && e2 instanceof RuntimeInfo) {
                    final RuntimeInfo left = (RuntimeInfo) e1;
                    final RuntimeInfo right = (RuntimeInfo) e2;
                    return left.getName().compareToIgnoreCase(right.getName());
                }
                return super.compare(viewer, e1, e2);
            }

            @Override
View Full Code Here

Examples of org.erlide.runtime.runtimeinfo.RuntimeInfo

        fRuntimeList.setSorter(new ViewerSorter() {

            @Override
            public int compare(final Viewer viewer, final Object e1, final Object e2) {
                if (e1 instanceof RuntimeInfo && e2 instanceof RuntimeInfo) {
                    final RuntimeInfo left = (RuntimeInfo) e1;
                    final RuntimeInfo right = (RuntimeInfo) e2;
                    return left.getOtpHome().compareToIgnoreCase(right.getOtpHome());
                }
                return super.compare(viewer, e1, e2);
            }

            @Override
View Full Code Here

Examples of org.erlide.runtime.runtimeinfo.RuntimeInfo

        selectSingle();
    }

    private void selectSingle() {
        if (runtimes.size() == 1) {
            final RuntimeInfo vm = runtimes.iterator().next();
            fRuntimeList.setChecked(vm, true);
        }
        if (runtimes.size() > 1) {
            final RuntimeInfo vm = runtimes.iterator().next();
            if (fRuntimeList.getCheckedElements().length == 0) {
                fRuntimeList.setChecked(vm, true);
            }
        }
    }
View Full Code Here

Examples of org.erlide.runtime.runtimeinfo.RuntimeInfo

    }

    protected void editRuntime() {
        final IStructuredSelection selection = (IStructuredSelection) fRuntimeList
                .getSelection();
        final RuntimeInfo vm = (RuntimeInfo) selection.getFirstElement();
        if (vm == null) {
            return;
        }
        final AddRuntimeDialog dialog = new AddRuntimeDialog(this, getShell(), vm);
        dialog.setTitle(RuntimePreferenceMessages.edit_title);
        if (dialog.open() != Window.OK) {
            return;
        }
        removeRuntimes(new RuntimeInfo[] { vm });
        catalog.removeRuntime(vm.getName());
        fRuntimeList.refresh();
    }
View Full Code Here

Examples of org.erlide.runtime.runtimeinfo.RuntimeInfo

    }

    protected void duplicateRuntime() {
        final IStructuredSelection selection = (IStructuredSelection) fRuntimeList
                .getSelection();
        final RuntimeInfo vm = (RuntimeInfo) selection.getFirstElement();
        if (vm == null) {
            return;
        }
        final RuntimeInfo vm1 = new RuntimeInfo.Builder(vm).withName(
                vm.getName() + "_copy").build();
        final AddRuntimeDialog dialog = new AddRuntimeDialog(this, getShell(), vm1);
        dialog.setTitle(RuntimePreferenceMessages.edit_title);
        if (dialog.open() != Window.OK) {
            return;
View Full Code Here

Examples of org.erlide.runtime.runtimeinfo.RuntimeInfo

                | SWT.FULL_SELECTION);
        table.addSelectionListener(new SelectionAdapter() {
            @Override
            public void widgetSelected(final SelectionEvent e) {
                if (e.detail == SWT.CHECK) {
                    final RuntimeInfo ri = (RuntimeInfo) e.item.getData();
                    defaultRuntime = ri;
                }
            }
        });
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.