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


Java UIDesignerBundle.message方法代码示例

本文整理汇总了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);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:20,代码来源:IntRegexEditor.java

示例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");
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:10,代码来源:ConfigureClientPropertiesDialog.java

示例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());
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:16,代码来源:PropertyInspectorTable.java

示例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);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:8,代码来源:RadFormLayoutManager.java

示例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;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:9,代码来源:ChooseLocaleAction.java

示例6: getName

import com.intellij.uiDesigner.UIDesignerBundle; //导入方法依赖的package包/类
@NotNull public String getName() {
  if (mySpecialGroup) {
    return UIDesignerBundle.message("palette.special.group");
  }
  return myName;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:7,代码来源:GroupItem.java

示例7: getCommandName

import com.intellij.uiDesigner.UIDesignerBundle; //导入方法依赖的package包/类
@Override @Nullable
protected String getCommandName() {
  return UIDesignerBundle.message("command.duplicate");
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:DuplicateComponentsAction.java

示例8: GroupRowsColumnsAction

import com.intellij.uiDesigner.UIDesignerBundle; //导入方法依赖的package包/类
public GroupRowsColumnsAction() {
  super(UIDesignerBundle.message("action.group.columns"), null, UIDesignerBundle.message("action.group.rows"), null);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:GroupRowsColumnsAction.java

示例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());
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:ChangeFieldTypeFix.java

示例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;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:CreateClassToBindFix.java

示例11: getPlaceholderText

import com.intellij.uiDesigner.UIDesignerBundle; //导入方法依赖的package包/类
public String getPlaceholderText(@NotNull ASTNode node) {
  return UIDesignerBundle.message("uidesigner.generated.code.folding.placeholder.text");
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:GeneratedCodeFoldingBuilder.java

示例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);
      }
    }
  };
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:57,代码来源:PropertyInspector.java

示例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;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:NoButtonGroupInspection.java

示例14: getName

import com.intellij.uiDesigner.UIDesignerBundle; //导入方法依赖的package包/类
@NotNull
public String getName(){
  return UIDesignerBundle.message("title.gui.designer");
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:UIFormEditor.java

示例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;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:NoLabelForInspection.java


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