public class Project
extends java.lang.Object
Constructor and Description |
---|
Project() |
Modifier and Type | Method and Description |
---|---|
static Project |
getByDescription(java.lang.String desc)
Returns project object by its description, used in webapp to figure out which project is to be searched
|
java.lang.String |
getDescription()
Get a textual description of this project
|
java.lang.String |
getId()
Get the project id
|
java.lang.String |
getPath()
Get the path (relative from source root) where this project is located
|
static Project |
getProject(java.io.File file)
Get the project for a specific file
|
static Project |
getProject(java.lang.String path)
Get the project for a specific file
|
int |
getTabSize()
Get the tab size for this project, if tab size has been set.
|
boolean |
hasTabSizeSetting()
Has this project an explicit tab size setting?
|
void |
setDescription(java.lang.String description)
Set a textual description of this project, prefferably don't use " , " in the name, since it's used as delimiter for more projects
|
void |
setPath(java.lang.String path)
Set the path (relative from source root) this project is located
It seems that you should ALWAYS prefix the path with current file.separator , current environment should always have it set up
|
void |
setTabSize(int tabSize)
Set tab size for this project.
|
public java.lang.String getDescription()
public java.lang.String getPath()
public java.lang.String getId()
public int getTabSize()
hasTabSizeSetting()
public void setDescription(java.lang.String description)
description
- a textual description of the projectpublic void setPath(java.lang.String path)
path
- the relative path from source sroot where this project is
located.public void setTabSize(int tabSize)
tabSize
- the size of tabs in this projectpublic boolean hasTabSizeSetting()
true
if the tab size has been set for this project, or
false
if it hasn't and the default should be usedpublic static Project getProject(java.lang.String path)
path
- the file to lookup (relative from source root)public static Project getProject(java.io.File file)
file
- the file to lookuppublic static Project getByDescription(java.lang.String desc)
desc
- description of the project