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


Java HaxeBundle.message方法代码示例

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


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

示例1: checkConfiguration

import com.intellij.plugins.haxe.HaxeBundle; //导入方法依赖的package包/类
@Override
public void checkConfiguration() throws RuntimeConfigurationException {
  super.checkConfiguration();
  final HaxeApplicationModuleBasedConfiguration configurationModule = getConfigurationModule();
  final Module module = configurationModule.getModule();
  if (module == null) {
    throw new RuntimeConfigurationException(HaxeBundle.message("haxe.run.no.module", getName()));
  }
  final HaxeModuleSettings settings = HaxeModuleSettings.getInstance(module);
  if (settings.isUseHxmlToBuild() && !customFileToLaunch) {
    throw new RuntimeConfigurationException(HaxeBundle.message("haxe.run.select.custom.file"));
  }
  if (settings.isUseNmmlToBuild() && customFileToLaunch) {
    throw new RuntimeConfigurationException(HaxeBundle.message("haxe.run.do.not.select.custom.file"));
  }
  if (settings.isUseNmmlToBuild() && customExecutable) {
    throw new RuntimeConfigurationException(HaxeBundle.message("haxe.run.do.not.select.custom.executable"));
  }
}
 
开发者ID:HaxeFoundation,项目名称:intellij-haxe,代码行数:20,代码来源:HaxeApplicationConfiguration.java

示例2: compilePresentableDescription

import com.intellij.plugins.haxe.HaxeBundle; //导入方法依赖的package包/类
private String compilePresentableDescription() {
  final StringBuilder result = new StringBuilder();

  int currentOffset = 0;

  if (parameters.length == 0) {
    return HaxeBundle.message("haxe.parameter.info.helper.no.parameters");
  }

  for (int i = 0; i < parameters.length; i++) {
    HaxeParameterDescription parameter = parameters[i];
    String description = parameter.getPresentableText();
    int descriptionLength = description.length();

    parametersTextRange[i] = new TextRange(currentOffset, currentOffset + descriptionLength);

    if (currentOffset > 0) {
      result.append(PARAMETERS_DELIMITER);
    }
    result.append(description);

    currentOffset += descriptionLength + PARAMETERS_DELIMITER.length();
  }

  return result.toString();
}
 
开发者ID:HaxeFoundation,项目名称:intellij-haxe,代码行数:27,代码来源:HaxeFunctionDescription.java

示例3: getCommandForNeko

