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


Java FacetEditorContext类代码示例

本文整理汇总了Java中com.intellij.facet.ui.FacetEditorContext的典型用法代码示例。如果您正苦于以下问题:Java FacetEditorContext类的具体用法?Java FacetEditorContext怎么用?Java FacetEditorContext使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


FacetEditorContext类属于com.intellij.facet.ui包,在下文中一共展示了FacetEditorContext类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: CordovaFacetEditorTab

import com.intellij.facet.ui.FacetEditorContext; //导入依赖的package包/类
public CordovaFacetEditorTab(FacetEditorContext context, CordovaFacetConfiguration facetConfiguration) {
  final Project project = context.getProject();
  myConfiguration = facetConfiguration;
  myContext = context;

  myManifestFileLabel.setLabelFor(myManifestFileField);
  myResFolderLabel.setLabelFor(myResFolderField);
  myAssetsFolderLabel.setLabelFor(myAssetsFolderField);
  myNativeLibsFolderLabel.setLabelFor(myNativeLibsFolder);
  myAidlGenPathLabel.setLabelFor(myAidlGenPathField);
  myRGenPathLabel.setLabelFor(myRGenPathField);
  //myCustomKeystoreLabel.setLabelFor(myCustomDebugKeystoreField);

  final CordovaFacet facet = (CordovaFacet)myContext.getFacet();

  Module module = myContext.getModule();
}
 
开发者ID:chrimm,项目名称:cordovastudio,代码行数:18,代码来源:CordovaFacetEditorTab.java

示例2: getOrCreateEditor

