Lines Matching refs:widgets
35 import org.eclipse.swt.widgets.Button;
36 import org.eclipse.swt.widgets.Combo;
37 import org.eclipse.swt.widgets.Composite;
38 import org.eclipse.swt.widgets.Dialog;
39 import org.eclipse.swt.widgets.Display;
40 import org.eclipse.swt.widgets.Event;
41 import org.eclipse.swt.widgets.Group;
42 import org.eclipse.swt.widgets.Label;
43 import org.eclipse.swt.widgets.List;
44 import org.eclipse.swt.widgets.Listener;
45 import org.eclipse.swt.widgets.Shell;
46 import org.eclipse.swt.widgets.Text;
71 /* WIDGETS ON THE RIGHT */
586 final SelectionWidgets widgets = new SelectionWidgets();
588 widgets.mList = new List(eventSelectionPanel, SWT.BORDER | SWT.SINGLE | SWT.V_SCROLL);
589 widgets.mList.setLayoutData(new GridData(GridData.FILL_BOTH));
590 widgets.mList.addSelectionListener(new SelectionAdapter() {
593 int index = widgets.mList.getSelectionIndex();
595 widgets.mDeleteButton.setEnabled(true);
596 widgets.mEditButton.setEnabled(true);
598 widgets.mDeleteButton.setEnabled(false);
599 widgets.mEditButton.setEnabled(false);
611 widgets.mNewButton = new Button(rightControls, SWT.PUSH | SWT.FLAT);
612 widgets.mNewButton.setText("New...");
613 widgets.mNewButton.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
614 widgets.mNewButton.setEnabled(false);
615 widgets.mNewButton.addSelectionListener(new SelectionAdapter() {
635 widgets.mEditButton = new Button(rightControls, SWT.PUSH | SWT.FLAT);
636 widgets.mEditButton.setText("Edit...");
637 widgets.mEditButton.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
638 widgets.mEditButton.setEnabled(false);
639 widgets.mEditButton.addSelectionListener(new SelectionAdapter() {
646 int index = widgets.mList.getSelectionIndex();
660 widgets.mList.select(index);
661 widgets.mList.notifyListeners(SWT.Selection, null);
670 widgets.mDeleteButton = new Button(rightControls, SWT.PUSH | SWT.FLAT);
671 widgets.mDeleteButton.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
672 widgets.mDeleteButton.setText("Delete");
673 widgets.mDeleteButton.setEnabled(false);
674 widgets.mDeleteButton.addSelectionListener(new SelectionAdapter() {
681 int index = widgets.mList.getSelectionIndex();
691 return widgets;