|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcsdk.v1_0.helper.application.AbstractApplication
csdk.v1_0.helper.AbstractCSDKApplication
public abstract class AbstractCSDKApplication
Classe abstrata para facilitar o desenvolvimento de aplicações que acessam a área de projetos com CSDK.
| Constructor Summary | |
|---|---|
AbstractCSDKApplication(ICSDKEnvironment csdkInterface)
Construtor. |
|
| Method Summary | |
|---|---|
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)
|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface csdk.v1_0.api.core.IContext |
|---|
isActive, onContextActivate, onContextDeactivate |
| Methods inherited from interface csdk.v1_0.api.application.IApplication |
|---|
onApplicationEnd, onApplicationStart |
| Constructor Detail |
|---|
public AbstractCSDKApplication(ICSDKEnvironment csdkInterface)
csdkInterface - interface padrão para o ambiente CSDK.| Method Detail |
|---|
public final IFile browseProjectFileInOpenMode(String[] fileTypes,
boolean allowAll,
FileSelectionType selectionType,
Window frame)
throws ProjectException
browseProjectFileInOpenMode in interface IProjectContextProjectException
public IFile[] browseMultipleProjectFilesInOpenMode(String[] fileTypes,
boolean allowAll,
FileSelectionType selectionType,
Window frame)
throws ProjectException
browseMultipleProjectFilesInOpenMode in interface IProjectContextProjectException
public final IFile browseProjectFileInSaveMode(String[] fileTypes,
boolean allowAll,
String defaultName,
Window frame)
throws ProjectException
browseProjectFileInSaveMode in interface IProjectContextProjectException
public final IFile getProjectFile(String[] path,
Window window)
throws ProjectException
getProjectFile in interface IProjectContextProjectException
public 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 IProjectContext
public boolean removeProjectFile(String[] path,
Window window)
throws ProjectException
removeProjectFile in interface IProjectContextProjectException
public final IFile browseLocalFileInOpenMode(String[] fileTypes,
boolean allowAll,
IFile currentDir,
FileSelectionType fileSelectionType,
Window frame)
throws LocalFileSystemException
browseLocalFileInOpenMode in interface ILocalFileSystemContextLocalFileSystemException
public IFile[] browseMultipleLocalFilesInOpenMode(String[] fileTypes,
boolean allowAll,
IFile currentDir,
FileSelectionType fileSelectionType,
Window frame)
throws LocalFileSystemException
browseMultipleLocalFilesInOpenMode in interface ILocalFileSystemContextLocalFileSystemException
public final IFile browseLocalFileInSaveMode(String[] fileTypes,
boolean allowAll,
String defaultName,
IFile currentDir,
Window frame)
throws LocalFileSystemException
browseLocalFileInSaveMode in interface ILocalFileSystemContextLocalFileSystemException
public IFile getLocalFile(String[] path)
throws LocalFileSystemException
getLocalFile in interface ILocalFileSystemContextLocalFileSystemException
public final IFile createLocalFile(String[] path,
String name,
boolean isDir)
throws LocalFileSystemException
createLocalFile in interface ILocalFileSystemContextLocalFileSystemException
public boolean removeLocalFile(String[] path)
throws LocalFileSystemException
removeLocalFile in interface ILocalFileSystemContextLocalFileSystemException
public final String executeAlgorithm(IAlgorithmTemplate info,
String description,
String sgaServerName,
Window owner,
ICommandObserver observer)
throws CommandException
executeAlgorithm in interface ICommandContextCommandException
public 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||