Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.List


        tbtmInterfaces.setControl(interfaceComposite);
        interfaceComposite.setLayout(new GridLayout(2, false));
       
        listViewer = new ListViewer(interfaceComposite, SWT.BORDER | SWT.V_SCROLL);
        listViewer.setSorter(new ViewerSorter());
        List list = listViewer.getList();
        GridData gd_list = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);
        gd_list.widthHint = 284;
        list.setLayoutData(gd_list);
        list.setSize(238, 111);
        listViewer.setContentProvider(new IStructuredContentProvider() {
          public Object[] getElements(Object inputElement) {
            return ((Set<?>)inputElement).toArray();
          }
View Full Code Here


  @Override
  /**
   * Removes the path from the list as well as from the Tool's Option.
   */
  protected void removePressed() {
    List libPathList = getList();
        setPresentsDefaultValue(false);
        String[] selected = libPathList.getSelection();
        for (String s : selected) {
            //remove a library path from the LLVM preference store
            LlvmPreferenceStore.removeLibraryPath(s);
            //remove a library path from LLVM linker's option
            LlvmToolOptionPathUtil.removeLlvmLibraryPath(s);
        //inform LLVM environment variable supplier that there has been a change
        LlvmEnvironmentVariableSupplier.notifyPreferenceChange();
        libPathList.remove(s);
        selectionChanged();
        }
  }
View Full Code Here

  @Override
  /**
   * Removes the path from the list as well as from the Tool's Option.
   */
  protected void removePressed() {
    List libList = getList();
        setPresentsDefaultValue(false);
        String[] selected = libList.getSelection();
        for (String s : selected) {
            //remove a library from the LLVM preference store
            LlvmPreferenceStore.removeLibrary(s);
            //remove a library from LLVM linker's option
            LlvmToolOptionPathUtil.removeLlvmLib(s);
            //inform LLVM environment variable supplier that there has been a change
            LlvmEnvironmentVariableSupplier.notifyPreferenceChange();
            libList.remove(s);
            selectionChanged();
        }
  }
View Full Code Here

  protected Control createDialogArea(Composite parent) {
    // create composite
    Composite composite = (Composite) super.createDialogArea(parent);

    typeList = new List(composite, SWT.MULTI | SWT.BORDER | SWT.V_SCROLL);
    GridData gridData = new GridData(GridData.FILL_HORIZONTAL);
    gridData.heightHint = 100;
    typeList.setLayoutData(gridData);

    for (int i = 0; i < m_availableTypeNames.length; i++) {
View Full Code Here

    AbstractSection.spacer(composite);

    // create m_taePrompt
    createWideLabel(composite, "Delegate Components:");

    delegateComponentListGUI = new List(composite, SWT.MULTI | SWT.BORDER | SWT.V_SCROLL);
    GridData gridData = new GridData(GridData.FILL_HORIZONTAL);
    gridData.heightHint = 100;
    delegateComponentListGUI.setLayoutData(gridData);
    boolean bContainsConstituentsAlreadyInAggregate = false;
    boolean bContainsAggregate = false;
    for (int i = 0; i < m_DelegateComponentDescriptors.size(); i++) {
      String sAdditional = "";
      if (m_aggregateFileName.equals(m_DelegateComponentDescriptors.get(i))) {
        sAdditional = "**";
        bContainsAggregate = true;
      }
      delegateComponentListGUI.add((String) m_DelegateComponentDescriptors.get(i) + sAdditional);
    }
    delegateComponentListGUI.addSelectionListener(dialogSelectionListener);

    if (bContainsConstituentsAlreadyInAggregate && bContainsAggregate) {
      specialMsgLabel
              .setText("(* indicates delegate component is already part of aggregate, ** is aggregate currently being configured)");
    } else if (bContainsConstituentsAlreadyInAggregate) {
      specialMsgLabel.setText("(* indicates delegate component is already part of aggregate)");
    } else if (bContainsAggregate) {
      specialMsgLabel.setText("(** is aggregate currently being configured)");
    }

    createWideLabel(composite, "Delegate Component Description:");

    delegateComponentDescriptionText = new Text(composite, SWT.MULTI | SWT.WRAP | SWT.V_SCROLL
            | SWT.BORDER);
    delegateComponentDescriptionText.setLayoutData(new GridData(GridData.FILL_BOTH));
    GridData dcgd = new GridData(GridData.FILL_HORIZONTAL);
    dcgd.heightHint = 50;
    delegateComponentDescriptionText.setLayoutData(dcgd);
    delegateComponentDescriptionText.setEditable(false);

    createWideLabel(composite, "Input Types:");

    inputTypesList = new List(composite, SWT.BORDER | SWT.V_SCROLL);
    inputTypesList.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));

    createWideLabel(composite, "Output Types:");

    outputTypesList = new List(composite, SWT.BORDER | SWT.V_SCROLL);
    outputTypesList.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));

    // autoAddToFlowButton = new Button(composite, SWT.CHECK);
    // autoAddToFlowButton.setText("Add selected delegate components to end of flow");
    // autoAddToFlowButton.setSelection(true);
