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 AntCommentNode extends AntElementNode { 19 public AntCommentNode() { 20 super("AntComment"); } 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_COMMENTS)) { 33 return true; 34 } 35 return false; 36 } 37 } 38 | Popular Tags |