1 11 12 package org.eclipse.ui.internal.intro.impl.model; 13 14 import org.osgi.framework.Bundle; 15 import org.w3c.dom.Element ; 16 17 20 public class IntroInclude extends AbstractIntroElement { 21 22 protected static final String TAG_INCLUDE = "include"; 24 private static final String ATT_CONFIG_ID = "configId"; protected static final String ATT_PATH = "path"; 29 private static final String ATT_MERGE_STYLE = "merge-style"; 31 private String configId; 32 private String path; 33 private boolean mergeStyle = false; 34 35 IntroInclude(Element element, Bundle bundle) { 36 super(element, bundle); 37 configId = getAttribute(element, ATT_CONFIG_ID); 38 path = getAttribute(element, ATT_PATH); 39 String mergeStyleString = getAttribute(element, ATT_MERGE_STYLE); 40 mergeStyle = (mergeStyleString != null && mergeStyleString 41 .equalsIgnoreCase("true")) ? true : false; } 43 44 47 public String getConfigId() { 48 return configId; 49 } 50 51 54 public boolean getMergeStyle() { 55 return mergeStyle; 56 } 57 58 61 public String getPath() { 62 return path; 63 } 64 65 70 public int getType() { 71 return AbstractIntroElement.INCLUDE; 72 } 73 74 } 75 | Popular Tags |