Package org.eclipse.swt.widgets

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


    if (skinObject instanceof SWTSkinObjectContainer) {
      SWTSkinObjectContainer container = (SWTSkinObjectContainer) skinObject;
      Composite composite = container.getComposite();
      if (composite != null && !composite.isDisposed()) {
        composite.setVisible(true);
        composite.moveAbove(null);
        //composite.setFocus();
        //container.getParent().relayout();
        composite.getParent().layout();
      }
      // This causes double show because createSkinObject already calls show
View Full Code Here


        if (_os == OS.MAC) {
            // TODO: figure out why this hack allows native text fields to work on Mac
            // In my investigation so far, the hack has to be added on startup, moveAbove must be
            // called and the bounds must overlap with the canvas'.
            Composite hack = new Composite(_overlay, SWT.NONE);
            hack.moveAbove(null);

            // make the hack small and black; TODO: expose color to apps if this hack is permanent
            hack.setBounds(0, 0, 1, 1);
            hack.setBackground(new Color(display(), 0, 0, 0));
        }
View Full Code Here

                | GridData.FILL_HORIZONTAL | GridData.FILL_VERTICAL);
        fileSelectionArea.setLayoutData(fileSelectionData);
        fileSelectionArea.setLayout(new GridLayout(1, false));
        createProjectEditor( fileSelectionArea );
        createFileEditor(fileSelectionArea);
        fileSelectionArea.moveAbove(null);
        setControl(fileSelectionArea);
        setPageComplete(false);
        setMessage(null);
        setErrorMessage(null);
    }
View Full Code Here

                if (tabComposite != null) {
                    /**
                     * the following method call order is important - do not
                     * change it or the widgets might be drawn incorrectly
                     */
                    tabComposite.moveAbove(null);
                    target.aboutToBeShown();
                    tabComposite.setVisible(true);
                }
            }
        }
View Full Code Here

        setFileName(path.lastSegment());
      }
    });
    String[] extensions = new String[] { "*.*" }; //NON-NLS-1
    editor.setFileExtensions(extensions);
    fileSelectionArea.moveAbove(null);

  }
 
   /* (non-Javadoc)
   * @see org.eclipse.ui.dialogs.WizardNewFileCreationPage#createLinkTarget()
View Full Code Here

        fileSelectionLayout.marginHeight = 0;
        fileSelectionArea.setLayout(fileSelectionLayout);

        editor = new FileFieldEditor("fileSelect", Messages.getString("ImportParWizardPage.page.parFile"), fileSelectionArea);
        editor.setFileExtensions(new String[] { "*.par" });
        fileSelectionArea.moveAbove(null);

        createListGroup(wholePageComposite);

        setControl(wholePageComposite);
    }
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.