}
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);
}