com.intellij.openapi.externalSystem.model.task.ExternalSystemTaskType Java Examples
The following examples show how to use
com.intellij.openapi.externalSystem.model.task.ExternalSystemTaskType.
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: RefreshAllExternalProjectsAction.java From consulo with Apache License 2.0 | 6 votes |
@Override public void update(AnActionEvent e) { final Project project = e.getDataContext().getData(CommonDataKeys.PROJECT); if (project == null) { e.getPresentation().setEnabled(false); return; } final List<ProjectSystemId> systemIds = getSystemIds(e); if (systemIds.isEmpty()) { e.getPresentation().setEnabled(false); return; } final String name = StringUtil.join(systemIds, new Function<ProjectSystemId, String>() { @Override public String fun(ProjectSystemId projectSystemId) { return projectSystemId.getReadableName(); } }, ","); e.getPresentation().setText(ExternalSystemBundle.message("action.refresh.all.projects.text", name)); e.getPresentation().setDescription(ExternalSystemBundle.message("action.refresh.all.projects.description", name)); ExternalSystemProcessingManager processingManager = ServiceManager.getService(ExternalSystemProcessingManager.class); e.getPresentation().setEnabled(!processingManager.hasTaskOfTypeInProgress(ExternalSystemTaskType.RESOLVE_PROJECT, project)); }
Example #2
Source File: FlutterExternalSystemTaskNotificationListener.java From flutter-intellij with BSD 3-Clause "New" or "Revised" License | 5 votes |
@Override public void onSuccess(@NotNull ExternalSystemTaskId id) { if (id.getType() == ExternalSystemTaskType.RESOLVE_PROJECT && id.getProjectSystemId() == GradleConstants.SYSTEM_ID) { Project project = id.findProject(); if (project != null) { AndroidUtils.checkDartSupport(project); } } }
Example #3
Source File: FlutterExternalSystemTaskNotificationListener.java From flutter-intellij with BSD 3-Clause "New" or "Revised" License | 5 votes |
@Override public void onSuccess(@NotNull ExternalSystemTaskId id) { if (id.getType() == ExternalSystemTaskType.RESOLVE_PROJECT && id.getProjectSystemId() == GradleConstants.SYSTEM_ID) { Project project = id.findProject(); if (project != null) { AndroidUtils.checkDartSupport(project); } } }
Example #4
Source File: ExternalSystemResolveProjectTask.java From consulo with Apache License 2.0 | 5 votes |
public ExternalSystemResolveProjectTask(@Nonnull ProjectSystemId externalSystemId, @Nonnull Project project, @Nonnull String projectPath, boolean isPreviewMode) { super(externalSystemId, ExternalSystemTaskType.RESOLVE_PROJECT, project, projectPath); myProjectPath = projectPath; myIsPreviewMode = isPreviewMode; }
Example #5
Source File: ExternalSystemExecuteTaskTask.java From consulo with Apache License 2.0 | 5 votes |
public ExternalSystemExecuteTaskTask(@Nonnull ProjectSystemId externalSystemId, @Nonnull Project project, @Nonnull List<ExternalTaskPojo> tasksToExecute, @Nullable String vmOptions, @javax.annotation.Nullable String scriptParameters, @javax.annotation.Nullable String debuggerSetup) throws IllegalArgumentException { super(externalSystemId, ExternalSystemTaskType.EXECUTE_TASK, project, getLinkedExternalProjectPath(tasksToExecute)); myTasksToExecute = tasksToExecute; myVmOptions = vmOptions; myScriptParameters = scriptParameters; myDebuggerSetup = debuggerSetup; }
Example #6
Source File: RemoteExternalSystemTaskManager.java From consulo with Apache License 2.0 | 4 votes |
@Nonnull @Override public Map<ExternalSystemTaskType, Set<ExternalSystemTaskId>> getTasksInProgress() throws RemoteException { return Collections.emptyMap(); }
Example #7
Source File: RemoteExternalSystemProjectResolver.java From consulo with Apache License 2.0 | 4 votes |
@Nonnull @Override public Map<ExternalSystemTaskType, Set<ExternalSystemTaskId>> getTasksInProgress() throws RemoteException { return Collections.emptyMap(); }
Example #8
Source File: ExternalSystemFacadeWrapper.java From consulo with Apache License 2.0 | 4 votes |
@Nonnull @Override public Map<ExternalSystemTaskType, Set<ExternalSystemTaskId>> getTasksInProgress() throws RemoteException { return myDelegate.getTasksInProgress(); }
Example #9
Source File: AbstractRemoteExternalSystemServiceWrapper.java From consulo with Apache License 2.0 | 4 votes |
@Override @Nonnull public Map<ExternalSystemTaskType, Set<ExternalSystemTaskId>> getTasksInProgress() throws RemoteException { return myDelegate.getTasksInProgress(); }
Example #10
Source File: AbstractRemoteExternalSystemService.java From consulo with Apache License 2.0 | 4 votes |
@Nonnull @Override public Map<ExternalSystemTaskType, Set<ExternalSystemTaskId>> getTasksInProgress() throws RemoteException { return myTasksInProgress; }
Example #11
Source File: RemoteExternalSystemFacade.java From consulo with Apache License 2.0 | 4 votes |
@Nonnull @Override public Map<ExternalSystemTaskType, Set<ExternalSystemTaskId>> getTasksInProgress() throws RemoteException { return Collections.emptyMap(); }
Example #12
Source File: ExternalSystemTaskAware.java From consulo with Apache License 2.0 | 2 votes |
/** * Allows to ask current service for all tasks being executed at the moment. * * @return ids of all tasks being executed at the moment grouped by type * @throws RemoteException as required by RMI */ @Nonnull Map<ExternalSystemTaskType, Set<ExternalSystemTaskId>> getTasksInProgress() throws RemoteException;