本文整理汇总了Java中com.intellij.uiDesigner.UIDesignerBundle.message方法的典型用法代码示例。如果您正苦于以下问题:Java UIDesignerBundle.message方法的具体用法?Java UIDesignerBundle.message怎么用?Java UIDesignerBundle.message使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.intellij.uiDesigner.UIDesignerBundle
的用法示例。
在下文中一共展示了UIDesignerBundle.message方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getValue
import com.intellij.uiDesigner.UIDesignerBundle; //导入方法依赖的package包/类
public T getValue() throws Exception {
final Matcher matcher = myPattern.matcher(myTf.getText());
if (!matcher.matches()) {
throw new Exception("Incorrect dimension format");
}
Class[] paramTypes = new Class[myMinValues.length];
Integer[] params = new Integer[myMinValues.length];
for(int i=0; i<myMinValues.length; i++) {
paramTypes [i] = int.class;
final int value = Integer.parseInt(matcher.group(i + 1));
if (value < myMinValues [i]) {
throw new RuntimeException(UIDesignerBundle.message("error.value.should.not.be.less", myMinValues [i]));
}
params [i] = value;
}
return myValueClass.getConstructor(paramTypes).newInstance(params);
}
示例2: getColumnName
import com.intellij.uiDesigner.UIDesignerBundle; //导入方法依赖的package包/类
@Override
public String getColumnName(int column) {
switch (column) {
case 0:
return UIDesignerBundle.message("client.properties.name");
default:
return UIDesignerBundle.message("client.properties.class");
}
}
示例3: showInvalidInput
import com.intellij.uiDesigner.UIDesignerBundle; //导入方法依赖的package包/类
private static void showInvalidInput(final Exception exc) {
final Throwable cause = exc.getCause();
String message;
if(cause != null){
message = cause.getMessage();
}
else{
message = exc.getMessage();
}
if (message == null || message.length() == 0) {
message = UIDesignerBundle.message("error.no.message");
}
Messages.showMessageDialog(UIDesignerBundle.message("error.setting.value", message),
UIDesignerBundle.message("title.invalid.input"), Messages.getErrorIcon());
}
示例4: getCellResizeTooltip
import com.intellij.uiDesigner.UIDesignerBundle; //导入方法依赖的package包/类
@Override @Nullable
public String getCellResizeTooltip(RadContainer container, boolean isRow, int cell, int newSize) {
final String size = getUpdatedSize(container, isRow, cell, newSize).toString();
return isRow
? UIDesignerBundle.message("tooltip.resize.row", cell+getCellIndexBase(), size)
: UIDesignerBundle.message("tooltip.resize.column", cell+getCellIndexBase(), size);
}
示例5: SetLocaleAction
import com.intellij.uiDesigner.UIDesignerBundle; //导入方法依赖的package包/类
public SetLocaleAction(final GuiEditor editor, final Locale locale, final boolean updateText) {
super(locale.getDisplayName().length() == 0
? UIDesignerBundle.message("choose.locale.default")
: locale.getDisplayName());
myUpdateText = updateText;
myEditor = editor;
myLocale = locale;
}
示例6: getName
import com.intellij.uiDesigner.UIDesignerBundle; //导入方法依赖的package包/类
@NotNull public String getName() {
if (mySpecialGroup) {
return UIDesignerBundle.message("palette.special.group");
}
return myName;
}
示例7: getCommandName
import com.intellij.uiDesigner.UIDesignerBundle; //导入方法依赖的package包/类
@Override @Nullable
protected String getCommandName() {
return UIDesignerBundle.message("command.duplicate");
}
示例8: GroupRowsColumnsAction
import com.intellij.uiDesigner.UIDesignerBundle; //导入方法依赖的package包/类
public GroupRowsColumnsAction() {
super(UIDesignerBundle.message("action.group.columns"), null, UIDesignerBundle.message("action.group.rows"), null);
}
示例9: gettext
import com.intellij.uiDesigner.UIDesignerBundle; //导入方法依赖的package包/类
private static String gettext(PsiField field, PsiType uiComponentType) {
return UIDesignerBundle.message("action.change.field.type",
field.getName(), field.getType().getCanonicalText(), uiComponentType.getCanonicalText());
}
示例10: CreateClassToBindFix
import com.intellij.uiDesigner.UIDesignerBundle; //导入方法依赖的package包/类
public CreateClassToBindFix(final GuiEditor editor, @NotNull final String className) {
super(editor, UIDesignerBundle.message("action.create.class", className), null);
myClassName = className;
}
示例11: getPlaceholderText
import com.intellij.uiDesigner.UIDesignerBundle; //导入方法依赖的package包/类
public String getPlaceholderText(@NotNull ASTNode node) {
return UIDesignerBundle.message("uidesigner.generated.code.folding.placeholder.text");
}
示例12: PropertyInspector
import com.intellij.uiDesigner.UIDesignerBundle; //导入方法依赖的package包/类
public PropertyInspector(Project project, @NotNull final ComponentTree componentTree) {
super(new CardLayout());
myInspectorTable = new PropertyInspectorTable(project, componentTree);
myComponentTree = componentTree;
// Card with property inspector
final JPanel inspectorCard = new JPanel(new GridBagLayout());
final JScrollPane inspectorScrollPane = ScrollPaneFactory.createScrollPane(myInspectorTable);
inspectorScrollPane.setBorder(IdeBorderFactory.createBorder(SideBorder.BOTTOM));
inspectorCard.add(inspectorScrollPane,
new GridBagConstraints(0, 0, 0, 1, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0)
);
final JCheckBox chkShowExpertProperties = new JCheckBox(UIDesignerBundle.message("chk.show.expert.properties"));
inspectorCard.add(
chkShowExpertProperties,
new GridBagConstraints(0, 1, 1, 1, 1, 0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0)
);
chkShowExpertProperties.addActionListener(
new ActionListener() {
public void actionPerformed(final ActionEvent e) {
myInspectorTable.setShowExpertProperties(chkShowExpertProperties.isSelected());
}
}
);
add(inspectorCard, INSPECTOR_CARD);
// Empty card
final MultiLineLabel label = new MultiLineLabel(UIDesignerBundle.message("label.select.single.component.to.edit.its.properties")){
public void updateUI() {
super.updateUI();
setBackground(myInspectorTable.getBackground());
}
};
label.setOpaque(true);
label.setHorizontalAlignment(SwingConstants.CENTER);
add(label, EMPTY_CARD);
add(myCustomPropertiesScrollPane, CUSTOM_CARD);
myComponentSelectionListener = new MyComponentSelectionListener();
synchWithTree(false);
// Install light bulb
myQuickFixManager = new QuickFixManagerImpl(null, myInspectorTable, inspectorScrollPane.getViewport());
myCustomPropertiesChangeListener = new ChangeListener() {
public void stateChanged(ChangeEvent e) {
if (myPropertiesPanelContainer != null) {
myPropertiesPanelContainer.revalidate();
}
if (myEditor.ensureEditable()) {
myEditor.refreshAndSave(true);
}
}
};
}
示例13: AddToGroupQuickFix
import com.intellij.uiDesigner.UIDesignerBundle; //导入方法依赖的package包/类
public AddToGroupQuickFix(final GuiEditor editor, final RadComponent component, final String groupName) {
super(editor, UIDesignerBundle.message("inspection.no.button.group.quickfix.add", groupName), component);
myGroupName = groupName;
}
示例14: getName
import com.intellij.uiDesigner.UIDesignerBundle; //导入方法依赖的package包/类
@NotNull
public String getName(){
return UIDesignerBundle.message("title.gui.designer");
}
示例15: MyQuickFix
import com.intellij.uiDesigner.UIDesignerBundle; //导入方法依赖的package包/类
public MyQuickFix(final GuiEditor editor, RadComponent component, RadComponent label) {
super(editor, UIDesignerBundle.message("inspection.no.label.for.quickfix",
label.getComponentTitle()), component);
myLabel = label;
}