Package com.brosinski.eclipse.regex.view.actions

Examples of com.brosinski.eclipse.regex.view.actions.StandardTextFieldAction


    }

    private void setTextMenuItems(StyledText text) {
        MenuItem mitCut = new MenuItem(text.getMenu(), SWT.NONE);
        mitCut.setText("Cu&t");
        mitCut.setData(new StandardTextFieldAction(text,
                StandardTextFieldAction.CUT));
        mitCut.addSelectionListener(this);

        MenuItem mitCopy = new MenuItem(text.getMenu(), SWT.NONE);
        mitCopy.setText("&Copy");
        mitCopy.setData(new StandardTextFieldAction(text,
                StandardTextFieldAction.COPY));
        mitCopy.addSelectionListener(this);

        MenuItem mitPaste = new MenuItem(text.getMenu(), SWT.NONE);
        mitPaste.setText("&Paste");
        mitPaste.setData(new StandardTextFieldAction(text,
                StandardTextFieldAction.PASTE));
        mitPaste.addSelectionListener(this);

        MenuItem mitSelectAll = new MenuItem(text.getMenu(), SWT.NONE);
        mitSelectAll.setText("Select &All");
        mitSelectAll.setData(new StandardTextFieldAction(text,
                StandardTextFieldAction.SELECT_ALL));
        mitSelectAll.addSelectionListener(this);
    }
View Full Code Here

TOP

Related Classes of com.brosinski.eclipse.regex.view.actions.StandardTextFieldAction

Copyright © 2018 www.massapicom. 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.