當前位置: 首頁>>代碼示例>>Java>>正文


Java HaxeModuleSettingsBase類代碼示例

本文整理匯總了Java中com.intellij.plugins.haxe.module.HaxeModuleSettingsBase的典型用法代碼示例。如果您正苦於以下問題:Java HaxeModuleSettingsBase類的具體用法?Java HaxeModuleSettingsBase怎麽用?Java HaxeModuleSettingsBase使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


HaxeModuleSettingsBase類屬於com.intellij.plugins.haxe.module包,在下文中一共展示了HaxeModuleSettingsBase類的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: setupUserProperties

import com.intellij.plugins.haxe.module.HaxeModuleSettingsBase; //導入依賴的package包/類
private static void setupUserProperties(List<String> commandLine, CompilationContext context) {
  final HaxeModuleSettingsBase settings = context.getModuleSettings();
  commandLine.add("-main");
  commandLine.add(context.getCompilationClass());

  final StringTokenizer argumentsTokenizer = new StringTokenizer(settings.getArguments());
  while (argumentsTokenizer.hasMoreTokens()) {
    commandLine.add(argumentsTokenizer.nextToken());
  }

  if (context.isDebug()) {
    commandLine.add("-debug");
  }
  if (context.getHaxeTarget() == HaxeTarget.FLASH && context.isDebug()) {
    commandLine.add("-D");
    commandLine.add("fdb");
  }

  for (String sourceRoot : context.getSourceRoots()) {
    commandLine.add("-cp");
    commandLine.add(sourceRoot);
  }

  commandLine.add(context.getHaxeTarget().getCompilerFlag());
  commandLine.add(context.getOutputFileName());
}
 
開發者ID:HaxeFoundation,項目名稱:intellij-haxe,代碼行數:27,代碼來源:HaxeCommonCompilerUtil.java

示例2: setupNME

import com.intellij.plugins.haxe.module.HaxeModuleSettingsBase; //導入依賴的package包/類
private static void setupNME(List<String> commandLine, CompilationContext context) {
  final HaxeModuleSettingsBase settings = context.getModuleSettings();
  commandLine.add("run");
  commandLine.add("nme");
  commandLine.add("build");
  commandLine.add(settings.getNmmlPath());
  commandLine.add(settings.getNmeTarget().getTargetFlag());
  if (context.isDebug()) {
    commandLine.add("-debug");
    commandLine.add("-Ddebug");
  }
  if (settings.getNmeTarget() == NMETarget.FLASH && context.isDebug()) {
    commandLine.add("-Dfdb");
  }
  final StringTokenizer flagsTokenizer = new StringTokenizer(settings.getNmeFlags());
  while (flagsTokenizer.hasMoreTokens()) {
    commandLine.add(flagsTokenizer.nextToken());
  }
}
 
開發者ID:HaxeFoundation,項目名稱:intellij-haxe,代碼行數:20,代碼來源:HaxeCommonCompilerUtil.java

示例3: setupUserProperties

import com.intellij.plugins.haxe.module.HaxeModuleSettingsBase; //導入依賴的package包/類
private static void setupUserProperties(List<String> commandLine, CompilationContext context) {
  final HaxeModuleSettingsBase settings = context.getModuleSettings();
  commandLine.add("-main");
  commandLine.add(settings.getMainClass());

  final StringTokenizer argumentsTokenizer = new StringTokenizer(settings.getArguments());
  while (argumentsTokenizer.hasMoreTokens()) {
    commandLine.add(argumentsTokenizer.nextToken());
  }

  if (context.isDebug()) {
    commandLine.add("-debug");
  }
  if (settings.getHaxeTarget() == HaxeTarget.FLASH && context.isDebug()) {
    commandLine.add("-D");
    commandLine.add("fdb");
  }

  for (String sourceRoot : context.getSourceRoots()) {
    commandLine.add("-cp");
    commandLine.add(sourceRoot);
  }

  commandLine.add(settings.getHaxeTarget().getCompilerFlag());
  commandLine.add(settings.getOutputFileName());
}
 
開發者ID:consulo,項目名稱:consulo-haxe,代碼行數:27,代碼來源:HaxeCommonCompilerUtil.java

示例4: setupOpenFL

import com.intellij.plugins.haxe.module.HaxeModuleSettingsBase; //導入依賴的package包/類
private static void setupOpenFL(List<String> commandLine, CompilationContext context) {
  final HaxeModuleSettingsBase settings = context.getModuleSettings();
  commandLine.add("run");
  commandLine.add("lime");
  commandLine.add("build");

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

  commandLine.add(settings.getOpenFLTarget().getTargetFlag());

  commandLine.add("-verbose");

  if (context.isDebug()) {
    commandLine.add("-debug");
    commandLine.add("-Ddebug");

    if (settings.getOpenFLTarget() == OpenFLTarget.FLASH) {
      commandLine.add("-Dfdb");
    }
  }


  final StringTokenizer flagsTokenizer = new StringTokenizer(settings.getOpenFLFlags());
  while (flagsTokenizer.hasMoreTokens()) {
    commandLine.add(flagsTokenizer.nextToken());
  }
}
 
開發者ID:HaxeFoundation,項目名稱:intellij-haxe,代碼行數:30,代碼來源:HaxeCommonCompilerUtil.java

示例5: JpsHaxeModuleSettingsImpl

import com.intellij.plugins.haxe.module.HaxeModuleSettingsBase; //導入依賴的package包/類
public JpsHaxeModuleSettingsImpl(HaxeModuleSettingsBase base) {
  mySettingsBase = base;
}
 
開發者ID:HaxeFoundation,項目名稱:intellij-haxe,代碼行數:4,代碼來源:JpsHaxeModuleSettingsImpl.java

示例6: getProperties

import com.intellij.plugins.haxe.module.HaxeModuleSettingsBase; //導入依賴的package包/類
@Override
public HaxeModuleSettingsBase getProperties() {
  return mySettingsBase;
}
 
開發者ID:HaxeFoundation,項目名稱:intellij-haxe,代碼行數:5,代碼來源:JpsHaxeModuleSettingsImpl.java

示例7: getModuleSettings

import com.intellij.plugins.haxe.module.HaxeModuleSettingsBase; //導入依賴的package包/類
@NotNull
HaxeModuleSettingsBase getModuleSettings();
 
開發者ID:HaxeFoundation,項目名稱:intellij-haxe,代碼行數:3,代碼來源:HaxeCommonCompilerUtil.java

示例8: getProperties

import com.intellij.plugins.haxe.module.HaxeModuleSettingsBase; //導入依賴的package包/類
HaxeModuleSettingsBase getProperties(); 
開發者ID:HaxeFoundation,項目名稱:intellij-haxe,代碼行數:2,代碼來源:JpsHaxeModuleSettings.java


注:本文中的com.intellij.plugins.haxe.module.HaxeModuleSettingsBase類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。