if (el.toName().equals("Name")) {
Set choices = JaWEManager.getInstance().getXPDLUtils().getAllExtendedAttributeNames((XMLComplexElement) el.getParent().getParent().getParent(),
JaWEManager.getInstance().getXPDLHandler());
String choosen = el.toValue();
choices.add(choosen);
return new XMLComboPanel(getPanelContainer(),
el,
new ArrayList(choices),
false,
true,
false,
true,
JaWEManager.getInstance().getJaWEController().canModifyElement(el));
}
XMLElement holder = el.getParent().getParent().getParent();
if (XMLUtil.getWorkflowProcess(holder) != null && (holder instanceof Activity || holder instanceof Transition || holder instanceof Tool || holder instanceof WorkflowProcess)) {
return generateMultiLineTextPanel(el, "Value", false, true, XMLMultiLineTextPanel.SIZE_LARGE, false, JaWEManager.getInstance().getJaWEController().canModifyElement(el));
} else if (holder instanceof Application && ((Application) holder).getApplicationTypes().getChoosen() instanceof FormalParameters) {
return generateMultiLineTextPanel(el, "Value", false, true, XMLMultiLineTextPanel.SIZE_LARGE, false, JaWEManager.getInstance().getJaWEController().canModifyElement(el));
} else {
return generateMultiLineTextPanel(el, "Value", false, true, XMLMultiLineTextPanel.SIZE_LARGE, false, JaWEManager.getInstance().getJaWEController().canModifyElement(el));
}
}
if (el.getParent() instanceof BlockActivity) {
WorkflowProcess wp = XMLUtil.getWorkflowProcess(el);
List choices = wp.getActivitySets().toElements();
XMLElement choosen = wp.getActivitySet(el.toValue());
SpecialChoiceElement cc = new SpecialChoiceElement(el,
"",
choices,
choosen,
true,
"Id",
"ActivitySet",
el.isRequired());
cc.setReadOnly(el.isReadOnly());
return new XMLComboPanel(getPanelContainer(),
cc,
null,
false,
true,
false,
false,
JaWEManager.getInstance().getJaWEController().canModifyElement(el));
}
if (el.toName().equalsIgnoreCase("From")) {
return getPanelForFROMAttribute((Transition) el.getParent());
}
if (el.toName().equalsIgnoreCase("To")) {
return getPanelForTOAttribute((Transition) el.getParent());
}
if (el.toName().equalsIgnoreCase("ObjectClassFilter")) {
return new XMLComboPanel(getPanelContainer(),
el,
null,
true,
true,
false,