Project.java revision 1185
58N/A * CDDL HEADER START 58N/A * The contents of this file are subject to the terms of the 58N/A * Common Development and Distribution License (the "License"). 58N/A * You may not use this file except in compliance with the License. 58N/A * language governing permissions and limitations under the License. 58N/A * When distributing Covered Code, include this CDDL HEADER in each 58N/A * If applicable, add the following below this CDDL HEADER, with the 58N/A * fields enclosed by brackets "[]" replaced with your own identifying 58N/A * information: Portions Copyright [yyyy] [name of copyright owner] 58N/A * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 58N/A * Use is subject to license terms. 77N/A * Placeholder for the information that builds up a project 1185N/A // this variable is very important, since it's used as the project identifier 1185N/A // all over xrefs and webapp 1185N/A // jel: and yes - awefully misleading. It should be called 'name'! 922N/A * Size of tabs in this project. Used for displaying the xrefs correctly in 922N/A * projects with non-standard tab size. 77N/A * Get a textual description of this project 77N/A * @return a textual description of the project 77N/A * Get the path (relative from source root) where this project is located 77N/A * @return the relative path 271N/A * @return the id of the project 922N/A * Get the tab size for this project, if tab size has been set. 922N/A * @return tab size if set, 0 otherwise 922N/A * @see #hasTabSizeSetting() 853N/A * Set a textual description of this project, prefferably don't use " , " in the name, since it's used as delimiter for more projects 77N/A * @param description a textual description of the project 77N/A * Set the path (relative from source root) this project is located 937N/A * It seems that you should ALWAYS prefix the path with current file.separator , current environment should always have it set up 77N/A * @param path the relative path from source sroot where this project is 922N/A * Set tab size for this project. Used for expanding tabs to spaces 922N/A * @param tabSize the size of tabs in this project 922N/A * Has this project an explicit tab size setting? 922N/A * @return {@code true} if the tab size has been set for this project, or 922N/A * {@code false} if it hasn't and the default should be used 123N/A * Get the project for a specific file 123N/A * @param path the file to lookup (relative from source root) 123N/A * @return the project that this file belongs to (or null if the file 123N/A * doesn't belong to a project) 123N/A * Get the project for a specific file 123N/A * @param file the file to lookup 123N/A * @return the project that this file belongs to (or null if the file 123N/A * doesn't belong to a project) 1016N/A // ignore if not under source root 1016N/A // problem has already been logged, just return null 853N/A * Returns project object by its description, used in webapp to figure out which project is to be searched 853N/A * @param desc description of the project 853N/A * @return project that fits the description