project35.desktopDeployment
Class WorkspaceFileFinder

java.lang.Object
  extended by project35.desktopDeployment.WorkspaceFiles
      extended by project35.desktopDeployment.WorkspaceFileFinder

public class WorkspaceFileFinder
extends WorkspaceFiles

class which uses knowledge about how a model folder is laid out to derive properties which are managed in Workspace and ultimately Project35ApplicationContext. The default directory structure should be:

 ./models/[YourModel]
    -->model
    -->img
    -->resources
    -->doc
    -->config

or for when locales are being used:

 ./models/[YourModel]
    -->model
    -->img
    -->[locale eg: "en", "de"...]
       -->resources
       -->doc
       -->config

Copyright (c) 2008 Kevin Garwood for Project35. The original code was developed by Kevin Garwood for the University of Manchester. Revisions have been made for Project35, a project that is independent of that institution. This code is licensed under the Academic Free License version 3.0. The code attribution for the original code is included here:

Copyright (c) Kevin Garwood and University of Manchester 2007. All rights reserved. Licensed under the Academic Free License version 3.0. For more information on the terms and conditions, please see the file "LICENSE" that is included in this distribution.


Version:
1.0
Author:
Kevin Garwood (kgarwood@users.sourceforge.net)

Field Summary
 
Fields inherited from class project35.desktopDeployment.WorkspaceFiles
documentDirectoryURL, fileExtensionsToLaunchURL, iconDirectoryURL, libraryDirectoryURL, mainConfigurationURL, modelDirectory, resourceDirectoryURL, schemaURL, sessionFile
 
Constructor Summary
WorkspaceFileFinder(java.lang.String modelDirectoryPath, boolean ignoreConfigurationFile)
           
WorkspaceFileFinder(java.lang.String project35StartupDirectory, java.lang.String selectedModel, boolean ignoreConfigurationFile)
           
 
Method Summary
 void findFileExtensionsFile(java.lang.String configurationDirectory)
           
 void findMainConfigurationFile(java.lang.String configurationDirectory)
           
 void findSessionFile(java.lang.String configurationDirectory)
           
 java.io.File getMainConfigurationFile(java.lang.String configurationDirectory)
          ============================================== Determine Configuration files ==============================================
 
Methods inherited from class project35.desktopDeployment.WorkspaceFiles
createFileDoesNotExistError, determineJARFileHelpDirectory, findHelpDirectory, findIconDirectory, getDocumentDirectory, getFileExtensionsToLaunchURL, getHelpDirectory, getLibraryDirectory, getMainConfigurationURL, getModelDirectory, getResourceDirectory, getSchema, getSessionFile, getURLFromFile, print, setModelDirectory, setSessionFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkspaceFileFinder

public WorkspaceFileFinder(java.lang.String modelDirectoryPath,
                           boolean ignoreConfigurationFile)
                    throws Project35Exception
Throws:
Project35Exception

WorkspaceFileFinder

public WorkspaceFileFinder(java.lang.String project35StartupDirectory,
                           java.lang.String selectedModel,
                           boolean ignoreConfigurationFile)
                    throws Project35Exception
Throws:
Project35Exception
Method Detail

findMainConfigurationFile

public void findMainConfigurationFile(java.lang.String configurationDirectory)
                               throws Project35Exception
Throws:
Project35Exception

getMainConfigurationFile

public java.io.File getMainConfigurationFile(java.lang.String configurationDirectory)
============================================== Determine Configuration files ==============================================


findFileExtensionsFile

public void findFileExtensionsFile(java.lang.String configurationDirectory)

findSessionFile

public void findSessionFile(java.lang.String configurationDirectory)