Package org.eclipse.swt.widgets

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


            }
          }

        }
      });
      composite2.layout();

      this.layout();
    } catch (Exception e) {
      RutaAddonsPlugin.error(e);
    }
View Full Code Here


                    ((ExtraCopyAction) button.getData()).setEnabled(button.getSelection());
                }
            });
            button.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
        }
        clientArea.layout(true, true);
        scrolledComposite.setMinHeight(clientArea.computeSize(SWT.DEFAULT, SWT.DEFAULT).y);

        return composite;
    }
View Full Code Here

    if(presence != null) updateRosterEntryPresenceExtensions(tk, presence, games);
    if(entry instanceof Section) {
      Section section = (Section)entry;
      section.setDescription(rosterEntry.getUser() + ": " + presence);
    }
    games.layout(true);
    //games.pack(true);
    games.getParent().layout(true);
  }

  private static void updateRosterEntryPresenceExtensions(FormToolkit tk, Presence presence, Composite games) {
View Full Code Here

                {
                    int count = Integer.parseInt(addMoreButton.getData("rowCount").toString());
                    createARowForCreatingHeadersBinding(composite, ++count);
                    addMoreButton.setData("rowCount", count);
                    scrolledComposite.setMinSize(composite.computeSize(SWT.DEFAULT, SWT.DEFAULT));
                    composite.layout();
                    _form.layout();
                }
            });
         
        scrolledComposite.setMinSize(composite.computeSize(SWT.DEFAULT, SWT.DEFAULT));
View Full Code Here

                    _form.layout();
                }
            });
         
        scrolledComposite.setMinSize(composite.computeSize(SWT.DEFAULT, SWT.DEFAULT));
        composite.layout();
    }
   
    /**
     * Adds a row for adding a binding for Headers Exchange. Used by the method, which creates the customized
     * layout and widgest for Header's exchange method createNewBinding.
View Full Code Here

          t.dispose();
          ts.setLayoutData(GridDataFactory.fillDefaults()
              .grab(true, true).indent(0, 0).create());
          ts.setTopIndex(0);
          controlDecoration.dispose();
          c.layout(true);
        }

        public void focusGained(FocusEvent e) {
          c.setRedraw(false);
          try {
View Full Code Here

                | SWT.LEFT);
            FieldDecoration dec = FieldDecorationRegistry
                .getDefault()
                .getFieldDecoration(
                    FieldDecorationRegistry.DEC_CONTENT_PROPOSAL);
            c.layout(true);
            ma.addSelectionListener(new SelectionListener() {

              public void widgetSelected(SelectionEvent e) {
                if (e.detail == SWT.ARROW) {
                  MenuManager mc = new MenuManager();
View Full Code Here

      sashData.right = new FormAttachment(100, 0);
      sash.setLayoutData(sashData);
      sash.addListener(SWT.Selection, new org.eclipse.swt.widgets.Listener() {
        public void handleEvent(Event e) {
          sashData.top = new FormAttachment(0, e.y);
          annotationsComposite.layout();
        }
      });
      annotationsComposite.pack(true);
    }
View Full Code Here

        Point computeSize = combo.computeSize(width, -1);
        combo.setLocation(x + 1, 0);
        combo.setSize(width - 1, computeSize.y + 4);
        if (combo instanceof Composite) {
          Composite m = (Composite) combo;
          m.layout(true);
        }
        filters.redraw();
        filters.update();
      }
      x += width;
View Full Code Here

        Point computeSize = combo.computeSize(width, -1);
        combo.setLocation(x + 1, 0);
        combo.setSize(width - 1, computeSize.y + 4);
        if (combo instanceof Composite) {
          Composite m = (Composite) combo;
          m.layout(true);
        }
        filters.redraw();
        filters.update();
      }
      x += width;
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.