Examples of notifyListeners()


Examples of org.eclipse.swt.widgets.Control.notifyListeners()

  private void helpPressed() {
      if (getShell() != null) {
        Control c = getShell().getDisplay().getFocusControl();
        while (c != null) {
          if (c.isListening(SWT.Help)) {
            c.notifyListeners(SWT.Help, new Event());
            break;
          }
          c = c.getParent();
        }
      }
View Full Code Here

Examples of org.eclipse.swt.widgets.Control.notifyListeners()

        MenuItem menuItem = null;
        Control control = bot.widget;

        // MenuDetectEvent added by Stefan Schaefer
        Event event = new Event();
        control.notifyListeners(SWT.MenuDetect, event);
        if (!event.doit) {
          return null;
        }

        Menu menu = control.getMenu();
View Full Code Here

Examples of org.eclipse.swt.widgets.MenuItem.notifyListeners()

  @Test
  public void clicksMenuItem() throws Exception {
    List<MenuItem> findControls = menuFinder.findMenus(any(MenuItem.class));
    MenuItem menuItem = findControls.get(1);
    try {
      menuItem.notifyListeners(SWT.Selection, null);
      fail("Expecting an SWTException");
    } catch (SWTException e) {
      pass();
    }
    assertText("&New Contact...  Ctrl+N", menuItem);
View Full Code Here

Examples of org.eclipse.swt.widgets.Shell.notifyListeners()

            Event event = new Event();
            event.type = type;
            event.display = shellAffected.getDisplay();
            event.widget = shellAffected;
            shellAffected.notifyListeners(type, event);

            shellAffected.setData("OSX.ToolBarToggle", new Long(
                type == SWT.Collapse ? 1 : 0));
          }
        });
View Full Code Here

Examples of org.eclipse.swt.widgets.Table.notifyListeners()

        table.setSelection(quickFixIndex);
        Event event = new Event();
        event.type = SWT.Selection;
        event.widget = table;
        event.item = table.getItem(quickFixIndex);
        table.notifyListeners(SWT.Selection, event);
        table.notifyListeners(SWT.DefaultSelection, event);
      }
    });
    bot.sleep(1000);
    // quickFixTable.select(quickFixIndex);
View Full Code Here

Examples of org.eclipse.swt.widgets.Table.notifyListeners()

        Event event = new Event();
        event.type = SWT.Selection;
        event.widget = table;
        event.item = table.getItem(quickFixIndex);
        table.notifyListeners(SWT.Selection, event);
        table.notifyListeners(SWT.DefaultSelection, event);
      }
    });
    bot.sleep(1000);
    // quickFixTable.select(quickFixIndex);
  }
View Full Code Here

Examples of org.eclipse.swt.widgets.Table.notifyListeners()

        table.setSelection(proposalIndex);
        Event event = new Event();
        event.type = SWT.Selection;
        event.widget = table;
        event.item = table.getItem(proposalIndex);
        table.notifyListeners(SWT.Selection, event);
        table.notifyListeners(SWT.DefaultSelection, event);
      }
    });
  }
View Full Code Here

Examples of org.eclipse.swt.widgets.Table.notifyListeners()

        Event event = new Event();
        event.type = SWT.Selection;
        event.widget = table;
        event.item = table.getItem(proposalIndex);
        table.notifyListeners(SWT.Selection, event);
        table.notifyListeners(SWT.DefaultSelection, event);
      }
    });
  }

  /**
 
View Full Code Here

Examples of org.eclipse.swt.widgets.Table.notifyListeners()

        table.setSelection(proposalIndex);
        Event event = new Event();
        event.type = SWT.Selection;
        event.widget = table;
        event.item = table.getItem(proposalIndex);
        table.notifyListeners(SWT.Selection, event);
        table.notifyListeners(SWT.DefaultSelection, event);
      }
    });
  }
View Full Code Here

Examples of org.eclipse.swt.widgets.Table.notifyListeners()

        Event event = new Event();
        event.type = SWT.Selection;
        event.widget = table;
        event.item = table.getItem(proposalIndex);
        table.notifyListeners(SWT.Selection, event);
        table.notifyListeners(SWT.DefaultSelection, event);
      }
    });
  }

  /**
 
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.