1 11 12 package org.eclipse.ant.internal.ui.model; 13 14 import org.eclipse.ant.internal.ui.AntUIPlugin; 15 import org.eclipse.ant.internal.ui.preferences.AntEditorPreferenceConstants; 16 import org.eclipse.jface.preference.IPreferenceStore; 17 18 public class AntDTDNode extends AntElementNode { 19 public AntDTDNode(String name) { 20 super(name); 21 } 22 23 26 public boolean isStructuralNode() { 27 return false; 28 } 29 30 public boolean collapseProjection() { 31 IPreferenceStore store= AntUIPlugin.getDefault().getPreferenceStore(); 32 if (store.getBoolean(AntEditorPreferenceConstants.EDITOR_FOLDING_DTD)) { 33 return true; 34 } 35 return false; 36 } 37 } 38 | Popular Tags |