KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ant > internal > ui > model > AntDTDNode


1 /*******************************************************************************
2  * Copyright (c) 2004, 2005 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

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 JavaDoc name) {
20         super(name);
21     }
22     
23     /* (non-Javadoc)
24      * @see org.eclipse.ant.internal.ui.editor.model.AntElementNode#isStructuralNode()
25      */

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