Package org.eclipse.jface.viewers

Examples of org.eclipse.jface.viewers.TableViewer.refresh()


      public void widgetSelected(SelectionEvent e) {
        CloudServerURL cloudURL = promptForCloudURL(serverTypeId, e.display.getActiveShell(), cloudUrls, null,
            null);
        if (cloudURL != null) {
          addURL(cloudURL);
          viewer.refresh(true);
        }
      }
    });

    final Button editButton = new Button(buttonComposite, SWT.PUSH);
View Full Code Here


              CloudServerURL url = CloudUiUtil.getWildcardUrl(cloudUrl, cloudUrls, getShell());
              if (url != null) {
                addURL(url);
              }
            }
            viewer.refresh(true);
          }
        }
      }
    });
View Full Code Here

              CloudServerURL cloudUrl = (CloudServerURL) selectedItem;
              removeCloudUrl(cloudUrl);
            }
          }
        }
        viewer.refresh(true);
      }

    });

    viewer.addSelectionChangedListener(new ISelectionChangedListener() {
View Full Code Here

        TableViewer viewer = (TableViewer)getViewer();

        dlg.replenishField((String) arg0);


        viewer.refresh();
        dlg.packMappingColumns();

        return true;
    }
View Full Code Here

        }

        entry.setValue((String)arg0);
        dlg.getMapper().putMapping(entry.getKey(), entry.getValue());

        viewer.refresh();
        dlg.packMappingColumns();


        return true;
    }
View Full Code Here

                notification.setBody(notifyBodyText.getText());
                notification.setType(notifyTypeText.getText());
                notification.setExpiresAt(notifyExpiresAtText.getText());
                notifications.add(notification);
                tableViewer.add(notification);
                tableViewer.refresh();
                // clear fields after add operation
                notifyFromText.setText("");
                notifyToText.setText("");
                notifyToGroupsText.setText("");
                notifyReplyToText.setText("");
View Full Code Here

                notification.setBody(notifyBodyText.getText());
                notification.setType(notifyTypeText.getText());
                notification.setExpiresAt(notifyExpiresAtText.getText());
                notifications.add(notification);
                tableViewer.add(notification);
                tableViewer.refresh();
                // clear fields after add operation
                notifyFromText.setText("");
                notifyToText.setText("");
                notifyToGroupsText.setText("");
                notifyReplyToText.setText("");
View Full Code Here

            public void widgetSelected(SelectionEvent event) {
                TableItem[] items = table.getSelection();
                if (items != null && items.length > 0) {
                  notifications.remove((Notification) items[0].getData());
                    tableViewer.remove(items[0]);
                    tableViewer.refresh();
                }
            }
            public void widgetDefaultSelected(SelectionEvent event) {
                TableItem[] items = table.getSelection();
                if (items != null && items.length > 0) {
View Full Code Here

            public void widgetDefaultSelected(SelectionEvent event) {
                TableItem[] items = table.getSelection();
                if (items != null && items.length > 0) {
                  notifications.remove((Notification) items[0].getData());
                    tableViewer.remove(items[0]);
                    tableViewer.refresh();
                }
            }
        });
       
        final Button updateButton = new Button(composite, SWT.NONE);
View Full Code Here

                    notification.setReplyTo(notifyReplyToText.getText());
                    notification.setSubject(notifySubjectText.getText());
                    notification.setBody(notifyBodyText.getText());
                    notification.setType(notifyTypeText.getText());
                    notification.setExpiresAt(notifyExpiresAtText.getText());
                    tableViewer.refresh();
                    // clear fields after add operation
                    notifyFromText.setText("");
                    notifyToText.setText("");
                    notifyToGroupsText.setText("");
                    notifyReplyToText.setText("");
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.