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


Java ProjectBundle.message方法代码示例

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


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

示例1: createActions

import com.intellij.openapi.project.ProjectBundle; //导入方法依赖的package包/类
@Override
@NotNull
@SuppressWarnings({"NonStaticInitializer"})
protected Action[] createActions() {
  final Action okAction = getOKAction();
  assignMnemonic(ADD_IN_CODE, okAction);
  final String externalName = ProjectBundle.message("external.annotations.external.option");
  return new Action[]{okAction, new AbstractAction(externalName) {
    {
      assignMnemonic(externalName, this);
    }

    @Override
    public void actionPerformed(final ActionEvent e) {
      if (canBeHidden()) {
        setToBeShown(toBeShown(), true);
      }
      close(2);
    }
  }, getCancelAction()};
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:22,代码来源:ExternalAnnotationsManagerImpl.java

示例2: FrameworkDetectionStep

import com.intellij.openapi.project.ProjectBundle; //导入方法依赖的package包/类
public FrameworkDetectionStep(final Icon icon, final ProjectFromSourcesBuilder builder) {
  super(ProjectBundle.message("message.text.stop.searching.for.frameworks", ApplicationNamesInfo.getInstance().getProductName()));
  myIcon = icon;
  myContext = new FrameworkDetectionInWizardContext() {
    @Override
    protected List<ModuleDescriptor> getModuleDescriptors() {
      return FrameworkDetectionStep.this.getModuleDescriptors();
    }

    @Override
    protected String getContentPath() {
      return builder.getBaseProjectPath();
    }
  };
  myDetectedFrameworksComponent = new DetectedFrameworksComponent(myContext);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:17,代码来源:FrameworkDetectionStep.java

示例3: renameModule

import com.intellij.openapi.project.ProjectBundle; //导入方法依赖的package包/类
@Override
public void renameModule(@NotNull Module module, @NotNull String newName) throws ModuleWithNameAlreadyExists {
  final Module oldModule = getModuleByNewName(newName);
  myNewNameToModule.remove(myModuleToNewName.get(module));
  if(module.getName().equals(newName)){ // if renaming to itself, forget it altogether
    myModuleToNewName.remove(module);
    myNewNameToModule.remove(newName);
  } else {
    myModuleToNewName.put(module, newName);
    myNewNameToModule.put(newName, module);
  }

  if (oldModule != null) {
    throw new ModuleWithNameAlreadyExists(ProjectBundle.message("module.already.exists.error", newName), newName);
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:17,代码来源:ModuleManagerImpl.java

示例4: fireNotifications

import com.intellij.openapi.project.ProjectBundle; //导入方法依赖的package包/类
private void fireNotifications() {
  final MultiMap<ConfigurationErrorType, ConfigurationErrorDescription> descriptionsMap = new MultiMap<ConfigurationErrorType, ConfigurationErrorDescription>();
  synchronized (myLock) {
    if (myErrors.isEmpty()) return;
    descriptionsMap.putAllValues(myErrors);
    myErrors.clear();
  }

  for (final ConfigurationErrorType type : descriptionsMap.keySet()) {
    final Collection<ConfigurationErrorDescription> descriptions = descriptionsMap.get(type);
    if (descriptions.isEmpty()) continue;

    final String invalidElements = getInvalidElementsString(type, descriptions);
    final String errorText = ProjectBundle.message("error.message.configuration.cannot.load") + " " + invalidElements + " <a href=\"\">Details...</a>";

    Notifications.Bus.notify(new Notification("Project Loading Error", "Error Loading Project", errorText, NotificationType.ERROR,
                                              new NotificationListener() {
                                                @Override
                                                public void hyperlinkUpdate(@NotNull Notification notification,
                                                                            @NotNull HyperlinkEvent event) {
                                                  final List<ConfigurationErrorDescription> validDescriptions =
                                                    ContainerUtil.findAll(descriptions, new Condition<ConfigurationErrorDescription>() {
                                                      @Override
                                                      public boolean value(ConfigurationErrorDescription errorDescription) {
                                                        return errorDescription.isValid();
                                                      }
                                                    });
                                                  RemoveInvalidElementsDialog
                                                    .showDialog(myProject, CommonBundle.getErrorTitle(), type, invalidElements,
                                                                validDescriptions);

                                                  notification.expire();
                                                }
                                              }), myProject);
  }

}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:38,代码来源:ProjectLoadingErrorsNotifierImpl.java

示例5: apply

import com.intellij.openapi.project.ProjectBundle; //导入方法依赖的package包/类
@Override
public void apply() throws ConfigurationException{
  if(!Comparing.equal(myInitialName, mySdk == null ? "" : mySdk.getName())){
    if(mySdk == null || mySdk.getName().isEmpty()){
      throw new ConfigurationException(ProjectBundle.message("sdk.list.name.required.error"));
    }
  }
  if (mySdk != null){
    myInitialName = mySdk.getName();
    myInitialPath = mySdk.getHomePath();
    final SdkModificator sdkModificator = mySdk.getSdkModificator();
    sdkModificator.setHomePath(getHomeValue().replace(File.separatorChar, '/'));
    for (SdkPathEditor pathEditor : myPathEditors.values()) {
      pathEditor.apply(sdkModificator);
    }
    ApplicationManager.getApplication().runWriteAction(new Runnable() { // fix SCR #29193
      @Override
      public void run() {
        sdkModificator.commitChanges();
      }
    });
    final AdditionalDataConfigurable configurable = getAdditionalDataConfigurable();
    if (configurable != null) {
      configurable.apply();
    }
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:28,代码来源:SdkEditor.java

示例6: createChooser

import com.intellij.openapi.project.ProjectBundle; //导入方法依赖的package包/类
@Override
protected ClasspathElementChooser<Module> createChooser() {
  final List<Module> chooseItems = getNotAddedModules();
  if (chooseItems.isEmpty()) {
    Messages.showMessageDialog(myClasspathPanel.getComponent(), ProjectBundle.message("message.no.module.dependency.candidates"), getTitle(),
                               Messages.getInformationIcon());
    return null;
  }
  return new ModuleChooser(myClasspathPanel, chooseItems, ProjectBundle.message("classpath.chooser.title.add.module.dependency"),
                           ProjectBundle.message("classpath.chooser.description.add.module.dependency"));
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:12,代码来源:AddModuleDependencyAction.java

示例7: MyExternalPromptDialog

import com.intellij.openapi.project.ProjectBundle; //导入方法依赖的package包/类
public MyExternalPromptDialog(final Project project) {
  super(project, MESSAGE, ProjectBundle.message("external.annotation.prompt"), Messages.getQuestionIcon());
  myProject = project;
  init();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:ExternalAnnotationsManagerImpl.java

示例8: getLibraryTableEditorTitle

import com.intellij.openapi.project.ProjectBundle; //导入方法依赖的package包/类
@Override
public String getLibraryTableEditorTitle() {
  return ProjectBundle.message("library.configure.global.title");
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:ApplicationLibraryTable.java

示例9: toString

import com.intellij.openapi.project.ProjectBundle; //导入方法依赖的package包/类
public String toString() {
  return ProjectBundle.message("jdk.combo.box.invalid.item", mySdkName);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:JdkComboBox.java

示例10: RenamePackagingElementAction

import com.intellij.openapi.project.ProjectBundle; //导入方法依赖的package包/类
public RenamePackagingElementAction(ArtifactEditorEx artifactEditor) {
  super(ProjectBundle.message("action.name.rename.packaging.element"));
  registerCustomShortcutSet(CommonShortcuts.getRename(), artifactEditor.getLayoutTreeComponent().getTreePanel());
  myArtifactEditor = artifactEditor;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:RenamePackagingElementAction.java

示例11: AddNewModuleLibraryAction

import com.intellij.openapi.project.ProjectBundle; //导入方法依赖的package包/类
public AddNewModuleLibraryAction(final ClasspathPanel classpathPanel,
                                 int actionIndex,
                                 StructureConfigurableContext context) {
  super(classpathPanel, actionIndex, ProjectBundle.message("classpath.add.simple.module.library.action"), PlatformIcons.JAR_ICON);
  myContext = context;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:7,代码来源:AddNewModuleLibraryAction.java

示例12: getRootsGroupTitle

import com.intellij.openapi.project.ProjectBundle; //导入方法依赖的package包/类
@NotNull
@Override
public String getRootsGroupTitle() {
  return ProjectBundle.message("module.paths.test.sources.group");
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:JavaTestSourceRootEditHandler.java

示例13: getDescription

import com.intellij.openapi.project.ProjectBundle; //导入方法依赖的package包/类
@NotNull
@Override
public String getDescription() {
  return ProjectBundle.message("module.web.description");
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:WebModuleTypeBase.java

示例14: InlineArtifactAction

import com.intellij.openapi.project.ProjectBundle; //导入方法依赖的package包/类
public InlineArtifactAction(ArtifactEditorEx editor) {
  super(ProjectBundle.message("action.name.inline.artifact"));
  myEditor = editor;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:InlineArtifactAction.java

示例15: getNodeText

import com.intellij.openapi.project.ProjectBundle; //导入方法依赖的package包/类
@Override
public String getNodeText() {
  return ProjectBundle.message("library.sources.node");
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:SourcesOrderRootTypeUIFactory.java


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