WorkbenchTriggerPointAdvisor.NO_DETAILS,
RESOURCE_BUNDLE
.getString(WorkbenchTriggerPointAdvisor.NO_DETAILS)));
detailsText.setText(""); //$NON-NLS-1$
} else {
IActivity activity = PlatformUI.getWorkbench().getActivitySupport()
.getActivityManager().getActivity(selectedActivity);
String name;
try {
name = activity.getName();
} catch (NotDefinedException e1) {
name = selectedActivity;
}
String desc;
try {
desc = activity.getDescription();
} catch (NotDefinedException e) {
desc = RESOURCE_BUNDLE.getString("noDescAvailable"); //$NON-NLS-1$
}
detailsLabel.setText(MessageFormat.format(RESOURCE_BUNDLE
.getString("detailsLabel"), new Object[] { name })); //$NON-NLS-1$