Search in sources :

Example 16 with DocumentManager

use of cbit.vcell.clientdb.DocumentManager in project vcell by virtualcell.

the class DatabaseWindowManager method initializeAll.

/**
 * Insert the method's description here.
 * Creation date: (5/14/2004 5:28:23 PM)
 */
public void initializeAll() {
    AsynchClientTask task1 = new AsynchClientTask("initializeAll", AsynchClientTask.TASKTYPE_SWING_NONBLOCKING) {

        @Override
        public void run(Hashtable<String, Object> hashTable) throws Exception {
            try {
                DocumentManager documentManager = getRequestManager().getDocumentManager();
                getBioModelDbTreePanel().setDocumentManager(documentManager);
                getMathModelDbTreePanel().setDocumentManager(documentManager);
                getGeometryTreePanel().setDocumentManager(documentManager);
            // getDatabaseWindowPanel().setDocumentManager(documentManager);
            // getImageBrowser().getImageDbTreePanel1().setDocumentManager(documentManager);
            } catch (Throwable exc) {
                exc.printStackTrace(System.out);
            }
        }
    };
    ClientTaskDispatcher.dispatch(null, new Hashtable<String, Object>(), new AsynchClientTask[] { task1 });
}
Also used : AsynchClientTask(cbit.vcell.client.task.AsynchClientTask) Hashtable(java.util.Hashtable) DocumentManager(cbit.vcell.clientdb.DocumentManager)

Example 17 with DocumentManager

use of cbit.vcell.clientdb.DocumentManager in project vcell by virtualcell.

the class TestingFrameworkWindowManager method initializeAllPanels.

/**
 * Insert the method's description here.
 * Creation date: (5/14/2004 5:28:23 PM)
 */
public void initializeAllPanels() {
    AsynchClientTask task1 = new AsynchClientTask("initializeAllPanels", AsynchClientTask.TASKTYPE_SWING_NONBLOCKING) {

        @Override
        public void run(Hashtable<String, Object> hashTable) throws Exception {
            try {
                DocumentManager documentManager = getRequestManager().getDocumentManager();
                getTestingFrameworkWindowPanel().setDocumentManager(documentManager);
                getAddTestSuitePanel().setTestingFrameworkWindowManager(TestingFrameworkWindowManager.this);
                getTestCaseAddPanel().setTestingFrameworkWindowManager(TestingFrameworkWindowManager.this);
                getEditTestCriteriaPanel().setTestingFrameworkWindowManager(TestingFrameworkWindowManager.this);
            } catch (Throwable exc) {
                exc.printStackTrace(System.out);
            }
        }
    };
    ClientTaskDispatcher.dispatch(null, new Hashtable<String, Object>(), new AsynchClientTask[] { task1 });
}
Also used : AsynchClientTask(cbit.vcell.client.task.AsynchClientTask) Hashtable(java.util.Hashtable) ClientDocumentManager(cbit.vcell.clientdb.ClientDocumentManager) DocumentManager(cbit.vcell.clientdb.DocumentManager)

Example 18 with DocumentManager

use of cbit.vcell.clientdb.DocumentManager in project vcell by virtualcell.

the class BioModelEditor method setBioModelWindowManager.

/**
 * Insert the method's description here.
 * Creation date: (5/7/2004 5:40:13 PM)
 * @param newBioModelWindowManager cbit.vcell.client.desktop.BioModelWindowManager
 */
public void setBioModelWindowManager(BioModelWindowManager bioModelWindowManager) {
    if (this.bioModelWindowManager == bioModelWindowManager) {
        return;
    }
    this.bioModelWindowManager = bioModelWindowManager;
    bioModelsNetPanel.setDocumentWindowManager(bioModelWindowManager);
    getBioModelsNetPropertiesPanel().setDocumentWindowManager(bioModelWindowManager);
    bioModelPropertiesPanel.setBioModelWindowManager(bioModelWindowManager);
    bioModelParametersPanel.setBioModelWindowManager(bioModelWindowManager);
    DatabaseWindowManager dbWindowManager = new DatabaseWindowManager(databaseWindowPanel, bioModelWindowManager.getRequestManager());
    databaseWindowPanel.setDatabaseWindowManager(dbWindowManager);
    DocumentManager documentManager = bioModelWindowManager.getRequestManager().getDocumentManager();
    databaseWindowPanel.setDocumentManager(documentManager);
    bioModelEditorModelPanel.setDocumentManager(documentManager);
    geometryMetaDataPanel.setDocumentManager(documentManager);
    bioModelEditorApplicationPanel.setBioModelWindowManager(bioModelWindowManager);
}
Also used : DocumentManager(cbit.vcell.clientdb.DocumentManager) DatabaseWindowManager(cbit.vcell.client.DatabaseWindowManager)

Example 19 with DocumentManager

use of cbit.vcell.clientdb.DocumentManager in project vcell by virtualcell.

the class DatabaseWindowPanel method setDocumentManager.

/**
 * Sets the documentManager property (cbit.vcell.clientdb.DocumentManager) value.
 * @param documentManager The new value for the property.
 * @see #getDocumentManager
 */
public void setDocumentManager(DocumentManager documentManager) {
    DocumentManager oldValue = fieldDocumentManager;
    fieldDocumentManager = documentManager;
    firePropertyChange(CommonTask.DOCUMENT_MANAGER.name, oldValue, documentManager);
}
Also used : DocumentManager(cbit.vcell.clientdb.DocumentManager)

Example 20 with DocumentManager

use of cbit.vcell.clientdb.DocumentManager in project vcell by virtualcell.

the class TestingFrameworkPanel method setDocumentManager.

/**
 * Sets the documentManager property (cbit.vcell.clientdb.DocumentManager) value.
 * @param documentManager The new value for the property.
 * @see #getDocumentManager
 */
public void setDocumentManager(DocumentManager documentManager) {
    DocumentManager oldValue = fieldDocumentManager;
    fieldDocumentManager = documentManager;
    firePropertyChange(CommonTask.DOCUMENT_MANAGER.name, oldValue, documentManager);
}
Also used : DocumentManager(cbit.vcell.clientdb.DocumentManager)

Aggregations

DocumentManager (cbit.vcell.clientdb.DocumentManager)30 AsynchClientTask (cbit.vcell.client.task.AsynchClientTask)10 Hashtable (java.util.Hashtable)10 DocumentWindowManager (cbit.vcell.client.DocumentWindowManager)6 VCDocument (org.vcell.util.document.VCDocument)6 UserCancelException (org.vcell.util.UserCancelException)5 ExternalDataIdentifier (org.vcell.util.document.ExternalDataIdentifier)5 BioModel (cbit.vcell.biomodel.BioModel)4 Component (java.awt.Component)4 File (java.io.File)4 ImageDataset (cbit.vcell.VirtualMicroscopy.ImageDataset)3 DatabaseWindowManager (cbit.vcell.client.DatabaseWindowManager)3 DocumentWindow (cbit.vcell.client.desktop.DocumentWindow)3 FieldDataFileOperationSpec (cbit.vcell.field.io.FieldDataFileOperationSpec)3 GeometryInfo (cbit.vcell.geometry.GeometryInfo)3 RegionImage (cbit.vcell.geometry.RegionImage)3 DataAccessException (org.vcell.util.DataAccessException)3 VCImageUncompressed (cbit.image.VCImageUncompressed)2 AnnotatedImageDataset (cbit.vcell.VirtualMicroscopy.importer.AnnotatedImageDataset)2 MicroscopyXmlReader (cbit.vcell.VirtualMicroscopy.importer.MicroscopyXmlReader)2