edu.cmu.sei.osate.workspace
Class CoreUtility

java.lang.Object
  extended by edu.cmu.sei.osate.workspace.CoreUtility

public class CoreUtility
extends java.lang.Object


Constructor Summary
CoreUtility()
           
 
Method Summary
static java.lang.Object createExtension(org.eclipse.core.runtime.IConfigurationElement element, java.lang.String classAttribute)
          Creates an extension.
static void createFolder(org.eclipse.core.resources.IFolder folder, boolean force, boolean local, org.eclipse.core.runtime.IProgressMonitor monitor)
          Creates a folder and all parent folders if not existing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoreUtility

public CoreUtility()
Method Detail

createFolder

public static void createFolder(org.eclipse.core.resources.IFolder folder,
                                boolean force,
                                boolean local,
                                org.eclipse.core.runtime.IProgressMonitor monitor)
                         throws org.eclipse.core.runtime.CoreException
Creates a folder and all parent folders if not existing. Project must exist. org.eclipse.ui.dialogs.ContainerGenerator is too heavy (creates a runnable)

Throws:
org.eclipse.core.runtime.CoreException

createExtension

public static java.lang.Object createExtension(org.eclipse.core.runtime.IConfigurationElement element,
                                               java.lang.String classAttribute)
                                        throws org.eclipse.core.runtime.CoreException
Creates an extension. If the extension plugin has not been loaded a busy cursor will be activated during the duration of the load.

Parameters:
element - the config element defining the extension
classAttribute - the name of the attribute carrying the class
Returns:
the extension object
Throws:
org.eclipse.core.runtime.CoreException