import com.intellij.facet.ui.FacetEditorContext; //导入依赖的package包/类
@NotNull
public FacetEditorImpl getOrCreateEditor(Facet facet) {
  FacetEditorImpl editor = myEditors.get(facet);
  if (editor == null) {
    final Facet underlyingFacet = facet.getUnderlyingFacet();
    final FacetEditorContext parentContext = underlyingFacet != null ? getOrCreateEditor(underlyingFacet).getContext() : null;

    final FacetEditorContext context = createContext(facet, parentContext);
    editor = new FacetEditorImpl(context, facet.getConfiguration());
    editor.getComponent();
    editor.reset();
    myEditors.put(facet, editor);
  }
  return editor;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:16,代码来源:ProjectFacetsConfigurator.java

示例3: createContext

import com.intellij.facet.ui.FacetEditorContext; //导入依赖的package包/类
protected FacetEditorContext createContext(final @NotNull Facet facet, final @Nullable FacetEditorContext parentContext) {
  Module module = facet.getModule();
  ModulesConfigurator modulesConfigurator = myContext.getModulesConfigurator();
  ModuleEditor moduleEditor = modulesConfigurator.getModuleEditor(module);
  if (moduleEditor == null) {
    LOG.error("ModuleEditor[" + module.getName() + "]==null: disposed = " + module.isDisposed() + ", is in model = "
              + Arrays.asList(modulesConfigurator.getModules()).contains(module));
  }

  final ModuleConfigurationState state = moduleEditor.createModuleConfigurationState();
  return new MyProjectConfigurableContext(facet, parentContext, state);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:13,代码来源:ProjectFacetsConfigurator.java

示例4: ProjectConfigurableContext

import com.intellij.facet.ui.FacetEditorContext; //导入依赖的package包/类
public ProjectConfigurableContext(final @NotNull Facet facet, final boolean isNewFacet,
                                  @Nullable FacetEditorContext parentContext,
                                  final ModuleConfigurationState state, final UserDataHolder sharedModuleData,
                                  final UserDataHolder sharedProjectData) {
  super(facet, parentContext, state.getFacetsProvider(), state.getModulesProvider(), sharedModuleData, sharedProjectData);
  myModuleConfigurationState = state;
  myNewFacet = isNewFacet;
  myModule = facet.getModule();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:10,代码来源:ProjectConfigurableContext.java

示例5: FacetEditorImpl

import com.intellij.facet.ui.FacetEditorContext; //导入依赖的package包/类
public FacetEditorImpl(final FacetEditorContext context, final FacetConfiguration configuration) {
  myContext = context;
  myErrorPanel = new FacetErrorPanel();
  myEditorTabs = configuration.createEditorTabs(context, myErrorPanel.getValidatorsManager());
  for (Configurable configurable : myEditorTabs) {
    add(configurable);
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:9,代码来源:FacetEditorImpl.java

示例6: FacetEditorContextBase

import com.intellij.facet.ui.FacetEditorContext; //导入依赖的package包/类
public FacetEditorContextBase(@NotNull Facet facet, final @Nullable FacetEditorContext parentContext, final @Nullable FacetsProvider facetsProvider,
                              final @NotNull ModulesProvider modulesProvider,
                              final UserDataHolder sharedModuleData,
                              final UserDataHolder sharedProjectData) {
  myFacet = facet;
  mySharedProjectData = sharedProjectData;
  mySharedModuleData = sharedModuleData;
  myParentContext = parentContext;
  myModulesProvider = modulesProvider;
  myFacetsProvider = facetsProvider != null ? facetsProvider : DefaultFacetsProvider.INSTANCE;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:12,代码来源:FacetEditorContextBase.java

示例7: createEditorTabs

import com.intellij.facet.ui.FacetEditorContext; //导入依赖的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

示例8: createEditorTabs

import com.intellij.facet.ui.FacetEditorContext; //导入依赖的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

示例9: createEditorTabs

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

示例10: AppEngineStandardFacetEditor

import com.intellij.facet.ui.FacetEditorContext; //导入依赖的package包/类
public AppEngineStandardFacetEditor(
    AppEngineStandardFacetConfiguration facetConfiguration, FacetEditorContext context) {
  this.facetConfiguration = facetConfiguration;
  this.context = context;
  libraryListener = new LibraryModificationListener();

  LibraryTablesRegistrar.getInstance()
      .getLibraryTable(context.getProject())
      .addListener(libraryListener);
}
 
开发者ID:GoogleCloudPlatform,项目名称:google-cloud-intellij,代码行数:11,代码来源:AppEngineStandardFacetEditor.java

示例11: MetaborgFacetEditorTab

import com.intellij.facet.ui.FacetEditorContext; //导入依赖的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

示例12: createEditorTabs

import com.intellij.facet.ui.FacetEditorContext; //导入依赖的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

示例13: createEditorTabs

import com.intellij.facet.ui.FacetEditorContext; //导入依赖的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

示例14: ThriftFacetEditor

import com.intellij.facet.ui.FacetEditorContext; //导入依赖的package包/类
public ThriftFacetEditor(FacetEditorContext context,
                         FacetValidatorsManager manager) {
  myContext = context;
  myManager = manager;

  cleanOnBuildCheckBox.setText(ThriftBundle.message("thrift.facet.options.clean-output"));
  cleanOnBuildCheckBox.addChangeListener(new ChangeListener() {
    @Override
    public void stateChanged(ChangeEvent e) {
      setModified();
    }
  });

  pane = new JPanel(new BorderLayout());
  pane.setBorder(IdeBorderFactory.createTitledBorder(ThriftBundle.message("thrift.facet.options.border-title"), false));

  pane.add(cleanOnBuildCheckBox, BorderLayout.NORTH);

  final JPanel central = new JPanel(new GridLayout(2, 1));
  translators = new GeneratorListPanel();
  includesList = new IncludesPanel();

  central.add(translators);
  central.add(includesList);

  pane.add(central, BorderLayout.CENTER);
}
 
开发者ID:fkorotkov,项目名称:intellij-thrift,代码行数:28,代码来源:ThriftFacetConf.java

示例15: createEditorTabs

import com.intellij.facet.ui.FacetEditorContext; //导入依赖的package包/类
@Override
public FacetEditorTab[] createEditorTabs(FacetEditorContext context, FacetValidatorsManager manager) {
    return new FacetEditorTab[] { getConfigurationTab() };
}
 
开发者ID:machaval,项目名称:mule-intellij-plugins,代码行数:5,代码来源:MuleFacetConfiguration.java


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