KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > internal > debug > ui > classpath > IClasspathEntry


1 /*******************************************************************************
2  * Copyright (c) 2000, 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.jdt.internal.debug.ui.classpath;
13
14
15 public interface IClasspathEntry {
16     
17     /**
18      * Returns the classpath entries that are the children of this classpath entry
19      *
20      * @return the child classpath entries of this entry
21      */

22     public IClasspathEntry[] getEntries();
23     
24     /**
25      * Returns whether this classpath entries has child entries.
26      *
27      * @return whether <code>true</code> if this classpath entry has childern, <code>false</code> otherwise.
28      */

29     public boolean hasEntries();
30     
31     /**
32      * Returns the parent of this classpath entry
33      *
34      * @return the parent of this classpath entry, or <code>null</code> if none.
35      */

36     public IClasspathEntry getParent();
37     
38     /**
39      * Move this entries child entry in the direction indicated.
40      * @param up if <code>true</code> move the child up one position in the order of the entries.
41      * Otherwise, move the child down one position.
42      * @param child the child entry to move
43      */

44     public void moveChild(boolean up, IClasspathEntry child);
45     
46     /**
47      * Returns whether this entry is editable.
48      *
49      * @return whether this entry is editable
50      */

51     public boolean isEditable();
52 }
53
Popular Tags