Package org.openquark.cal.metadata

Examples of org.openquark.cal.metadata.MetadataRenameUpdater


         * @param fromName QualifiedName to change from
         * @param toName QualifiedName to change to
         */
        private void updateMetadata(CompilerMessageLogger logger, QualifiedName fromName, QualifiedName toName) {
            Status updateMetadataStatus = new Status("Update metadata status");               
            MetadataRenameUpdater metadataRenamer = new MetadataRenameUpdater(updateMetadataStatus, typeChecker, toName, fromName, category);
           
            MetadataRenameUpdater.StatusListener refactoringStatusListener = new MetadataRenameUpdater.StatusListener() {
                public void willUseResource(WorkspaceResource resource) {}
                public void doneUsingResource(WorkspaceResource resource) {
                    fireDoneUsingResource(((CALFeatureName)resource.getIdentifier().getFeatureName()).toModuleName());
                }
            };
           
            metadataRenamer.setStatusListener(refactoringStatusListener);
            metadataRenamer.updateMetadata(super.moduleContainer);
            metadataRenamer.setStatusListener(null);
           
            addStatusMessagesToCompilerMessageLogger(updateMetadataStatus, Status.Severity.ERROR, logger);
        }
View Full Code Here

TOP

Related Classes of org.openquark.cal.metadata.MetadataRenameUpdater

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.