本文整理汇总了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"));
}
}
示例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();
}
示例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;
}
示例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);
}
示例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");
}
};
}
示例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();
}
示例7: getDisplayName
import com.intellij.plugins.haxe.HaxeBundle; //导入方法依赖的package包/类
@Nls
@NotNull
@Override
public String getDisplayName()
{
return HaxeBundle.message("haxe.inspection.unused.import.name");
}
示例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");
}
};
}
示例9: getPresentableName
import com.intellij.plugins.haxe.HaxeBundle; //导入方法依赖的package包/类
@Override
public String getPresentableName() {
return HaxeBundle.message("macro.haxe.index.name");
}
示例10: getConfigurationTypeDescription
import com.intellij.plugins.haxe.HaxeBundle; //导入方法依赖的package包/类
public String getConfigurationTypeDescription() {
return HaxeBundle.message("runner.configuration.name");
}
示例11: getDisplayName
import com.intellij.plugins.haxe.HaxeBundle; //导入方法依赖的package包/类
@Override
public String getDisplayName() {
return HaxeBundle.message("haxe.tests.runner.configuration.name");
}
示例12: getGroupDisplayName
import com.intellij.plugins.haxe.HaxeBundle; //导入方法依赖的package包/类
@NotNull
public String getGroupDisplayName() {
return HaxeBundle.message("inspections.group.name");
}
示例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");
}
示例14: getTitle
import com.intellij.plugins.haxe.HaxeBundle; //导入方法依赖的package包/类
@Override
protected String getTitle() {
return HaxeBundle.message("haxe.override.method");
}
示例15: createUIComponents
import com.intellij.plugins.haxe.HaxeBundle; //导入方法依赖的package包/类
private void createUIComponents() {
myAddDeleteListPanel = new MyAddDeleteListPanel(HaxeBundle.message("haxe.conditional.compilation.defined.macros"));
}