Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.Composite.layout()


        break;
      }
    }
    c = this;
    while (c != null) {
      c.layout(true);
      c = c.getParent();
      if (c instanceof SharedScrolledComposite) {
        ((SharedScrolledComposite) c).reflow(true);
        break;
      }
View Full Code Here


                    }
                };
               
                property.attach( modelPropertyListener );
               
                typeSelectorComposite.layout( true, true );
               
                typeSelectorComposite.getChildren()[ 0 ].addDisposeListener
                (
                    new DisposeListener()
                    {
View Full Code Here

                    {
                        return;
                    }
                   
                    TablePropertyEditorPresentation.this.table.notifyListeners( SWT.Selection, null );
                    tableParentComposite.layout();
                }
                finally
                {
                    this.running = false;
                }
View Full Code Here

    if (value == null) {
      value = ObjectHelper.newInstance(complexType);
      node.setPropertyValue(id, value);
    }
    bindNestedComplexProperties(toolkit, mmng, complexProperty, complexType, sectionClient, value);
    sectionClient.layout(true, true);
    return section;
  }

  protected CTabFolder bindNestedComplexUnionProperties(final FormToolkit toolkit, Composite parent,
      final IMessageManager mmng, final Object id, String labelText, String tooltip,
View Full Code Here

      else {
        tabValue = ObjectHelper.newInstance(complexType);
      }
      values[idx++] = tabValue;
      bindNestedComplexProperties(toolkit, mmng, complexProperty, complexType, composite, tabValue);
      composite.layout(true, true);
    }
    if (selectIdx >= 0) {
      bar.setSelection(selectIdx);
    }
    bar.layout(true, true);
View Full Code Here

          // lets layout to make things a bit bigger if need be
          if (control instanceof org.eclipse.swt.widgets.List) {
            org.eclipse.swt.widgets.List list = (org.eclipse.swt.widgets.List) control;
            list.pack(true);
          }
          panel.layout(true, true);
          layoutForm();
        }
      }
    };
    final Runnable deleteAction = new Runnable() {
View Full Code Here

          public void refresh() {
            input.add(sh);
            viewer.setSelection(new StructuredSelection(sh));
            Viewers.refresh(viewer);
            layoutForm();
            panel.layout(true, true);
            fireNodePropertyChangedEvent(id);
          }
        };
        SetHeaderDialog.showDialog(sh, refreshable);
      }
View Full Code Here

        dragControlType = c.getSelectionIndex();
        dragControl = createWidget(dragControlType, parent, "Drag Source");
        dragControl.setLayoutData(data);
        if (dragEnabled)
          createDragSource();
        parent.layout();
      }
    });

    Button b = new Button(parent, SWT.CHECK);
    b.setText("DragSource");
View Full Code Here

        dropControlType = c.getSelectionIndex();
        dropControl = createWidget(dropControlType, parent, "Drop Target");
        dropControl.setLayoutData(data);
        if (dropEnabled)
          createDropTarget();
        parent.layout();
      }
    });

    Button b = new Button(parent, SWT.CHECK);
    b.setText("DropTarget");
View Full Code Here

                    newdirText.setText("Selected directory must either be empty or an old backup directory");
                }else{
                    newdirText.setText(selectedDir);
                    newdirText.setForeground(View.getDisplay().getSystemColor(SWT.COLOR_DARK_GREEN));
                 
                    dirchanger_composite.layout(true);
                    submit.setVisible(true);
                    dirShell.layout(true);
                    dirShell.pack();
                }
            }
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.