import com.intellij.plugins.haxe.HaxeBundle; //导入方法依赖的package包/类
private GeneralCommandLine getCommandForNeko(@Nullable HaxeSdkData sdkData, HaxeModuleSettings settings) throws ExecutionException {
  if (sdkData == null || sdkData.getNekoBinPath() == null || sdkData.getNekoBinPath().isEmpty()) {
    throw new ExecutionException(HaxeBundle.message("haxe.run.bad.neko.bin.path"));
  }

  GeneralCommandLine commandLine = new GeneralCommandLine();

  commandLine.setExePath(sdkData.getNekoBinPath());
  commandLine.setWorkDirectory(module.getModuleDirPath());

  if (customFileToLaunch != null) {
    commandLine.addParameter(customFileToLaunch);
  }
  else {
    final VirtualFile outputDirectory = CompilerPathsImpl.getModuleOutputDirectory(module, false);
    final VirtualFile fileToLaunch = outputDirectory != null ? outputDirectory.findChild(settings.getOutputFileName()) : null;
    if (fileToLaunch != null) {
      commandLine.addParameter(fileToLaunch.getPath());
    }
  }

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

示例4: reparseProjectFiles

import com.intellij.plugins.haxe.HaxeBundle; //导入方法依赖的package包/类
public static void reparseProjectFiles(@NotNull final Project project) {
  Task.Backgroundable task = new Task.Backgroundable(project, HaxeBundle.message("haxe.project.reparsing"), false) {
    public void run(@NotNull ProgressIndicator indicator) {
      final Collection<VirtualFile> haxeFiles = new ArrayList<VirtualFile>();
      final VirtualFile baseDir = project.getBaseDir();
      if (baseDir != null) {
        FileBasedIndex.getInstance().iterateIndexableFiles(new ContentIterator() {
          public boolean processFile(VirtualFile file) {
            if (HaxeFileType.HAXE_FILE_TYPE == file.getFileType()) {
              haxeFiles.add(file);
            }
            return true;
          }
        }, project, indicator);
      }
      ApplicationManager.getApplication().invokeAndWait(new Runnable() {
        public void run() {
          FileContentUtil.reparseFiles(project, haxeFiles, !project.isDefault());
        }
      }, ModalityState.NON_MODAL);
    }
  };
  ProgressManager.getInstance().run(task);
}
 
开发者ID:consulo,项目名称:consulo-haxe,代码行数:25,代码来源:HaxeUtil.java

示例5: getGenerateHandler

import com.intellij.plugins.haxe.HaxeBundle; //导入方法依赖的package包/类
@Override
protected BaseHaxeGenerateHandler getGenerateHandler() {
  return new HaxeGenerateAccessorHandler(CreateGetterSetterFix.Strategy.GETTERSETTER) {
    @Override
    protected String getTitle() {
      return HaxeBundle.message("fields.to.generate.getters.setters");
    }
  };
}
 
开发者ID:HaxeFoundation,项目名称:intellij-haxe,代码行数:10,代码来源:HaxeGenerateGetterSetterAction.java

示例6: getOpenFLDescriptor

import com.intellij.plugins.haxe.HaxeBundle; //导入方法依赖的package包/类
public static RunContentDescriptor getOpenFLDescriptor(final HaxeDebugRunner runner,
                                                       final Module module,
                                                       final ExecutionEnvironment env,
                                                       final Executor executor, String flexSdkName) throws ExecutionException {
  final Sdk flexSdk = FlexSdkUtils.findFlexOrFlexmojosSdk(flexSdkName);
  if (flexSdk == null) {
    throw new ExecutionException(HaxeBundle.message("flex.sdk.not.found", flexSdkName));
  }

  final FlexBuildConfiguration bc = new FakeFlexBuildConfiguration(flexSdk, null);

  final XDebugSession debugSession =
    XDebuggerManager.getInstance(module.getProject()).startSession(env, new XDebugProcessStarter() {
      @NotNull
      public XDebugProcess start(@NotNull final XDebugSession session) throws ExecutionException {
        try {
          OpenFLRunningState runningState = new OpenFLRunningState(env, module, true, true);
          final ExecutionResult executionResult = runningState.execute(executor, runner);
          final BCBasedRunnerParameters params = new BCBasedRunnerParameters();
          params.setModuleName(module.getName());
          return new HaxeDebugProcess(session, bc, params);
        }
        catch (IOException e) {
          throw new ExecutionException(e.getMessage(), e);
        }
      }
    });

  return debugSession.getRunContentDescriptor();
}
 
开发者ID:HaxeFoundation,项目名称:intellij-haxe,代码行数:31,代码来源:HaxeFlashDebuggingUtil.java

示例7: getDisplayName

import com.intellij.plugins.haxe.HaxeBundle; //导入方法依赖的package包/类
@Nls
@NotNull
@Override
public String getDisplayName()
{
	return HaxeBundle.message("haxe.inspection.unused.import.name");
}
 
开发者ID:consulo,项目名称:consulo-haxe,代码行数:8,代码来源:HaxeUnusedImportInspection.java

示例8: getGenerateHandler

import com.intellij.plugins.haxe.HaxeBundle; //导入方法依赖的package包/类
@Override
protected BaseHaxeGenerateHandler getGenerateHandler() {
  return new HaxeGenerateAccessorHandler(CreateGetterSetterFix.Strategy.SETTER) {
    @Override
    protected String getTitle() {
      return HaxeBundle.message("fields.to.generate.setters");
    }
  };
}
 
开发者ID:consulo,项目名称:consulo-haxe,代码行数:10,代码来源:HaxeGenerateSetterAction.java

示例9: getPresentableName

import com.intellij.plugins.haxe.HaxeBundle; //导入方法依赖的package包/类
@Override
public String getPresentableName() {
  return HaxeBundle.message("macro.haxe.index.name");
}
 
开发者ID:HaxeFoundation,项目名称:intellij-haxe,代码行数:5,代码来源:HaxeSuggestIndexNameMacro.java

示例10: getConfigurationTypeDescription

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

示例11: getDisplayName

import com.intellij.plugins.haxe.HaxeBundle; //导入方法依赖的package包/类
@Override
public String getDisplayName() {
  return HaxeBundle.message("haxe.tests.runner.configuration.name");
}
 
开发者ID:HaxeFoundation,项目名称:intellij-haxe,代码行数:5,代码来源:HaxeTestsRunConfigurationType.java

示例12: getGroupDisplayName

import com.intellij.plugins.haxe.HaxeBundle; //导入方法依赖的package包/类
@NotNull
public String getGroupDisplayName() {
  return HaxeBundle.message("inspections.group.name");
}
 
开发者ID:HaxeFoundation,项目名称:intellij-haxe,代码行数:5,代码来源:HaxeUnresolvedSymbolInspection.java

示例13: getActionName

import com.intellij.plugins.haxe.HaxeBundle; //导入方法依赖的package包/类
@Override
protected String getActionName(PsiDirectory directory, String newName, String templateName) {
  return HaxeBundle.message("create.nmml.file.action");
}
 
开发者ID:HaxeFoundation,项目名称:intellij-haxe,代码行数:5,代码来源:CreateNMMLFileAction.java

示例14: getTitle

import com.intellij.plugins.haxe.HaxeBundle; //导入方法依赖的package包/类
@Override
protected String getTitle() {
  return HaxeBundle.message("haxe.override.method");
}
 
开发者ID:HaxeFoundation,项目名称:intellij-haxe,代码行数:5,代码来源:HaxeOverrideMethodHandler.java

示例15: createUIComponents

import com.intellij.plugins.haxe.HaxeBundle; //导入方法依赖的package包/类
private void createUIComponents() {
  myAddDeleteListPanel = new MyAddDeleteListPanel(HaxeBundle.message("haxe.conditional.compilation.defined.macros"));
}
 
开发者ID:HaxeFoundation,项目名称:intellij-haxe,代码行数:4,代码来源:HaxeSettingsForm.java


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