}
return ret;
}
private PossibleValue createProposal(NavigationRuleType rule, NavigationCaseType navCase) {
PossibleValue pv = null;
String value = null;
String ruleDisp = null;
String navDisplay = null;
String navAction = null;
String toViewId = null;
if (navCase.getFromOutcome() != null)
value = navCase.getFromOutcome().getTextContent();
if (navCase.getToViewId()!= null)
toViewId = navCase.getToViewId().getTextContent();
if (rule.getFromViewId() != null)
ruleDisp = rule.getFromViewId().getTextContent();
if (navCase.getDisplayName() != null
&& navCase.getDisplayName().size() > 0) {
navDisplay = ((DisplayNameType) navCase
.getDisplayName().get(0)).getTextContent();
}
if (navCase.getFromAction() != null) {
navAction= navCase.getFromAction().getTextContent();
}
if (navDisplay == null || navDisplay.trim().equals("")) //$NON-NLS-1$
navDisplay = NLS.bind(Messages.ActionType_navcase_display, new String[]{value, toViewId});
if (value != null){
pv = new PossibleValue(value, navDisplay);
pv.setIcon(getNavCaseImageDescriptor());
pv.setAdditionalInformation("from-outcome: "+value //$NON-NLS-1$
+ "<br>to-view-id: " + toViewId //$NON-NLS-1$
+ "<br>from-view-id: " + ruleDisp //$NON-NLS-1$
+ "<br>from-action: " + (navAction == null ? "null" : navAction)); //$NON-NLS-1$ //$NON-NLS-2$
}