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