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


Java CodeInsightBundle.message方法代码示例

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


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

示例1: AbstractGenerateEqualsWizard

import com.intellij.codeInsight.CodeInsightBundle; //导入方法依赖的package包/类
public AbstractGenerateEqualsWizard(Project project, Builder<C, M, I> builder) {
  super(CodeInsightBundle.message("generate.equals.hashcode.wizard.title"), project);
  myBuilder = builder;
  myClass = builder.getPsiClass();
  myClassFields = builder.getClassFields();
  myFieldsToHashCode = builder.getFieldsToHashCode();
  myFieldsToNonNull = builder.getFieldsToNonNull();
  myEqualsPanel = builder.getEqualsPanel();
  myHashCodePanel = builder.getHashCodePanel();
  myNonNullPanel = builder.getNonNullPanel();

  addTableListeners();
  addSteps();
  init();
  updateButtons();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:17,代码来源:AbstractGenerateEqualsWizard.java

示例2: createCenterPanel

import com.intellij.codeInsight.CodeInsightBundle; //导入方法依赖的package包/类
@Nullable
@Override
protected JComponent createCenterPanel() {
  JPanel panel = new JPanel();
  BoxLayout layout = new BoxLayout(panel, BoxLayout.Y_AXIS);
  panel.setLayout(layout);

  panel.add(new JLabel(myText));
  myOnlyVcsCheckBox = new JCheckBox(CodeInsightBundle.message("process.scope.changed.files"));
  boolean lastRunVcsChangedTextEnabled = myLastRunOptions.getLastTextRangeType() == TextRangeType.VCS_CHANGED_TEXT;

  myOnlyVcsCheckBox.setEnabled(myContextHasChanges);
  myOnlyVcsCheckBox.setSelected(myContextHasChanges && lastRunVcsChangedTextEnabled);
  myOnlyVcsCheckBox.setBorder(new EmptyBorder(0, 10 , 0, 0));
  panel.add(myOnlyVcsCheckBox);
  return panel;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:18,代码来源:OptimizeImportsAction.java

示例3: doOKAction

import com.intellij.codeInsight.CodeInsightBundle; //导入方法依赖的package包/类
@Override
protected void doOKAction() {
  if (!createPropertiesFileIfNotExists()) return;
  Collection<PropertiesFile> propertiesFiles = getAllPropertiesFiles();
  for (PropertiesFile propertiesFile : propertiesFiles) {
    IProperty existingProperty = propertiesFile.findPropertyByKey(getKey());
    final String propValue = myValue.getText();
    if (existingProperty != null && !Comparing.strEqual(existingProperty.getValue(), propValue)) {
      final String messageText = CodeInsightBundle.message("i18nize.dialog.error.property.already.defined.message", getKey(), propertiesFile.getName());
      final int code = Messages.showOkCancelDialog(myProject,
                                                   messageText,
                                                   CodeInsightBundle.message("i18nize.dialog.error.property.already.defined.title"),
                                                   null);
      if (code == Messages.CANCEL) {
        return;
      }
    }
  }

  super.doOKAction();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:22,代码来源:I18nizeQuickFixDialog.java

示例4: getChooserTitle

import com.intellij.codeInsight.CodeInsightBundle; //导入方法依赖的package包/类
@NotNull
@Override
protected String getChooserTitle(PsiElement sourceElement, String name, int length) {
  if (TestFinderHelper.isTest(sourceElement)) {
    return CodeInsightBundle.message("goto.test.chooserTitle.subject", name, length);
  }
  else {
    return CodeInsightBundle.message("goto.test.chooserTitle.test", name, length);
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:11,代码来源:GotoTestOrCodeHandler.java

示例5: getFamilyName

import com.intellij.codeInsight.CodeInsightBundle; //导入方法依赖的package包/类
@Override
public String getFamilyName() {
    return CodeInsightBundle.message("intention.add.annotation.family");
}
 
开发者ID:stylismo,项目名称:nullability-annotations-inspection,代码行数:5,代码来源:AddPackageInfoWithNullabilityDefaultsFix.java

示例6: getText

import com.intellij.codeInsight.CodeInsightBundle; //导入方法依赖的package包/类
@Nls
@NotNull
@Override
public String getText() {
  return CodeInsightBundle.message("configure.code.style.on.fragment.dialog.title");
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:7,代码来源:ConfigureCodeStyleOnSelectedFragment.java

示例7: getTemplateDescription

import com.intellij.codeInsight.CodeInsightBundle; //导入方法依赖的package包/类
@Override
public String getTemplateDescription() {
  return CodeInsightBundle.message("surround.with.parenthesis.template");
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:JavaWithParenthesesSurrounder.java

示例8: getFamilyName

import com.intellij.codeInsight.CodeInsightBundle; //导入方法依赖的package包/类
@Override
@NotNull
public String getFamilyName() {
  return CodeInsightBundle.message("intention.split.declaration.family");
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:SplitDeclarationAction.java

示例9: getTemplateDescription

import com.intellij.codeInsight.CodeInsightBundle; //导入方法依赖的package包/类
public String getTemplateDescription() {
  return CodeInsightBundle.message("surround.with.ifelse.template");
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:PyWithIfElseSurrounder.java

示例10: GenerateGetterHandler

import com.intellij.codeInsight.CodeInsightBundle; //导入方法依赖的package包/类
public GenerateGetterHandler() {
  super(CodeInsightBundle.message("generate.getter.fields.chooser.title"));
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:GenerateGetterHandler.java

示例11: getFamilyName

import com.intellij.codeInsight.CodeInsightBundle; //导入方法依赖的package包/类
@Override
@NotNull
public String getFamilyName() {
  return CodeInsightBundle.message("intention.add.override.annotation.family");
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:AddOverrideAnnotationAction.java

示例12: HtmlContextType

import com.intellij.codeInsight.CodeInsightBundle; //导入方法依赖的package包/类
public HtmlContextType() {
  super("HTML", CodeInsightBundle.message("dialog.edit.template.checkbox.html"), StdFileTypes.HTML);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:HtmlContextType.java

示例13: getPresentableName

import com.intellij.codeInsight.CodeInsightBundle; //导入方法依赖的package包/类
@Override
public String getPresentableName() {
  return CodeInsightBundle.message("macro.file.name.without.extension");
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:FileNameWithoutExtensionMacro.java

示例14: getCaption

import com.intellij.codeInsight.CodeInsightBundle; //导入方法依赖的package包/类
@Override
public String getCaption(int size) {
  return myClass.isInterface()
         ? CodeInsightBundle.message("goto.implementation.chooserTitle", myClass.getName(), size)
         : DaemonBundle.message("navigation.title.subclass", myClass.getName(), size);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:7,代码来源:MarkerType.java

示例15: getFamilyName

import com.intellij.codeInsight.CodeInsightBundle; //导入方法依赖的package包/类
@Override
@NotNull
public String getFamilyName() {
  return CodeInsightBundle.message("intention.add.on.demand.static.import.family");
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:AddOnDemandStaticImportAction.java


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