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

Java WebProjectGenerator类代码示例

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

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



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

示例1: modifySettingsStep

import com.intellij.platform.WebProjectGenerator; //导入依赖的package包/类
@Nullable
@Override
public ModuleWizardStep modifySettingsStep(@NotNull SettingsStep settingsStep) {
  if (myTemplate == null) {
    return super.modifySettingsStep(settingsStep);
  }
  final WebProjectGenerator.GeneratorPeer peer = myTemplate.getPeer();
  peer.buildUI(settingsStep);
  return new ModuleWizardStep() {
    @Override
    public JComponent getComponent() {
      return null;
    }

    @Override
    public void updateDataModel() {
    }

    @Override
    public boolean validate() throws ConfigurationException {
      ValidationInfo info = peer.validate();
      if (info != null) throw new ConfigurationException(info.message);
      return true;
    }
  };
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:27,代码来源:WebModuleBuilder.java


示例2: modifySettingsStep

import com.intellij.platform.WebProjectGenerator; //导入依赖的package包/类
@Nullable
@Override
public ModuleWizardStep modifySettingsStep(@NotNull SettingsStep settingsStep) {
  if (myTemplate == null) {
    return super.modifySettingsStep(settingsStep);
  }
  WebProjectGenerator.GeneratorPeer peer = myTemplate.getPeer();
  peer.buildUI(settingsStep);
  return new ModuleWizardStep() {
    @Override
    public JComponent getComponent() {
      return null;
    }

    @Override
    public void updateDataModel() {
    }
  };
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:20,代码来源:WebModuleBuilder.java


示例3: doGenerate

import com.intellij.platform.WebProjectGenerator; //导入依赖的package包/类
private static <T> void doGenerate(@NotNull WebProjectTemplate<T> template, @NotNull Module module) {
  WebProjectGenerator.GeneratorPeer<T> peer = template.getPeer();
  ModuleRootManager moduleRootManager = ModuleRootManager.getInstance(module);
  VirtualFile[] contentRoots = moduleRootManager.getContentRoots();
  VirtualFile dir = module.getProject().getBaseDir();
  if (contentRoots.length > 0 && contentRoots[0] != null) {
    dir = contentRoots[0];
  }
  template.generateProject(module.getProject(), dir, peer.getSettings(), module);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:11,代码来源:WebModuleBuilder.java


示例4: initGeneratorListeners

import com.intellij.platform.WebProjectGenerator; //导入依赖的package包/类
protected void initGeneratorListeners() {
  if (myProjectGenerator instanceof WebProjectTemplate) {
    ((WebProjectTemplate)myProjectGenerator).getPeer().addSettingsStateListener(new WebProjectGenerator.SettingsStateListener() {
      @Override
      public void stateChanged(boolean validSettings) {
        checkValid();
      }
    });
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:11,代码来源:ProjectSettingsStepBase.java


示例5: checkValid

import com.intellij.platform.WebProjectGenerator; //导入依赖的package包/类
public boolean checkValid() {
  if (myLocationField == null) return true;
  final String projectName = myLocationField.getText();
  setErrorText(null);

  if (projectName.trim().isEmpty()) {
    setErrorText("Project name can't be empty");
    return false;
  }
  if (myLocationField.getText().indexOf('$') >= 0) {
    setErrorText("Project directory name must not contain the $ character");
    return false;
  }
  if (myProjectGenerator != null) {
    final String baseDirPath = myLocationField.getTextField().getText();
    ValidationResult validationResult = myProjectGenerator.validate(baseDirPath);
    if (!validationResult.isOk()) {
      setErrorText(validationResult.getErrorMessage());
      return false;
    }
    if (myProjectGenerator instanceof WebProjectTemplate) {
      final WebProjectGenerator.GeneratorPeer peer = ((WebProjectTemplate)myProjectGenerator).getPeer();
      final ValidationInfo validationInfo = peer.validate();
      if (validationInfo != null && !peer.isBackgroundJobRunning()) {
        setErrorText(validationInfo.message);
        return false;
      }
    }
  }

  return true;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:33,代码来源:ProjectSettingsStepBase.java


示例6: addSettingsStateListener

import com.intellij.platform.WebProjectGenerator; //导入依赖的package包/类
@Override
public void addSettingsStateListener(@NotNull WebProjectGenerator.SettingsStateListener listener) {
  myListeners.add(listener);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:GithubProjectGeneratorPeer.java


示例7: fireStateChanged

import com.intellij.platform.WebProjectGenerator; //导入依赖的package包/类
private void fireStateChanged() {
  GithubTagInfo tag = myReloadableComboBoxPanel.getSelectedValue();
  for (WebProjectGenerator.SettingsStateListener listener : myListeners) {
    listener.stateChanged(tag != null);
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:7,代码来源:GithubProjectGeneratorPeer.java


示例8: addSettingsStateListener

import com.intellij.platform.WebProjectGenerator; //导入依赖的package包/类
@Override
public void addSettingsStateListener(@NotNull WebProjectGenerator.SettingsStateListener settingsStateListener) {
    stateListeners.add(settingsStateListener);
}
 
开发者ID:asebak,项目名称:ui5-intellij-plugin,代码行数:5,代码来源:ProjectPeer.java


示例9: fireStateChanged

import com.intellij.platform.WebProjectGenerator; //导入依赖的package包/类
private void fireStateChanged() {
  GithubTagInfo tag = getSelectedTag();
  for (WebProjectGenerator.SettingsStateListener listener : myListeners) {
    listener.stateChanged(tag != null);
  }
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:7,代码来源:GithubProjectGeneratorPeer.java


示例10: addSettingsStateListener

import com.intellij.platform.WebProjectGenerator; //导入依赖的package包/类
@Override
public void addSettingsStateListener(@NotNull WebProjectGenerator.SettingsStateListener listener) {

}
 
开发者ID:PioBeat,项目名称:GravSupport,代码行数:5,代码来源:GravInstallerGeneratorPeer.java


示例11: addSettingsStateListener

import com.intellij.platform.WebProjectGenerator; //导入依赖的package包/类
@Override
public void addSettingsStateListener(@NotNull WebProjectGenerator.SettingsStateListener settingsStateListener) {

}
 
开发者ID:catberry,项目名称:catberry-idea-plugin,代码行数:5,代码来源:CatberryGeneratorPeer.java



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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