Examples of open()


Examples of org.erlide.engine.model.root.IErlFolder.open()

            final String includeName, final String includePath,
            final IErlElementLocator.Scope scope) throws ErlModelException {
        final IErlElement parent = module.getParent();
        if (parent instanceof IErlFolder) {
            final IErlFolder folder = (IErlFolder) parent;
            folder.open(null);
            final IErlModule include = folder.findInclude(includeName, includePath);
            if (include != null) {
                return include;
            }
        }
View Full Code Here

Examples of org.erlide.engine.model.root.IErlProject.open()

            // given
            // an Erlang project and a module
            final IErlModule aModule = createModule(aProject, "aa.erl", "-module(aa).\n");
            final IPath srcxPath = new Path("srcx");
            final List<IPath> srcxDirs = Lists.newArrayList(srcxPath);
            aProject.open(null);
            // when
            // setting source dirs so the module is on source path
            final IErlModule module2 = aProject.getModule("aa");
            assertEquals(aModule, module2);
View Full Code Here

Examples of org.erlide.tracing.core.ui.dialogs.ConfigurationSaveAsDialog.open()

                final InputDialog dialog = new ConfigurationSaveAsDialog(parent
                        .getShell(), "Save trace pattern configuration",
                        "Enter name for configuration:", patternsConfigName,
                        existingNames);

                if (dialog.open() == Window.OK) {
                    if (ConfigurationManager.saveTPConfig(dialog.getValue())) {
                        patternsConfigName = dialog.getValue();
                        configNameLabel.setText(patternsConfigName);
                    } else {
                        final MessageBox messageBox = new MessageBox(parent.getShell(),
View Full Code Here

Examples of org.erlide.tracing.core.ui.dialogs.SelectConfigurationDialog.open()

            @Override
            public void widgetSelected(final SelectionEvent e) {
                final ElementListSelectionDialog dialog = new SelectConfigurationDialog(
                        parent.getShell(), new LabelProvider());
                dialog.setElements(ConfigurationManager.getTPConfigs());
                dialog.open();
                final String result = (String) dialog.getFirstResult();
                if (result != null) {
                    patternsConfigName = result;
                    configNameLabel.setText(patternsConfigName);
                    TraceBackend.getInstance().loadTracePatterns(
View Full Code Here

Examples of org.erlide.ui.dialogs.AddInterpretedModulesSelectionDialog.open()

    public static List<IErlModule> getModulesFromAddModulesDialog(final Shell shell) {
        final List<IErlModule> result = Lists.newArrayList();
        final AddInterpretedModulesSelectionDialog dialog = new AddInterpretedModulesSelectionDialog(
                shell);
        final int resultCode = dialog.open();
        if (resultCode != IDialogConstants.OK_ID) {
            return result;
        }
        final Object[] dialogResult = dialog.getResult();
        if (dialogResult == null || dialogResult.length == 0) {
View Full Code Here

Examples of org.erlide.ui.dialogs.OpenModuleDialog.open()

                .getActiveWorkbenchWindow();
        if (window == null) {
            return null;
        }
        final OpenModuleDialog dialog = new OpenModuleDialog(window.getShell());
        final int resultCode = dialog.open();
        if (resultCode != IDialogConstants.OK_ID) {
            return null;
        }

        final Object[] result = dialog.getResult();
View Full Code Here

Examples of org.erlide.ui.editors.erl.outline.QuickOutlinePopupDialog.open()

            final ErlangEditor editor = (ErlangEditor) getTextEditor();
            final Shell parent = getTextEditor().getSite().getShell();
            final QuickOutlinePopupDialog quickOutlinePopupDialog = new QuickOutlinePopupDialog(
                    parent, SWT.NONE, editor, editor, editor);

            quickOutlinePopupDialog.open();
        }
    }
}
View Full Code Here

Examples of org.erlide.ui.editors.erl.outline.filters.CustomOutlineFiltersDialog.open()

                targetId, oldAreUserDefinedPatternsEnabled, oldUserDefinedPatterns,
                oldEnabledFilterIDs);
        if (!oldAreUserDefinedPatternsEnabled) {
            oldUserDefinedPatterns = Lists.newArrayList();
        }
        if (dialog.open() == Window.OK) {
            final boolean areUserDefinedPatternsEnabled = dialog
                    .areUserDefinedPatternsEnabled();
            List<String> userDefinedPatterns = dialog.getUserDefinedPatterns();
            final Set<String> enabledFilterIDs = dialog.getEnabledFilterIds();
            // TODO should we support filter LRU history (as in JDT)?
View Full Code Here

Examples of org.erlide.ui.prefs.ProjectSelectionDialog.open()

                }
            } catch (final ErlModelException e) {
            }
            final ProjectSelectionDialog dialog = new ProjectSelectionDialog(getShell(),
                    erlProjects, projectsWithSpecifics);
            if (dialog.open() == Window.OK) {
                final IProject res = (IProject) dialog.getFirstResult();
                openProjectProperties(res);
            }
        }
    }
View Full Code Here

Examples of org.erlide.ui.util.FolderSelectionDialog.open()

        dialog.addFilter(filter);
        dialog.setInput(root);
        dialog.setInitialSelection(initSelection);
        dialog.setComparator(new ResourceComparator(ResourceComparator.NAME));

        if (dialog.open() == Window.OK) {
            return (IContainer) dialog.getFirstResult();
        }
        return null;
    }
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.