public class ServerConfigFile extends GenericListener<IServerConfigFileListener>
Modifier and Type | Method and Description |
---|---|
boolean |
doSave(Shell shell,
IProgressMonitor monitor)
Saves the configuration file.
|
static List<File> |
getHistory()
Gets the history of configuration files.
|
String |
getNameNoExt()
Gets the name without file extension.
|
String |
getPath()
Gets the path of the file.
|
EditorServerSettings |
getSettings()
Gets the Server configuration settings.
|
boolean |
isDirty()
Gets the dirty state.
|
static EditorServerSettings |
loadFile(File file)
Loads the Server Configuration settings file.
|
static ServerConfigFile |
open(String fileName)
Opens the configuration file.
|
void |
release()
Releases this instance.
|
void |
triggerNotify()
Triggers a request to update the listeners.
|
void |
updateHistory()
Updates the history with this file.
|
addListener, clear, forEach, hasListeners, listeners, removeListener
public static ServerConfigFile open(String fileName) throws IOException, PropException
release()
when it is no longed referenced.fileName
- The file name.IOException
- For file errors.FileNotFoundException
- If the file is not found.PropException
- For load errors.public static EditorServerSettings loadFile(File file) throws IOException, PropException
file
- The file.IOException
- For file errors.PropException
- For load errors.public static List<File> getHistory()
public String getNameNoExt()
public String getPath()
public boolean isDirty()
public void triggerNotify()
public boolean doSave(Shell shell, IProgressMonitor monitor)
shell
- The shell for message boxes in case of error.monitor
- The progress monitorpublic EditorServerSettings getSettings()
public void release()
public void updateHistory()
iizi® is a registered trademark of Mindus SARL. © Copyright Mindus SARL, 2020. All rights reserved.