Examples of addExpansionListener()


Examples of org.eclipse.ui.forms.widgets.ExpandableComposite.addExpansionListener()

            | ExpandableComposite.CLIENT_INDENT );
        excomposite.setText( label );
        excomposite.setExpanded( false );
        excomposite.setFont( JFaceResources.getFontRegistry().getBold( JFaceResources.DIALOG_FONT ) );
        excomposite.setLayoutData( new GridData( GridData.FILL, GridData.FILL, true, false, nColumns, 1 ) );
        excomposite.addExpansionListener( new ExpansionAdapter()
        {
            public void expansionStateChanged( ExpansionEvent e )
            {
                ExpandableComposite excomposite = ( ExpandableComposite ) e.getSource();
                excomposite.getParent().setSize( excomposite.getParent().computeSize( SWT.DEFAULT, SWT.DEFAULT ) );
View Full Code Here

Examples of org.eclipse.ui.forms.widgets.ExpandableComposite.addExpansionListener()

    ExpandableComposite pushUriArea = new ExpandableComposite(main,
        ExpandableComposite.TREE_NODE
            | ExpandableComposite.CLIENT_INDENT);
    GridDataFactory.fillDefaults().grab(true, false).applyTo(pushUriArea);
    pushUriArea.setExpanded(!config.getPushURIs().isEmpty());
    pushUriArea.addExpansionListener(new ExpansionAdapter() {

      public void expansionStateChanged(ExpansionEvent e) {
        main.layout(true, true);
        main.getShell().pack();
      }
View Full Code Here

Examples of org.eclipse.ui.forms.widgets.ExpandableComposite.addExpansionListener()

    commitCombo = new CommitCombo(advancedComposite, SWT.NORMAL);
    commitCombo.setLayoutData(GridDataFactory.fillDefaults()
        .grab(true, false).hint(300, SWT.DEFAULT).create());

    advanced.setClient(advancedComposite);
    advanced.addExpansionListener(new ExpansionAdapter() {
      public void expansionStateChanged(ExpansionEvent e) {
        // fill the Combo lazily to improve UI responsiveness
        if (((Boolean) e.data).booleanValue()
            && commitCombo.getItemCount() == 0) {
          final Collection<RevCommit> commits = new ArrayList<RevCommit>();
View Full Code Here

Examples of org.eclipse.ui.forms.widgets.ExpandableComposite.addExpansionListener()

    excomposite.setExpanded(false);
    excomposite.setFont(JFaceResources.getFontRegistry().getBold(
        JFaceResources.DIALOG_FONT));
    excomposite.setLayoutData(new GridData(GridData.FILL, GridData.FILL,
        true, false, nColumns, 1));
    excomposite.addExpansionListener(new ExpansionAdapter() {
      public void expansionStateChanged(ExpansionEvent e) {
        expandedStateChanged((ExpandableComposite) e.getSource());
      }
    });
    fExpandedComposites.add(excomposite);
View Full Code Here

Examples of org.eclipse.ui.forms.widgets.ExpandableComposite.addExpansionListener()

    Label client = toolkit.createLabel(ec, ctext, SWT.WRAP);
    ec.setClient(client);
    td = new TableWrapData();
    td.colspan = 2;
    ec.setLayoutData(td);
    ec.addExpansionListener(new ExpansionAdapter() {
      public void expansionStateChanged(ExpansionEvent e) {
        form.reflow(true);
      }
    });
    Section section = toolkit.createSection(form.getBody(), Section.DESCRIPTION|Section.TWISTIE|Section.EXPANDED);
View Full Code Here

Examples of org.eclipse.ui.forms.widgets.ExpandableComposite.addExpansionListener()

    GridLayout layout = new GridLayout(2, false);
    layout.marginWidth = 0;
    sectionComposite.setLayout(layout);

    section.addExpansionListener(new ExpansionAdapter() {
      @Override
      public void expansionStateChanged(ExpansionEvent e) {
        getShell().pack();
      }
    });
View Full Code Here

Examples of org.eclipse.ui.forms.widgets.Section.addExpansionListener()

        // INITIALISE
        encodingCombo.setItems(charsets);
        encodingCombo.select(selectedCharset);

        // LISTENERS
        encodingSection.addExpansionListener(new ExpansionAdapter() {
            @Override
            public void expansionStateChanged(ExpansionEvent e) {
                getManagedForm().reflow(true);
            }
        });
View Full Code Here

Examples of org.eclipse.ui.forms.widgets.Section.addExpansionListener()

        // INITIALISE
        encodingCombo.setItems(charsets);
        encodingCombo.select(selectedCharset);

        // LISTENERS
        encodingSection.addExpansionListener(new ExpansionAdapter() {
            @Override
            public void expansionStateChanged(ExpansionEvent e) {
                getManagedForm().reflow(true);
            }
        });
View Full Code Here

Examples of org.eclipse.ui.forms.widgets.Section.addExpansionListener()

        toolkit.decorateFormHeading(form.getForm());
       
        final Section section = toolkit.createSection(form.getBody(), SECTION_STYLE);
        section.setText("Country Details");
        section.setDescription("Update country details below.");
        section.addExpansionListener(new ExpansionAdapter(){
            public void expansionStateChanged( ExpansionEvent e ) {
                // Nothing
            }
        });
        final Composite client = toolkit.createComposite(section, SWT.NONE);
View Full Code Here

Examples of org.eclipse.ui.forms.widgets.Section.addExpansionListener()

        // Other sample section - to try out ColumnLayout
        final Section sectionOther = toolkit.createSection(form.getBody(), SECTION_STYLE);
        sectionOther.setText("Others");
        sectionOther
                .setDescription("Sample section to demo ColumnLayout, make the view width smaller to force it to relayout.");
        sectionOther.addExpansionListener(new ExpansionAdapter(){
            public void expansionStateChanged( ExpansionEvent e ) {
                // Nothing
            }
        });
        final Composite clientOther = toolkit.createComposite(sectionOther, SWT.NONE);
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.