本文整理汇总了Java中com.intellij.ide.IdeBundle.message方法的典型用法代码示例。如果您正苦于以下问题:Java IdeBundle.message方法的具体用法?Java IdeBundle.message怎么用?Java IdeBundle.message使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.intellij.ide.IdeBundle
的用法示例。
在下文中一共展示了IdeBundle.message方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: userConfirm
import com.intellij.ide.IdeBundle; //导入方法依赖的package包/类
private boolean userConfirm(IdeaPluginDescriptor[] selection) {
String message;
if (selection.length == 1) {
if (selection[0] instanceof IdeaPluginDescriptorImpl) {
message = IdeBundle.message("prompt.update.plugin", selection[0].getName());
}
else {
message = IdeBundle.message("prompt.download.and.install.plugin", selection[0].getName());
}
}
else {
message = IdeBundle.message("prompt.install.several.plugins", selection.length);
}
return Messages.showYesNoDialog(myHost.getMainPanel(), message, IdeBundle.message("action.download.and.install.plugin"), Messages.getQuestionIcon()) == Messages.YES;
}
示例2: getPresentation
import com.intellij.ide.IdeBundle; //导入方法依赖的package包/类
@NotNull
@Override
public ActionPresentation getPresentation() {
return new ActionPresentationData(IdeBundle.message("action.structureview.show.inherited"),
null,
AllIcons.Hierarchy.Supertypes);
}
示例3: getPresentation
import com.intellij.ide.IdeBundle; //导入方法依赖的package包/类
@Override
@NotNull
public ActionPresentation getPresentation() {
return new ActionPresentationData(IdeBundle.message("action.sort.alphabetically"),
IdeBundle.message("action.sort.alphabetically"),
AllIcons.ObjectBrowser.Sorted);
}
示例4: getAdText
import com.intellij.ide.IdeBundle; //导入方法依赖的package包/类
@Nullable
public String getAdText(CompletionResult result) {
if (result.myCompletionBase == null) return null;
if (result.myCompletionBase.length() == result.myFieldText.length()) return null;
String strokeText = KeymapUtil.getFirstKeyboardShortcutText(ActionManager.getInstance().getAction(
"EditorChooseLookupItemReplace"));
return IdeBundle.message("file.chooser.completion.ad.text", strokeText);
}
示例5: updateImpl
import com.intellij.ide.IdeBundle; //导入方法依赖的package包/类
@Override
protected void updateImpl(PresentationData data) {
super.updateImpl(data);
String newName;
if(myBuilder.getTodoTreeStructure().isPackagesShown()){
newName=getValue().getName();
}else{
newName=mySingleFileMode ? getValue().getName() : getValue().getVirtualFile().getPresentableUrl();
}
int nameEndOffset=newName.length();
int todoItemCount;
try {
todoItemCount = myBuilder.getTodoTreeStructure().getTodoItemCount(getValue());
}
catch (IndexNotReadyException e) {
return;
}
if(mySingleFileMode){
if(todoItemCount==0){
newName = IdeBundle.message("node.todo.no.items.found", newName);
} else {
newName = IdeBundle.message("node.todo.found.items", newName, todoItemCount);
}
}else{
newName = IdeBundle.message("node.todo.items", newName, todoItemCount);
}
myHighlightedRegions.clear();
TextAttributes textAttributes=new TextAttributes();
textAttributes.setForegroundColor(myColor);
myHighlightedRegions.add(new HighlightedRegion(0,nameEndOffset,textAttributes));
EditorColorsScheme colorsScheme=UsageTreeColorsScheme.getInstance().getScheme();
myHighlightedRegions.add(
new HighlightedRegion(nameEndOffset,newName.length(),colorsScheme.getAttributes(UsageTreeColors.NUMBER_OF_USAGES))
);
}
示例6: openFile
import com.intellij.ide.IdeBundle; //导入方法依赖的package包/类
public static void openFile(VirtualFile file, @NotNull Project project) {
FileEditorProvider[] providers = FileEditorProviderManager.getInstance().getProviders(project, file);
if (providers.length == 0) {
String message = IdeBundle.message("error.files.of.this.type.cannot.be.opened", ApplicationNamesInfo.getInstance().getProductName());
Messages.showErrorDialog(project, message, IdeBundle.message("title.cannot.open.file"));
return;
}
OpenFileDescriptor descriptor = new OpenFileDescriptor(project, file);
FileEditorManager.getInstance(project).openTextEditor(descriptor, true);
}
示例7: createCenterPanel
import com.intellij.ide.IdeBundle; //导入方法依赖的package包/类
@Override
protected JComponent createCenterPanel() {
JPanel panel = new JPanel(new GridBagLayout());
JLabel nameLabel = new JLabel(IdeBundle.message("label.todo.filter.name"));
panel.add(nameLabel,
new GridBagConstraints(0, 0, 1, 1, 0, 0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 5, 10), 0, 0));
panel.add(myNameField,
new GridBagConstraints(1, 0, 1, 1, 1, 0, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 5, 0), 0, 0));
JPanel patternsPanel = new JPanel(new GridBagLayout());
Border border = IdeBorderFactory.createTitledBorder(IdeBundle.message("group.todo.filter.patterns"), false);
patternsPanel.setBorder(border);
myTable.getSelectionModel().setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
JScrollPane scrollPane = ScrollPaneFactory.createScrollPane(myTable);
scrollPane.setPreferredSize(new Dimension(550, myTable.getRowHeight() * 10));
patternsPanel.add(scrollPane,
new GridBagConstraints(0, 0, 1, 1, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
// Column "Available"
TableUtil.setupCheckboxColumn(myTable, 0);
//
panel.add(patternsPanel,
new GridBagConstraints(0, 1, 2, 1, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
return panel;
}
示例8: getDescription
import com.intellij.ide.IdeBundle; //导入方法依赖的package包/类
@Override
@NotNull
public String getDescription() {
return IdeBundle.message("filetype.description.xml");
}
开发者ID:AlexanderBartash,项目名称:hybris-integration-intellij-idea-plugin,代码行数:6,代码来源:HybrisXmlFileType.java
示例9: IdeaLookAndFeelInfo
import com.intellij.ide.IdeBundle; //导入方法依赖的package包/类
public IdeaLookAndFeelInfo(){
super(IdeBundle.message("idea.default.look.and.feel"), CLASS_NAME);
}
示例10: cachePreview
import com.intellij.ide.IdeBundle; //导入方法依赖的package包/类
@Override
public void cachePreview(DataContext dataContext) {
myCachedPreview = IdeBundle.message("macro.prompt.preview");
}
示例11: NewProjectWizard
import com.intellij.ide.IdeBundle; //导入方法依赖的package包/类
public NewProjectWizard(Project project, Component dialogParent, ModulesProvider modulesProvider) {
super(IdeBundle.message("title.add.module"), project, dialogParent);
init(modulesProvider);
}
示例12: getDescription
import com.intellij.ide.IdeBundle; //导入方法依赖的package包/类
@Override
public String getDescription() {
return IdeBundle.message("macro.module.file.directory");
}
示例13: BaseOnThisMethodAction
import com.intellij.ide.IdeBundle; //导入方法依赖的package包/类
public BaseOnThisMethodAction() {
super(IdeBundle.message("action.base.on.this.method"), IdeActions.ACTION_CALL_HIERARCHY, CALL_HIERARCHY_BROWSER_DATA_KEY);
}
示例14: getDescription
import com.intellij.ide.IdeBundle; //导入方法依赖的package包/类
@Override
@NotNull
public String getDescription() {
return IdeBundle.message("filetype.description.dtd");
}
示例15: getPromptText
import com.intellij.ide.IdeBundle; //导入方法依赖的package包/类
@Override
public String getPromptText() {
return IdeBundle.message("prompt.gotoaction.enter.action");
}