Search in sources :

Example 1 with WebServiceConnectionManager

use of com.revolsys.webservice.WebServiceConnectionManager in project com.revolsys.open by revolsys.

the class WebServiceConnectionTrees method newWebServiceConnectionsTreeNode.

public static BaseTreeNode newWebServiceConnectionsTreeNode() {
    final WebServiceConnectionManager webServicesConnectionManager = WebServiceConnectionManager.get();
    final BaseTreeNode webServices = BaseTreeNode.newTreeNode(webServicesConnectionManager);
    webServices.setOpen(true);
    return webServices;
}
Also used : WebServiceConnectionManager(com.revolsys.webservice.WebServiceConnectionManager) BaseTreeNode(com.revolsys.swing.tree.BaseTreeNode)

Example 2 with WebServiceConnectionManager

use of com.revolsys.webservice.WebServiceConnectionManager 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

WebServiceConnectionManager (com.revolsys.webservice.WebServiceConnectionManager)2 FileConnectionManager (com.revolsys.io.file.FileConnectionManager)1 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 WebServiceConnectionRegistry (com.revolsys.webservice.WebServiceConnectionRegistry)1