From: <dc...@us...> - 2002-09-08 15:22:28
|
Update of /cvsroot/xmlceclipse/net.sourceforge.xmlceclipse.core/src/net/sourceforge/xmlceclipse/core/util In directory usw-pr-cvs1:/tmp/cvs-serv19441/src/net/sourceforge/xmlceclipse/core/util Added Files: CoreUtil.java Log Message: Capabilities where deprecated, at least for a while --- NEW FILE: CoreUtil.java --- package net.sourceforge.xmlceclipse.core.util; import org.eclipse.core.resources.IFile; import org.eclipse.core.resources.IProject; import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.IStatus; /** * @author dcorbin * * To change this generated comment edit the template variable "typecomment": * Window>Preferences>Java>Templates. * To enable and disable the creation of type comments go to * Window>Preferences>Java>Code Generation. */ public class CoreUtil { private CoreUtil() { super(); } public static void valdateEditProject(IProject project) throws CoreException { IFile file = project.getFile(".project"); IStatus status = project.getWorkspace().validateEdit(new IFile[] {file},null); if (!status.isOK()) throw new CoreException(status); } } |