Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.Tree


     */
    private void createGTree() {
        gTree = new Group(sashForm, SWT.NONE);
        gTree.setLayout(new FillLayout());
        gTree.setText("Job Chain Configuration");
        tree = new Tree(gTree, SWT.BORDER);
        //tree.setMenu(new TreeMenu(tree, dom, this).getMenu());
        tree.addListener(SWT.MenuDetect, new Listener() {
            public void handleEvent(Event e) {
                e.doit = tree.getSelectionCount() > 0;
            }
View Full Code Here


   */
  private void createGTree() {
    gTree = new Group(sashForm, SWT.NONE);
    gTree.setLayout(new FillLayout());
    gTree.setText("Scheduler Elements");
    tree = new Tree(gTree, SWT.BORDER);
    tree.setMenu(new TreeMenu(tree, dom, this).getMenu());
    tree.addListener(SWT.MenuDetect, new Listener() {
      public void handleEvent(Event e) {
        e.doit = tree.getSelectionCount() > 0;
      }
View Full Code Here

   */
  private void createGroup() {
    group = new Group(sashForm, SWT.V_SCROLL | SWT.H_SCROLL);
    group.setLayout(new FillLayout()); // Generated
    group.setText("Actions Elements"); // Generated
    tree = new Tree(group, SWT.NONE);
    //tree.addListener(SWT.Selection, new Listener() {
    tree.addListener(SWT.Selection, new Listener() {
      public void handleEvent(Event e) {             
        if (tree.getSelectionCount() > 0) {
          if (selection == null)
View Full Code Here

      jobnamenGroup.setText("Jobs");
      final GridData gridData_3 = new GridData(GridData.FILL, GridData.FILL, true, true);
      gridData_3.heightHint = 154;
      jobnamenGroup.setLayoutData(gridData_3);
      jobnamenGroup.getBounds().height=100;
      tree = new Tree(jobnamenGroup, SWT.FULL_SELECTION | SWT.BORDER);
      tree.setHeaderVisible(true);
      tree.getBounds().height = 100;
      tree.addSelectionListener(new SelectionAdapter() {
        public void widgetSelected(final SelectionEvent e) {             
          txtTitle.setText(tree.getSelection()[0].getText(1));
View Full Code Here

    SchedulerForm f = (SchedulerForm)(sos.scheduler.editor.app.MainWindow.getContainer().getCurrentEditor());
   
    if(f == null)
      return;
   
    Tree tree = f.getTree();
    if(tree != null && tree.getSelectionCount() > 0) {
      TreeItem item = f.getTree().getSelection()[0];
            if(item.getParentItem() != null && (item.getParentItem().getText().equalsIgnoreCase("Holidays") ||
                (item.getParentItem().getData("key") != null && item.getParentItem().getData("key").equals("holidays")))) {
      //if(_runtime.getName().equals("config")){
        if(_runtime.getChild("holidays") != null)
View Full Code Here

     */
    private void createGroup() {
        group = new Group(sashForm, SWT.V_SCROLL | SWT.H_SCROLL);
        group.setLayout(new FillLayout()); // Generated
        group.setText("Documentation Elements"); // Generated
        docTree = new Tree(group, SWT.NONE);
        docTree.addListener(SWT.Selection, new Listener() {
            public void handleEvent(Event e) {
                if (docTree.getSelectionCount() > 0) {
                    if (selection == null)
                        selection = docTree.getItem(0);
View Full Code Here

  private void createTree() {

    String mask = "";
    try {

      tree = new Tree(schedulerGroup, SWT.BORDER);

      tree.addSelectionListener(new SelectionAdapter() {
        public void widgetSelected(final SelectionEvent e) {

          if (tree.getSelectionCount() > 0 && !tree.getSelection()[0].getText().equals(sType)) {
View Full Code Here

        setControl(container);
        container.setLayout(new GridLayout(1, false));

        new Label(container, SWT.NONE).setText("Select Template:");

        tree = new Tree(container, SWT.BORDER | SWT.FULL_SELECTION);
        GridData gd_table = new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1);
        gd_table.heightHint = 100;
        tree.setLayoutData(gd_table);

        viewer = new TreeViewer(tree);
View Full Code Here

        lblUnresolvedResources.setBounds(0, 0, 59, 14);
        lblUnresolvedResources.setText("Unresolved Requirements:");

        createUnresolvedViewToolBar(cmpUnresolved);

        Tree treeUnresolved = new Tree(cmpUnresolved, SWT.BORDER | SWT.FULL_SELECTION | SWT.H_SCROLL);
        GridData gd_tblUnresolved = new GridData(SWT.FILL, SWT.FILL, true, true, 2, 1);
        gd_tblUnresolved.heightHint = 80;
        gd_tblUnresolved.widthHint = 400;
        treeUnresolved.setLayoutData(gd_tblUnresolved);

        unresolvedViewer = new TreeViewer(treeUnresolved);
        unresolvedViewer.setContentProvider(new UnresolvedRequirementsContentProvider());
        unresolvedViewer.setLabelProvider(new RequirementWithResourceLabelProvider());
        setFailureViewMode();
View Full Code Here

        Label lblReason = new Label(cmpReason, SWT.NONE);
        lblReason.setText("Reasons");

        cmpReason.setLayout(new GridLayout(1, false));

        Tree tblReasons = new Tree(cmpReason, SWT.BORDER | SWT.FULL_SELECTION | SWT.H_SCROLL);
        tblReasons.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));

        reasonsViewer = new TreeViewer(tblReasons);
        reasonsViewer.setContentProvider(reasonsContentProvider);
        reasonsViewer.setLabelProvider(new ResolutionTreeLabelProvider());
View Full Code Here

TOP

Related Classes of org.eclipse.swt.widgets.Tree

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.