Package org.eclipse.ui.forms.events

Examples of org.eclipse.ui.forms.events.ExpansionAdapter


      GridData gd = new GridData();
      gd.horizontalSpan = 4;
      detailsComposite.setLayoutData(gd);

      /* Expand: Click on caret */
      timeEntryComposite.addExpansionListener(new ExpansionAdapter() {
        @Override
        public void expansionStateChanged(ExpansionEvent event) {
          expandTimeEntry(toolkit, detailsComposite, event.getState());
        }
      });
View Full Code Here


      section.setEnabled(false);
    } else {
      if (hasIncoming) {
        expandSection(toolkit, section);
      } else {
        section.addExpansionListener(new ExpansionAdapter() {
          @Override
          public void expansionStateChanged(ExpansionEvent event) {
            if (section.getClient() == null) {
              try {
//                expandAllInProgress = true;
View Full Code Here

    });
    section.setText(title);
    section.setDescription("");
    section.setClient(client);
    section.setExpanded(true);
    section.addExpansionListener(new ExpansionAdapter() {
      public void expansionStateChanged(ExpansionEvent e) {
        form.reflow(false);
      }
    });
    gd = new GridData(GridData.FILL_BOTH);
View Full Code Here

   * Adds listeners to the underlying widget.
   */
  protected void hookListeners() {
    if ((section.getExpansionStyle() & Section.TWISTIE) != 0
        || (section.getExpansionStyle() & Section.TREE_NODE) != 0) {
      section.addExpansionListener(new ExpansionAdapter() {
        public void expansionStateChanging(ExpansionEvent e) {
          SectionPart.this.expansionStateChanging(e.getState());
        }

        public void expansionStateChanged(ExpansionEvent e) {
View Full Code Here

    section.setActiveToggleColor(toolkit.getHyperlinkGroup().getActiveForeground());
    section.setToggleColor(toolkit.getColors().getColor(IFormColors.SEPARATOR));
   
    section.setText("General Information");
    section.setDescription("This section provides generic information about the performance model.");
    section.addExpansionListener(new ExpansionAdapter() {
      public void expansionStateChanged(ExpansionEvent e) {
        form.reflow(false);
      }
    });
   
View Full Code Here

    resourcesListSection.setActiveToggleColor(toolkit.getHyperlinkGroup().getActiveForeground());
    resourcesListSection.setToggleColor(toolkit.getColors().getColor(IFormColors.SEPARATOR));
   
    resourcesListSection.setText("Resources");
    resourcesListSection.setDescription("This section provides information about resources available.");
    resourcesListSection.addExpansionListener(new ExpansionAdapter() {
      public void expansionStateChanged(ExpansionEvent e) {
        form.reflow(false);
      }
    });
   
View Full Code Here

    resourceSection.setActiveToggleColor(toolkit.getHyperlinkGroup().getActiveForeground());
    resourceSection.setToggleColor(toolkit.getColors().getColor(IFormColors.SEPARATOR));
   
    resourceSection.setText("Resource properties");
    resourceSection.setDescription("This section provides information about resource properties.");
    resourceSection.addExpansionListener(new ExpansionAdapter() {
      public void expansionStateChanged(ExpansionEvent e) {
        form.reflow(false);
      }
    });
   
View Full Code Here

    tasksListSection.setActiveToggleColor(toolkit.getHyperlinkGroup().getActiveForeground());
    tasksListSection.setToggleColor(toolkit.getColors().getColor(IFormColors.SEPARATOR));
   
    tasksListSection.setText("Tasks");
    tasksListSection.setDescription("This section provides information about tasks available for the model.");
    tasksListSection.addExpansionListener(new ExpansionAdapter() {
      public void expansionStateChanged(ExpansionEvent e) {
        form.reflow(false);
      }
    });
   
View Full Code Here

    taskSection.setActiveToggleColor(toolkit.getHyperlinkGroup().getActiveForeground());
    taskSection.setToggleColor(toolkit.getColors().getColor(IFormColors.SEPARATOR));
   
    taskSection.setText("Task properties");
    taskSection.setDescription("This section provides information about task properties.");
    taskSection.addExpansionListener(new ExpansionAdapter() {
      public void expansionStateChanged(ExpansionEvent e) {
        form.reflow(false);
      }
    });
   
View Full Code Here

            | 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

TOP

Related Classes of org.eclipse.ui.forms.events.ExpansionAdapter

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.