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

Examples of org.eclipse.wb.internal.core.model.property.table.PropertyTable.dispose()


        eventSender.keyDown('\r');
      }
      // "first" was selected
      assertEditor(getStyleSource("setStyleName('first')"));
    } finally {
      propertyTable.dispose();
    }
  }

  public void test_withPropertyTable_useText() throws Exception {
    PropertyTable propertyTable = new PropertyTable(TEST_COMBO_SHELL, SWT.NONE);
View Full Code Here


      combo.setSelectionText("myStyle");
      // apply text
      eventSender.keyDown('\r');
      assertEditor(getStyleSource("setStyleName('myStyle')"));
    } finally {
      propertyTable.dispose();
    }
  }

  public void test_withPropertyTable_useEscape() throws Exception {
    PropertyTable propertyTable = new PropertyTable(TEST_COMBO_SHELL, SWT.NONE);
View Full Code Here

      {
        eventSender.keyDown(SWT.ESC);
        assertSame(null, propertyTable.forTests_getActiveEditor());
      }
    } finally {
      propertyTable.dispose();
    }
  }

  public void test_withPropertyTable_quickSearch() throws Exception {
    dontUseSharedGWTState();
View Full Code Here

      }
      // apply selection
      eventSender.keyDown('\r');
      assertEditor(getStyleSource("setStyleName('bb2')"));
    } finally {
      propertyTable.dispose();
    }
  }

  /**
   * There was bug with entering exact name label of item and pressing Enter.
View Full Code Here

      assertEquals(-1, comboTable.getSelectionIndex());
      // apply selection
      eventSender.keyDown('\r');
      assertEditor(getStyleSource("setStyleName('second')"));
    } finally {
      propertyTable.dispose();
    }
  }

  ////////////////////////////////////////////////////////////////////////////
  //
View Full Code Here

        }
      });
      // "second" was selected
      assertEditor(getStyleSource("setStyleName('second')"));
    } finally {
      propertyTable.dispose();
    }
  }

  @SuppressWarnings("unchecked")
  private static void openCssStyleEditorDialog(PropertyTable propertyTable,
View Full Code Here

          eventSender.keyDown(SWT.ESC);
          combo.setSelectionText("green");
          eventSender.keyDown(SWT.CR);
        }
      } finally {
        propertyTable.dispose();
      }
      assertEquals(getSource(".style {", "  color: green;", "}"), getFileContent(styleFile));
    }
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.