Liefert ein org.eclipse.core.runtime.IFolder-Objekt als Ergebnis zurück. Im Fehlerfall wird ein Ausnahmefehler geworfen.
getOutputDirectory(DisciplineObject discObject, boolean create) throws CoreException | |||
---|---|---|---|
Argument | DisciplineObject | discObject | Disziplin-Objekt, für das ein Ordner ermittelt werden soll. |
boolean | create | true = Verzeichnis wird erstellt, falls nicht existent. false = es wird kein Verzeichnis erstellt. |
|
Rückgabewert | IFolder | Disziplin-Ordner im Workspace. |
Von Rückgabewert kann u.a. mit folgender Methode der Pfad ermittelt werden (siehe Eclipse-Hilfe zu IFolder).
import com.mind8.mechatronic.skill.AbsoluteNameUtil
droot=AbsoluteNameUtil.getObjectByAbsolutePath("Feeder.ECAD", UnitOfWork)
dir = IUtilAPI.DEFAULT.getOutputDirectory(droot, true)
path = dir.getLocation().toOSString()
// This method returns e.g. the path "WS\Feeder\ECAD" within the regular context.
// This method returns e.g. the path "WS\Feeder\-etsehvxndtqz\ECAD" within the Job Server context.