Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.Button.pack()


  public Button newCheckBox(Composite parent, String label, String tip) {
    Button button = toolkit.createButton(parent, label, SWT.CHECK);
    button.setLayoutData(new GridData(GridData.VERTICAL_ALIGN_BEGINNING
            | GridData.HORIZONTAL_ALIGN_FILL));
    button.pack();
    button.setToolTipText(tip);
    button.addListener(SWT.Selection, this);
    return button;
  }
View Full Code Here


    TableItem item = new TableItem(table, SWT.NONE);
    String labelText = FoldingPlugin.getMessage(key);

    TableEditor foldEditor = new TableEditor(table);
    final Button foldCheckBox = new Button(table, SWT.CHECK);
    foldCheckBox.pack();
    foldEditor.minimumWidth = foldCheckBox.getSize().x;
    foldEditor.horizontalAlignment = SWT.CENTER;
    foldEditor.setEditor(foldCheckBox, item, 0);

    TableEditor collapseEditor = new TableEditor(table);
View Full Code Here

    foldEditor.horizontalAlignment = SWT.CENTER;
    foldEditor.setEditor(foldCheckBox, item, 0);

    TableEditor collapseEditor = new TableEditor(table);
    final Button initialCheckBox = new Button(table, SWT.CHECK);
    initialCheckBox.pack();
    collapseEditor.minimumWidth = initialCheckBox.getSize().x;
    collapseEditor.horizontalAlignment = SWT.CENTER;
    collapseEditor.setEditor(initialCheckBox, item, 1);

    item.setText(2, labelText);
View Full Code Here

   
   
//    Refresh Button = Composite Button Bar
    Button restart = new Button(composite,SWT.PUSH);
    restart.setText("Manual Restart");
    restart.pack();
    restart.addListener(SWT.Selection, new Listener() {
      public void handleEvent(Event e) {
          delete();
          Restarter restart = new Restarter();
         
View Full Code Here

           }
         });

         //Column four is isSuperSeed
         editor = new TableEditor(Plugin.getTab2().getClientTable());
         button_isSuperSeed.pack ();
         button_isSuperSeed.setBackground(item.getBackground());
         editor.minimumWidth = button_isSuperSeed.getSize ().x;
         editor.horizontalAlignment = SWT.CENTER;
         editor.setEditor (button_isSuperSeed, item, 5);
         if(isSuperSeed.equalsIgnoreCase("1")){
View Full Code Here

       
       
//        Refresh Button = Composite Button Bar
        Button restart = new Button(composite,SWT.PUSH);
        restart.setText("Clear List");
        restart.pack();
        restart.addListener(SWT.Selection, new Listener() {
          public void handleEvent(Event e) {
              if (list!=null && !list.isDisposed())
              {
                  list.removeAll();
View Full Code Here


//      Rezero Button = Composite Button Bar
        Button rezero = new Button(button_composite, SWT.PUSH);
        rezero.setText("Re-Zero Counters");
        rezero.pack();
        rezero.addListener(SWT.Selection, new Listener() {
            public void handleEvent(Event e) {

                Plugin.total_blocked=0;
                Plugin.total_removed=0;
View Full Code Here


        //      Clear List Button = Composite Button Bar
        Button restart = new Button(button_composite, SWT.PUSH);
        restart.setText("Clear All Lists");
        restart.pack();
        restart.addListener(SWT.Selection, new Listener() {
            public void handleEvent(final Event e) {
                peers_count = 1;
                purge_count = 1;
View Full Code Here


        final Button pause = new Button(tool_comp,SWT.TOGGLE);
        pause.setImage(ImageRepository.getImage("pause"));
        pause.setToolTipText("Pause ALL filtering rules");
        pause.pack();
        pause.addListener(SWT.Selection, new Listener() {
            public void handleEvent(Event e) {
                Plugin.areRulesPaused = pause.getSelection();
                if(Plugin.getDisplay()== null && Plugin.getDisplay().isDisposed())
                    return;
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.