Author: dmaliarevich
Date: 2010-07-16 04:47:31 -0400 (Fri, 16 Jul 2010)
New Revision: 23490
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/preferences/TemplatesPreferencePage.java
Log:
https://jira.jboss.org/browse/JBIDE-6598 , Update all related tags if the URI was
changed.
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/preferences/TemplatesPreferencePage.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/preferences/TemplatesPreferencePage.java 2010-07-16
08:24:00 UTC (rev 23489)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/preferences/TemplatesPreferencePage.java 2010-07-16
08:47:31 UTC (rev 23490)
@@ -276,6 +276,16 @@
editDialog.open();
if(data.isChanged()) {
tagListWasChanged = true;
+ /*
+ * Update all related tags if the URI was changed
+ */
+ for (VpeAnyData tag : tagsList) {
+ if (!tag.equals(data)
+ && tag.getName().split(":")[0] //$NON-NLS-1$
+ .equalsIgnoreCase(data.getName().split(":")[0])) { //$NON-NLS-1$
+ tag.setUri(data.getUri());
+ }
+ }
}
}
} else if (source == removeButton) {