Example #1
0
 private void checkAbstractMarkupLanguage(MarkupLanguage language, String field) {
   if (!(language instanceof AbstractMarkupLanguage)) {
     throw new BuildException(
         MessageFormat.format(
             Messages.getString("MarkupTask.2"),
             field, //$NON-NLS-1$
             language.getName()));
   }
 }
 public void setMarkupLanguage(MarkupLanguage markupLanguage) {
   templates =
       markupLanguage == null
           ? null
           : WikiTextUiPlugin.getDefault().getTemplates().get(markupLanguage.getName());
 }