Examples of LightweightDocument


Examples of com.lightcrafts.ui.editor.LightweightDocument

            final ImageType t = getImageType();
            if ( t instanceof LZNDocumentProvider ) {
                final Document lznDoc =
                    ((LZNDocumentProvider)t).getLZNDocument( this );
                final XmlDocument xmlDocument = new XmlDocument( lznDoc );
                final LightweightDocument lwDoc =
                    new LightweightDocument( m_imageFile, xmlDocument );
                final File originalFile = lwDoc.getImageFile();
                if ( !m_imageFile.equals( originalFile ) )
                    m_originalImageFile = originalFile;
            }
        }
        return m_originalImageFile;
View Full Code Here

Examples of com.lightcrafts.ui.editor.LightweightDocument

        }
    }

    public static Collection<File> getAssociatedDocuments(File docFile) {
        try {
            LightweightDocument doc = new LightweightDocument(docFile);
            File imageFile = doc.getImageFile().getCanonicalFile();
            return new LinkedList<File>(ImagesToDocs.get(imageFile));
        }
        catch (IOException e) {
            // do nothing
        }
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.