30313233343536373839
if (policy instanceof LabelDirectEditPolicy) { return new DirectEditAction(part); } if (policy instanceof MapEditPolicy ) { return new EditMapAction(part); } return null; }