Package org.locationtech.udig.catalog.document.IDocument

Examples of org.locationtech.udig.catalog.document.IDocument.Type


                linkButton.setEnabled(DocSourceUtils.canLink(folderSource));
               
                if (element instanceof IDocument) {
                   
                    final IDocument doc = (IDocument) element;
                    final Type docType = doc.getType();
                   
                    editButton.setEnabled(DocSourceUtils.canUpdate(doc.getSource()));
                   
                    if (Type.ATTACHMENT == docType
                            && ContentType.FILE == doc.getContentType()) {
View Full Code Here


        return (List<HotlinkDescriptor>) values.get(V_ACTIONS);
    }
       
    private Type getParamType() {
        if (docType == null) {
            final Type paramDocType = (Type) params.get(P_TYPE);
            if (paramDocType != null) {
                docType = paramDocType;
            }
        }
        return docType;
View Full Code Here

     *
     * @param doc
     * @return icon
     */
    public Image createDocumentImage(IDocument doc) {
        final Type type = doc.getType();
        final ContentType contentType = doc.getContentType();
        File file = null;
        if (ContentType.FILE == contentType) {
            file = (File) doc.getContent();
        }
View Full Code Here

TOP

Related Classes of org.locationtech.udig.catalog.document.IDocument.Type

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.