Beispiel #1
0
 public MainWindow(Composite parent, int style) {
   super(parent, style);
   initGUI();
   setPreferences();
   waitCursor = getDisplay().getSystemCursor(SWT.CURSOR_WAIT);
   defaultCursor = getDisplay().getSystemCursor(SWT.CURSOR_ARROW);
   clientArea.setFocus();
 }
  protected Composite createInsertPositionCombo(Composite composite) {
    Composite selectionComposite = new Composite(composite, SWT.NONE);
    GridLayout layout = new GridLayout();
    layout.marginHeight = 0;
    layout.marginWidth = 0;
    selectionComposite.setLayout(layout);
    composite.setFocus();
    addOrderEntryChoices(selectionComposite);

    return selectionComposite;
  }
Beispiel #3
0
 public void focus() {
   if (locationBar != null) {
     locationBar.setFocus();
   } else {
     if (browser != null) {
       browser.setFocus();
     } else {
       parent.setFocus();
     }
   }
 }
Beispiel #4
0
 @Override
 public void setFocus() {
   /*
   System.out.println("setFocus: " + Thread.currentThread());
    */
   if (fEmbeddedWindow != null) {
     fEmbeddedWindow.setFocus();
     //			fEmbeddedWindow.forceFocus();
     //			fEmbeddedWindow.traverse(SWT.TRAVERSE_RETURN);
   }
 }
 @Override
 public void setFocus() {
   parent.setFocus();
 }
 @Override
 public void setFocus() {
   composite.setFocus();
 }
 /** Grabs input focus. */
 public void setFocus() {
   mainComposite.setFocus();
 }
Beispiel #8
0
 @Override
 public void setFocus() {
   if (fControl != null) {
     fControl.setFocus();
   }
 }
Beispiel #9
0
 @Override
 public void setFocus() {
   if (container != null) {
     container.setFocus();
   }
 }
 /**
  * Sets the focus.
  *
  * @see org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditorWithFlyOutPalette#setFocus()
  */
 @Override
 public void setFocus() {
   splitter.setFocus();
   super.setFocus();
 }
Beispiel #11
0
 public void postSetFocus() {
   pnlRoot.setFocus();
 }
Beispiel #12
0
 @Focus
 public void setFocus() {
   mParent.setFocus();
 }
 @Override
 public void setFocus() {
   main.setFocus();
 }
Beispiel #14
0
 public void setFocus() {
   banner.setFocus();
 }