Packages

o

org.nlogo.app.DirtyMonitor

TempFileModelTracker

object TempFileModelTracker extends ModelTracker

Source
DirtyMonitor.scala
Linear Supertypes
ModelTracker, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TempFileModelTracker
  2. ModelTracker
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. val _modelFileName: String

    name of the currently loaded model.

    name of the currently loaded model. Will be null if this is a new (unsaved) model. To get a version for display to the user, see modelNameForDisplay(). This is NOT a full path name, however, it does end in ".nlogo".

    Definition Classes
    ModelTracker
  2. def compiler: CompilerInterface
    Definition Classes
    TempFileModelTrackerModelTracker
  3. def convertToNormal(): String

    instantly converts the current model to ModelTypeJ.NORMAL.

    instantly converts the current model to ModelTypeJ.NORMAL. This is used by the edit command to enable quick saving of library models. It shouldn't be used anywhere else.

    Definition Classes
    ModelTracker
    Annotations
    @throws( classOf[IOException] )
  4. val delegate: ModelTracker
  5. val fileManager: nvm.FileManager
    Definition Classes
    ModelTracker
  6. def forceSaveAs: Boolean

    whether the user needs to enter a new filename to save this model.

    whether the user needs to enter a new filename to save this model. We need to do a "save as" if the model is new, from the models library, or converted.

    Basically, only normal models can get silently saved.

    Definition Classes
    ModelTracker
  7. def getExtensionManager(): ExtensionManager
    Definition Classes
    TempFileModelTrackerModelTracker
  8. def getModelDir: String

    returns the full path to the directory from which the current model was loaded.

    returns the full path to the directory from which the current model was loaded. May be null if, for example, this is a new model.

    Definition Classes
    ModelTracker
  9. def getModelFileName: String

    returns the name of the file from which the current model was loaded.

    returns the name of the file from which the current model was loaded. May be null if, for example, this is a new model.

    Definition Classes
    ModelTracker
  10. def getModelFileUri: Option[URI]
    Definition Classes
    TempFileModelTrackerModelTracker
  11. def getModelPath: String

    returns the full pathname of the currently loaded model, if any.

    returns the full pathname of the currently loaded model, if any. This may return null in some cases, for instance if this is a new model.

    Definition Classes
    ModelTracker
  12. def getModelType: ModelType
    Definition Classes
    TempFileModelTrackerModelTracker
  13. def modelFileName: String
    Definition Classes
    ModelTracker
  14. def modelNameForDisplay: String
    Definition Classes
    ModelTracker
  15. def setModelPath(modelPath: String): Unit
    Definition Classes
    ModelTracker
  16. def setModelType(tpe: ModelType): Unit
    Definition Classes
    ModelTracker