Example #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;
  }
Example #3
0
 public void focus() {
   if (locationBar != null) {
     locationBar.setFocus();
   } else {
     if (browser != null) {
       browser.setFocus();
     } else {
       parent.setFocus();
     }
   }
 }
Example #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();
 }
Example #6
0
 @Override
 public void setFocus() {
   composite.setFocus();
 }
 /** Grabs input focus. */
 public void setFocus() {
   mainComposite.setFocus();
 }
Example #8
0
 @Override
 public void setFocus() {
   if (fControl != null) {
     fControl.setFocus();
   }
 }
Example #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();
 }
Example #11
0
 public void postSetFocus() {
   pnlRoot.setFocus();
 }
Example #12
0
 @Focus
 public void setFocus() {
   mParent.setFocus();
 }
 @Override
 public void setFocus() {
   main.setFocus();
 }
Example #14
0
 public void setFocus() {
   banner.setFocus();
 }