use of org.jetbrains.annotations.NotNull in project intellij-community by JetBrains.
the class TestNGRunnableState method startProcess.
@NotNull
@Override
protected OSProcessHandler startProcess() throws ExecutionException {
final OSProcessHandler processHandler = new KillableColoredProcessHandler(createCommandLine());
ProcessTerminatedListener.attach(processHandler);
createSearchingForTestsTask().attachTaskToProcess(processHandler);
return processHandler;
}
use of org.jetbrains.annotations.NotNull in project intellij-community by JetBrains.
the class AbstractComboBoxAction method createPopupActionGroup.
@NotNull
@Override
protected DefaultActionGroup createPopupActionGroup(JComponent button) {
DefaultActionGroup actionGroup = new DefaultActionGroup();
for (final T item : myItems) {
if (addSeparator(actionGroup, item)) {
continue;
}
AnAction action = new AnAction() {
@Override
public void actionPerformed(AnActionEvent e) {
if (mySelection != item && selectionChanged(item)) {
mySelection = item;
AbstractComboBoxAction.this.update(item, myPresentation, false);
}
}
};
actionGroup.add(action);
Presentation presentation = action.getTemplatePresentation();
presentation.setIcon(mySelection == item ? CHECKED : null);
update(item, presentation, true);
}
return actionGroup;
}
use of org.jetbrains.annotations.NotNull in project intellij-community by JetBrains.
the class TestNGTestObject method getSearchScope.
@NotNull
protected GlobalSearchScope getSearchScope() {
final TestData data = myConfig.getPersistantData();
final Module module = myConfig.getConfigurationModule().getModule();
if (data.TEST_OBJECT.equals(TestType.PACKAGE.getType())) {
SourceScope scope = myConfig.getPersistantData().getScope().getSourceScope(myConfig);
if (scope != null) {
return scope.getGlobalSearchScope();
}
} else if (module != null) {
return GlobalSearchScope.moduleWithDependenciesScope(module);
}
return GlobalSearchScope.projectScope(myConfig.getProject());
}
use of org.jetbrains.annotations.NotNull in project intellij-community by JetBrains.
the class CCPluginConfigurator method getActionGroup.
@NotNull
@Override
public DefaultActionGroup getActionGroup(Project project) {
final DefaultActionGroup group = new DefaultActionGroup();
group.add(new StudyPreviousTaskAction());
group.add(new StudyNextTaskAction());
group.add(new StudyRefreshTaskFileAction());
group.add(new CCShowHintAction());
group.add(new StudyRunAction());
group.add(new StudyEditInputAction());
return group;
}
use of org.jetbrains.annotations.NotNull in project intellij-community by JetBrains.
the class CCSubtaskEditorNotificationProvider method createPopup.
@NotNull
public static ListPopup createPopup(@NotNull Task task, @NotNull Project project) {
ArrayList<Integer> values = new ArrayList<>();
for (int i = 0; i <= task.getLastSubtaskIndex(); i++) {
values.add(i);
}
values.add(ADD_SUBTASK_ID);
return JBPopupFactory.getInstance().createListPopup(new SwitchSubtaskPopupStep(SWITCH_SUBTASK, values, task, project));
}
Aggregations