本文整理汇总了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();
}
示例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;
}
示例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);
}
示例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();
}
示例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);
}
}
示例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;
}
示例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;
}
示例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];
}
示例9: createEditorTabs
import com.intellij.facet.ui.FacetEditorContext; //导入依赖的package包/类
public FacetEditorTab[] createEditorTabs( FacetEditorContext editorContext,
FacetValidatorsManager validatorsManager )
{
return new FacetEditorTab[]{
new PolygeneFacetEditorTab( editorContext )
};
}
示例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);
}
示例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;
}
示例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)
};
}
示例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)
};
}
示例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);
}
示例15: createEditorTabs
import com.intellij.facet.ui.FacetEditorContext; //导入依赖的package包/类
@Override
public FacetEditorTab[] createEditorTabs(FacetEditorContext context, FacetValidatorsManager manager) {
return new FacetEditorTab[] { getConfigurationTab() };
}