Package org.erlide.engine.services.search

Examples of org.erlide.engine.services.search.OpenResult


        if (module != null) {
            final ISelection ssel = erlangEditor.getSite().getSelectionProvider()
                    .getSelection();
            final ITextSelection textSel = (ITextSelection) ssel;
            final int offset = textSel.getOffset();
            OpenResult res;
            try {
                res = ErlangEngine
                        .getInstance()
                        .getService(OpenService.class)
                        .open(module.getScannerName(),
View Full Code Here


                return;
            }
            final ISelection sel = getSelection();
            final ITextSelection textSel = (ITextSelection) sel;
            final int offset = textSel.getOffset();
            final OpenResult res = ErlangEngine
                    .getInstance()
                    .getService(OpenService.class)
                    .open(module.getScannerName(),
                            offset,
                            ErlangEngine.getInstance().getModelUtilService()
View Full Code Here

            final IRegion hoverRegion) {
        if (editor == null) {
            return null;
        }
        final StringBuffer result = new StringBuffer();
        OpenResult element = null;
        // TODO our model is too coarse, here we need access to expressions
        final Collection<OtpErlangObject> fImports = ErlangEngine.getInstance()
                .getModelUtilService().getImportsAsList(editor.getModule());

        final int offset = hoverRegion.getOffset();
View Full Code Here

            try {
                final Object element = input.getInputElement();
                if (element instanceof IErlElement) {
                    EditorUtility.openElementInEditor(element, true);
                } else if (element instanceof OpenResult) {
                    final OpenResult or = (OpenResult) element;
                    try {
                        final AbstractErlangEditor editor = input.getEditor();
                        new OpenUtils().openOpenResult(editor, editor.getModule(), -1,
                                null, or, null);
                    } catch (final Exception e) {
View Full Code Here

            try {
                final Object element = infoInput.getInputElement();
                if (element instanceof IErlElement) {
                    EditorUtility.openElementInEditor(element, true);
                } else if (element instanceof OpenResult) {
                    final OpenResult or = (OpenResult) element;
                    try {
                        new OpenUtils().openOpenResult(editor, editor.getModule(), -1,
                                null, or, null);
                    } catch (final Exception e) {
                        ErlLogger.error(e);
View Full Code Here

            if (fCanceled) {
                return;
            }
            try {
                final int offset = aSelection.getOffset();
                final OpenResult res = ErlangEngine
                        .getInstance()
                        .getService(OpenService.class)
                        .open(theModule.getScannerName(),
                                offset,
                                ErlangEngine.getInstance().getModelUtilService()
View Full Code Here

        try {
            moduleE.open(null);
            // when
            // looking for lists:reverse/2 and lists:reverse/1
            final IErlModel model = ErlangEngine.getInstance().getModel();
            final OpenResult res = ErlangEngine
                    .getInstance()
                    .getService(OpenService.class)
                    .open(moduleE.getScannerName(),
                            49,
                            ErlangEngine.getInstance().getModelUtilService()
View Full Code Here

    public void run(final ITextSelection selection) {
        try {
            final IEditorPart activeEditor = getSite().getPage().getActiveEditor();
            final int offset = selection.getOffset();
            ITextEditor textEditor = null;
            OpenResult openResult = null;
            IErlElement element = null;
            IErlProject project = null;
            IErlModule module = null;
            final IErlModel model = ErlangEngine.getInstance().getModel();
            if (activeEditor instanceof AbstractErlangEditor) {
View Full Code Here

TOP

Related Classes of org.erlide.engine.services.search.OpenResult

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.