Package org.eclnt.editor.tools
Class ProjectInfo
java.lang.Object
org.eclnt.editor.tools.ProjectInfo
Information about the project that is currently inside editor. This
information is normally not required for runtime purposes - but is required
when developing add-ons for the layout editor.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassclassstatic classstatic classstatic classstatic classstatic interfacestatic interfaceclassclassclassstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAdditionalResourceInfo(String package1, String name, String expressionprefix) voidaddEmbeddedFunctions(String className, boolean errorIfNotAvailable) voidaddLibrary(ProjectInfo.DesignTimeTLDInfo library) addManagedBeanInfoDT(String name, String className) voidaddPackageAbbreviation(String packageName, String abbreviation) addPageBeanCopyInfo(String jspDirectory, String javaPackage) voidvoidaddTemplateInfo(String resource, String image) booleancheckIfAttributeIsManagedByStyle(String componentName, String attributeName, String stylevariantName) voidclear()voidvoidcreateAdditionalDeployInfo(String fromdir, String fromzip, String todir, String ignorecsv, boolean ignoreDuringHotDeployment) booleanIf true then the "clean&deploy" option is active in the layout editor.booleanDefines if a version update through the CaptainCasa toolset is allowed or not.Resource base directory for resources that are used inside RapidApp for storing data that is accessed with class loader context.Resource path that is used inside RapidApp for storing data that is accessed with class loader context.Class loader name that is used within the bean browser.booleanExtensions to the class path - semicolon separated list of directories or jar files.intA command line that is executed if the file (e.g. jsp-page) that is written within the CaptainCasa toolkit is read-only.String[]Deepl API key for automated translations in tools.File that - if defined - is written when deploying through the CaptainCasa toolset.The directory where the compiled UI classes (managed beans/ backing beans) are located.The directory containing the classes that are comiled fromgetJavasourcewebinfdirectory().The java source directory - where the bean structure editor writes its sources to.The directory containing the sources that are compiled into WEB-INF/classes.booleanbooleanCollection of control libraries.booleangetName()Name of the project - this is the name of the file within the editor/config/projects-directory of the tool web application.The main directory of the development project.Directory in which property files (multi language management) are stored.booleanIf true then property files are saved as UTF8 text files - and not as special property files with escaped characters.booleanFlag that indicates that the web application is realoded.booleanbooleangetStyleDirectoryName(String styleName) getStyleVariantsForComponent(String componentName) Find style variants that are defined for a given component within the default style of the project.booleanFlag that indicates that project uses hot deployment of CaptainCasa toolkit.getWebappaddonsdirectory(boolean withDefaulting) Name of the directory in which the webappaddons-files are stored within the project.The target directory for copying the web content, when executing a reload in the toolkit.The directory which is copied into the runtime when executing a reload in the toolkit.The directory where web-resources are stored.The context root for building the preview URL in the toolkit.The host and port for building the preview URL in the toolkit.getXml()booleanFlag that indicates that a copy of webcontent is executed when executing a reload in the toolkit.booleanvoidpageLoaded(String pageName) This functions is called when a page is shown within the layout editor.voidreloadProject(Object trigger) voidvoidvoidsetAllowclean(boolean allowclean) voidsetAllowversionupdatebytoolset(boolean allowversionupdate) voidsetAxis2Home(String axis2Home) voidsetBeanBrowserClassLoader(String beanBrowserClassLoader) voidsetCheckForUpdateFiles(String value) voidsetClassPathExtension(String classPathExtension) voidsetCodegeneratorIndent(int codegeneratorIndent) voidsetCodegeneratorMemberprefix(String codegeneratorPropertyprefix) voidsetCodegeneratorMembervisibility(String codegeneratorMembervisibility) voidsetCodegeneratorUIClassSuffix(String codegeneratorUIClassSuffix) voidvoidsetCopywebapp(String copywebapp) voidsetCopywebappIgnore(String[] copywebappIgnore) voidsetCurrentPageName(String value) voidsetDeeplAPIKey(String deeplAPIKey) voidsetDeeplTranslationContext(String deeplTranslationContext) voidsetDeployinfofilename(String deployinfofilename) voidsetDispatchername(String value) voidsetExpressionManager(String value) voidsetHtPdaStylePath(String htPdaStylePath) voidsetHtStylePath(String htStylePath) voidsetJavaclassdirectory(String javaclassdirectory) voidsetJavaclasswebinfdirectory(String javaclasswebinfdirectory) voidsetJavasourcedirectory(String javasourcedirectory) for testing purposes only!voidsetJavaSourceEncoding(String javaSourceEncoding) voidsetJavasourcewebinfdirectory(String javasourcewebinfdirectory) voidsetKeepGeneratedIds(boolean value) voidsetLayoutDefinitionsSavedAsXml(boolean layoutDefinitionsSavedAsXml) voidsetLibraries(List<ProjectInfo.DesignTimeTLDInfo> libraries) voidsetManagedByCCToolSet(boolean projectIsManagedByCCToolSet) voidvoidvoidsetPreviewbgpaint(String previewbgpaint) voidsetProjectdirectory(String value) voidsetProjectFileName(String projectFileName) voidsetProjectfileStoredInProjectDirectory(boolean projectfileStoredInProjectDirectory) voidsetPropertyfilesdirectory(String propertyfilesdirectory) voidsetPropertyFilesUTF8(boolean propertyFilesUTF8) voidsetReloadwebapp(String reloadwebapp) voidsetResourcesInSource(boolean resourcesInSource) voidsetResourcesInWebContent(boolean resourcesInWebContent) voidsetRuntimeServletTempDirectory(String runtimeServletTempDirectory) voidsetTemplates(List<ProjectInfo.TemplateInfo> templates) voidsetUitestcasedirectory(String value) voidsetWebappaddonsdirectory(String webappaddonsdirectory) voidsetWebcontentdeploydirectory(String webcontentdeploydirectory) voidsetWebcontentdeployfromdirectory(String webcontentdeployfromdirectory) voidsetWebcontentdirectory(String webcontentdirectory) for testing purposes only!voidsetWebcontextroot(String webcontextroot) voidsetWebhostport(String webhostport) voidsetWebprotocol(String webprotocol) voidvoidvoidupdateCurrentDesignTimeClassLoaders(ClassLoader cl, ClassLoader independentCl)
-
Constructor Details
-
ProjectInfo
public ProjectInfo()
-
-
Method Details
-
updateCurrentDesignTimeClassLoaders
-
getEmbeddedFunctions
-
getTextToLiteralIdInfo
-
getCurrentDesignTimeClassLoader
-
getCurrentDesignTimeIndependentClassLoader
-
getLayoutDefinitionsSavedAsXml
public boolean getLayoutDefinitionsSavedAsXml() -
setLayoutDefinitionsSavedAsXml
public void setLayoutDefinitionsSavedAsXml(boolean layoutDefinitionsSavedAsXml) -
getPropertyFilesUTF8
public boolean getPropertyFilesUTF8()If true then property files are saved as UTF8 text files - and not as special property files with escaped characters. -
setPropertyFilesUTF8
public void setPropertyFilesUTF8(boolean propertyFilesUTF8) -
getName
Name of the project - this is the name of the file within the editor/config/projects-directory of the tool web application. -
getBeanBrowserClassLoader
Class loader name that is used within the bean browser. -
setBeanBrowserClassLoader
-
isProjectfileStoredInProjectDirectory
public boolean isProjectfileStoredInProjectDirectory() -
setProjectfileStoredInProjectDirectory
public void setProjectfileStoredInProjectDirectory(boolean projectfileStoredInProjectDirectory) -
getDeeplAPIKey
Deepl API key for automated translations in tools. -
setDeeplAPIKey
-
getDeeplTranslationContext
-
setDeeplTranslationContext
-
getProjectdirectory
The main directory of the development project. -
getWebcontentdirectory
The directory where web-resources are stored. -
getWebcontentdeployfromdirectory
The directory which is copied into the runtime when executing a reload in the toolkit. By default is the same is thegetWebcontentdirectory(). -
getWebcontentdeploydirectory
The target directory for copying the web content, when executing a reload in the toolkit. -
getWebcontextroot
The context root for building the preview URL in the toolkit. -
getWebhostport
The host and port for building the preview URL in the toolkit. -
getJavasourcedirectory
The java source directory - where the bean structure editor writes its sources to. -
getWebappaddonsdirectory
Name of the directory in which the webappaddons-files are stored within the project. -
setWebappaddonsdirectory
-
getJavasourcewebinfdirectory
The directory containing the sources that are compiled into WEB-INF/classes. If not explicitly defined then this is either the same asgetJavasourcedirectory()or this is (if using hot deployment) the same asgetProjectdirectory()+"/src_webinf". -
getJavaclassdirectory
The directory where the compiled UI classes (managed beans/ backing beans) are located. By default is "webdeployfromdirectory/WEB-INF/classes", but may be explicitly defined. -
setJavaclassdirectory
-
getJavaclasswebinfdirectory
The directory containing the classes that are comiled fromgetJavasourcewebinfdirectory(). If not explicitly defined then this is either the same asgetJavaclassdirectory(). In case of using hot deployment the directory is explicitly defined. -
setJavaclasswebinfdirectory
-
getClassPathExtension
Extensions to the class path - semicolon separated list of directories or jar files. -
isCopywebapp
public boolean isCopywebapp()Flag that indicates that a copy of webcontent is executed when executing a reload in the toolkit. -
getCopywebappIgnore
-
getLibrariesForReadAccess
Collection of control libraries. This collection is "passive" in this object, it is NOT filled within the processing of ProjectInfo but serves as container for the Editor tool. -
clearLibraries
public void clearLibraries() -
addLibrary
-
setWebcontentdirectory
for testing purposes only! -
setJavasourcedirectory
for testing purposes only! -
getProjectFileName
-
getJavaSourceEncoding
-
getSupportsHotDeploy
public boolean getSupportsHotDeploy()Flag that indicates that project uses hot deployment of CaptainCasa toolkit. -
getHotDeployFileName
-
getAxis2Home
-
getTemplates
-
getPreviewbgpaint
-
getXml
-
getReloadwebapp
public boolean getReloadwebapp()Flag that indicates that the web application is realoded. The reload is done by sending a reload-URL to the manager application - this is hard-coded for Tomcat... -
getAdditionalResources
-
getCheckForUpdatedFiles
public boolean getCheckForUpdatedFiles() -
getExpressionManager
-
getCommandlinefilenotwriteable
A command line that is executed if the file (e.g. jsp-page) that is written within the CaptainCasa toolkit is read-only. The command line may be a call to the source code versioning system to un-block the corresponding file. -
getUitestcasedirectory
-
getAllowversionupdatebytoolset
public boolean getAllowversionupdatebytoolset()Defines if a version update through the CaptainCasa toolset is allowed or not. Default: true (allowed). You sometimtes do not want the CaptainCasa toolset to update your project because you may use a different project structure than CaptainCasa. -
setAllowversionupdatebytoolset
public void setAllowversionupdatebytoolset(boolean allowversionupdate) -
getPropertyfilesdirectory
Directory in which property files (multi language management) are stored. -
setHtStylePath
-
getHtStylePath
-
setHtPdaStylePath
-
getHtPdaStylePath
-
addProjectReloadListener
-
removeProjectReloadListener
-
addProjectPageLoadListener
-
removeProjectPageLoadListener
-
setCurrentPageName
-
getCurrentPageName
-
setDispatchername
-
getDispatchername
-
getAdditionalManagedBeans
-
addPageBeanCopyInfo
public ProjectInfo.EditorPageBeanComponentInfo addPageBeanCopyInfo(String jspDirectory, String javaPackage) -
addAdditionalResourceInfo
public ProjectInfo.AdditionalResourceInfo addAdditionalResourceInfo(String package1, String name, String expressionprefix) -
addEmbeddedFunctions
-
addManagedBeanInfoDT
-
addTemplateInfo
-
getAdditionalDeployInfos
-
createAdditionalDeployInfo
-
getAllowclean
public boolean getAllowclean()If true then the "clean&deploy" option is active in the layout editor. By default is true. -
setAllowclean
public void setAllowclean(boolean allowclean) -
pageLoaded
This functions is called when a page is shown within the layout editor. The information is distributed to page load listeners so that these might react accordingly. -
reloadProject
-
clear
public void clear() -
setName
-
setProjectdirectory
-
setWebcontentdeployfromdirectory
-
setWebcontentdeploydirectory
-
setWebcontextroot
-
setWebhostport
-
setCopywebapp
-
setReloadwebapp
-
setProjectFileName
-
setJavaSourceEncoding
-
setJavasourcewebinfdirectory
-
setClassPathExtension
-
setLibraries
-
setTemplates
-
setAxis2Home
-
setCopywebappIgnore
-
setPreviewbgpaint
-
setXml
-
setCheckForUpdateFiles
-
setExpressionManager
-
setCommandlinefilenotwriteable
-
setUitestcasedirectory
-
setPropertyfilesdirectory
-
getCodegeneratorMemberprefix
-
setCodegeneratorMemberprefix
-
getCodegeneratorUIClassSuffix
-
setCodegeneratorUIClassSuffix
-
getCodegeneratorIndent
public int getCodegeneratorIndent() -
setCodegeneratorIndent
public void setCodegeneratorIndent(int codegeneratorIndent) -
getCodegeneratorMembervisibility
-
setCodegeneratorMembervisibility
-
setKeepGeneratedIds
public void setKeepGeneratedIds(boolean value) -
getKeepGeneratedIds
public boolean getKeepGeneratedIds() -
getManagedByCCToolSet
public boolean getManagedByCCToolSet() -
setManagedByCCToolSet
public void setManagedByCCToolSet(boolean projectIsManagedByCCToolSet) -
getWebprotocol
-
setWebprotocol
-
getResourcesInWebContent
public boolean getResourcesInWebContent() -
setResourcesInWebContent
public void setResourcesInWebContent(boolean resourcesInWebContent) -
getResourcesInSource
public boolean getResourcesInSource() -
setResourcesInSource
public void setResourcesInSource(boolean resourcesInSource) -
getPbcinfos
-
setPbcinfos
-
getRuntimeServletTempDirectory
-
setRuntimeServletTempDirectory
-
triggerSrcUpdateInEclipse
public void triggerSrcUpdateInEclipse() -
getHotDeploymentPackages
-
getHotDeploymentPackagesExclude
-
readHotDeploymentPackagesCombined
- Returns:
- Hot deployment packages in internal format: the ones excluded are
starting with "!". This is the format that is processed by the
FileManager.updateDirectory(String, String, String[], boolean, org.eclnt.util.log.IObserver)ignore management.
-
getStyles
- Returns:
- All style variants that are defined within the project directory.
-
getStyleDirectoryName
-
getProjectStyle
- Returns:
- Name of the style that is the default one for the project. The default project stlye is defined in sessionsdefaults.xml, otherwise it is "default".
-
getStyleVariantsForComponent
Find style variants that are defined for a given component within the default style of the project. -
getStyleValues
-
checkIfAttributeIsManagedByStyle
-
getPackageAbbreviations
-
getDeployinfofilename
File that - if defined - is written when deploying through the CaptainCasa toolset. The content of the file is the content of the project definition. As consequence it is possible to pass design time information of the last deployment into the runtime. -
setDeployinfofilename
-
addPackageAbbreviation
-
getBcigenResourcePath
Resource path that is used inside RapidApp for storing data that is accessed with class loader context. -
getBcigenResourceDirectory
Resource base directory for resources that are used inside RapidApp for storing data that is accessed with class loader context.
-