本文整理汇总了Java中com.intellij.ide.util.frameworkSupport.FrameworkSupportModel类的典型用法代码示例。如果您正苦于以下问题:Java FrameworkSupportModel类的具体用法?Java FrameworkSupportModel怎么用?Java FrameworkSupportModel使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
FrameworkSupportModel类属于com.intellij.ide.util.frameworkSupport包,在下文中一共展示了FrameworkSupportModel类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createConfigurable
import com.intellij.ide.util.frameworkSupport.FrameworkSupportModel; //导入依赖的package包/类
@Override
@NotNull
public FrameworkSupportInModuleConfigurable createConfigurable( @NotNull final FrameworkSupportModel model )
{
return new RepositoryLibrarySupportInModuleConfigurable( model.getProject(), RepositoryLibraryDescription.findDescription( "systems.manifold", "manifold-all" ) )
{
@Override
public void addSupport( @NotNull Module module, @NotNull ModifiableRootModel rootModel, @NotNull ModifiableModelsProvider modifiableModelsProvider )
{
super.addSupport( module, rootModel, modifiableModelsProvider );
// also add tools.jar to the SDK if not already present
ApplicationManager.getApplication().invokeLater( () -> ApplicationManager.getApplication().runWriteAction( () -> {
ModifiableRootModel rootModel2 = ModuleRootManager.getInstance( module ).getModifiableModel();
ManSupportProvider.addToolsJar( rootModel2 );
rootModel2.commit();
} ) );
}
};
}
示例2: createConfigurable
import com.intellij.ide.util.frameworkSupport.FrameworkSupportModel; //导入依赖的package包/类
@NotNull
@Override
public FrameworkSupportInModuleConfigurable createConfigurable(@NotNull FrameworkSupportModel model) {
return new FrameworkSupportInModuleConfigurable() {
@Nullable
@Override
public JComponent createComponent() {
return null;
}
@Override
public void addSupport(@NotNull Module module,
@NotNull ModifiableRootModel rootModel,
@NotNull ModifiableModelsProvider modifiableModelsProvider) {
final BuildScriptDataBuilder buildScriptData = getBuildScriptData(module);
if (buildScriptData != null) {
GradleFrameworkSupportProvider.this.addSupport(module, rootModel, modifiableModelsProvider, buildScriptData);
}
}
};
}
示例3: AppEngineSupportConfigurable
import com.intellij.ide.util.frameworkSupport.FrameworkSupportModel; //导入依赖的package包/类
private AppEngineSupportConfigurable(FrameworkSupportModel model) {
myFrameworkSupportModel = model;
mySdkEditor = new AppEngineSdkEditor(model.getProject());
mySdkPanel.add(LabeledComponent.create(mySdkEditor.getMainComponent(), "Google App Engine SDK:"), BorderLayout.CENTER);
PersistenceApiComboboxUtil.setComboboxModel(myPersistenceApiComboBox, true);
if (model.isFrameworkSelected(JPA_FRAMEWORK_ID)) {
myPersistenceApiComboBox.setSelectedItem(PersistenceApi.JPA.getDisplayName());
}
model.addFrameworkListener(this);
myErrorLabel = new HyperlinkLabel();
myErrorLabel.setIcon(AllIcons.RunConfigurations.ConfigurationWarning);
myErrorLabel.setVisible(false);
myErrorLabel.setHyperlinkTarget(AppEngineSdkUtil.APP_ENGINE_DOWNLOAD_URL);
myErrorPanel.add(BorderLayout.CENTER, myErrorLabel);
final Component component = mySdkEditor.getComboBox().getEditor().getEditorComponent();
if (component instanceof JTextComponent) {
((JTextComponent)component).getDocument().addDocumentListener(new DocumentAdapter() {
@Override
protected void textChanged(DocumentEvent e) {
checkSdk();
}
});
}
checkSdk();
}
示例4: addSupport
import com.intellij.ide.util.frameworkSupport.FrameworkSupportModel; //导入依赖的package包/类
private void addSupport(
final Module module,
final ModifiableRootModel rootModel,
FrameworkSupportModel frameworkSupportModel,
Set<AppEngineStandardMavenLibrary> librariesToAdd) {
FacetType<AppEngineStandardFacet, AppEngineStandardFacetConfiguration> facetType =
AppEngineStandardFacet.getFacetType();
AppEngineStandardFacet appEngineStandardFacet =
FacetManager.getInstance(module).addFacet(facetType, facetType.getDefaultFacetName(), null);
AppEngineStandardWebIntegration webIntegration = AppEngineStandardWebIntegration.getInstance();
webIntegration.registerFrameworkInModel(frameworkSupportModel, appEngineStandardFacet);
final Artifact webArtifact = findOrCreateWebArtifact(appEngineStandardFacet);
final VirtualFile webDescriptorDir =
webIntegration.suggestParentDirectoryForAppEngineWebXml(module, rootModel);
if (webDescriptorDir != null) {
VirtualFile descriptor =
createFileFromTemplate(
AppEngineTemplateGroupDescriptorFactory.APP_ENGINE_WEB_XML_TEMPLATE,
webDescriptorDir,
AppEngineUtil.APP_ENGINE_WEB_XML_NAME);
if (descriptor != null) {
webIntegration.addDescriptor(webArtifact, module.getProject(), descriptor);
}
}
webIntegration.addDevServerToModuleDependencies(rootModel);
addMavenLibraries(librariesToAdd, module, rootModel, webArtifact);
}
开发者ID:GoogleCloudPlatform,项目名称:google-cloud-intellij,代码行数:31,代码来源:AppEngineStandardSupportProvider.java
示例5: createConfigurable
import com.intellij.ide.util.frameworkSupport.FrameworkSupportModel; //导入依赖的package包/类
@NotNull
@Override
public FrameworkSupportConfigurable createConfigurable( @NotNull FrameworkSupportModel model )
{
return new ManFrameworkSupportConfigurable( this, model );
}
示例6: ManFrameworkSupportConfigurable
import com.intellij.ide.util.frameworkSupport.FrameworkSupportModel; //导入依赖的package包/类
public ManFrameworkSupportConfigurable( FrameworkSupportProviderBase frameworkSupportProvider, FrameworkSupportModel model )
{
super( frameworkSupportProvider, model );
}
示例7: createConfigurable
import com.intellij.ide.util.frameworkSupport.FrameworkSupportModel; //导入依赖的package包/类
@NotNull
@Override
public FrameworkSupportInModuleConfigurable createConfigurable(@NotNull FrameworkSupportModel model) {
return new GravModuleConfigurable();
}
示例8: createConfigurable
import com.intellij.ide.util.frameworkSupport.FrameworkSupportModel; //导入依赖的package包/类
@NotNull
@Override
public FrameworkSupportInModuleConfigurable createConfigurable(@NotNull FrameworkSupportModel frameworkSupportModel)
{
return new MuleFrameworkConfigurable();
}
示例9: LuaFrameworkSupportConfigurable
import com.intellij.ide.util.frameworkSupport.FrameworkSupportModel; //导入依赖的package包/类
public LuaFrameworkSupportConfigurable(FrameworkSupportModel model) {
mySdkComboBox = new LuaSdkComboBox();
mySdkComboBox.setProject(model.getProject());
myMainPanel = LabeledComponent.create(mySdkComboBox, "Lua SDK:");
((LabeledComponent)myMainPanel).setLabelLocation(BorderLayout.WEST);
}
示例10: createConfigurable
import com.intellij.ide.util.frameworkSupport.FrameworkSupportModel; //导入依赖的package包/类
@NotNull
@Override
public FrameworkSupportConfigurable createConfigurable(@NotNull FrameworkSupportModel model) {
return new LuaFrameworkSupportConfigurable(model);
}
示例11: onFrameworkSupportAdded
import com.intellij.ide.util.frameworkSupport.FrameworkSupportModel; //导入依赖的package包/类
public abstract void onFrameworkSupportAdded(Module module, ModifiableRootModel rootModel,
List<FrameworkSupportConfigurable> selectedFrameworks,
FrameworkSupportModel model);
示例12: createConfigurable
import com.intellij.ide.util.frameworkSupport.FrameworkSupportModel; //导入依赖的package包/类
@NotNull
public abstract FrameworkSupportInModuleConfigurable createConfigurable(@NotNull FrameworkSupportModel model);
示例13: isAvailableFor
import com.intellij.ide.util.frameworkSupport.FrameworkSupportModel; //导入依赖的package包/类
@Override
public boolean isAvailableFor(@NotNull FrameworkSupportModel model) {
FrameworkVersion selectedVersion = ((FrameworkSupportModelBase)model).getSelectedVersion(myGroupId);
return selectedVersion != null && myVersionId.equals(selectedVersion.getId());
}
示例14: createConfigurable
import com.intellij.ide.util.frameworkSupport.FrameworkSupportModel; //导入依赖的package包/类
@NotNull
@Override
public FrameworkSupportInModuleConfigurable createConfigurable(@NotNull final FrameworkSupportModel model) {
return new LibrarySupportConfigurable();
}
示例15: isAvailableFor
import com.intellij.ide.util.frameworkSupport.FrameworkSupportModel; //导入依赖的package包/类
@Override
public boolean isAvailableFor(@NotNull FrameworkSupportModel model) {
return true;
}