Package org.erlide.engine.model

Examples of org.erlide.engine.model.IErlModel.findElement()


        if (element instanceof ResourceNode) {
            final ResourceNode rn = (ResourceNode) element;
            final IResource r = rn.getResource();
            if (r instanceof IFile) {
                final IFile f = (IFile) r;
                final IErlElement e = model.findElement(r);
                if (e instanceof IErlModule) {
                    module = (IErlModule) e;
                }
                if (document == null) {
                    try {
View Full Code Here


              boolean _tripleNotEquals = (o != null);
              if (_tripleNotEquals) {
                final IResource resource = ((IResource) o);
                IErlangEngine _instance = ErlangEngine.getInstance();
                IErlModel _model = _instance.getModel();
                final IErlElement element = _model.findElement(resource);
                parent = element;
              }
            }
            boolean _tripleNotEquals_1 = (parent != null);
            if (_tripleNotEquals_1) {
View Full Code Here

        final IErlModel model = ErlangEngine.getInstance().getModel();
        for (final ChangedFile f : changedFiles) {
            IFile file;
            try {
                file = getFileFromPath(f.getNewPath());
                final IErlElement element = model.findElement(file);
                final IErlModule m = (IErlModule) element;
                m.resourceChanged(null);
                final IEditorPart editor = GlobalParameters.getEditor();
                if (editor instanceof ErlangEditor) {
                    ((ErlangEditor) editor).resetAndCacheScannerAndParser();
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.