本文整理汇总了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;未经允许,请勿转载。 |
请发表评论