View Full Code Here

  @Override
  /**
   * Removes the path from the list as well as from the Tool's Option.
   */
  protected void removePressed() {
    List incList = getList();
        setPresentsDefaultValue(false);
        String[] selected = incList.getSelection();
        for (String s : selected) {
            //remove an include path from the LLVM preference store
            LlvmPreferenceStore.removeIncludePath(s);
            //remove an include path from the LLVM assembler's option
            LlvmToolOptionPathUtil.removeLlvmIncludePath(s);
        //inform LLVM environment variable supplier that there has been a change
        LlvmEnvironmentVariableSupplier.notifyPreferenceChange();
        incList.remove(s);
        selectionChanged();
        }
  }
View Full Code Here

     * @return the list control
     */
    @Override
  public List getListControl(Composite parent) {
        if (this.list == null) {
            this.list = new List(parent, SWT.BORDER | SWT.MULTI | SWT.V_SCROLL
                    | SWT.H_SCROLL);
            this.list.setFont(parent.getFont());
            this.list.addSelectionListener(getSelectionListener());
            this.list.addDisposeListener(new DisposeListener() {
                public void widgetDisposed(DisposeEvent event) {
View Full Code Here

    buttonCancel.setText("Abbrechen");
    gd = new GridData(SWT.FILL, SWT.FILL, true, true);
    buttonCancel.setLayoutData(gd);
    buttonCancel.addSelectionListener(this);

    listLeft = new List(inner, SWT.BORDER | SWT.SINGLE | SWT.H_SCROLL | SWT.V_SCROLL);
    fd = new FormData();
    fd.top = new FormAttachment(label1, 5, SWT.BOTTOM);
    fd.bottom = new FormAttachment(compButtons, -5, SWT.TOP);
    fd.left = new FormAttachment(0, 0);
    fd.right = new FormAttachment(50, -2);
    listLeft.setLayoutData(fd);
    listLeft.addSelectionListener(this);

    listRight = new List(inner, SWT.BORDER | SWT.SINGLE | SWT.H_SCROLL | SWT.V_SCROLL);
    fd = new FormData();
    fd.top = new FormAttachment(label1, 5, SWT.BOTTOM);
    fd.bottom = new FormAttachment(compButtons, -5, SWT.TOP);
    fd.left = new FormAttachment(50, 3);
    fd.right = new FormAttachment(100, 0);
View Full Code Here

    gd = new GridData(SWT.FILL, SWT.FILL, true, true);
    buttonCancel.setLayoutData(gd);
    buttonCancel.addSelectionListener(this);

    // Die Liste erh�lt den restlichen Platz.
    list = new List(inner, SWT.BORDER | SWT.SINGLE | SWT.H_SCROLL | SWT.V_SCROLL);
    fd = new FormData();
    fd.top = new FormAttachment(label1, 5, SWT.BOTTOM);
    fd.bottom = new FormAttachment(compButtons, -5, SWT.TOP);
    fd.left = new FormAttachment(0, 0);
    fd.right = new FormAttachment(100, 0);
View Full Code Here

        lblTapestryServletURLPatterns = new Label(composite, SWT.NULL);
        lblTapestryServletURLPatterns
            .setText(Messages.TapestryFacetInstallPage_TapestryURLMappingLabel);
        lblTapestryServletURLPatterns.setLayoutData(new GridData(GridData.BEGINNING
            | GridData.VERTICAL_ALIGN_BEGINNING));
        lstTapestryServletURLPatterns = new List(composite, SWT.BORDER);
        GridData gd3 = new GridData(GridData.FILL_HORIZONTAL);
        gd3.heightHint = convertHeightInCharsToPixels(5);
        lstTapestryServletURLPatterns.setLayoutData(gd3);
        lstTapestryServletURLPatterns.addSelectionListener(new SelectionAdapter() {
          public void widgetSelected(SelectionEvent 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.