Package org.eclipse.wb.internal.core.model.property.editor

Examples of org.eclipse.wb.internal.core.model.property.editor.PropertyEditor


  public void test_withPropertyTable_useEscape() throws Exception {
    PropertyTable propertyTable = new PropertyTable(TEST_COMBO_SHELL, SWT.NONE);
    try {
      Property property = getStyleProperty("setStyleName('second')");
      PropertyEditor propertyEditor = property.getEditor();
      // activate
      propertyTable.setInput(new Property[]{property});
      propertyTable.setActiveProperty(property);
      propertyTable.activateEditor(property, null);
      CComboBox combo = (CComboBox) getFieldValue(propertyEditor, "m_combo");
View Full Code Here


    dontUseSharedGWTState();
    setFileContent("war/Module.css", getSource(".aaa {}", ".bb1 {}", ".bb2 {}", ".ccc {}"));
    PropertyTable propertyTable = new PropertyTable(TEST_COMBO_SHELL, SWT.NONE);
    try {
      Property property = getStyleProperty(null);
      PropertyEditor propertyEditor = property.getEditor();
      // activate
      propertyTable.setInput(new Property[]{property});
      propertyTable.setActiveProperty(property);
      // send "b", activate editor
      new EventSender(propertyTable).keyDown(0, 'b');
View Full Code Here

  public void test_withPropertyTable_quickSearchExact() throws Exception {
    dontUseSharedGWTState();
    PropertyTable propertyTable = new PropertyTable(TEST_COMBO_SHELL, SWT.NONE);
    try {
      Property property = getStyleProperty(null);
      PropertyEditor propertyEditor = property.getEditor();
      // activate
      propertyTable.setInput(new Property[]{property});
      propertyTable.setActiveProperty(property);
      // send "s", activate editor
      new EventSender(propertyTable).keyDown(0, 's');
View Full Code Here

  ////////////////////////////////////////////////////////////////////////////
  public void test_styleDialog() throws Exception {
    final PropertyTable propertyTable = new PropertyTable(TEST_COMBO_SHELL, SWT.NONE);
    try {
      final Property property = getStyleProperty(null);
      final PropertyEditor propertyEditor = property.getEditor();
      // activate
      propertyTable.setInput(new Property[]{property});
      propertyTable.setActiveProperty(property);
      propertyTable.activateEditor(property, null);
      // open dialog and use "Cancel"
View Full Code Here

    assertEquals(getSource(".style {", "  color: cornflowerblue;", "}"), getFileContent(styleFile));
    // animate Text widget
    {
      PropertyTable propertyTable = new PropertyTable(TEST_COMBO_SHELL, SWT.NONE);
      try {
        PropertyEditor propertyEditor = property.getEditor();
        propertyTable.setInput(new Property[]{property});
        propertyTable.setActiveProperty(property);
        // press "b", activate editor
        new EventSender(propertyTable).keyDown(0, 'b');
        // set text and press Enter
View Full Code Here

  /**
   * Fill combo with items.
   */
  protected static void addComboPropertyItems(Property property) {
    PropertyEditor propertyEditor = property.getEditor();
    String signature =
        "addItems("
            + "org.eclipse.wb.internal.core.model.property.Property,"
            + "org.eclipse.wb.core.controls.CComboBox)";
    TEST_COMBO.removeAll();
View Full Code Here

  /**
   * Sets selection which corresponds to the value of {@link Property}.
   */
  protected static void setComboPropertySelection(Property property) {
    PropertyEditor propertyEditor = property.getEditor();
    String signature =
        "selectItem("
            + "org.eclipse.wb.internal.core.model.property.Property,"
            + "org.eclipse.wb.core.controls.CComboBox)";
    ReflectionUtils.invokeMethodEx(propertyEditor, signature, property, TEST_COMBO);
View Full Code Here

  /**
   * Simulates user selection of item with given index, updates {@link Property}.
   */
  protected static void setComboPropertyValue(Property property, String text) {
    TEST_COMBO.setEditText(text);
    PropertyEditor propertyEditor = property.getEditor();
    String signature =
        "toPropertyEx("
            + "org.eclipse.wb.internal.core.model.property.Property,"
            + "org.eclipse.wb.core.controls.CComboBox)";
    ReflectionUtils.invokeMethodEx(propertyEditor, signature, property, TEST_COMBO);
View Full Code Here

TOP

Related Classes of org.eclipse.wb.internal.core.model.property.editor.PropertyEditor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.