public void moveAbove(final ProviderArea area) { container.moveAbove(area.container); }
private void layoutFacade( final Composite facade ) { Rectangle bounds = composite.getBounds(); facade.setBounds( 0, 0, bounds.width, bounds.height ); facade.moveAbove( null ); }
/** * Shows the given tab. */ private void showTab(TabContents target) { if (target != null) { Composite tabComposite = (Composite) tabToComposite.get(target); 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); } } }
/** * Shows the given tab. */ private void showTab(Tab target) { if (target != null) { Composite tabComposite = (Composite) tabToComposite.get(target); 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); } } }
public SWTTPPlatform (SWTPlatform platform, JavaPlatform.Config config) { _platform = platform; _overlay = _platform.composite(); _convert = new SWTConvert(display()); // Figure out the os String osname = System.getProperty("os.name"); osname = (osname == null) ? "" : osname; if (osname.indexOf("Windows") != -1) _os = OS.WINDOWS; else if (osname.indexOf("Mac OS") != -1 || osname.indexOf("MacOS") != -1) _os = OS.MAC; else if (osname.indexOf("Linux") != -1) _os = OS.LINUX; else System.err.println("Unmatching os name: " + osname); 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)); } display().addFilter(SWT.MouseDown, new Listener() { @Override public void handleEvent (Event event) { if (event.widget == _platform.graphics().canvas() && (_kfc == null || _kfc.unfocusForLocation(new Point(event.x, event.y)))) { clearFocus(); } } }); }
if (fDescriptionComposite == null) { fDescriptionComposite= new Composite(fPageContent, SWT.NONE); fDescriptionComposite.moveAbove(null);
parent.moveAbove( this, control );
install_area_parent.moveAbove(null);
GridData gridData = new GridData(SWT.RIGHT, SWT.CENTER, true, false); cCategoriesAndTags.setLayoutData(gridData); cCategoriesAndTags.moveAbove(null);
long /*int*/ parentHandle = parentingHandle (); if (sibling == 0 && parentHandle == fixedHandle) { moveAbove (child, scrolledHandle != 0 ? scrolledHandle : handle); return;
int /*long*/ parentHandle = parentingHandle (); if (sibling == 0 && parentHandle == fixedHandle) { moveAbove (child, scrolledHandle != 0 ? scrolledHandle : handle); return;
int /*long*/ parentHandle = parentingHandle (); if (sibling == 0 && parentHandle == fixedHandle) { moveAbove (child, scrolledHandle != 0 ? scrolledHandle : handle); return;
hostPane.moveAbove(null); hostPane.setVisible(true); isShowing = true;
if (composite != null && !composite.isDisposed()) { composite.setVisible(true); composite.moveAbove(null);
shell.setLocation(shell.getLocation().x, originalShellLocation.y - detailArea.getSize().y - 3); detailArea.moveAbove(null); lastControl = null; Control[] children = detailArea.getChildren();
parent.moveAbove (topHandle, siblingHandle); } else { parent.moveBelow (topHandle, siblingHandle);
parent.moveAbove (topHandle, siblingHandle); } else { parent.moveBelow (topHandle, siblingHandle);
parent.moveAbove (topHandle, siblingHandle); } else { parent.moveBelow (topHandle, siblingHandle);
hostPane.moveAbove(null); hostPane.setVisible(true);