Java Code Examples for com.intellij.util.containers.ContainerUtilRt#map2List()

The following examples show how to use com.intellij.util.containers.ContainerUtilRt#map2List() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ExternalSystemExecuteTaskTask.java    From consulo with Apache License 2.0 6 votes vote down vote up
@SuppressWarnings("unchecked")
@Override
protected void doExecute() throws Exception {
  final ExternalSystemFacadeManager manager = ServiceManager.getService(ExternalSystemFacadeManager.class);
  ExternalSystemExecutionSettings settings = ExternalSystemApiUtil.getExecutionSettings(getIdeProject(),
                                                                                        getExternalProjectPath(),
                                                                                        getExternalSystemId());
  RemoteExternalSystemFacade facade = manager.getFacade(getIdeProject(), getExternalProjectPath(), getExternalSystemId());
  RemoteExternalSystemTaskManager taskManager = facade.getTaskManager();
  List<String> taskNames = ContainerUtilRt.map2List(myTasksToExecute, MAPPER);

  final List<String> vmOptions = parseCmdParameters(myVmOptions);
  final List<String> scriptParametersList = parseCmdParameters(myScriptParameters);

  taskManager.executeTasks(getId(), taskNames, getExternalProjectPath(), settings, vmOptions, scriptParametersList, myDebuggerSetup);
}
 
Example 2
Source File: CompositeArrangementSettingsToken.java    From consulo with Apache License 2.0 4 votes vote down vote up
public CompositeArrangementSettingsToken(@Nonnull ArrangementSettingsToken token,
                                         @Nonnull Collection<ArrangementSettingsToken> children)
{
  this(token, deduceRole(token), ContainerUtilRt.map2List(children, WRAPPER));
}
 
Example 3
Source File: CompositeArrangementSettingsToken.java    From consulo with Apache License 2.0 2 votes vote down vote up
/**
 * Creates new <code>CompositeArrangementSettingsToken</code> object with the given token and all given children
 * assuming that every child {@link CompositeArrangementSettingsToken} will have no children.
 * <p/>
 * <b>Note:</b> given tokens are expected to be from {@link StdArrangementTokens standard tokens} because
 * {@link StdArrangementTokenUiRole their roles} are deduced.
 *
 * @param token     token to wrap
 * @param children  children to wrap
 */
public CompositeArrangementSettingsToken(@Nonnull ArrangementSettingsToken token,
                                         @Nonnull ArrangementSettingsToken... children)
{
  this(token, deduceRole(token), ContainerUtilRt.map2List(children, WRAPPER));
}