Versionen im Vergleich

Schlüssel

  • Diese Zeile wurde hinzugefügt.
  • Diese Zeile wurde entfernt.
  • Formatierung wurde geändert.
Kommentar: Migrated to Confluence 5.3

...

Codeblock
titleAktuelles Annotationsprofil ermitteln
  /**
   * Returns the current annotation profile.
   *
   * @return Annotation profile
   */
  protected AnnotationProfile getAnnotationProfile() {
    // AnnotationPageSegment holen, wenn vorhanden
	AnnotationProfile ap = AnnotationProfile.get(getPageView().getCurrentPage());
    if (null == ap) {
      // Wenn nicht vorhanden, Annotationsprofil aus Dokument holen
      ap = AnnotationProfile.get(getPageView().getDocument());
    }
    if (null == ap) {
      // Wenn nicht vorhanden, Standardannotationsprofil holen
      ap = AnnotationProfile.getDefaultProfile();
    }
    return ap;
  }