org.seasar.eclipse.common.util
クラス ProjectUtil
java.lang.Object
org.seasar.eclipse.common.util.ProjectUtil
public class ProjectUtil
- extends Object
- 作成者:
- Masataka Kurihara (Gluegent, Inc.), taichi
メソッドの概要 |
static void |
addBuilders(IProject project,
String[] ids)
|
static void |
addNature(IProject project,
String natureID)
|
static String |
createIndentString(int indentationUnits,
org.eclipse.jdt.core.IJavaProject project)
|
static IProject[] |
getAllProjects()
|
static String |
getCoreOption(org.eclipse.jdt.core.IJavaProject project,
String key)
|
static int |
getCoreOption(org.eclipse.jdt.core.IJavaProject project,
String key,
int def)
|
static IProject |
getCurrentSelectedProject()
|
static org.eclipse.jdt.core.IPackageFragmentRoot |
getFirstSrcPackageFragmentRoot(org.eclipse.jdt.core.IJavaProject javap)
|
static int |
getIndentWidth(org.eclipse.jdt.core.IJavaProject project)
|
static org.eclipse.jdt.core.IJavaModel |
getJavaModel()
|
static org.eclipse.jdt.core.IJavaProject |
getJavaProject(IPath path)
|
static org.eclipse.jdt.core.IJavaProject |
getJavaProject(IResource resource)
|
static org.eclipse.jdt.core.IJavaProject |
getJavaProject(String projectName)
|
static org.eclipse.jdt.core.IJavaProject[] |
getJavaProjects()
|
static String |
getLineDelimiterPreference(IProject project)
|
static IProjectNature |
getNature(IProject project,
String natureID)
|
static String[] |
getNatureIds(IProject project)
|
static IPath[] |
getOutputLocations(org.eclipse.jdt.core.IJavaProject project)
|
static IProject |
getProject(String projectName)
|
static String |
getProjectLineDelimiter(org.eclipse.jdt.core.IJavaProject javaProject)
|
static org.eclipse.jdt.core.IPackageFragmentRoot[] |
getSrcPackageFragmentRoot(org.eclipse.jdt.core.IJavaProject javap)
|
static int |
getTabWidth(org.eclipse.jdt.core.IJavaProject project)
Gets the current tab width. |
static IWorkspace |
getWorkspace()
|
static IWorkspaceRoot |
getWorkspaceRoot()
|
static boolean |
hasNature(IProject project,
String natureID)
|
static void |
removeBuilders(IProject project,
String[] id)
|
static void |
removeNature(IProject project,
String natureID)
|
クラス java.lang.Object から継承されたメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProjectUtil
public ProjectUtil()
addBuilders
public static void addBuilders(IProject project,
String[] ids)
throws CoreException
- 例外:
CoreException
removeBuilders
public static void removeBuilders(IProject project,
String[] id)
throws CoreException
- 例外:
CoreException
addNature
public static void addNature(IProject project,
String natureID)
throws CoreException
- 例外:
CoreException
removeNature
public static void removeNature(IProject project,
String natureID)
throws CoreException
- 例外:
CoreException
getNature
public static IProjectNature getNature(IProject project,
String natureID)
throws CoreException
- 例外:
CoreException
hasNature
public static boolean hasNature(IProject project,
String natureID)
getNatureIds
public static String[] getNatureIds(IProject project)
getWorkspace
public static IWorkspace getWorkspace()
getWorkspaceRoot
public static IWorkspaceRoot getWorkspaceRoot()
getAllProjects
public static IProject[] getAllProjects()
getProject
public static IProject getProject(String projectName)
getJavaProject
public static org.eclipse.jdt.core.IJavaProject getJavaProject(String projectName)
getJavaProject
public static org.eclipse.jdt.core.IJavaProject getJavaProject(IResource resource)
getJavaProjects
public static org.eclipse.jdt.core.IJavaProject[] getJavaProjects()
throws CoreException
- 例外:
CoreException
getJavaModel
public static org.eclipse.jdt.core.IJavaModel getJavaModel()
getJavaProject
public static org.eclipse.jdt.core.IJavaProject getJavaProject(IPath path)
createIndentString
public static String createIndentString(int indentationUnits,
org.eclipse.jdt.core.IJavaProject project)
getTabWidth
public static int getTabWidth(org.eclipse.jdt.core.IJavaProject project)
- Gets the current tab width.
- パラメータ:
project
- The project where the source is used, used for project
specific options or null
if the project is
unknown and the workspace default should be used
- 戻り値:
- The tab width
getIndentWidth
public static int getIndentWidth(org.eclipse.jdt.core.IJavaProject project)
getCoreOption
public static int getCoreOption(org.eclipse.jdt.core.IJavaProject project,
String key,
int def)
getCoreOption
public static String getCoreOption(org.eclipse.jdt.core.IJavaProject project,
String key)
getProjectLineDelimiter
public static String getProjectLineDelimiter(org.eclipse.jdt.core.IJavaProject javaProject)
getLineDelimiterPreference
public static String getLineDelimiterPreference(IProject project)
getFirstSrcPackageFragmentRoot
public static org.eclipse.jdt.core.IPackageFragmentRoot getFirstSrcPackageFragmentRoot(org.eclipse.jdt.core.IJavaProject javap)
throws CoreException
- 例外:
CoreException
getSrcPackageFragmentRoot
public static org.eclipse.jdt.core.IPackageFragmentRoot[] getSrcPackageFragmentRoot(org.eclipse.jdt.core.IJavaProject javap)
throws CoreException
- 例外:
CoreException
getOutputLocations
public static IPath[] getOutputLocations(org.eclipse.jdt.core.IJavaProject project)
throws CoreException
- 例外:
CoreException
getCurrentSelectedProject
public static IProject getCurrentSelectedProject()
Copyright © 2006-2008 The Seasar Foundation. All Rights Reserved.