本文整理汇总了Java中com.intellij.facet.ui.FacetValidatorsManager类的典型用法代码示例。如果您正苦于以下问题:Java FacetValidatorsManager类的具体用法?Java FacetValidatorsManager怎么用?Java FacetValidatorsManager使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
FacetValidatorsManager类属于com.intellij.facet.ui包,在下文中一共展示了FacetValidatorsManager类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: extendBasePanel
import com.intellij.facet.ui.FacetValidatorsManager; //导入依赖的package包/类
@Nullable
@Override
public JPanel extendBasePanel() throws ProcessCanceledException {
mySettingsPanel = new CCNewProjectPanel();
mySettingsPanel.registerValidators(new FacetValidatorsManager() {
public void registerValidator(FacetEditorValidator validator, JComponent... componentsToWatch) {
throw new UnsupportedOperationException();
}
public void validate() {
fireStateChanged();
}
});
return mySettingsPanel.getMainPanel();
}
示例2: FrameworkLibraryValidatorImpl
import com.intellij.facet.ui.FacetValidatorsManager; //导入依赖的package包/类
public FrameworkLibraryValidatorImpl(CustomLibraryDescription libraryDescription,
LibrariesValidatorContext context,
FacetValidatorsManager validatorsManager,
String libraryCategoryName) {
myLibraryDescription = libraryDescription;
myContext = context;
myValidatorsManager = validatorsManager;
myLibraryCategoryName = libraryCategoryName;
}
示例3: FacetLibrariesValidatorImpl
import com.intellij.facet.ui.FacetValidatorsManager; //导入依赖的package包/类
public FacetLibrariesValidatorImpl(LibraryInfo[] requiredLibraries, FacetLibrariesValidatorDescription description,
final LibrariesValidatorContext context, FacetValidatorsManager validatorsManager) {
myContext = context;
myValidatorsManager = validatorsManager;
myRequiredLibraries = new RequiredLibrariesInfo(requiredLibraries);
myDescription = description;
}
示例4: extendBasePanel
import com.intellij.facet.ui.FacetValidatorsManager; //导入依赖的package包/类
@Nullable
@Override
public JPanel extendBasePanel() throws ProcessCanceledException {
StudyNewProjectPanel settingsPanel = new StudyNewProjectPanel(myGenerator);
settingsPanel.registerValidators(new FacetValidatorsManager() {
public void registerValidator(FacetEditorValidator validator, JComponent... componentsToWatch) {
throw new UnsupportedOperationException();
}
public void validate() {
fireStateChanged();
}
});
return settingsPanel.getContentPanel();
}
示例5: registerValidators
import com.intellij.facet.ui.FacetValidatorsManager; //导入依赖的package包/类
public void registerValidators(final FacetValidatorsManager validatorsManager) {
myTemplateLanguage.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
validatorsManager.validate();
}
});
}
示例6: setupDialog
import com.intellij.facet.ui.FacetValidatorsManager; //导入依赖的package包/类
void setupDialog(Project project, final List<Sdk> allSdks) {
myProject = project;
final GridBagLayout layout = new GridBagLayout();
myMainPanel = new JPanel(layout);
myName = new JTextField();
myDestination = new TextFieldWithBrowseButton();
myMakeAvailableToAllProjectsCheckbox = new JBCheckBox(PyBundle.message("sdk.create.venv.dialog.make.available.to.all.projects"));
if (project == null || project.isDefault() || !PlatformUtils.isPyCharm()) {
myMakeAvailableToAllProjectsCheckbox.setSelected(true);
myMakeAvailableToAllProjectsCheckbox.setVisible(false);
}
layoutPanel(allSdks);
init();
setOKActionEnabled(false);
registerValidators(new FacetValidatorsManager() {
public void registerValidator(FacetEditorValidator validator, JComponent... componentsToWatch) {
}
public void validate() {
checkValid();
}
});
myMainPanel.setPreferredSize(new Dimension(300, 50));
checkValid();
setInitialDestination();
addUpdater(myName);
new LocationNameFieldsBinding(project, myDestination, myName, myInitialPath, PyBundle.message("sdk.create.venv.dialog.select.venv.location"));
}
示例7: registerValidators
import com.intellij.facet.ui.FacetValidatorsManager; //导入依赖的package包/类
protected void registerValidators(final FacetValidatorsManager validatorsManager) {
mySdkCombo.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent event) {
validatorsManager.validate();
}
});
}
示例8: registerValidators
import com.intellij.facet.ui.FacetValidatorsManager; //导入依赖的package包/类
protected void registerValidators(final FacetValidatorsManager validatorsManager) {
super.registerValidators(validatorsManager);
mySdkCombo.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent event) {
validatorsManager.validate();
}
});
}
示例9: createEditorTabs
import com.intellij.facet.ui.FacetValidatorsManager; //导入依赖的package包/类
@Override
public FacetEditorTab[] createEditorTabs(FacetEditorContext editorContext, FacetValidatorsManager validatorsManager) {
JpsAndroidModuleProperties state = getState();
assert state != null;
if (state.ALLOW_USER_CONFIGURATION) {
return new FacetEditorTab[]{new AndroidFacetEditorTab(editorContext, this)};
}
return NO_EDITOR_TABS;
}
示例10: createEditorTabs
import com.intellij.facet.ui.FacetValidatorsManager; //导入依赖的package包/类
@NotNull
@Override
public FacetEditorTab[] createEditorTabs(FacetEditorContext editorContext,
FacetValidatorsManager validatorsManager) {
if (!AndroidStudioSpecificInitializer.isAndroidStudio() && StringUtil.isNotEmpty(GRADLE_PROJECT_PATH)) {
// IntelliJ only
return new FacetEditorTab[]{new AndroidGradleFacetEditorTab(editorContext.getProject(), GRADLE_PROJECT_PATH)};
}
return new FacetEditorTab[0];
}
示例11: createEditorTabs
import com.intellij.facet.ui.FacetValidatorsManager; //导入依赖的package包/类
public FacetEditorTab[] createEditorTabs( FacetEditorContext editorContext,
FacetValidatorsManager validatorsManager )
{
return new FacetEditorTab[]{
new PolygeneFacetEditorTab( editorContext )
};
}
示例12: MetaborgFacetEditorTab
import com.intellij.facet.ui.FacetValidatorsManager; //导入依赖的package包/类
/**
* This instance is created by IntelliJ's plugin system.
* Do not call this constructor manually.
*/
public MetaborgFacetEditorTab(final FacetEditorContext editorContext,
final FacetValidatorsManager validatorsManager) {
SpoofaxIdeaPlugin.injector().injectMembers(this);
this.editorContext = editorContext;
}
示例13: createEditorTabs
import com.intellij.facet.ui.FacetValidatorsManager; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
public FacetEditorTab[] createEditorTabs(final FacetEditorContext editorContext, final FacetValidatorsManager validatorsManager) {
return new FacetEditorTab[] {
new MetaborgFacetEditorTab(editorContext, validatorsManager)
};
}
示例14: createEditorTabs
import com.intellij.facet.ui.FacetValidatorsManager; //导入依赖的package包/类
@Override
@NotNull
public FacetEditorTab[] createEditorTabs(final FacetEditorContext editorContext,
final FacetValidatorsManager validatorsManager) {
return new FacetEditorTab[] {
new DefracFacetEditorTab(editorContext, this)
};
}
示例15: AbstractFieldValidatorWithDefaultValueQuickFix
import com.intellij.facet.ui.FacetValidatorsManager; //导入依赖的package包/类
public AbstractFieldValidatorWithDefaultValueQuickFix(JTextField textField,
JBLabel label,
String defaultValue,
FacetValidatorsManager manager) {
this.textField = textField;
this.label = label;
if (StringUtils.isNotBlank(defaultValue)) {
this.quickFix = new DefaultValueQuickFix(textField, defaultValue, manager);
}
}
开发者ID:bsblabs,项目名称:intellij-xmlbeans-plugin,代码行数:11,代码来源:AbstractFieldValidatorWithDefaultValueQuickFix.java