Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.List


  public List createList(Composite com, int style){
    return new List(com, style);
 
 
  public List createList(Composite com, int style, String[] txt){
    List widget = createList(com, style);
    widget.setFont(UIDATA.FONT_9);
    widget.setItems(txt);
    return widget;
  }
View Full Code Here


  }
 
  public ExpandMenu createExpandMenu(Composite com, int style){ return new ExpandMenu(com, style); }
 
  public List createList(Composite com, int style, String[] text, SelectionListener listener){
    List widget = createList(com, style, text);
    widget.addSelectionListener(listener);
    return widget;
  }
View Full Code Here

   
    GridData gridData = new GridData();
    gridData.minimumWidth = 200;
    gridData.minimumHeight = 200;
   
    list = new List(composite, SWT.NONE);
    list.setLayoutData(gridData);
    list.addSelectionListener(new SelectionListener() {

      public void widgetDefaultSelected(SelectionEvent e) {
        checkPage();
View Full Code Here

    gridData.heightHint = 175;
    templateGroup.setLayoutData(gridData);
    templateGroup.setFont(parent.getFont());
       
    // List for template names
    final List templateList = new List(templateGroup, SWT.SINGLE | SWT.BORDER | SWT.V_SCROLL);
    GridData templateGridData = new GridData(GridData.FILL_BOTH);
    templateList.setLayoutData(templateGridData);
   
    // Text Area for template description
    final Text descriptionArea = new Text(templateGroup, SWT.MULTI | SWT.READ_ONLY
        | SWT.WRAP | SWT.BORDER | SWT.V_SCROLL);
    GridData descriptionGridData = new GridData(GridData.FILL_VERTICAL);
    descriptionGridData.widthHint = 200;
    descriptionArea.setLayoutData(descriptionGridData);
   
    Iterator<FileTemplateConfig> templateIterator = templateConfigMap.values().iterator();
    while(templateIterator.hasNext()) {
      String templateName = templateIterator.next().getName();
      if(templateName.length() > 0) {
        templateList.add(templateName);
      }
    }
    if(templateList.getItemCount() == 0) {
      ExceptionHandler.throwCoreException("templates.xml misses the required data!", null);
    }
    templateList.addListener(SWT.Selection, new Listener() {

      public void handleEvent(Event event) {
        selectedTemplate = templateList.getItem(templateList.getSelectionIndex()).trim();
        descriptionArea.setText(getTemplateDescription());
      }
    });
    templateList.setSelection(0);
    selectedTemplate = templateList.getItem(templateList.getSelectionIndex()).trim();
    descriptionArea.setText(getTemplateDescription());
  }
View Full Code Here

           
        }

        private void createMutantList(Composite comp)
        {
          mutantlist = new List(selectionblock, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL);
          mutantlist.addSelectionListener(new SelectionListener () {
                public void widgetDefaultSelected(SelectionEvent e)
                {
                 
                }
View Full Code Here

            });
        }
       
        private void createTestListBlock(Composite comp)
        {
          testlist = new List(selectionblock, SWT.SINGLE | SWT.H_SCROLL | SWT.V_SCROLL);
         
          testlist.addSelectionListener(new SelectionListener () {
                public void widgetDefaultSelected(SelectionEvent e)
                {
                 
View Full Code Here

    gd.verticalSpan = 2;
        ScrolledComposite c2 = new ScrolledComposite(container, SWT.V_SCROLL);
        c2.setExpandHorizontal(false);
        c2.setExpandVertical(false);
    c2.setLayoutData(gd);
    javaClasspathList = new List(c2,SWT.READ_ONLY |SWT.BORDER | SWT.V_SCROLL);
    javaClasspathList.setLayoutData(gd);
        settings.put(JAVA_CLASS_PATH_ENTRIES, new String[]{});
    javaClasspathList.setItems(settings.getArray(JAVA_CLASS_PATH_ENTRIES));
    javaClasspathList.setSize(600, 250);
    c2.setContent(javaClasspathList);
View Full Code Here

   
    gd = new GridData(GridData.FILL_BOTH);
    gd.horizontalSpan = 3;
    gd.verticalSpan = 5;
   
    jarFileList = new List(container,SWT.BORDER|SWT.V_SCROLL);
    jarFileList.setItems(settings.getArray(PREF_LIB_LIBNAMES));
    jarFileList.setLayoutData(gd);
   
   
    // Label for the count
View Full Code Here

        _labelList = _toolkit.createLabel(_listComposite, " ", SWT.CENTER);
        gridData = new GridData(SWT.CENTER, SWT.TOP, true, false, 1, 1);
        _labelList.setLayoutData(gridData);
        _labelList.setFont(ApplicationRegistry.getFont(FONT_NORMAL));
       
        _list = new List(_listComposite, SWT.MULTI | SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL);
        gridData = new GridData(SWT.FILL, SWT.FILL, true, true,1, 1);
        _list.setLayoutData(gridData);
       
    }
View Full Code Here

    bFromJar.setEnabled(project.getJars().length > 0);

    Label sep1 = new Label(shell, SWT.SEPARATOR|SWT.HORIZONTAL);


    lClasses = new List(shell, SWT.BORDER|SWT.H_SCROLL|SWT.V_SCROLL);
    lClasses.addSelectionListener(this);
    lClasses.addMouseListener(new MouseAdapter()
        {
          public void mouseDoubleClick(MouseEvent e)
          {
View Full Code Here

TOP

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

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.