Package org.openquark.cal.compiler

Examples of org.openquark.cal.compiler.ScopedEntity


            buffer.append(version);
        }
       
        if (metadata instanceof ScopedEntityMetadata) {
            CALFeatureName featureName = ((ScopedEntityMetadata) metadata).getFeatureName();
            ScopedEntity entity = owner.getPerspective().getWorkspace().getScopedEntity(featureName);
           
            if (entity != null) {
                buffer.append("</td></tr><tr><td valign='top'>" + NavigatorMessages.getString("NAV_Visibility") + "</td><td>");
                buffer.append(entity.getScope().toString());
            }
        }
       
        if (metadata instanceof FunctionalAgentMetadata) {
   
View Full Code Here


            }
           
        } else {
           
            CALFeatureName featureName = metadata.getFeatureName();
            ScopedEntity entity = owner.getPerspective().getWorkspace().getScopedEntity(featureName);

            if (metadata.getDisplayName() != null) {
                return metadata.getDisplayName();
               
            } else if (entity == null) {
                return address.toString();
               
            } else if (namingPolicy != null) {
                return entity.getAdaptedName(namingPolicy);
               
            } else {
                return entity.getName().getQualifiedName();
            }
        }
       
        return address.toString();
    }
View Full Code Here

TOP

Related Classes of org.openquark.cal.compiler.ScopedEntity

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.