本文整理汇总了Java中com.intellij.execution.ui.ConfigurationModuleSelector类的典型用法代码示例。如果您正苦于以下问题:Java ConfigurationModuleSelector类的具体用法?Java ConfigurationModuleSelector怎么用?Java ConfigurationModuleSelector使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ConfigurationModuleSelector类属于com.intellij.execution.ui包,在下文中一共展示了ConfigurationModuleSelector类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: DefracMainClassTextFieldWithBrowseButton
import com.intellij.execution.ui.ConfigurationModuleSelector; //导入依赖的package包/类
public DefracMainClassTextFieldWithBrowseButton(@NotNull final Project project,
@NotNull final ConfigurationModuleSelector moduleSelector) {
super(project, true, new JavaCodeFragment.VisibilityChecker() {
public Visibility isDeclarationVisible(PsiElement declaration, PsiElement place) {
if(declaration instanceof PsiClass) {
final PsiClass aClass = (PsiClass) declaration;
if(isValidMainClass(aClass) || place.getParent() != null && isValidMainClass(moduleSelector.findClass(aClass.getQualifiedName()))) {
return Visibility.VISIBLE;
}
}
return Visibility.NOT_VISIBLE;
}
private boolean isValidMainClass(@Nullable final PsiClass cls) {
return DefracRunUtil.isValidMainClass(moduleSelector.getModule(), cls);
}
});
}
示例2: DefracMainClassBrowser
import com.intellij.execution.ui.ConfigurationModuleSelector; //导入依赖的package包/类
public DefracMainClassBrowser(@NotNull final Project project,
@NotNull final ConfigurationModuleSelector moduleSelector) {
super(project, "Choose main class");
this.moduleSelector = moduleSelector;
this.classFilter = new ClassFilter.ClassFilterWithScope() {
@Override
public GlobalSearchScope getScope() {
return GlobalSearchScope.moduleScope(moduleSelector.getModule());
}
@Override
public boolean isAccepted(final PsiClass psiClass) {
return DefracRunUtil.isValidMainClass(moduleSelector.getModule(), psiClass);
}
};
}
示例3: getFilter
import com.intellij.execution.ui.ConfigurationModuleSelector; //导入依赖的package包/类
protected ClassFilter.ClassFilterWithScope getFilter() throws NoFilterException {
final ConfigurationModuleSelector moduleSelector = getModuleSelector();
final Module module = moduleSelector.getModule();
if (module == null) {
throw NoFilterException.moduleDoesntExist(moduleSelector);
}
final ClassFilter.ClassFilterWithScope classFilter;
try {
final JUnitConfiguration configurationCopy =
new JUnitConfiguration(ExecutionBundle.message("default.junit.configuration.name"), getProject(),
JUnitConfigurationType.getInstance().getConfigurationFactories()[0]);
applyEditorTo(configurationCopy);
classFilter = TestClassFilter
.create(configurationCopy.getTestObject().getSourceScope(), configurationCopy.getConfigurationModule().getModule());
}
catch (JUnitUtil.NoJUnitException e) {
throw NoFilterException.noJUnitInModule(module);
}
return classFilter;
}
示例4: AndroidInheritingClassBrowser
import com.intellij.execution.ui.ConfigurationModuleSelector; //导入依赖的package包/类
public AndroidInheritingClassBrowser(@NotNull Project project,
@NotNull ConfigurationModuleSelector moduleSelector,
@NotNull String baseClassName,
@NotNull String dialogTitle,
boolean includeLibraryClasses) {
super(project, moduleSelector, dialogTitle, includeLibraryClasses);
myBaseClassName = baseClassName;
}
示例5: AndroidClassBrowserBase
import com.intellij.execution.ui.ConfigurationModuleSelector; //导入依赖的package包/类
public AndroidClassBrowserBase(@NotNull Project project,
@NotNull ConfigurationModuleSelector moduleSelector,
@NotNull String dialogTitle,
boolean includeLibraryClasses) {
super(project);
myIncludeLibraryClasses = includeLibraryClasses;
myDialogTitle = dialogTitle;
myModuleSelector = moduleSelector;
}
示例6: TestRunParameters
import com.intellij.execution.ui.ConfigurationModuleSelector; //导入依赖的package包/类
TestRunParameters(Project project, ConfigurationModuleSelector moduleSelector) {
myProject = project;
myModuleSelector = moduleSelector;
myPackageComponent.setComponent(new EditorTextFieldWithBrowseButton(project, false));
bind(myPackageComponent, new MyPackageBrowser());
myClassComponent
.setComponent(new EditorTextFieldWithBrowseButton(project, true, new AndroidTestClassVisibilityChecker(moduleSelector)));
bind(myClassComponent,
new AndroidTestClassBrowser(project, moduleSelector, AndroidBundle.message("android.browse.test.class.dialog.title"), false));
myRunnerComponent.setComponent(new EditorTextFieldWithBrowseButton(project, true,
new AndroidInheritingClassVisibilityChecker(myProject, moduleSelector,
AndroidUtils.INSTRUMENTATION_RUNNER_BASE_CLASS)));
bind(myRunnerComponent, new AndroidInheritingClassBrowser(project, moduleSelector, AndroidUtils.INSTRUMENTATION_RUNNER_BASE_CLASS,
AndroidBundle.message("android.browse.instrumentation.class.dialog.title"), true
));
bind(myMethodComponent, new MyMethodBrowser());
addTestingType(TEST_ALL_IN_MODULE, myAllInModuleButton);
addTestingType(TEST_ALL_IN_PACKAGE, myAllInPackageButton);
addTestingType(TEST_CLASS, myClassButton);
addTestingType(TEST_METHOD, myTestMethodButton);
setAnchor(myPackageComponent.getLabel());
}
示例7: AndroidInheritingClassVisibilityChecker
import com.intellij.execution.ui.ConfigurationModuleSelector; //导入依赖的package包/类
public AndroidInheritingClassVisibilityChecker(@NotNull Project project,
@NotNull ConfigurationModuleSelector moduleSelector,
@NotNull String baseClassName) {
super(moduleSelector);
myProject = project;
myBaseClassName = baseClassName;
}
示例8: PageObjectConfigurable
import com.intellij.execution.ui.ConfigurationModuleSelector; //导入依赖的package包/类
public PageObjectConfigurable(Project project) {
this.project = project;
myModuleSelector = new ConfigurationModuleSelector(project, myModule.getComponent());
myCommonJavaParameters.setModuleContext(myModuleSelector.getModule());
myCommonJavaParameters.setHasModuleMacro();
myModule.getComponent().addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
myCommonJavaParameters.setModuleContext(myModuleSelector.getModule());
}
});
}
示例9: ApplicationConfigurable
import com.intellij.execution.ui.ConfigurationModuleSelector; //导入依赖的package包/类
public ApplicationConfigurable(final Project project) {
myProject = project;
myModuleSelector = new ConfigurationModuleSelector(project, myModule.getComponent());
myCommonProgramParameters.setModuleContext(myModuleSelector.getModule());
myModule.getComponent().addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
myCommonProgramParameters.setModuleContext(myModuleSelector.getModule());
}
});
ClassBrowser.createApplicationClassBrowser(project, myModuleSelector).setField(getMainClassField());
myVersionDetector = new JreVersionDetector();
myAnchor = UIUtil.mergeComponentsWithAnchor(myMainClass, myCommonProgramParameters, myAlternativeJREPanel, myModule);
}
示例10: AndroidClassVisibilityCheckerBase
import com.intellij.execution.ui.ConfigurationModuleSelector; //导入依赖的package包/类
public AndroidClassVisibilityCheckerBase(@NotNull ConfigurationModuleSelector moduleSelector) {
myModuleSelector = moduleSelector;
}
示例11: getModuleSelector
import com.intellij.execution.ui.ConfigurationModuleSelector; //导入依赖的package包/类
public ConfigurationModuleSelector getModuleSelector() {
return myModuleSelector;
}
示例12: AndroidTestClassVisibilityChecker
import com.intellij.execution.ui.ConfigurationModuleSelector; //导入依赖的package包/类
public AndroidTestClassVisibilityChecker(@NotNull ConfigurationModuleSelector moduleSelector) {
super(moduleSelector);
}
示例13: AndroidTestClassBrowser
import com.intellij.execution.ui.ConfigurationModuleSelector; //导入依赖的package包/类
public AndroidTestClassBrowser(@NotNull Project project,
@NotNull ConfigurationModuleSelector moduleSelector,
@NotNull String dialogTitle,
boolean includeLibraryClasses) {
super(project, moduleSelector, dialogTitle, includeLibraryClasses);
}
示例14: getModuleSelector
import com.intellij.execution.ui.ConfigurationModuleSelector; //导入依赖的package包/类
public ConfigurationModuleSelector getModuleSelector() {
return moduleSelector;
}
示例15: RunConfigurationEditor
import com.intellij.execution.ui.ConfigurationModuleSelector; //导入依赖的package包/类
public RunConfigurationEditor(Project project) {
myProject = project;
myModuleSelector = new ConfigurationModuleSelector(project, myModule.getComponent());
ClassBrowser.createApplicationClassBrowser(project, myModuleSelector).setField(myMainClass.getComponent());
myAnchor = UIUtil.mergeComponentsWithAnchor(repositoryUIDField, repositoryURLField, repositoryClassField,
specificationsField, workingVersionCheckBox, myMainClass, myModule, myCommonProgramParameters);
}