Package org.eclipse.wb.tests.designer.core

Examples of org.eclipse.wb.tests.designer.core.TestBundle.addExtension()


  public void test_DeviceManager_categoriesAndDevices() throws Exception {
    TestBundle testBundle = new TestBundle();
    try {
      testBundle.setFile("icons/devA.png", TestUtils.createImagePNG(1, 1));
      testBundle.setFile("icons/devB.png", TestUtils.createImagePNG(2, 2));
      testBundle.addExtension(DEVICES_ID, new String[]{
          "<category id='catA' name='Category A'>",
          "  <device id='devA' name='Device A' image='icons/devA.png'>",
          "    <display x='1' y='2' width='10' height='20'/>",
          "  </device>",
          "  <device id='devB' name='Device B' image='icons/devB.png'>",
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.