本文整理汇总了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()};
}
示例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);
}
示例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);
}
}
示例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);
}
}
示例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();
}
}
}
示例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"));
}
示例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();
}
示例8: getLibraryTableEditorTitle
import com.intellij.openapi.project.ProjectBundle; //导入方法依赖的package包/类
@Override
public String getLibraryTableEditorTitle() {
return ProjectBundle.message("library.configure.global.title");
}
示例9: toString
import com.intellij.openapi.project.ProjectBundle; //导入方法依赖的package包/类
public String toString() {
return ProjectBundle.message("jdk.combo.box.invalid.item", mySdkName);
}
示例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;
}
示例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;
}
示例12: getRootsGroupTitle
import com.intellij.openapi.project.ProjectBundle; //导入方法依赖的package包/类
@NotNull
@Override
public String getRootsGroupTitle() {
return ProjectBundle.message("module.paths.test.sources.group");
}
示例13: getDescription
import com.intellij.openapi.project.ProjectBundle; //导入方法依赖的package包/类
@NotNull
@Override
public String getDescription() {
return ProjectBundle.message("module.web.description");
}
示例14: InlineArtifactAction
import com.intellij.openapi.project.ProjectBundle; //导入方法依赖的package包/类
public InlineArtifactAction(ArtifactEditorEx editor) {
super(ProjectBundle.message("action.name.inline.artifact"));
myEditor = editor;
}
示例15: getNodeText
import com.intellij.openapi.project.ProjectBundle; //导入方法依赖的package包/类
@Override
public String getNodeText() {
return ProjectBundle.message("library.sources.node");
}