if (pack != null) {
fPackageDialogField.setText(pack.getElementName());
}
}
});
fPackageDialogField.setDialogFieldListener(new IDialogFieldListener() {
public void dialogFieldChanged(DialogField field) {
fPackageStatus = updatePackage();
fAspectNameStatus = updateAspectName();
handleFieldChanged(PACKAGE);
}
});
fPackageDialogField.setLabelText("Package");
fPackageDialogField.setButtonLabel("Browse...");
fPackageDialogField.setStatusWidthHint("(default)");
fAspectNameDialogField = new StringDialogField();
fAspectNameDialogField.setDialogFieldListener(new IDialogFieldListener() {
public void dialogFieldChanged(DialogField field) {
fAspectNameStatus = updateAspectName();
handleFieldChanged(ASPECT_NAME);
}
});
fAspectNameDialogField.setLabelText("Aspect Name:");
fCrosscutTypeDialogField = new ComboDialogField(SWT.READ_ONLY);
fCrosscutTypeDialogField.setDialogFieldListener(new IDialogFieldListener() {
public void dialogFieldChanged(DialogField field) {
fCrosscutTypeStatus = updateCrosscutType();
handleFieldChanged(CROSSCUT_TYPE);
}
});
fCrosscutTypeDialogField.setLabelText("Crosscut Type:");
fCrosscutTypeDialogField.setItems(new String[] { "MethodCut", "MethodRedefineCut", "GetCut", "SetCut", "ThrowCut", "CatchCut"});
fPointCutterDialogField = new ComboDialogField(SWT.READ_ONLY);
fPointCutterDialogField.setDialogFieldListener(new IDialogFieldListener() {
public void dialogFieldChanged(DialogField field) {
fPointCutterStatus = updatePointCutter();
handleFieldChanged(POINT_CUTTER);
}
});