Examples of addSelectionListener()


Examples of org.eclipse.ui.IWorkbenchPage.addSelectionListener()

    addListeners();
  }

  private void addListeners() {
    IWorkbenchPage page = getWorkbenchPage();
    page.addSelectionListener(selectionListener);
    page.addPartListener(partListener);
  }

  private IWorkbenchPage getWorkbenchPage() {
    return theController.getView().getSite().getPage();
View Full Code Here

Examples of org.gdbms.engine.data.DataSource.addSelectionListener()

   
    public void testSelectionChange() throws Exception {
        DataSource d = ds.getDataSource("persona", DataSourceFactory.UNDOABLE);
       
        TheSelectionListener tsl = new TheSelectionListener();
        d.addSelectionListener(tsl);
        d.setSelectedRows(new int[]{1,2,3});
        assertTrue(tsl.counter == 1);
        int[] sel = new int[]{1,2,4};
        d.setSelectedRows(sel);
        assertTrue(tsl.counter == 2);
View Full Code Here

Examples of org.jitterbit.ui.widget.list.KongaList.addSelectionListener()

            @Override
            public void actionPerformed(ActionEvent e) {
                fireActionEvent();
            }
        });
        list.addSelectionListener(new SelectionListener() {

            @Override
            public void selectionChanged(SelectionChangedEvent evt) {
                fireInputChanged();
            }
View Full Code Here

Examples of org.jitterbit.ui.widget.table.KongaRowTable.addSelectionListener()

        table.setCellRendererFor(Model.NAME, new IntegrationEntityTableCellRenderer());
        DateRenderer dateRenderer = new DateRenderer();
        table.setCellRendererFor(Model.CREATED, dateRenderer);
        table.setCellRendererFor(Model.MODIFIED, dateRenderer);
        KongaRowTable rowTable = new KongaRowTable(table);
        rowTable.addSelectionListener(new SelectionListener() {

            @Override
            public void selectionChanged(SelectionChangedEvent evt) {
                IntegrationEntity entity = getSelectedEntity();
                publishPath(ResultTable.this, entity);
View Full Code Here

Examples of org.rssowl.ui.internal.CoolBarAdvisor.CoolBarItem.addSelectionListener()

            else
              item.setText(toolItem.getName());
            if (toolItem.getImg() != null)
              item.setImage(fResources.createImage(toolItem.getImg()));

            item.addSelectionListener(new SelectionAdapter() {
              @Override
              public void widgetSelected(SelectionEvent e) {

                /* Add Item */
                onAdd(toolItem);
View Full Code Here

Examples of org.sf.feeling.swt.win32.extension.widgets.CButton.addSelectionListener()

    return widget;
  }
 
  public CButton createCButton(Composite com, int style, String text, SelectionListener listener){
    CButton widget = createCButton(com, style, text);
    if(listener != null) widget.addSelectionListener(listener);
    return widget;
  }
 
  public CCheckBox createCCheckBox(Composite com, String text, SelectionListener listener){
    CCheckBox widget = createCCheckBox(com, text);
View Full Code Here

Examples of org.sf.feeling.swt.win32.extension.widgets.CCheckBox.addSelectionListener()

    return widget;
  }
 
  public CCheckBox createCCheckBox(Composite com, String text, SelectionListener listener){
    CCheckBox widget = createCCheckBox(com, text);
    if(listener != null) widget.addSelectionListener(listener);
    return widget;
  }
 
  public Button createButton(Composite com, int style, String text, String tip, SelectionListener listener){
    Button widget = createButton(com, style, text);
View Full Code Here

Examples of org.sf.feeling.swt.win32.extension.widgets.CMenuItem.addSelectionListener()

      PopupMenu popupMenu = new PopupMenu(text, XPWidgetTheme.THEME);
      CMenu menu = new CMenu();
      popupMenu.setMenu(menu);
      text.setMenu(new Menu(text.getShell(), SWT.POP_UP));
      CMenuItem item = new CMenuItem(SWT.NONE);
      item.addSelectionListener(new SelectionAdapter() {
        @SuppressWarnings("unused")
        public void widgetSelected(SelectionEvent e) {
          text.setText("");
        }
      });
View Full Code Here

Examples of org.vietspider.ui.widget.CoolButton.addSelectionListener()

    toggleButton.setHotRegionMask(ToolBoxImageRegistry.getImage(ToolBoxImageRegistry.IMG_BUTTON_CHECKBOX_HOT_SPOT));
    toggleButton.setHotToggledRegionMask(ToolBoxImageRegistry.getImage(ToolBoxImageRegistry.IMG_BUTTON_HOT_SPOT_TOGGLED));
    gridData = new GridData(SWT.CENTER, SWT.CENTER, false, false);
    toggleButton.setLayoutData(gridData);
    toggleButton.setToolTipText(factory.getLabel("butComplete"));
    toggleButton.addSelectionListener(new CoolButtonSelectionListener(){
      @SuppressWarnings("unused")
      public void selectionOnPress(CoolButtonSelectionEvent e) {
        showAll = !showAll;
        Preferences prefs = Preferences.userNodeForPackage(HTMLExplorerViewer.class);
        prefs.put("showAll", String.valueOf(showAll));
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.