Search in sources :

Example 1 with FileConnectionManager

use of com.revolsys.io.file.FileConnectionManager in project com.revolsys.open by revolsys.

the class FolderConnectionsTrees method newFolderConnectionsTreeNode.

public static BaseTreeNode newFolderConnectionsTreeNode() {
    final FileConnectionManager connectionManager = FileConnectionManager.get();
    final BaseTreeNode node = BaseTreeNode.newTreeNode(connectionManager);
    node.setOpen(true);
    return node;
}
Also used : FileConnectionManager(com.revolsys.io.file.FileConnectionManager) BaseTreeNode(com.revolsys.swing.tree.BaseTreeNode)

Example 2 with FileConnectionManager

use of com.revolsys.io.file.FileConnectionManager in project com.revolsys.open by revolsys.

the class ProjectFrame method setConnectionRegistries.

private void setConnectionRegistries() {
    final String connectionRegistryName = this.project.getConnectionRegistryName();
    final RecordStoreConnectionManager recordStoreConnectionManager = RecordStoreConnectionManager.get();
    recordStoreConnectionManager.removeConnectionRegistry(connectionRegistryName);
    final RecordStoreConnectionRegistry recordStores = this.project.getRecordStores();
    recordStoreConnectionManager.addConnectionRegistry(recordStores);
    final FileConnectionManager fileConnectionManager = FileConnectionManager.get();
    fileConnectionManager.removeConnectionRegistry(connectionRegistryName);
    final FolderConnectionRegistry folderConnections = this.project.getFolderConnections();
    fileConnectionManager.addConnectionRegistry(folderConnections);
    final WebServiceConnectionManager webServiceConnectionManager = WebServiceConnectionManager.get();
    webServiceConnectionManager.removeConnectionRegistry(connectionRegistryName);
    final WebServiceConnectionRegistry webServices = this.project.getWebServices();
    webServiceConnectionManager.addConnectionRegistry(webServices);
}
Also used : RecordStoreConnectionManager(com.revolsys.record.io.RecordStoreConnectionManager) FolderConnectionRegistry(com.revolsys.io.file.FolderConnectionRegistry) FileConnectionManager(com.revolsys.io.file.FileConnectionManager) WebServiceConnectionManager(com.revolsys.webservice.WebServiceConnectionManager) WebServiceConnectionRegistry(com.revolsys.webservice.WebServiceConnectionRegistry) RecordStoreConnectionRegistry(com.revolsys.record.io.RecordStoreConnectionRegistry)

Aggregations

FileConnectionManager (com.revolsys.io.file.FileConnectionManager)2 FolderConnectionRegistry (com.revolsys.io.file.FolderConnectionRegistry)1 RecordStoreConnectionManager (com.revolsys.record.io.RecordStoreConnectionManager)1 RecordStoreConnectionRegistry (com.revolsys.record.io.RecordStoreConnectionRegistry)1 BaseTreeNode (com.revolsys.swing.tree.BaseTreeNode)1 WebServiceConnectionManager (com.revolsys.webservice.WebServiceConnectionManager)1 WebServiceConnectionRegistry (com.revolsys.webservice.WebServiceConnectionRegistry)1