Package org.openquark.cal.metadata

Examples of org.openquark.cal.metadata.FunctionMetadata


        } else if (userObject instanceof CollectorGem) {
            // Start with the open html tag
            String toolTip = "<html>";
            
            // If available add the metadata short description      
            FunctionMetadata metadata = ((CollectorGem)userObject).getDesignMetadata();
            String shortDescription = metadata.getShortDescription();
            if (shortDescription != null && shortDescription.length() > 0) {
                toolTip += "<p>" +  shortDescription + "</p>";
            }

            // Stick in the result type information
View Full Code Here


        // reinitialize some members
        cachedArgValueMap.clear();
        getTableTopPanel().resetState();

        // reset the metadata for the table top target collector
        FunctionMetadata oldMetadata = getTargetCollector().getDesignMetadata();
        getTargetCollector().clearDesignMetadata();
        // post an undoable edit for this reseting of the metadata
        getUndoableEditSupport().postEdit(new UndoableChangeCollectorDesignMetadataEdit(this, getTargetCollector(), oldMetadata));
    }
View Full Code Here

        // Initialize the argument lists
        targetingArgumentSet = new LinkedHashSet<PartInput>();
       
        // Initialize the metadata object.
        metadata = new FunctionMetadata(COLLECTOR_FEATURE_NAME, GemCutter.getLocaleFromPreferences());
    }
View Full Code Here

   
    /**
     * Replaces the metadata for this collector with empty metadata.
     */
    public void clearDesignMetadata() {
        metadata = new FunctionMetadata(COLLECTOR_FEATURE_NAME, GemCutter.getLocaleFromPreferences());
    }
View Full Code Here

        String gemDefinition = getGemDefinition(gemToSave, scope);
       
        // Get the gem metadata as functional agent metadata.
        CALFeatureName gemEntityFeatureName = CALFeatureName.getFunctionFeatureName(gemName);

        FunctionMetadata collectorMetadata = gemToSave.getDesignMetadata();
        FunctionMetadata newGemMetadata = new FunctionMetadata(gemEntityFeatureName, collectorMetadata.getLocale());
       
        collectorMetadata.copyTo(newGemMetadata);
       
        // Get the gem design.
        Document designDocument = XMLPersistenceHelper.getEmptyDocument();
View Full Code Here

            // Find the gem in the working module with the same name
            GemEntity entity = gemCutter.getWorkspace().getGemEntity(designName);

            if (entity != null) {
                // Load the metadata for the gem and copy it to the collector
                FunctionMetadata gemMetadata = (FunctionMetadata)entity.getMetadata(GemCutter.getLocaleFromPreferences());
                collectorGem.setDesignMetadata(gemMetadata);
            } else {
                // Clear the metadata for the collector, since there is no gem entity for the design
                collectorGem.clearDesignMetadata();
            }
View Full Code Here

        } else if (userObject instanceof CollectorGem) {
            // Start with the open html tag
            String toolTip = "<html>";
            
            // If available add the metadata short description      
            FunctionMetadata metadata = ((CollectorGem)userObject).getDesignMetadata();
            String shortDescription = metadata.getShortDescription();
            if (shortDescription != null && shortDescription.length() > 0) {
                toolTip += "<p>" +  shortDescription + "</p>";
            }

            // Stick in the result type information
View Full Code Here

TOP

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

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.