Package org.guvnor.tools.utils

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


        }
    }

    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

Related Classes of org.guvnor.tools.utils.GuvnorMetadataProps

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.