//if(parent_.getName().equals("config"))
// _main.expandItem("Weekdays");
read();
}
});
lUsedDays = new List(group, SWT.BORDER);
lUsedDays.setLayoutData(gridData);
lUsedDays.addSelectionListener(new org.eclipse.swt.events.SelectionAdapter() {
public void widgetSelected(org.eclipse.swt.events.SelectionEvent e) {
listOfGroup.removeAll();
bRemove.setEnabled(lUsedDays.getSelectionCount() > 0);
boolean isGroup = false;
if(lUsedDays.getSelectionCount() > 0) {
//String[] split = lUsedDays.getSelection()[0].split(" ");
String[] split = null;
if(_type == DaysListener.SPECIFIC_MONTHS)
split = lUsedDays.getSelection()[0].split(" ");
else if(_type == DaysListener.ULTIMOS)
split = listener.getNormalizedUltimos(lUsedDays.getSelection()[0]);
else
split = lUsedDays.getSelection()[0].split(" ");
if(split.length > 0) {
isGroup = true;
listOfGroup.setItems(split);
}
}
setEnabledGroupElement(isGroup);
newGroup= false;
}
});
bRemove = new Button(group, SWT.NONE);
bRemove.setText(_removeLabel[_type]);
bRemove.setEnabled(false);
bRemove.setLayoutData(gridData3);
bRemove.addSelectionListener(new org.eclipse.swt.events.SelectionAdapter() {
public void widgetSelected(org.eclipse.swt.events.SelectionEvent e) {
newGroup = false;
delete();
listOfGroup.removeAll();
}
});
listOfDays = new List(group, SWT.BORDER);
listOfDays.setItems(listener.getAllDays());
listOfDays.addMouseListener(new MouseAdapter() {
public void mouseDoubleClick(final MouseEvent e) {
addGroupDay();
}
});
final GridData gridData_2 = new GridData(GridData.FILL, GridData.FILL, true, false, 2, 3);
gridData_2.minimumWidth = 30;
listOfDays.setLayoutData(gridData_2);
new Label(group, SWT.NONE);
listOfGroup = new List(group, SWT.BORDER);
listOfGroup.addMouseListener(new MouseAdapter() {
public void mouseDoubleClick(final MouseEvent e) {
removeGroupDay();
if(listOfGroup.getItemCount() > 0)
butApplyGroup.setEnabled(true);