+ public void toggleAdvancedMediaView() {
+ if (getEntity().getRepresentations() != null
+ && (getEntity().getRepresentations().size() > 1 ||
+ (getEntity().getRepresentations().size() == 1
+ && getEntity().getRepresentations().iterator().next().getParts().size() > 1))) {
+ MessagingUtils.informationDialog("Toggling not possible",
+ "Media has consists of multiple representations or representatio parts");
+ // toggling is only possible if there are no more than one
+ // MediaRepresentation resp. MediaRepresentationParts
+ return;
+ }