public abstract class AbstractCSDKApplication extends AbstractApplication implements IProjectContext, ILocalFileSystemContext, ICommandContext
| Constructor and Description |
|---|
AbstractCSDKApplication(ICSDKEnvironment csdkInterface)
Construtor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addProjectObserver(IProjectObserver observer) |
IFile |
browseLocalFileInOpenMode(String[] fileTypes,
boolean allowAll,
IFile currentDir,
FileSelectionType fileSelectionType,
Window frame) |
IFile |
browseLocalFileInSaveMode(String[] fileTypes,
boolean allowAll,
String defaultName,
IFile currentDir,
Window frame) |
IFile[] |
browseMultipleLocalFilesInOpenMode(String[] fileTypes,
boolean allowAll,
IFile currentDir,
FileSelectionType fileSelectionType,
Window frame) |
IFile[] |
browseMultipleProjectFilesInOpenMode(String[] fileTypes,
boolean allowAll,
FileSelectionType selectionType,
Window frame) |
IFile |
browseProjectFileInOpenMode(String[] fileTypes,
boolean allowAll,
FileSelectionType selectionType,
Window frame) |
IFile |
browseProjectFileInSaveMode(String[] fileTypes,
boolean allowAll,
String defaultName,
Window frame) |
IFile |
createLocalFile(String[] path,
String name,
boolean isDir) |
IFile |
createProjectFile(String[] path,
String name,
String fileType,
Window window) |
protected void |
disposeContexts()
Limpa as referências para os contextos.
|
String |
executeAlgorithm(IAlgorithmTemplate info,
String description,
String sgaServerName,
Window owner,
ICommandObserver observer) |
String |
executeFlow(IFlowTemplate info,
String description,
String sgaServerName,
Window owner,
ICommandObserver observer) |
String |
getCurrentProjectId() |
IFile |
getLocalFile(String[] path) |
IFile |
getProjectFile(String[] path,
Window window) |
boolean |
isCommandContextAvailable()
Indica se o contexto de execução de comandos está disponível.
|
boolean |
isFileSystemContextAvailable()
Indica se o contexto de sistema de arquivo está disponível.
|
boolean |
isProjectContextAvailable()
Indica se o contexto de projetos está disponível.
|
boolean |
isProjectOpen()
Verifica se existe projeto corrente.
|
boolean |
removeLocalFile(String[] path) |
boolean |
removeProjectFile(String[] path,
Window window) |
void |
removeProjectObserver(IProjectObserver observer) |
canEndApplication, finishApplication, getApplicationDescription, getApplicationFileTypes, getApplicationIcon, getApplicationId, getApplicationName, getAuthor, getAuthorEmail, getCharset, getCharset, getClassString, getContext, getImageIcon, getInstanceId, getLocale, getProperty, getResource, getResourceAsStream, getServerCharset, getSmallApplicationIcon, getString, getVersion, handleException, hasClassString, hasString, isActive, isApplicationContextAvailable, isBundleRequired, isPropertyNull, isSingleton, onApplicationEnd, onContextActivate, onContextDeactivate, onMessageReceived, requiresProject, runApplication, sendMessageclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisActive, onContextActivate, onContextDeactivateonApplicationStartpublic AbstractCSDKApplication(ICSDKEnvironment csdkInterface)
csdkInterface - interface padrão para o ambiente CSDK.public final IFile browseProjectFileInOpenMode(String[] fileTypes, boolean allowAll, FileSelectionType selectionType, Window frame) throws ProjectException
browseProjectFileInOpenMode in interface IProjectContextProjectExceptionpublic IFile[] browseMultipleProjectFilesInOpenMode(String[] fileTypes, boolean allowAll, FileSelectionType selectionType, Window frame) throws ProjectException
browseMultipleProjectFilesInOpenMode in interface IProjectContextProjectExceptionpublic final IFile browseProjectFileInSaveMode(String[] fileTypes, boolean allowAll, String defaultName, Window frame) throws ProjectException
browseProjectFileInSaveMode in interface IProjectContextProjectExceptionpublic final IFile getProjectFile(String[] path, Window window) throws ProjectException
getProjectFile in interface IProjectContextProjectExceptionpublic final IFile createProjectFile(String[] path, String name, String fileType, Window window) throws ProjectException
createProjectFile in interface IProjectContextProjectExceptionpublic final String getCurrentProjectId()
getCurrentProjectId in interface IProjectContextpublic void addProjectObserver(IProjectObserver observer)
addProjectObserver in interface IProjectContextpublic void removeProjectObserver(IProjectObserver observer)
removeProjectObserver in interface IProjectContextpublic boolean removeProjectFile(String[] path, Window window) throws ProjectException
removeProjectFile in interface IProjectContextProjectExceptionpublic final IFile browseLocalFileInOpenMode(String[] fileTypes, boolean allowAll, IFile currentDir, FileSelectionType fileSelectionType, Window frame) throws LocalFileSystemException
browseLocalFileInOpenMode in interface ILocalFileSystemContextLocalFileSystemExceptionpublic IFile[] browseMultipleLocalFilesInOpenMode(String[] fileTypes, boolean allowAll, IFile currentDir, FileSelectionType fileSelectionType, Window frame) throws LocalFileSystemException
browseMultipleLocalFilesInOpenMode in interface ILocalFileSystemContextLocalFileSystemExceptionpublic final IFile browseLocalFileInSaveMode(String[] fileTypes, boolean allowAll, String defaultName, IFile currentDir, Window frame) throws LocalFileSystemException
browseLocalFileInSaveMode in interface ILocalFileSystemContextLocalFileSystemExceptionpublic IFile getLocalFile(String[] path) throws LocalFileSystemException
getLocalFile in interface ILocalFileSystemContextLocalFileSystemExceptionpublic final IFile createLocalFile(String[] path, String name, boolean isDir) throws LocalFileSystemException
createLocalFile in interface ILocalFileSystemContextLocalFileSystemExceptionpublic boolean removeLocalFile(String[] path) throws LocalFileSystemException
removeLocalFile in interface ILocalFileSystemContextLocalFileSystemExceptionpublic final String executeAlgorithm(IAlgorithmTemplate info, String description, String sgaServerName, Window owner, ICommandObserver observer) throws CommandException
executeAlgorithm in interface ICommandContextCommandExceptionpublic final String executeFlow(IFlowTemplate info, String description, String sgaServerName, Window owner, ICommandObserver observer) throws CommandException
executeFlow in interface ICommandContextCommandExceptionpublic boolean isProjectContextAvailable()
true se o contexto estiver disponível ou
false caso contrário.public boolean isProjectOpen()
true caso exista um projeto aberto ou
false caso contrário.public boolean isFileSystemContextAvailable()
true se o contexto estiver disponível ou
false caso contrário.public boolean isCommandContextAvailable()
true se o contexto estiver disponível ou
false caso contrário.protected void disposeContexts()
disposeContexts in class AbstractApplicationCopyright © 2013–2015 Tecgraf/PUC-Rio. All rights reserved.