Examples of GuvnorMetadataProps


Examples of org.guvnor.tools.utils.GuvnorMetadataProps

        }
        return composite;
    }

    private void displayGuvnorProperties(Composite composite, IResource resource) {
        GuvnorMetadataProps props;
        try {
            props = GuvnorMetadataUtils.getGuvnorMetadata(resource);
            if (props == null) {
                indicateNotGuvnorAssociated(composite);
            } else {
View Full Code Here

Examples of org.guvnor.tools.utils.GuvnorMetadataProps

        }
    }

    private void addResourceDetails(IResource resource, IDecoration decoration)
            throws Exception {
        GuvnorMetadataProps props = GuvnorMetadataUtils.getGuvnorMetadata(resource);
        if (props.getVersion() != null) {
            boolean showRevision = GuvnorPreferencePage.shouldShowRevision();
            boolean showDateTime = GuvnorPreferencePage.shouldShowTimeDateStamp();
            if (showRevision || showDateTime) {
                decoration.addSuffix(" ");     //$NON-NLS-1$
            }
            if (showRevision) {
                decoration.addSuffix(props.getRevision());
            }
            if (showDateTime) {
                if (showRevision) {
                    decoration.addSuffix(", " + props.getVersion());         //$NON-NLS-1$
                } else {
                    decoration.addSuffix(props.getVersion());
                }
            }
        }
    }
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.