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