A massive organize imports and formatting of the sources using default Eclipse code...
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / core / ImportDeclarationElementInfo.java
1 /*******************************************************************************
2  * Copyright (c) 2000, 2004 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials 
4  * are made available under the terms of the Common Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/cpl-v10.html
7  * 
8  * Contributors:
9  *     IBM Corporation - initial API and implementation
10  *******************************************************************************/
11 package net.sourceforge.phpdt.internal.core;
12
13 import net.sourceforge.phpdt.internal.compiler.env.ISourceImport;
14
15 /**
16  * Element info for IImportDeclaration elements.
17  * 
18  * @see net.sourceforge.phpdt.core.IImportDeclaration
19  */
20 public class ImportDeclarationElementInfo extends MemberElementInfo implements
21                 ISourceImport {
22
23         // record if import is on demand, the import name doesn't have trailing
24         // start
25         boolean onDemand;
26
27         /*
28          * (non-Javadoc)
29          * 
30          * @see net.sourceforge.phpdt.internal.compiler.env.ISourceImport#onDemand()
31          */
32         public boolean onDemand() {
33                 return this.onDemand;
34         }
35
36         public void setOnDemand(boolean onDemand) {
37                 this.onDemand = onDemand;
38         }
39 }