Package org.erlide.engine.model

Examples of org.erlide.engine.model.IErlModel


     * @param changedFiles
     *            changed files
     */
    public static void notifyErlide(final List<ChangedFile> changedFiles) {

        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();
                }
                model.notifyChange(m);

            } catch (final Exception e) {
                ErlLogger.error(e);
            }
        }
View Full Code Here

TOP

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

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.