本文整理汇总了Java中com.intellij.plugins.haxe.HaxeCommonBundle类的典型用法代码示例。如果您正苦于以下问题:Java HaxeCommonBundle类的具体用法?Java HaxeCommonBundle怎么用?Java HaxeCommonBundle使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
HaxeCommonBundle类属于com.intellij.plugins.haxe包,在下文中一共展示了HaxeCommonBundle类的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);
}
};
}
示例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;
}
示例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;
}
示例4: HaxeSdkType
import com.intellij.plugins.haxe.HaxeCommonBundle; //导入依赖的package包/类
public HaxeSdkType() {
super(HaxeCommonBundle.message("haxe.sdk.name"));
}
示例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;
}