[jboss-dev-forums] [Design of JBoss Tools (dev)] - Re: Force full or partial update in vpe plugin
mareshkau
do-not-reply at jboss.com
Sun Mar 1 17:50:05 EST 2009
For now no direct mechanism force for updating elements, you can manipulate of update element for which template was created by overriding method isRecreateAtAttrChange(..) of VpeAbstractTemplate.
Also you can see VpeVisualDomBuilder class, line 967. Here exists such code
// TODO Ssergey Vasilyev make a common code for figuring out
// if it is need to update parent node or not
private Node getNodeForUpdate(Node sourceNode) {
/* Changing of or tags can affect whole the table */
Node sourceTable = getParentTable(sourceNode, 2);
if (sourceTable != null) {
return sourceTable;
}
/* Changing of an tag can affect the parent select */
Node sourceSelect = getParentSelect(sourceNode);
if (sourceSelect != null) {
return sourceSelect;
}
return sourceNode;
}
but common code, hasn't been created yet.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4214036#4214036
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4214036
More information about the jboss-dev-forums
mailing list