Examples of IRSESystemType


Examples of org.eclipse.rse.core.IRSESystemType

  public void run() {
    IRSECoreRegistry coreReg = RSECorePlugin.getTheCoreRegistry();
    ISystemRegistry sysReg = RSECorePlugin.getTheSystemRegistry();
    String systemTypeId = CloudFoundryBrandingExtensionPoint.getRemoteSystemTypeId(serverTypeId);
    if (systemTypeId != null && systemTypeId.trim().length() > 0) {
      IRSESystemType systemType = coreReg.getSystemTypeById(systemTypeId);
      IHost host = null;
      IHost[] hosts = sysReg.getHostsBySystemType(systemType);
      if (hosts.length >= 1) {
        host = hosts[0];
      }

      if (host == null) {
        try {
          host = sysReg.createHost(systemType, systemType.getLabel(), server.getUrl(), ""); //$NON-NLS-1$
          ISubSystem[] subSystems = sysReg.getSubSystems(host);
          CloudFoundryConnectorServiceManager serviceManager = CloudFoundryConnectorServiceManager.getInstance();
          CloudFoundryConnectorService service = (CloudFoundryConnectorService) serviceManager
              .createConnectorService(host);
          for (int i = 0; i < subSystems.length; i++) {
View Full Code Here

Examples of org.eclipse.rse.core.IRSESystemType

    return plugin;
  }

  public static boolean doesServerBelongToHost(IServer server, IHost host) {
    if (host != null && server != null) {
      IRSESystemType rseSystem = host.getSystemType();
      IServerType serverType = server.getServerType();
      if (rseSystem != null) {
        String hostSystemType = rseSystem.getId();
        if (serverType != null && serverType.getId() != null) {
          String serverSystemType = CloudFoundryBrandingExtensionPoint.getRemoteSystemTypeId(serverType.getId());
          return (hostSystemType != null && hostSystemType.equals(serverSystemType));
        }
      }
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.