org.knime.core.internal
Class KNIMEPath

java.lang.Object
  extended by org.knime.core.internal.KNIMEPath

public final class KNIMEPath
extends Object

Container for a field, which holds the home directory of KNIME. This class serves as an abstraction layer to bridge from eclipse to non-GUI KNIME. During startup of eclipse, the home directory is set in this class, which is polled from the KNIMEConstants class to do the final initialization.

Author:
Bernd Wiswedel, University of Konstanz

Method Summary
static File getKNIMEHomeDirPath()
          Getter for the home dir of KNIME.
static File getWorkspaceDirPath()
          Getter for the workspace directory.
(package private) static void setKNIMEHomeDir(File file)
          Set the knime home dir.
(package private) static void setWorkspaceDir(File file)
          Set the workspace directory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setWorkspaceDir

static void setWorkspaceDir(File file)
Set the workspace directory.

Parameters:
file - The directory of the workspace.

getWorkspaceDirPath

public static File getWorkspaceDirPath()
Getter for the workspace directory.

Returns:
The workspace directory.

setKNIMEHomeDir

static void setKNIMEHomeDir(File file)
Set the knime home dir.

Parameters:
file - The file to use as home dir (should be a directory).

getKNIMEHomeDirPath

public static File getKNIMEHomeDirPath()
Getter for the home dir of KNIME.

Returns:
The directory to use.


Copyright, 2003 - 2010. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.