当前位置: 首页>>代码示例>>Java>>正文


Java HaxeCommonBundle.message方法代码示例

本文整理汇总了Java中com.intellij.plugins.haxe.HaxeCommonBundle.message方法的典型用法代码示例。如果您正苦于以下问题:Java HaxeCommonBundle.message方法的具体用法?Java HaxeCommonBundle.message怎么用?Java HaxeCommonBundle.message使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.intellij.plugins.haxe.HaxeCommonBundle的用法示例。


在下文中一共展示了HaxeCommonBundle.message方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createJpsSdkPropertiesSerializer

import com.intellij.plugins.haxe.HaxeCommonBundle; //导入方法依赖的package包/类
public static JpsSdkPropertiesSerializer<JpsHaxeSdkAdditionalData> createJpsSdkPropertiesSerializer() {
  return new JpsSdkPropertiesSerializer<JpsHaxeSdkAdditionalData>(HaxeCommonBundle.message("haxe.sdk.name"), INSTANCE) {
    @NotNull
    public JpsHaxeSdkAdditionalData loadProperties(@Nullable final Element propertiesElement) {
      final HaxeSdkAdditionalDataBase sdkData = XmlSerializer.deserialize(propertiesElement, HaxeSdkAdditionalDataBaseImpl.class);
      return new JpsHaxeSdkAdditionalDataImpl(sdkData);
    }

    public void saveProperties(@NotNull final JpsHaxeSdkAdditionalData properties, @NotNull final Element element) {
      XmlSerializer.serializeInto(properties.getSdkData(), element);
    }
  };
}
 
开发者ID:HaxeFoundation,项目名称:intellij-haxe,代码行数:14,代码来源:JpsHaxeSdkType.java

示例2: getCommandForNeko

import com.intellij.plugins.haxe.HaxeCommonBundle; //导入方法依赖的package包/类
private HaxeCommandLine getCommandForNeko(Sdk sdk, HaxeModuleSettings settings) throws ExecutionException {
  final HaxeSdkData sdkData = sdk.getSdkAdditionalData() instanceof HaxeSdkData ? (HaxeSdkData)sdk.getSdkAdditionalData() : null;
  if (sdkData == null) {
    throw new ExecutionException(HaxeCommonBundle.message("invalid.haxe.sdk"));
  }
  final HaxeCommandLine commandLine = new HaxeCommandLine(module);

  commandLine.setWorkDirectory(PathUtil.getParentPath(module.getModuleFilePath()));
  final String haxelibPath = sdkData.getHaxelibPath();
  if (haxelibPath == null || haxelibPath.isEmpty()) {
    throw new ExecutionException(HaxeCommonBundle.message("no.haxelib.for.sdk", sdk.getName()));
  }
  commandLine.setExePath(haxelibPath);
  commandLine.addParameter("run");
  commandLine.addParameter("nme");
  commandLine.addParameter(myRunInTest ? "test" : "run");
  commandLine.addParameter(settings.getNmmlPath());
  for (String flag : settings.getNmeTarget().getFlags()) {
    commandLine.addParameter(flag);
  }
  if (myDebug) {
    commandLine.addParameter("-debug");
    commandLine.addParameter("-Ddebug");
    commandLine.addParameter("-args");
    commandLine.addParameter("-start_debugger");
    commandLine.addParameter("-debugger_host=localhost:" + myDebugPort);
  }

  final StringTokenizer flagsTokenizer = new StringTokenizer(settings.getNmeFlags());
  while (flagsTokenizer.hasMoreTokens()) {
    commandLine.addParameter(flagsTokenizer.nextToken());
  }

  final TextConsoleBuilder consoleBuilder = TextConsoleBuilderFactory.getInstance().createBuilder(module.getProject());
  setConsoleBuilder(consoleBuilder);
  return commandLine;
}
 
开发者ID:HaxeFoundation,项目名称:intellij-haxe,代码行数:38,代码来源:NMERunningState.java

示例3: getCommandForNeko

