Examples of ErlElementKind


Examples of org.erlide.engine.model.root.ErlElementKind

    public Image getImage(final Object element) {
        // module - String
        // function - ErlangFunction
        // clause - ClauseHead
        // occurrence - ModuleLineFunctionArityRef
        ErlElementKind kind = ErlElementKind.PROBLEM;
        if (element instanceof String) {
            kind = ErlElementKind.MODULE;
        } else if (element instanceof ErlangSearchElement) {
            final ErlangSearchElement ese = (ErlangSearchElement) element;
            kind = ese.getKind();
View Full Code Here

Examples of org.erlide.engine.model.root.ErlElementKind

        // if (buf != null && buf.hasUnsavedChanges()) {
        // return true;
        // }
        // for packages and projects must check open buffers
        // to see if they have an child with unsaved changes
        final ErlElementKind elementType = getKind();
        if (elementType == ErlElementKind.PROJECT || elementType == ErlElementKind.MODEL) {
            // final Enumeration openBuffers =
            // getBufferManager().getOpenBuffers();
            // while (openBuffers.hasMoreElements()) {
            // final IBuffer buffer = (IBuffer) openBuffers.nextElement();
View Full Code Here

Examples of org.erlide.engine.model.root.ErlElementKind

        @Override
        public boolean match(final ErlangProjectionAnnotation annotation) {
            if (stateMatch(annotation) && !annotation.isComment()
                    && !annotation.isMarkedDeleted()) {
                final IErlElement element = annotation.getElement();
                final ErlElementKind kind = element.getKind();
                return kind == ErlElementKind.FUNCTION || kind == ErlElementKind.CLAUSE;
            }
            return false;
        }
View Full Code Here

Examples of org.erlide.engine.model.root.ErlElementKind

    /**
     * Returns a name for the given Erlang element
     */
    static String getErlElementID(final IErlElement e) {
        final StringBuilder sb = new StringBuilder();
        final ErlElementKind kind = e.getKind();
        sb.append(kind);
        if (kind == ErlElementKind.FUNCTION) {
            final IErlFunction f = (IErlFunction) e;
            sb.append(f.getNameWithArity());
        } else if (kind == ErlElementKind.CLAUSE) {
View Full Code Here

Examples of org.erlide.engine.model.root.ErlElementKind

    String _modulePath = ref.getModulePath();
    String _name = ref.getName();
    int _arity = ref.getArity();
    String _clauseHead = ref.getClauseHead();
    boolean _isSubClause = ref.isSubClause();
    ErlElementKind _refToKind = SearchUtil.refToKind(ref);
    return new ErlangSearchElement(module, _modulePath, _name, _arity, _clauseHead, _isSubClause, _refToKind);
  }
View Full Code Here

Examples of org.erlide.engine.model.root.ErlElementKind

      boolean _tripleNotEquals_1 = (e != null);
      if (!_tripleNotEquals_1) {
        _and_1 = false;
      } else {
        boolean _or = false;
        ErlElementKind _kind = e.getKind();
        boolean _equals = Objects.equal(_kind, ErlElementKind.TYPESPEC);
        if (_equals) {
          _or = true;
        } else {
          ErlElementKind _kind_1 = e.getKind();
          boolean _equals_1 = Objects.equal(_kind_1, ErlElementKind.RECORD_DEF);
          _or = _equals_1;
        }
        _and_1 = _or;
      }
View Full Code Here

Examples of org.erlide.engine.model.root.ErlElementKind

 
  protected Object _findOpenResult(final RecordOpenResult openResult, final IErlModule module, final IErlProject project, final IErlElement element, final IErlElementLocator model, final IErlElementLocator.Scope scope, final ITextEditor editor) {
    try {
      IErlPreprocessorDef _xblockexpression = null;
      {
        final ErlElementKind kind = ErlElementKind.RECORD_DEF;
        String _name = openResult.getName();
        _xblockexpression = this.modelFindService.findPreprocessorDef(module, _name, kind);
      }
      return _xblockexpression;
    } catch (Throwable _e) {
View Full Code Here

Examples of org.erlide.engine.model.root.ErlElementKind

 
  protected Object _findOpenResult(final MacroOpenResult openResult, final IErlModule module, final IErlProject project, final IErlElement element, final IErlElementLocator model, final IErlElementLocator.Scope scope, final ITextEditor editor) {
    try {
      IErlPreprocessorDef _xblockexpression = null;
      {
        final ErlElementKind kind = ErlElementKind.MACRO_DEF;
        String _name = openResult.getName();
        _xblockexpression = this.modelFindService.findPreprocessorDef(module, _name, kind);
      }
      return _xblockexpression;
    } catch (Throwable _e) {
View Full Code Here

Examples of org.erlide.engine.model.root.ErlElementKind

  }
 
  protected boolean _isTypeDefOrRecordDef(final ExternalCallOpenResult res, final IErlElement element) {
    boolean _tripleNotEquals = (element != null);
    if (_tripleNotEquals) {
      ErlElementKind _kind = element.getKind();
      boolean _equals = Objects.equal(_kind, ErlElementKind.RECORD_DEF);
      if (_equals) {
        return true;
      }
      ErlElementKind _kind_1 = element.getKind();
      boolean _equals_1 = Objects.equal(_kind_1, ErlElementKind.TYPESPEC);
      if (_equals_1) {
        String _fun = res.getFun();
        String _name = element.getName();
        boolean _equals_2 = _fun.equals(_name);
View Full Code Here

Examples of org.erlide.engine.model.root.ErlElementKind

  }
 
  protected boolean _isTypeDefOrRecordDef(final LocalCallOpenResult res, final IErlElement element) {
    boolean _tripleNotEquals = (element != null);
    if (_tripleNotEquals) {
      ErlElementKind _kind = element.getKind();
      boolean _equals = Objects.equal(_kind, ErlElementKind.RECORD_DEF);
      if (_equals) {
        return true;
      }
      ErlElementKind _kind_1 = element.getKind();
      boolean _equals_1 = Objects.equal(_kind_1, ErlElementKind.TYPESPEC);
      if (_equals_1) {
        String _fun = res.getFun();
        String _name = element.getName();
        boolean _equals_2 = _fun.equals(_name);
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.