Package org.erlide.engine.model

Examples of org.erlide.engine.model.ErlModelException


    @Override
    public void save(final IProgressMonitor pm, final boolean force)
            throws ErlModelException {
        if (isReadOnly()) {
            throw new ErlModelException(new ErlModelStatus(
                    ErlModelStatusConstants.READ_ONLY, this));
        }
        // final IBuffer buf = getBuffer();
        // if (buf != null) { // some ErlElements (like a ErlProject) don't have
        // a
View Full Code Here


            final IResource[] members = c.members();
            for (final IResource resource : members) {
                model.create(resource);
            }
        } catch (final CoreException e) {
            throw new ErlModelException(new ErlModelStatus(
                    ErlModelStatusConstants.CORE_EXCEPTION, e));
        }
        return true;
    }
View Full Code Here

        // check whether the Erlang project can be opened
        if (!(r instanceof IContainer) || !r.isAccessible()) {
            ErlLogger.warn("Project %s has no resources: res:%s acc:%s cont:%s",
                    getName(), r, r == null ? "?" : r.isAccessible(),
                    r instanceof IContainer);
            throw new ErlModelException(new ErlModelStatus(
                    ErlModelStatusConstants.ELEMENT_DOES_NOT_EXIST, this));
        }

        addConfigurationChangeListeners();
View Full Code Here

                if (p != null) {
                    result.add(p);
                }
            }
        } catch (final CoreException e) {
            throw new ErlModelException(e);
        }
        return result;
    }
View Full Code Here

            if (!project.isOpen()) {
                project.open(null);
            }
            return createProject(project);
        } catch (final CoreException e) {
            throw new ErlModelException(e, new ErlModelStatus(e));
        }
    }
View Full Code Here

    try {
      IErlModel _model = this.getModel();
      return _model.findModule(name);
    } catch (final Throwable _t) {
      if (_t instanceof ErlModelException) {
        final ErlModelException e = (ErlModelException)_t;
        return null;
      } else {
        throw Exceptions.sneakyThrow(_t);
      }
    }
View Full Code Here

TOP

Related Classes of org.erlide.engine.model.ErlModelException

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.