import com.intellij.plugins.haxe.HaxeCommonBundle; //导入方法依赖的package包/类
private GeneralCommandLine getCommandForNeko(Sdk sdk, HaxeModuleSettings settings) throws ExecutionException {
  final HaxeSdkData sdkData = sdk.getSdkAdditionalData() instanceof HaxeSdkData ? (HaxeSdkData)sdk.getSdkAdditionalData() : null;
  if (sdkData == null) {
    throw new ExecutionException(HaxeCommonBundle.message("invalid.haxe.sdk"));
  }
  final GeneralCommandLine commandLine = new GeneralCommandLine();

  commandLine.setWorkDirectory(module.getModuleDirPath());
  final String haxelibPath = sdkData.getHaxelibPath();
  if (haxelibPath == null || haxelibPath.isEmpty()) {
    throw new ExecutionException(HaxeCommonBundle.message("no.haxelib.for.sdk", sdk.getName()));
  }
  commandLine.setExePath(haxelibPath);
  commandLine.addParameter("run");
  commandLine.addParameter("nme");
  commandLine.addParameter(myRunInTest ? "test" : "run");
  commandLine.addParameter(settings.getNmmlPath());
  for (String flag : settings.getNmeTarget().getFlags()) {
    commandLine.addParameter(flag);
  }
  if (myDebug) {
    commandLine.addParameter("-debug");
    commandLine.addParameter("-Ddebug");
  }

  final StringTokenizer flagsTokenizer = new StringTokenizer(settings.getNmeFlags());
  while (flagsTokenizer.hasMoreTokens()) {
    commandLine.addParameter(flagsTokenizer.nextToken());
  }

  final TextConsoleBuilder consoleBuilder = TextConsoleBuilderFactory.getInstance().createBuilder(module.getProject());
  setConsoleBuilder(consoleBuilder);
  return commandLine;
}
 
开发者ID:consulo,项目名称:consulo-haxe,代码行数:35,代码来源:NMERunningState.java

示例4: HaxeSdkType

import com.intellij.plugins.haxe.HaxeCommonBundle; //导入方法依赖的package包/类
public HaxeSdkType() {
  super(HaxeCommonBundle.message("haxe.sdk.name"));
}
 
开发者ID:HaxeFoundation,项目名称:intellij-haxe,代码行数:4,代码来源:HaxeSdkType.java

示例5: getCommandForNeko

import com.intellij.plugins.haxe.HaxeCommonBundle; //导入方法依赖的package包/类
private HaxeCommandLine getCommandForNeko(Sdk sdk, HaxeModuleSettings settings) throws ExecutionException {
  final HaxeSdkData sdkData = sdk.getSdkAdditionalData() instanceof HaxeSdkData ? (HaxeSdkData)sdk.getSdkAdditionalData() : null;
  if (sdkData == null) {
    throw new ExecutionException(HaxeCommonBundle.message("invalid.haxe.sdk"));
  }
  final HaxeCommandLine commandLine = new HaxeCommandLine(module);

  commandLine.setWorkDirectory(PathUtil.getParentPath(module.getModuleFilePath()));
  final String haxelibPath = sdkData.getHaxelibPath();
  if (haxelibPath == null || haxelibPath.isEmpty()) {
    throw new ExecutionException(HaxeCommonBundle.message("no.haxelib.for.sdk", sdk.getName()));
  }

  commandLine.setExePath(haxelibPath);
  commandLine.addParameter("run");
  commandLine.addParameter("lime");
  commandLine.addParameter(myRunInTest ? "test" : "run");

  if(!StringUtil.isEmpty(settings.getOpenFLPath())) {
    commandLine.addParameter(settings.getOpenFLPath());
  }

  for (String flag : settings.getOpenFLTarget().getFlags()) {
    commandLine.addParameter(flag);
  }

  commandLine.addParameter("-verbose");

  if (myDebug) {
    commandLine.addParameter("-Ddebug");
    commandLine.addParameter("-debug");

    if (settings.getOpenFLTarget() == OpenFLTarget.FLASH) {
      commandLine.addParameter("-Dfdb");
    }
    else {
      commandLine.addParameter("-args");
      commandLine.addParameter("-start_debugger");
      commandLine.addParameter("-debugger_host=localhost:" + myDebugPort);
    }
  }

  final StringTokenizer flagsTokenizer = new StringTokenizer(settings.getOpenFLFlags());
  while (flagsTokenizer.hasMoreTokens()) {
    commandLine.addParameter(flagsTokenizer.nextToken());
  }

  final TextConsoleBuilder consoleBuilder = TextConsoleBuilderFactory.getInstance().createBuilder(module.getProject());
  setConsoleBuilder(consoleBuilder);
  return commandLine;
}
 
开发者ID:HaxeFoundation,项目名称:intellij-haxe,代码行数:52,代码来源:OpenFLRunningState.java


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