[
https://issues.jboss.org/browse/JBIDE-10315?page=com.atlassian.jira.plugi...
]
Denis Maliarevich commented on JBIDE-10315:
-------------------------------------------
{code}
if (!pageContext.getVisualBuilder().isFileInIncludeStack(file)) {
//registerDefine(pageContext, sourceNode);
Document document = pageContext.getVisualBuilder()
.getIncludeDocuments().get(file);
if (document == null) {
document = VpeCreatorUtil.getDocumentForRead(file);
}
// Document document = VpeCreatorUtil.getDocumentForRead(file, pageContext);
if (document != null) {
/*
* Putting include document
*/
pageContext.getVisualBuilder()
.getIncludeDocuments().put(file, document);
creationData = createInclude(document, visualDocument);
creationData.setData(new TemplateFileInfo(file));
/*
* Pushing include stack and right after that --
* registering DOM Mapping with visual element:
* which is <DIV VPE:INCLUDE-ELEMENT="yes">
*/
pageContext.getVisualBuilder().pushIncludeStack(
new VpeIncludeInfo((Element) sourceNode, file, document));
registerDefine(pageContext, sourceNode, creationData.getNode());
...
{code}
Improve VpeDefineContainerTemplate class functionality
------------------------------------------------------
Key: JBIDE-10315
URL:
https://issues.jboss.org/browse/JBIDE-10315
Project: Tools (JBoss Tools)
Issue Type: Enhancement
Components: Visual Page Editor Templates
Affects Versions: 3.3.0.M4
Reporter: Denis Maliarevich
Assignee: Denis Maliarevich
Priority: Minor
Fix For: 3.3.0.Beta1
Particularly createTemplate(..) method.
registerDefine(pageContext, sourceNode) -- could be placed inside if condiotion.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira