Package org.eclipse.swt.widgets

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


        btnMoveDown.setText("Down");
        btnMoveDown.setImage(imgDown);
        btnMoveDown.setEnabled(false);

        // Listeners
        table.addFocusListener(new FocusAdapter() {
            @Override
            public void focusGained(FocusEvent e) {
                ISelection selection = viewer.getSelection();
                if (!selection.isEmpty())
                    managedForm.fireSelectionChanged(PkgPatternsListPart.this, selection);
View Full Code Here


        btnMoveDown.setText("Down");
        btnMoveDown.setImage(imgDown);
        btnMoveDown.setEnabled(false);

        // Listeners
        table.addFocusListener(new FocusAdapter() {
            @Override
            public void focusGained(FocusEvent e) {
                ISelection selection = viewer.getSelection();
                if (!selection.isEmpty())
                    managedForm.fireSelectionChanged(PkgPatternsListPart.this, selection);
View Full Code Here

    dialog.setBounds(dialog.computeTrim(tableBounds.x, tableBounds.y,
        tableBounds.width, tableBounds.height));

    tc.setWidth(table.getClientArea().width);
    table.setFocus();
    table.addFocusListener(new FocusListener() {
      public void focusGained(FocusEvent e) {
        // Do nothing
      }

      public void focusLost(FocusEvent e) {
View Full Code Here

        table.setBounds(tableBounds);
        dialog.pack();

        tc.setWidth(table.getClientArea().width);
        table.setFocus();
        table.addFocusListener(new FocusListener() {
            public void focusGained(FocusEvent e) {
            }

            public void focusLost(FocusEvent e) {
                cancel(dialog);
View Full Code Here

        table.setBounds(tableBounds);
        dialog.pack();

        tc.setWidth(table.getClientArea().width);
        table.setFocus();
        table.addFocusListener(new FocusListener() {
            public void focusGained(FocusEvent e) {
            }

            public void focusLost(FocusEvent e) {
                cancel(dialog);
View Full Code Here

                        synchronized (lock) {
                            if (fInstalled && keyAssistDialog != null && !completionsTable.isDisposed()) {
                                if (!completionsTable.isFocusControl()) {
                                    leave();
                                } else {
                                    completionsTable.addFocusListener(new FocusListener() {

                                        public void focusLost(FocusEvent e) {
                                            leave();
                                        }
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.