Package org.erlide.ui.actions

Examples of org.erlide.ui.actions.OpenUtils


                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


                    docPath = Util.stringValue(t.elementAt(3));
                    anchor = Util.stringValue(t.elementAt(4));
                }
            } else {
                element = OpenResult.build(t);
                final Object found = new OpenUtils().findOpenResult(editor,
                        editor.getModule(), erlProject, element,
                        editor.getElementAt(offset, false));
                if (found instanceof IErlFunction) {
                    final IErlFunction function = (IErlFunction) found;
                    final String comment = HoverUtil.getDocumentationString(
View Full Code Here

                    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) {
                        ErlLogger.error(e);
                    }
                }
View Full Code Here

    if (_tripleNotEquals) {
      String _moduleName = module.getModuleName();
      moduleName = _moduleName;
      if ((offset != (-1))) {
        final IErlElement e = module.getElementAt(offset);
        OpenUtils _openUtils = new OpenUtils();
        boolean _isTypeDefOrRecordDef = _openUtils.isTypeDefOrRecordDef(res, e);
        if (_isTypeDefOrRecordDef) {
          String _fun = res.getFun();
          return new TypeRefPattern(moduleName, _fun, limitTo);
        }
      }
View Full Code Here

TOP

Related Classes of org.erlide.ui.actions.OpenUtils

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.