当前位置: 首页>>代码示例>>Java>>正文


Java FacetValidatorsManager类代码示例

本文整理汇总了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();
}
 
开发者ID:medvector,项目名称:educational-plugin,代码行数:16,代码来源:PyCCProjectGenerator.java

示例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;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:10,代码来源:FrameworkLibraryValidatorImpl.java

示例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;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:8,代码来源:FacetLibrariesValidatorImpl.java

示例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();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:15,代码来源:PyStudyDirectoryProjectGenerator.java

示例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();
    }
  });
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:9,代码来源:TemplateLanguagePanel.java

示例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"));
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:31,代码来源:AbstractCreateVirtualEnvDialog.java

示例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();
    }
  });
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:9,代码来源:CreateCondaEnvDialog.java

示例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();
    }
  });
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:11,代码来源:CreateVirtualEnvDialog.java

示例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;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:10,代码来源:AndroidFacetConfiguration.java

示例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];
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:11,代码来源:AndroidGradleFacetConfiguration.java

示例11: createEditorTabs

import com.intellij.facet.ui.FacetValidatorsManager; //导入依赖的package包/类
public FacetEditorTab[] createEditorTabs( FacetEditorContext editorContext,
                                          FacetValidatorsManager validatorsManager )
{
    return new FacetEditorTab[]{
        new PolygeneFacetEditorTab( editorContext )
    };
}
 
开发者ID:apache,项目名称:polygene-java,代码行数:8,代码来源:PolygeneFacetConfiguration.java

示例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;
}
 
开发者ID:metaborg,项目名称:spoofax-intellij,代码行数:11,代码来源:MetaborgFacetEditorTab.java

示例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)
    };
}
 
开发者ID:metaborg,项目名称:spoofax-intellij,代码行数:10,代码来源:IdeaMetaborgModuleFacetConfig.java

示例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)
  };
}
 
开发者ID:defrac,项目名称:defrac-plugin-intellij,代码行数:9,代码来源:DefracFacetConfiguration.java

示例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


注:本文中的com.intellij.facet.ui.FacetValidatorsManager类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。