コード例 #1
0
 public static Extension makeIssueSource(Source source) {
   Extension ex = new Extension();
   // todo: write this up and get it published with the pack (and handle the redirect?)
   ex.setUrlSimple(ToolingExtensions.EXT_ISSUE_SOURCE);
   Code c = new Code();
   c.setValue(source.toString());
   ex.setValue(c);
   return ex;
 }
コード例 #2
0
 public static void addDefinition(Code nc, String definition) throws Exception {
   if (!Utilities.noString(definition))
     nc.getExtensions()
         .add(Factory.newExtension(EXT_DEFINITION, Factory.newString_(definition), true));
 }
コード例 #3
0
 public static void addComment(Code nc, String comment) throws Exception {
   if (!Utilities.noString(comment))
     nc.getExtensions().add(Factory.newExtension(EXT_COMMENT, Factory.newString_(comment), true));
 }