• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java FrameworkSupportModel类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



FrameworkSupportModel类属于com.intellij.ide.util.frameworkSupport包,在下文中一共展示了FrameworkSupportModel类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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();
             } ) );
           }
         };
}
 
开发者ID:manifold-systems,项目名称:manifold-ij,代码行数:21,代码来源:ManFrameworkSupportProvider.java


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


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


示例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 );
}
 
开发者ID:manifold-systems,项目名称:manifold-ij,代码行数:7,代码来源:ManSupportProvider.java


示例6: ManFrameworkSupportConfigurable

import com.intellij.ide.util.frameworkSupport.FrameworkSupportModel; //导入依赖的package包/类
public ManFrameworkSupportConfigurable( FrameworkSupportProviderBase frameworkSupportProvider, FrameworkSupportModel model )
{
  super( frameworkSupportProvider, model );
}
 
开发者ID:manifold-systems,项目名称:manifold-ij,代码行数:5,代码来源:ManFrameworkSupportConfigurable.java


示例7: createConfigurable

import com.intellij.ide.util.frameworkSupport.FrameworkSupportModel; //导入依赖的package包/类
@NotNull
@Override
public FrameworkSupportInModuleConfigurable createConfigurable(@NotNull FrameworkSupportModel model) {
    return new GravModuleConfigurable();
}
 
开发者ID:PioBeat,项目名称:GravSupport,代码行数:6,代码来源:GravModuleProvider.java


示例8: createConfigurable

import com.intellij.ide.util.frameworkSupport.FrameworkSupportModel; //导入依赖的package包/类
@NotNull
@Override
public FrameworkSupportInModuleConfigurable createConfigurable(@NotNull FrameworkSupportModel frameworkSupportModel)
{
    return new MuleFrameworkConfigurable();
}
 
开发者ID:machaval,项目名称:mule-intellij-plugins,代码行数:7,代码来源:MuleFrameworkSupportProvider.java


示例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);
}
 
开发者ID:internetisalie,项目名称:lua-for-idea,代码行数:7,代码来源:LuaFrameworkSupportConfigurable.java


示例10: createConfigurable

import com.intellij.ide.util.frameworkSupport.FrameworkSupportModel; //导入依赖的package包/类
@NotNull
@Override
public FrameworkSupportConfigurable createConfigurable(@NotNull FrameworkSupportModel model) {
    return new LuaFrameworkSupportConfigurable(model);
}
 
开发者ID:internetisalie,项目名称:lua-for-idea,代码行数:6,代码来源:LuaFrameworkSupportProvider.java


示例11: onFrameworkSupportAdded

import com.intellij.ide.util.frameworkSupport.FrameworkSupportModel; //导入依赖的package包/类
public abstract void onFrameworkSupportAdded(Module module, ModifiableRootModel rootModel,
List<FrameworkSupportConfigurable> selectedFrameworks,
FrameworkSupportModel model);
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:FrameworkSupportCommunicator.java


示例12: createConfigurable

import com.intellij.ide.util.frameworkSupport.FrameworkSupportModel; //导入依赖的package包/类
@NotNull
public abstract FrameworkSupportInModuleConfigurable createConfigurable(@NotNull FrameworkSupportModel model);
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:3,代码来源:FrameworkSupportInModuleProvider.java


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


示例14: createConfigurable

