1 11 package org.eclipse.help.internal; 12 13 import org.eclipse.help.ICommandLink; 14 import org.w3c.dom.Element ; 15 16 public class CommandLink extends UAElement implements ICommandLink { 17 18 public static final String NAME = "command"; public static final String ATTRIBUTE_LABEL = "label"; public static final String ATTRIBUTE_SERIALIZATION = "serialization"; 22 public CommandLink(ICommandLink src) { 23 super(NAME, src); 24 setLabel(src.getLabel()); 25 setSerialization(src.getSerialization()); 26 } 27 28 public CommandLink(Element src) { 29 super(src); 30 } 31 32 public String getLabel() { 33 return getAttribute(ATTRIBUTE_LABEL); 34 } 35 36 public String getSerialization() { 37 return getAttribute(ATTRIBUTE_SERIALIZATION); 38 } 39 40 public void setLabel(String label) { 41 setAttribute(ATTRIBUTE_LABEL, label); 42 } 43 44 public void setSerialization(String serialization) { 45 setAttribute(ATTRIBUTE_SERIALIZATION, serialization); 46 } 47 } 48 | Popular Tags |