Package org.eclipse.ui.forms

Examples of org.eclipse.ui.forms.SectionPart


        Table table = toolkit.createTable( client, SWT.NONE );
        GridData gd = new GridData( SWT.FILL, SWT.FILL, true, true, 1, 4 );
        gd.heightHint = 20;
        gd.widthHint = 100;
        table.setLayoutData( gd );
        final SectionPart spart = new SectionPart( section );
        managedForm.addPart( spart );
        viewer = new TableViewer( table );
        viewer.addSelectionChangedListener( new ISelectionChangedListener()
        {
            public void selectionChanged( SelectionChangedEvent event )
View Full Code Here


        Table table = toolkit.createTable( client, SWT.NULL );
        GridData gd = new GridData( SWT.FILL, SWT.FILL, true, true, 1, 4 );
        gd.heightHint = 20;
        gd.widthHint = 100;
        table.setLayoutData( gd );
        final SectionPart spart = new SectionPart( section );
        managedForm.addPart( spart );
        viewer = new TableViewer( table );
        viewer.addSelectionChangedListener( new ISelectionChangedListener()
        {
            public void selectionChanged( SelectionChangedEvent event )
View Full Code Here

    sectionErrorConfigDetails = FormSection.createTableWrapDataSection(toolkit, parent,
            Section.TWISTIE | Section.EXPANDED,
            Messages.DDE_AEConfigPage_ErrorConfig_Section_Title,
            "The following is the information about the ...", 10, 5, TableWrapData.FILL_GRAB,
            TableWrapData.FILL_GRAB, 1, 1);
    final SectionPart spart = new SectionPart(sectionErrorConfigDetails);
    mform.addPart(spart);
    spart.initialize(mform); // Need this code. Otherwise, exception in SectionPart !!!
    sectionErrorConfigDetails.setExpanded(true);

    // /////////////////////////////////////////////////////////////////////

    Composite sectionClient = toolkit.createComposite(sectionErrorConfigDetails);
View Full Code Here

  private Section createIdentitySection(Composite parent, FormToolkit toolkit) {
    Section section = FormSection.createTableWrapDataSection(toolkit, parent, Section.DESCRIPTION
            | Section.TWISTIE | Section.EXPANDED, "Template Details", "Set the properties of ...",
            10, 5, TableWrapData.FILL_GRAB, TableWrapData.FILL_GRAB, 1, 1);
    final SectionPart spart = new SectionPart(section);
    mform.addPart(spart);
    spart.initialize(mform); // Need this code. Otherwise, exception in SectionPart !!!
    section.setExpanded(true);

    // /////////////////////////////////////////////////////////////////////

    Composite sectionClient = toolkit.createComposite(section);
View Full Code Here

    sectionAEMetaDataDetails = FormSection.createTableWrapDataSection(toolkit, parent,
            Section.TWISTIE,
            Messages.DDE_AEConfigPage_AEConfig_Section_Title,
            "Set the properties of ...", 10, 5,
            TableWrapData.FILL_GRAB, TableWrapData.FILL_GRAB, 1, 1);
    final SectionPart spart = new SectionPart(sectionAEMetaDataDetails);
    mform.addPart(spart);
    spart.initialize(mform); // Need this code. Otherwise, exception in SectionPart !!!
    sectionAEMetaDataDetails.setExpanded(true);

    // /////////////////////////////////////////////////////////////////////

    Composite sectionClient = toolkit.createComposite(sectionAEMetaDataDetails);
View Full Code Here

  private Section createIdentitySection(Composite parent, FormToolkit toolkit) {
    Section section = FormSection.createTableWrapDataSection(toolkit, parent, Section.DESCRIPTION
            | Section.TWISTIE | Section.EXPANDED, "No Details are available", "No information is available.",
            10, 5, TableWrapData.FILL_GRAB, TableWrapData.FILL_GRAB, 1, 1);
    final SectionPart spart = new SectionPart(section);
    mform.addPart(spart);
    spart.initialize(mform); // Need this code. Otherwise, exception in SectionPart !!!
    section.setExpanded(true);

    // /////////////////////////////////////////////////////////////////////

    Composite sectionClient = toolkit.createComposite(section);
View Full Code Here

    section.addExpansionListener(new ExpansionAdapter() {
      public void expansionStateChanged(ExpansionEvent e) {
        form.reflow(true);
      }
    });
    spart = new SectionPart(section);
    managedForm.addPart(spart);

    // Create ToolBar
    Composite sectionToolbarComposite = FormSection.createGridLayoutContainer(toolkit, section, 4,
            0, 0);
View Full Code Here

    Button removeButton = toolkit.createButton(buttonsGroup, "Remove", SWT.PUSH);
    //removeButton.setLayoutData(gd);
    removeButton.addSelectionListener(new RemoveButtonListener());

    section.setClient(displayGroupsClient);
    final SectionPart spart = new SectionPart(section);
    managedForm.addPart(spart);

    viewer = new TableViewer(t);
    viewer.addSelectionChangedListener(new ISelectionChangedListener() {
      public void selectionChanged(final SelectionChangedEvent event) {
View Full Code Here

      }

    });

    bindingsSection.setClient(bindingsClient);
    final SectionPart spart = new SectionPart(bindingsSection) {
      @Override
      public boolean isDirty() {
        try {
          return ((ApiEditor) page.getEditor()).getModel().isDirty();
        } catch (ApiModelException e) {
View Full Code Here

    form.getBody().setLayout(new ColumnLayout());
   
    Dialog.applyDialogFont(form.getBody());
   
    createResourcesListSection(form, toolkit);
    resourcesListSectionPart = new SectionPart(resourcesListSection) {
      @Override
      public void refresh() {
        resourcesTreeViewer.refresh();
        super.refresh();
      }
    };
    managedForm.addPart(resourcesListSectionPart);
   
    createResourceOverviewSection(form, toolkit);
    resourceSectionPart = new SectionPart(resourceSection) {
      @Override
      public void refresh() {
        super.refresh();
        refreshOverviewContent();
      }
View Full Code Here

TOP

Related Classes of org.eclipse.ui.forms.SectionPart

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.