Package org.eclipse.swt.widgets

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


                .makeGUInstance(roboTemp);
            customRobotStatus = robotGUI.getStatusPannel(
                robotStatus, robotStatus.getStyle());

            if (temp != null && !temp.isDisposed())
              temp.dispose();

            if (customRobotStatus != null) {
              GridData customRobotStatusLData = new GridData();
              customRobotStatusLData.horizontalAlignment = GridData.FILL;
              customRobotStatusLData.verticalAlignment = GridData.FILL;
View Full Code Here


        formData = new FormData();
        formData.top = new FormAttachment(sibling);
        formData.left = new FormAttachment(0, 0);
        formData.right = new FormAttachment(100, 0);
        compositeResp.setLayoutData(formData);
        compositePrinter.dispose();
      }
               
      GridLayout gridLayoutCompact = new GridLayout(3, false);
      gridLayoutCompact.marginHeight = gridLayoutCompact.marginWidth = 0;
      GridData lgridData = new GridData(SWT.BEGINNING, SWT.CENTER, true, false);
View Full Code Here

      removeExemplar.setText("x");
      removeExemplar.addSelectionListener(new SelectionListener() {
        @Override
        public void widgetSelected(SelectionEvent e) {
          SetWasEdited();
          composite.dispose();
          PackAndSetExtends();
          Node bibl = t.getParentNode();
          bibl.getParentNode().removeChild(bibl);
        }
View Full Code Here

      removeExemplar.setText("x");
      removeExemplar.addSelectionListener(new SelectionListener() {
        @Override
        public void widgetSelected(SelectionEvent e) {
          SetWasEdited();
          composite.dispose();
          PackAndSetExtends();
          t.getParentNode().removeChild(t);
        }

        @Override
View Full Code Here

        try {
            setInitialState(isJavaEnabled()); //Properties are only available for Java projects.
        } catch (EvolizerException e) { //If something goes wrong, it's better to remove user controls and to display an error msg instead.
            fLogger.error("Error while initializing property page" + e.getMessage(), e);

            mainComposite.dispose();

            mainComposite = new Composite(parent, SWT.NONE);
            mainGridLayout = new GridLayout();
            mainComposite.setLayout(mainGridLayout);
View Full Code Here

            setInitialState(isEvolizerEnabled());
        } catch (EvolizerException e) {
            // If something goes wrong, it's better to remove user controls and to display an error msg instead.
            fLogger.error("Error while initializing property page" + e.getMessage(), e);

            mainComposite.dispose();

            mainComposite = new Composite(parent, SWT.NONE);
            mainGridLayout = new GridLayout();
            mainComposite.setLayout(mainGridLayout);
View Full Code Here

      content.setLayout(new FillLayout());

      try {
        part.createPartControl(content);
      } catch (Exception e) {
        content.dispose();
        StatusUtil.handleStatus(e, StatusManager.SHOW
            | StatusManager.LOG);
        return null;
      }
View Full Code Here

        // but if it does, silently set detachable to false.
        this.detachable = false;
      } else {
        Composite testChild = new Composite(client, SWT.NONE);
        this.detachable = testChild.isReparentable();
        testChild.dispose();
      }
    }
    }

    /**
 
View Full Code Here

        catch(InterruptedException interruptedException) {
          //do not consume  
          //TODO: clear the document in the office system
          officeFrame.close();
          frame.dispose();
          composite.dispose();
          composite = new Composite(parent, SWT.EMBEDDED);
          return composite;
        }
        Exception exception = loadTextDocumentOperation.getException();
       
View Full Code Here

            /* Check if there are any other buttons on the button bar.
             * If not, throw away the button bar composite.  Otherwise
             * there is an unusually large button bar.
             */
            if (buttonBar.getChildren().length < 1) {
        buttonBar.dispose();
      }
        }
    }

 
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.