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

Examples of org.eclipse.wb.internal.core.model.property.converter.ExpressionConverter


  private static GenericPropertyImpl createStringConverterProperty(WidgetInfo widget,
      String methodName,
      String title,
      PropertyEditor propertyEditor) {
    ExpressionConverter converter = StringConverter.INSTANCE;
    return createProperty(widget, methodName, "java.lang.String", title, converter, propertyEditor);
  }
View Full Code Here


  private static GenericPropertyImpl createBooleanProperty(WidgetInfo widget,
      String methodName,
      String title,
      boolean defaultValue) {
    ExpressionConverter converter = BooleanConverter.INSTANCE;
    PropertyEditor propertyEditor = BooleanPropertyEditor.INSTANCE;
    return createProperty(
        widget,
        methodName,
        "boolean",
View Full Code Here

  ////////////////////////////////////////////////////////////////////////////
  /**
   * Test for {@link MarginsConverter}.
   */
  public void test_Converter() throws Exception {
    ExpressionConverter converter = MarginsConverter.INSTANCE;
    {
      String expected = "(com.extjs.gxt.ui.client.util.Margins) null";
      String actual = converter.toJavaSource(null, null);
      assertEquals(expected, actual);
    }
    {
      String expected = "new com.extjs.gxt.ui.client.util.Margins(1, 2, 3, 4)";
      String actual = converter.toJavaSource(null, new Insets(1, 4, 3, 2));
      assertEquals(expected, actual);
    }
  }
View Full Code Here

TOP

Related Classes of org.eclipse.wb.internal.core.model.property.converter.ExpressionConverter

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.