Examples of TableItem


Examples of org.eclipse.swt.widgets.TableItem

        if (frame == null) {
            return;
        }
        for (int i = 0; i < frame[0].length; ++i) {
            if (frame[0][i] != null) {
                new TableItem(lvtTable, SWT.NONE).setText(frame[0][i]);
            }
        }
        for (int i = 0; i < frame[1].length; ++i) {
            if (frame[1][i] != null) {
                new TableItem(stackTable, SWT.NONE).setText(frame[1][i]);
            }
        }

        lvtTable.getColumn(0).pack();
        lvtTable.getColumn(1).pack();
View Full Code Here

Examples of org.eclipse.swt.widgets.TableItem

    private void setVerifyTableItems(String[][] items) {
        tableControl.removeAll();
        if (items != null) {
            for (int i = 0; i < items.length; ++i) {
                TableItem item = new TableItem(tableControl, SWT.NONE);
                for (int j = 0; j < items[i].length; ++j) {
                    String s = items[i][j];
                    if (s.endsWith("\n")) {
                        s = s.substring(0, s.length() - 1);
                        // this is the "cookie" for the bytecode reference, which could be
                        // mapped later to the sourcecode line on selection event in the
                        // table
                        item.setData(new Integer(i));
                    }
                    item.setText(j, s);
                }
            }
            tableControl.getColumn(0).pack();
            tableControl.getColumn(1).pack();
            tableControl.getColumn(2).pack();
View Full Code Here

Examples of org.eclipse.swt.widgets.TableItem

  public void addPortItem(final AbstractPortItem portItem) {
    synchronized(items) {
      items.add(portItem);
      shell.getDisplay().syncExec(new Runnable() {
        public void run() {
          new TableItem(table, SWT.NONE);
          update(items.size() - 1, portItem);
                    checkAvailable();
        }
      });
    }
View Full Code Here

Examples of org.eclipse.swt.widgets.TableItem

    }

    for (int i =0; i < listOfParams.size(); i++) {
      HashMap h = (HashMap)listOfParams.get(i);               
      if (h.get("name") != null) {
        TableItem item = existsParams(h.get("name").toString(), table, (h.get("default_value") != null? h.get("default_value").toString(): ""));
        if(!refreshTable && item != null) {         
          if(h.get("required") != null && h.get("required").equals("true"))
            item.setBackground(Options.getRequiredColor());

          //existParam = true;
        } else {
          String pname = h.get("name").toString();
          String pvalue = (h.get("default_value") != null ? h.get("default_value").toString() : "");
View Full Code Here

Examples of org.eclipse.swt.widgets.TableItem

    if (_environments != null) {
      Iterator it = _environments.iterator();
      while (it.hasNext()) {
        Object o = it.next();
        if (o instanceof Element) {         
          TableItem item = new TableItem(table, SWT.NONE);
          item.setText(0, ((Element) o).getAttributeValue("name"));
          item.setText(1, (((Element) o).getAttributeValue("value") != null ? ((Element) o).getAttributeValue("value") : ""));         
        }
      }           
    }       

  }
View Full Code Here

Examples of org.eclipse.swt.widgets.TableItem

    if (_includeParams != null) {
      Iterator it = _includeParams.iterator();
      while (it.hasNext()) {
        Object o = it.next();
        if (o instanceof Element) {         
          TableItem item = new TableItem(table, SWT.NONE);
          Element elem = (Element) o;
          if(elem.getAttribute("file") != null) {
            item.setText(0, Utils.getAttributeValue("file", elem));
            item.setText(2, "file");
          } else {
            item.setText(0, Utils.getAttributeValue("live_file", elem));
            item.setText(2, "live_file");
          }
          item.setText(1, (((Element) o).getAttributeValue("node") != null ? ((Element) o).getAttributeValue("node") : ""));

        }
      }           
    }       
  }
View Full Code Here

Examples of org.eclipse.swt.widgets.TableItem

    if (_params == null)
      initParams();
    _params.add(e);

    TableItem item = new TableItem(table, SWT.NONE);
    item.setText(new String[] { name, value });

    if(parameterDescription_de!=null && parameterDescription_de.trim().length()>0) {
      item.setData("parameter_description_de", parameterDescription_de);
      parameterDescription.put( "parameter_description_de_"+ name, parameterDescription_de);
    }
    if(parameterDescription_en!=null && parameterDescription_en.trim().length()>0) {
      item.setData("parameter_description_en", parameterDescription_en);
      parameterDescription.put( "parameter_description_en_"+ name, parameterDescription_de);
    }


    if(required) {
      item.setBackground(Options.getRequiredColor());
    }
    _dom.setChanged(true);
   
    //if(type == Editor.JOB) _dom.setChangedForDirectory("job", Utils.getAttributeValue("name",_parent), SchedulerDom.MODIFY);
    //Utils.setChangedForDirectory(_parent, _dom);
View Full Code Here

Examples of org.eclipse.swt.widgets.TableItem

      if (_includeParams == null)
        initParams();

      _includeParams.add(e);

      TableItem item = new TableItem(table, SWT.NONE);
      item.setText(new String[] { file, node, (isLive ? "live_file" : "file")});


    }     
  }
View Full Code Here

Examples of org.eclipse.swt.widgets.TableItem

      if (_params == null)
        initParams();
      if (_params != null)
        _params.add(e);

      TableItem item = new TableItem(table, SWT.NONE);
      item.setText(new String[] { name, value });
     
     
    }
    ////Utils.setChangedForDirectory(_parent, _dom);
   
View Full Code Here

Examples of org.eclipse.swt.widgets.TableItem

        }
      }
    });
    tCommands.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(final SelectionEvent e) {
        TableItem item = (TableItem) e.item;
        if (item == null)
          return;
        bRemoveExitcode.setEnabled(tCommands.getSelectionCount() > 0);
        cExitcode.setFocus();
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.