typeLabel.setLayoutData(data);
propertyTypes = new Combo(container, SWT.BORDER);
//get the proper properties types
CFSyntaxDictionary cfmldic = (CFSyntaxDictionary)DictionaryManager.getDictionary(
DictionaryManager.CFDIC
);
TreeSet cftypes = new TreeSet(cfmldic.getFilteredAttributeValues("cfproperty", "type", ""));
Iterator i = cftypes.iterator();
String[] str = new String[cftypes.size()];
int q=0;
while(i.hasNext()){
str[q++] = ((Value)i.next()).getValue();
}
propertyTypes.setItems(str);
propertyTypes.addSelectionListener(new SelectionListener() {
public void widgetSelected(SelectionEvent e) {
propertyChanged();
}
public void widgetDefaultSelected(SelectionEvent e){;}
});
propertyTypes.addFocusListener(new FocusListener(){
public void focusGained(FocusEvent e){ ;}
public void focusLost(FocusEvent e){
propertyChanged();
}
});
propertyTypes.setEnabled(false);
data = new GridData ();
data.horizontalIndent = 5;
data.horizontalAlignment = GridData.BEGINNING;
data.verticalAlignment = GridData.BEGINNING;
data.widthHint = 295;
propertyTypes.setLayoutData(data);
///////////////////////////////////////////////////////////// WRITE GETTER
Label blankLabel2 = new Label(container, SWT.NULL);
blankLabel2.setText("");
data = new GridData();
data.horizontalAlignment = GridData.BEGINNING;
data.verticalAlignment = GridData.BEGINNING;
blankLabel2.setLayoutData(data);
propertyWriteGetter = new Button(container, SWT.CHECK);
propertyWriteGetter.setText("Write &Getter");
data = new GridData();
data.horizontalIndent = 5;
data.horizontalAlignment = GridData.BEGINNING;
propertyWriteGetter.setLayoutData(data);
propertyWriteGetter.addSelectionListener(new SelectionListener() {
public void widgetSelected(SelectionEvent e) {
setGetterAccessEnabled(propertyWriteGetter.getSelection());
propertyChanged();
}
public void widgetDefaultSelected(SelectionEvent e) {;}
});
Label getterAccessLabel = new Label (container, SWT.NONE | SWT.READ_ONLY);
getterAccessLabel.setText ("&access:");
data = new GridData();
data.horizontalIndent = 5;
data.verticalAlignment = GridData.BEGINNING;
data.horizontalAlignment = GridData.END;
getterAccessLabel.setLayoutData(data);
getterAccessValues = new Combo(container, SWT.BORDER);
//get the proper access types
TreeSet accessTypes = new TreeSet(cfmldic.getFilteredAttributeValues("cffunction", "access", ""));
i = accessTypes.iterator();
str = new String[accessTypes.size()];
q=0;
while(i.hasNext()){
str[q++] = ((Value)i.next()).getValue();