import com.intellij.ide.util.frameworkSupport.FrameworkSupportModel; //导入依赖的package包/类
@NotNull
@Override
public FrameworkSupportInModuleConfigurable createConfigurable(@NotNull final FrameworkSupportModel model) {
  return new LibrarySupportConfigurable();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:LibraryBasedFrameworkSupportProvider.java


示例15: isAvailableFor

import com.intellij.ide.util.frameworkSupport.FrameworkSupportModel; //导入依赖的package包/类
@Override
public boolean isAvailableFor(@NotNull FrameworkSupportModel model) {
  return true;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:FrameworkAvailabilityCondition.java


示例16: PythonFrameworkSupportConfigurable

import com.intellij.ide.util.frameworkSupport.FrameworkSupportModel; //导入依赖的package包/类
public PythonFrameworkSupportConfigurable(FrameworkSupportModel model) {
  mySdkComboBox = new PythonSdkComboBox();
  mySdkComboBox.setProject(model.getProject());
  myMainPanel = LabeledComponent.create(mySdkComboBox, "Python SDK:");
  ((LabeledComponent)myMainPanel).setLabelLocation(BorderLayout.WEST);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:7,代码来源:PythonFrameworkSupportConfigurable.java


示例17: createConfigurable

import com.intellij.ide.util.frameworkSupport.FrameworkSupportModel; //导入依赖的package包/类
@NotNull
@Override
public FrameworkSupportConfigurable createConfigurable(@NotNull FrameworkSupportModel model) {
  return new PythonFrameworkSupportConfigurable(model);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:PythonFrameworkSupportProvider.java


示例18: registerFrameworkInModel

import com.intellij.ide.util.frameworkSupport.FrameworkSupportModel; //导入依赖的package包/类
public void registerFrameworkInModel(FrameworkSupportModel model, AppEngineFacet appEngineFacet) {
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:3,代码来源:AppEngineWebIntegration.java


示例19: addSupport

import com.intellij.ide.util.frameworkSupport.FrameworkSupportModel; //导入依赖的package包/类
private void addSupport(final Module module,
                        final ModifiableRootModel rootModel,
                        FrameworkSupportModel frameworkSupportModel,
                        String sdkPath,
                        @Nullable PersistenceApi persistenceApi) {
  FacetType<AppEngineFacet, AppEngineFacetConfiguration> facetType = AppEngineFacet.getFacetType();
  AppEngineFacet appEngineFacet = FacetManager.getInstance(module).addFacet(facetType, facetType.getDefaultFacetName(), null);
  AppEngineWebIntegration webIntegration = AppEngineWebIntegration.getInstance();
  webIntegration.registerFrameworkInModel(frameworkSupportModel, appEngineFacet);
  final AppEngineFacetConfiguration facetConfiguration = appEngineFacet.getConfiguration();
  facetConfiguration.setSdkHomePath(sdkPath);
  final AppEngineSdk sdk = appEngineFacet.getSdk();
  final Artifact webArtifact = findOrCreateWebArtifact(appEngineFacet);

  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);
    }
  }

  final Project project = module.getProject();
  webIntegration.addDevServerToModuleDependencies(rootModel, sdk);

  final Library apiJar = addProjectLibrary(module, "AppEngine API", sdk.getUserLibraryPaths(), VirtualFile.EMPTY_ARRAY);
  rootModel.addLibraryEntry(apiJar);
  webIntegration.addLibraryToArtifact(apiJar, webArtifact, project);

  if (persistenceApi != null) {
    facetConfiguration.setRunEnhancerOnMake(true);
    facetConfiguration.setPersistenceApi(persistenceApi);
    facetConfiguration.getFilesToEnhance().addAll(AppEngineUtil.getDefaultSourceRootsToEnhance(rootModel));
    try {
      final VirtualFile[] sourceRoots = rootModel.getSourceRoots();
      final VirtualFile sourceRoot;
      if (sourceRoots.length > 0) {
        sourceRoot = sourceRoots[0];
      }
      else {
        sourceRoot = findOrCreateChildDirectory(rootModel.getContentRoots()[0], "src");
      }
      VirtualFile metaInf = findOrCreateChildDirectory(sourceRoot, "META-INF");
      if (persistenceApi == PersistenceApi.JDO || persistenceApi == PersistenceApi.JDO3) {
        createFileFromTemplate(AppEngineTemplateGroupDescriptorFactory.APP_ENGINE_JDO_CONFIG_TEMPLATE, metaInf, AppEngineUtil.JDO_CONFIG_XML_NAME);
      }
      else {
        final VirtualFile file = createFileFromTemplate(AppEngineTemplateGroupDescriptorFactory.APP_ENGINE_JPA_CONFIG_TEMPLATE, metaInf, AppEngineUtil.JPA_CONFIG_XML_NAME);
        if (file != null) {
          webIntegration.setupJpaSupport(module, file);
        }
      }
    }
    catch (IOException e) {
      LOG.error(e);
    }
    final Library library = addProjectLibrary(module, "AppEngine ORM", Collections.singletonList(sdk.getOrmLibDirectoryPath()), sdk.getOrmLibSources());
    rootModel.addLibraryEntry(library);
    webIntegration.addLibraryToArtifact(library, webArtifact, project);
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:63,代码来源:AppEngineSupportProvider.java


示例20: createConfigurable

import com.intellij.ide.util.frameworkSupport.FrameworkSupportModel; //导入依赖的package包/类
@NotNull
@Override
public FrameworkSupportInModuleConfigurable createConfigurable(@NotNull FrameworkSupportModel model) {
  return new AppEngineSupportConfigurable(model);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:AppEngineSupportProvider.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java UpdateExecutionFactory类代码示例发布时间:2022-05-22
下一篇:
Java Decal类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap