Package org.eclipse.wb.swt.layout.grouplayout

Examples of org.eclipse.wb.swt.layout.grouplayout.GroupLayout$Group


    tree.setBackground(tree.getShell().getDisplay().getSystemColor(SWT.COLOR_WIDGET_BACKGROUND));

    scrolledComposite = new ScrolledComposite(this, SWT.BORDER | SWT.V_SCROLL);
    scrolledComposite.setExpandHorizontal(true);
    scrolledComposite.setExpandVertical(true);
    final GroupLayout groupLayout = new GroupLayout(this);
    groupLayout.setHorizontalGroup(
      groupLayout.createParallelGroup(GroupLayout.LEADING)
        .add(groupLayout.createSequentialGroup()
          .add(tree, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
          .addPreferredGap(LayoutStyle.RELATED)
          .add(scrolledComposite, GroupLayout.DEFAULT_SIZE, 359, Short.MAX_VALUE))
    );
    groupLayout.setVerticalGroup(
      groupLayout.createParallelGroup(GroupLayout.LEADING)
        .add(tree, GroupLayout.DEFAULT_SIZE, 300, Short.MAX_VALUE)
        .add(scrolledComposite, GroupLayout.DEFAULT_SIZE, 300, Short.MAX_VALUE)
    );
    setLayout(groupLayout);
   
View Full Code Here


      });

    }

    // generate the anchors for the windows
    GroupLayout gl_composite = new GroupLayout(this);

    SequentialGroup ss = gl_composite.createSequentialGroup();
    ParallelGroup p2 = gl_composite
        .createParallelGroup(GroupLayout.LEADING);

    if ((layout & TOPIC) != 0) {
      p2.add(topicBox, GroupLayout.DEFAULT_SIZE, 496, Short.MAX_VALUE);
    }
    if ((layout & IO) != 0) {
      p2.add(output, GroupLayout.DEFAULT_SIZE, 496, Short.MAX_VALUE);
      p2.add(input, GroupLayout.DEFAULT_SIZE, 496, Short.MAX_VALUE);
    }
    ss.add(p2);
    if ((layout & WHO) != 0) {
      ss.add(who, 150, 150, 150);
    }
    gl_composite.setHorizontalGroup(gl_composite.createParallelGroup(
        GroupLayout.LEADING).add(ss));

    ParallelGroup p = gl_composite.createParallelGroup(GroupLayout.LEADING);
    SequentialGroup s = gl_composite.createSequentialGroup();

    if ((layout & TOPIC) != 0) {
      s.add(topicBox, GroupLayout.DEFAULT_SIZE, 15, 18);
    }
    if ((layout & IO) != 0) {
      if ((layout & TOPIC) == 0) {
        s.add(output, GroupLayout.DEFAULT_SIZE, 323, Short.MAX_VALUE);
      } else {
        s.add(output, GroupLayout.DEFAULT_SIZE, 308, Short.MAX_VALUE);
      }
      s.add(input);
    }
    p.add(s);
    if ((layout & WHO) != 0) {
      p.add(who, GroupLayout.DEFAULT_SIZE, 344, Short.MAX_VALUE);
    }
    gl_composite.setVerticalGroup(p);

    this.setLayout(gl_composite);

    // initial tab tool tip text setting
    userCount = cChannel.getChannel() != null ? cChannel.getChannel()
View Full Code Here

      }
    });
    mntmInfo.setText("About");

    Composite composite = new Composite(shell, SWT.NONE);
    GroupLayout gl_shell = new GroupLayout(shell);
    gl_shell.setHorizontalGroup(gl_shell.createParallelGroup(
        GroupLayout.TRAILING).add(GroupLayout.LEADING, composite,
            GroupLayout.DEFAULT_SIZE, 1198, Short.MAX_VALUE));
    gl_shell.setVerticalGroup(gl_shell.createParallelGroup(
        GroupLayout.LEADING).add(
            gl_shell.createSequentialGroup()
            .add(composite, GroupLayout.PREFERRED_SIZE, 752,
                GroupLayout.PREFERRED_SIZE)
                .addContainerGap(36, Short.MAX_VALUE)));
    composite.setLayout(new FormLayout());
View Full Code Here

            }
        });
        mntmInfo.setText("About");

        Composite composite = new Composite(shell, SWT.NONE);
        GroupLayout gl_shell = new GroupLayout(shell);
        gl_shell.setHorizontalGroup(gl_shell.createParallelGroup(
                GroupLayout.TRAILING).add(GroupLayout.LEADING, composite,
                GroupLayout.DEFAULT_SIZE, 1198, Short.MAX_VALUE));
        gl_shell.setVerticalGroup(gl_shell.createParallelGroup(
                GroupLayout.LEADING).add(
                gl_shell.createSequentialGroup()
                        .add(composite, GroupLayout.PREFERRED_SIZE, 352,
                                GroupLayout.PREFERRED_SIZE)
                        .addContainerGap(36, Short.MAX_VALUE)));
        composite.setLayout(null);
View Full Code Here

      }
    });
    mntmInfo.setText("About");

    Composite composite = new Composite(shell, SWT.NONE);
    GroupLayout gl_shell = new GroupLayout(shell);
    gl_shell.setHorizontalGroup(
        gl_shell.createParallelGroup(GroupLayout.TRAILING)
            .add(GroupLayout.LEADING, gl_shell.createSequentialGroup()
                .add(composite, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                .addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
    );
    gl_shell.setVerticalGroup(
        gl_shell.createParallelGroup(GroupLayout.LEADING)
            .add(gl_shell.createSequentialGroup()
                .add(composite, GroupLayout.PREFERRED_SIZE, 514, GroupLayout.PREFERRED_SIZE)
                .addContainerGap(26, Short.MAX_VALUE))
    );
    composite.setLayout(null);
View Full Code Here

    }

    Variable v = ds.findVariable("time_offset");
    v.addAttribute(new Attribute( "units", "seconds since "+dfo.toDateTimeString(start)));

    Group root = ds.getRootGroup();
    root.addAttribute(new Attribute( "Convention", "Suomi-Station-CDM"));   
    ds.finish();
  }
View Full Code Here

  public void testEosMetadata() {
    //NetcdfFile ncfile = TestH5.open("c:/data/hdf5/HIRDLS/HIRDLS2_v0.3.1-aIrix-c3_2003d106.h5");
    NetcdfFile ncfile = TestH5.open(testDir +"HIRDLS2-Aura73p_b029_2000d275.he5");

    Group root = ncfile.getRootGroup();
    Group g = root.findGroup("HDFEOS INFORMATION");
    Variable dset = g.findVariable("StructMetadata.0");
    assert(null != dset );
    assert(dset.getDataType() == DataType.CHAR);

    // read entire array
    Array A;
    try {
      A = dset.read();
    }
    catch (IOException e) {
      System.err.println("ERROR reading file");
      assert(false);
      return;
    }
    assert(A.getRank() == 1);
    assert (A instanceof ArrayChar);

    ArrayChar ca = (ArrayChar) A;
    String sval = ca.getString();
    System.out.println(dset.getFullName());
    System.out.println(" Length = "+sval.length());
    System.out.println(" Value = "+sval);

    ////////////////
    dset = g.findVariable("coremetadata.0");
    assert(null != dset );
    assert(dset.getDataType() == DataType.CHAR);

    // read entire array
    try {
View Full Code Here

    public int doAct(String filename) throws IOException {
      NetcdfFile ncfile = null;

      try {
        ncfile = NetcdfFile.open(filename);
        Group root = ncfile.getRootGroup();
        Group g = root.findGroup("HDFEOS INFORMATION");
        if (g == null) g = ncfile.getRootGroup();

        Variable dset = g.findVariable("StructMetadata.0");
        if (dset != null) {
          System.out.println("EOS file=" + filename);
          return 1;
        }
View Full Code Here

    public void setSearchPath(final String... groupNames) {
        final Group[] groups = new Group[groupNames.length];
        int count = 0;
        for (final String name : groupNames) {
            if (name != null) {
                final Group group = file.findGroup(name);
                if (group == null) {
                    continue; // Group not found - do not increment the counter.
                }
                groups[count] = group;
            }
View Full Code Here

     */
    @Override
    public String[] getSearchPath() {
        final String[] path = new String[groups.length];
        for (int i=0; i<path.length; i++) {
            final Group group = groups[i];
            if (group != null) {
                path[i] = group.getShortName();
            }
        }
        return path;
    }
View Full Code Here

TOP

Related Classes of org.eclipse.wb.swt.layout.grouplayout.GroupLayout$Group

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.