1 19 20 package org.netbeans.lib.ddl.impl; 21 22 import java.util.*; 23 import org.netbeans.lib.ddl.*; 24 import org.netbeans.lib.ddl.impl.*; 25 26 33 34 public class CommentView extends AbstractCommand 35 { 36 private String comment; 37 38 static final long serialVersionUID =-3070595900954150762L; 39 public String getComment() 40 { 41 return comment; 42 } 43 44 public void setComment(String comm) 45 { 46 String delim = (String )getSpecification().getProperties().get("StringDelimiter"); if (!(comm.startsWith(delim))) comment = delim+comm+delim; 48 else comment = comm; 49 } 50 51 public Map getCommandProperties() 52 throws DDLException 53 { 54 Map args = super.getCommandProperties(); 55 args.put("comment", comment); return args; 57 } 58 } 59 60 70 | Popular Tags |