当前位置: 首页>>代码示例>>Java>>正文


Java ServerConfiguration类代码示例

本文整理汇总了Java中com.intellij.remoteServer.configuration.ServerConfiguration的典型用法代码示例。如果您正苦于以下问题:Java ServerConfiguration类的具体用法?Java ServerConfiguration怎么用?Java ServerConfiguration使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ServerConfiguration类属于com.intellij.remoteServer.configuration包,在下文中一共展示了ServerConfiguration类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createConfigurable

import com.intellij.remoteServer.configuration.ServerConfiguration; //导入依赖的package包/类
private static <C extends ServerConfiguration> RemoteServerConfigurable createConfigurable(RemoteServer<C> server, C configuration) {
  try {
    return server.getType().createServerConfigurable(configuration);
  }
  catch (UnsupportedOperationException e) {
    return new DelegatingRemoteServerConfigurable(server.getType().createConfigurable(configuration));
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:9,代码来源:SingleRemoteServerConfigurable.java

示例2: getServers

import com.intellij.remoteServer.configuration.ServerConfiguration; //导入依赖的package包/类
@Override
public <C extends ServerConfiguration> List<RemoteServer<C>> getServers(@NotNull ServerType<C> type) {
  List<RemoteServer<C>> servers = new ArrayList<RemoteServer<C>>();
  for (RemoteServer<?> server : myServers) {
    if (server.getType().equals(type)) {
      servers.add((RemoteServer<C>)server);
    }
  }
  return servers;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:11,代码来源:RemoteServersManagerImpl.java

示例3: findByName

import com.intellij.remoteServer.configuration.ServerConfiguration; //导入依赖的package包/类
@Nullable
@Override
public <C extends ServerConfiguration> RemoteServer<C> findByName(@NotNull String name, @NotNull ServerType<C> type) {
  for (RemoteServer<?> server : myServers) {
    if (server.getType().equals(type) && server.getName().equals(name)) {
      return (RemoteServer<C>)server;
    }
  }
  return null;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:11,代码来源:RemoteServersManagerImpl.java

示例4: getOrCreateConnection

import com.intellij.remoteServer.configuration.ServerConfiguration; //导入依赖的package包/类
@NotNull
@Override
public <C extends ServerConfiguration> ServerConnection getOrCreateConnection(@NotNull RemoteServer<C> server) {
  ApplicationManager.getApplication().assertIsDispatchThread();
  ServerConnection connection = myConnections.get(server);
  if (connection == null) {
    connection = doCreateConnection(server, this);
    myConnections.put(server, connection);
    myEventDispatcher.fireConnectionCreated(connection);
  }
  return connection;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:13,代码来源:ServerConnectionManagerImpl.java

示例5: RemoteServerConfigurable

import com.intellij.remoteServer.configuration.ServerConfiguration; //导入依赖的package包/类
public <C extends ServerConfiguration> RemoteServerConfigurable(RemoteServer<C> server, Runnable treeUpdater, boolean isNew) {
  super(true, treeUpdater);
  myServer = server;
  myNew = isNew;
  myServerName = myServer.getName();
  C c = server.getConfiguration();
  myConfigurable = server.getType().createConfigurable(c);
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:9,代码来源:RemoteServerConfigurable.java

示例6: getOrCreateConnection

import com.intellij.remoteServer.configuration.ServerConfiguration; //导入依赖的package包/类
@NotNull
@Override
public <C extends ServerConfiguration> ServerConnection getOrCreateConnection(@NotNull RemoteServer<C> server) {
  ApplicationManager.getApplication().assertIsDispatchThread();
  ServerConnection connection = myConnections.get(server);
  if (connection == null) {
    ServerTaskExecutorImpl executor = new ServerTaskExecutorImpl();
    connection = new ServerConnectionImpl(server, server.getType().createConnector(server.getConfiguration(), executor));
    myConnections.put(server, connection);
  }
  return connection;
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:13,代码来源:ServerConnectionManagerImpl.java

示例7: getServers

import com.intellij.remoteServer.configuration.ServerConfiguration; //导入依赖的package包/类
@Override
public <C extends ServerConfiguration> List<RemoteServer<C>> getServers(@Nonnull ServerType<C> type) {
  List<RemoteServer<C>> servers = new ArrayList<RemoteServer<C>>();
  for (RemoteServer<?> server : myServers) {
    if (server.getType().equals(type)) {
      servers.add((RemoteServer<C>)server);
    }
  }
  return servers;
}
 
开发者ID:consulo,项目名称:consulo,代码行数:11,代码来源:RemoteServersManagerImpl.java

示例8: findByName

import com.intellij.remoteServer.configuration.ServerConfiguration; //导入依赖的package包/类
@javax.annotation.Nullable
@Override
public <C extends ServerConfiguration> RemoteServer<C> findByName(@Nonnull String name, @Nonnull ServerType<C> type) {
  for (RemoteServer<?> server : myServers) {
    if (server.getType().equals(type) && server.getName().equals(name)) {
      return (RemoteServer<C>)server;
    }
  }
  return null;
}
 
开发者ID:consulo,项目名称:consulo,代码行数:11,代码来源:RemoteServersManagerImpl.java

示例9: getOrCreateConnection

import com.intellij.remoteServer.configuration.ServerConfiguration; //导入依赖的package包/类
@Nonnull
@Override
public <C extends ServerConfiguration> ServerConnection getOrCreateConnection(@Nonnull RemoteServer<C> server) {
  ApplicationManager.getApplication().assertIsDispatchThread();
  ServerConnection connection = myConnections.get(server);
  if (connection == null) {
    ServerTaskExecutorImpl executor = new ServerTaskExecutorImpl();
    connection = new ServerConnectionImpl(server, server.getType().createConnector(server.getConfiguration(), executor), this);
    myConnections.put(server, connection);
    myEventDispatcher.fireConnectionCreated(connection);
  }
  return connection;
}
 
开发者ID:consulo,项目名称:consulo,代码行数:14,代码来源:ServerConnectionManagerImpl.java

示例10: getOrCreateConnection

import com.intellij.remoteServer.configuration.ServerConfiguration; //导入依赖的package包/类
@NotNull
public abstract <C extends ServerConfiguration> ServerConnection getOrCreateConnection(@NotNull RemoteServer<C> server);
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:3,代码来源:ServerConnectionManager.java

示例11: getConnection

import com.intellij.remoteServer.configuration.ServerConfiguration; //导入依赖的package包/类
@Nullable
public abstract <C extends ServerConfiguration> ServerConnection getConnection(@NotNull RemoteServer<C> server);
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:3,代码来源:ServerConnectionManager.java

示例12: createTemporaryConnection

import com.intellij.remoteServer.configuration.ServerConfiguration; //导入依赖的package包/类
@NotNull
public <C extends ServerConfiguration> ServerConnection createTemporaryConnection(@NotNull RemoteServer<C> server) {
  throw new UnsupportedOperationException();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:ServerConnectionManager.java

示例13: createRunConfiguration

import com.intellij.remoteServer.configuration.ServerConfiguration; //导入依赖的package包/类
public static <SC extends ServerConfiguration, DC extends DeploymentConfiguration>
DeployToServerRunConfiguration<SC, DC> createRunConfiguration(RemoteServer<SC> account, Module module, DC deploymentConfiguration) {
  final ModulePointer modulePointer = ModulePointerManager.getInstance(module.getProject()).create(module);
  DeploymentSource deploymentSource = new ModuleDeploymentSourceImpl(modulePointer);
  return createRunConfiguration(account, module, deploymentSource, deploymentConfiguration);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:7,代码来源:CloudRunConfigurationUtil.java

示例14: setupUploadLabel

import com.intellij.remoteServer.configuration.ServerConfiguration; //导入依赖的package包/类
public <C extends ServerConfiguration> void setupUploadLabel(HyperlinkLabel label,
                                                             UnnamedConfigurable serverConfigurable,
                                                             C serverConfiguration,
                                                             ServerType<C> serverType) {
  new ConfigurableHandler<C>(label, serverConfigurable, serverConfiguration, serverType);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:7,代码来源:SshKeyChecker.java

示例15: SingleRemoteServerConfigurable

import com.intellij.remoteServer.configuration.ServerConfiguration; //导入依赖的package包/类
public <C extends ServerConfiguration> SingleRemoteServerConfigurable(RemoteServer<C> server, Runnable treeUpdater, boolean isNew) {
  super(true, treeUpdater);
  myServer = server;
  myNew = isNew;
  myServerName = myServer.getName();
  C configuration = server.getConfiguration();
  C innerConfiguration = XmlSerializerUtil.createCopy(configuration);
  myInnerServer = new RemoteServerImpl<C>("<temp inner server>", server.getType(), innerConfiguration);
  myInnerApplied = false;
  myUncheckedApply = false;

  myConfigurable = createConfigurable(server, innerConfiguration);

  myConnected = false;
  myRunner = new DelayedRunner(myMainPanel) {

    @Override
    protected boolean wasChanged() {
      if (!myConfigurable.canCheckConnection()) return false;

      boolean modified = myConfigurable.isModified();
      boolean result = modified || myUncheckedApply;
      if (result) {
        myUncheckedApply = false;

        setConnectionStatus(false, false, "");
        myConnectionTester = null;

        if (modified) {
          try {
            myConfigurable.apply();
            myInnerApplied = true;
          }
          catch (ConfigurationException e) {
            setConnectionStatus(true, false, e.getMessage());
          }
        }
      }
      return result;
    }

    @Override
    protected void run() {
      setConnectionStatus(false, false, "Connecting...");

      myConnectionTester = new ConnectionTester();
      myConnectionTester.testConnection();
    }
  };
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:51,代码来源:SingleRemoteServerConfigurable.java


注:本文中的com.intellij.remoteServer.configuration.ServerConfiguration类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。