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);
GridData gridData12 = new GridData(GridData.FILL, GridData.CENTER, true, false);
gridData12.horizontalIndent = -1;
tFileName = new Text(gDescription, SWT.BORDER);
tFileName.setLayoutData(gridData12);
tFileName.addModifyListener(new org.eclipse.swt.events.ModifyListener() {
public void modifyText(org.eclipse.swt.events.ModifyEvent e) {
if(init) return;
listener.setInclude(tFileName.getText(), butIsLiveFile.getSelection());
if(tFileName.getText()!= null && tFileName.getText().length() > 0 ) {
butShow.setEnabled(true);
if(tFileName.getText().endsWith(".xml"))
butOpen.setEnabled(true);
else
butOpen.setEnabled(false);
} else {
butShow.setEnabled(false);
butOpen.setEnabled(false);
}
}
});
butIsLiveFile = new Button(gDescription, SWT.CHECK);
butIsLiveFile.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(final SelectionEvent e) {
if(init) return;
listener.setInclude(tFileName.getText(), butIsLiveFile.getSelection());
if(tFileName.getText()!= null && tFileName.getText().length() > 0) {
butShow.setEnabled(true);
if(tFileName.getText().endsWith(".xml"))
butOpen.setEnabled(true);
else
butOpen.setEnabled(false);
} else {
butShow.setEnabled(false);
butOpen.setEnabled(false);
}
}
});
butIsLiveFile.setLayoutData(new GridData());
butIsLiveFile.setText("from Hot Folder");
GridData gridData14 = new org.eclipse.swt.layout.GridData(GridData.FILL, GridData.FILL, true, true, 1, 3);
gridData14.horizontalIndent = -1;
tDescription = new Text(gDescription, SWT.MULTI | SWT.V_SCROLL | SWT.BORDER | SWT.H_SCROLL);
tDescription.addKeyListener(new KeyAdapter() {
public void keyPressed(final KeyEvent e) {
if(e.keyCode==97 && e.stateMask == SWT.CTRL){
tDescription.setSelection(0, tDescription.getText().length());
}
}