* This method initializes sashForm
*/
private void createSashForm() {
GridLayout gridLayout = new GridLayout();
gridLayout.numColumns = 2;
gMain = new Group(group, SWT.NONE);
gMain.setText("Comment");
final GridData gridData_12 = new GridData(GridData.FILL, GridData.FILL, true, true);
gMain.setLayoutData(gridData_12);
gMain.setLayout(gridLayout);
GridData gridData61 = new org.eclipse.swt.layout.GridData(GridData.FILL, GridData.FILL, true, true, 1, 2);
tComment = new Text(gMain, SWT.V_SCROLL | SWT.MULTI | SWT.BORDER | SWT.WRAP | SWT.H_SCROLL);
tComment.addKeyListener(new KeyAdapter() {
public void keyPressed(final KeyEvent e) {
if(e.keyCode==97 && e.stateMask == SWT.CTRL){
tComment.setSelection(0, tComment.getText().length());
}
}
});
tComment.addMouseListener(new MouseAdapter() {
public void mouseDoubleClick(final MouseEvent e) {
String text = sos.scheduler.editor.app.Utils.showClipboard(tComment.getText(), getShell(), true, "");
if(text != null)
tComment.setText(text);
}
});
tComment.setLayoutData(gridData61);
tComment.setFont(ResourceManager.getFont("Courier New", 8, SWT.NONE));
tComment.addModifyListener(new org.eclipse.swt.events.ModifyListener() {
public void modifyText(org.eclipse.swt.events.ModifyEvent e) {
if(init) return;
listener.setComment(tComment.getText());
}
});
final Button button = new Button(gMain, SWT.NONE);
final GridData gridData = new GridData(GridData.BEGINNING, GridData.BEGINNING, false, false);
gridData.widthHint = 28;
button.setLayoutData(gridData);
button.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(final SelectionEvent e) {
String text = sos.scheduler.editor.app.Utils.showClipboard(tComment.getText(), getShell(), true, "");
if(text != null)
tComment.setText(text);
}
});
button.setImage(ResourceManager.getImageFromResource("/sos/scheduler/editor/icon_edit.gif"));
only4width = new Button(gMain, SWT.CHECK);
only4width.setVisible(false);
only4width.setLayoutData(new GridData());
only4width.setText("from Hot Folder");
GridLayout gridLayout3 = new GridLayout();
gridLayout3.numColumns = 2;
gDescription = new Group(group, SWT.NONE);
final GridData gridData_11 = new GridData(GridData.FILL, GridData.FILL, true, true);
gDescription.setLayoutData(gridData_11);
gDescription.setText("Job Description");
gDescription.setLayout(gridLayout3);