JBoss Tools SVN: r7068 - trunk/jsf/docs/userguide/en/modules.
by jbosstools-commits@lists.jboss.org
Author: ochikvina
Date: 2008-03-21 14:54:21 -0400 (Fri, 21 Mar 2008)
New Revision: 7068
Modified:
trunk/jsf/docs/userguide/en/modules/JSFStruts_tools.xml
Log:
http://jira.jboss.com/jira/browse/JBDS-162 - updating 2.1.3. Working with Projects
2.1.4. Graphical Editor and Viewing for JSF Configuration Files sections
Modified: trunk/jsf/docs/userguide/en/modules/JSFStruts_tools.xml
===================================================================
--- trunk/jsf/docs/userguide/en/modules/JSFStruts_tools.xml 2008-03-21 17:25:26 UTC (rev 7067)
+++ trunk/jsf/docs/userguide/en/modules/JSFStruts_tools.xml 2008-03-21 18:54:21 UTC (rev 7068)
@@ -127,7 +127,7 @@
</mediaobject>
</figure>
- <para>The fallowing table lists possible Facelets templates for any JSF
+ <para>The following table lists possible Facelets templates for any JSF
project and gives a proper description for each one.</para>
<table>
<title>Facelets Templates</title>
@@ -708,7 +708,10 @@
</mediaobject>
</figure>
-
+ <para>Once the file have been created, it should be open in a
+ special <link
+ linkend="GraphicalEditorAndViewingForJSFConfigurationFiles76331"
+ >Faces Config Editor</link>.</para>
</section>
<section id="AddingYourOwnProjectTemplates853">
@@ -733,7 +736,7 @@
project and select <emphasis>
<property>JBoss Tools JSF > Save As
Template</property>
- </emphasis> as template </para>
+ </emphasis></para>
</listitem>
</itemizedlist>
<figure>
@@ -804,14 +807,21 @@
implementation as the project you turned into a
template.</para>
</section>
+
+ <!--para>At this point, you have a fully configured project to </para-->
</section>
<section id="GraphicalEditorAndViewingForJSFConfigurationFiles76331">
<title>Graphical Editor and Viewing for JSF Configuration Files</title>
- <para><property>JBDS</property> provides a graphical editor for working with
- JSF configuration file (<emphasis>
+
+ <para>First, we should mention that JSF configuration file (<emphasis>
<property>faces-config.xml</property>
- </emphasis>). The editor has three main viewers (modes):</para>
+ </emphasis>) is intended for registering JSF application resources
+ such as Converters, Validators, Managed Beans and page-to-page
+ navigation rules.</para>
+ <para>Now, let's look at how you can easily configure this file by
+ means of a special graphical editor. The editor has three main
+ viewers (modes):</para>
<itemizedlist>
<listitem>
@@ -829,9 +839,7 @@
<para>The JSF configuration editor also comes with a very useful <link
linkend="OpenOnSelection4Hyperlinknavigation">OpenOn</link>
- selection feature. Now let's dwell on each mode and all
- specific functionality which they provide for work with JSF
- configuration file.</para>
+ selection feature.</para>
<section id="Diagram9553">
@@ -1416,7 +1424,7 @@
</imageobject>
</mediaobject>
</figure>
-
+
</section>
<section id="CreateAndRegisterACustomValidator5632">
@@ -1424,8 +1432,8 @@
<title>Create and Register a Custom Validator</title>
<para>With the help of JBDS it's also quite easy to develop your
- own custom Validators. You should perform the actions similar to previous. Go through the
- following steps:</para>
+ own custom Validators. You should perform the actions similar to
+ previous. Go through the following steps:</para>
<itemizedlist>
<listitem>
<para>In the Project Explorer view open<emphasis>
18 years
JBoss Tools SVN: r7067 - trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor.
by jbosstools-commits@lists.jboss.org
Author: sdzmitrovich
Date: 2008-03-21 13:25:26 -0400 (Fri, 21 Mar 2008)
New Revision: 7067
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1555
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java 2008-03-21 16:47:39 UTC (rev 7066)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java 2008-03-21 17:25:26 UTC (rev 7067)
@@ -767,13 +767,13 @@
//we shouldn't change selection when we click on <input type="text" /> element,
//because if we change after resizing the input element lost selection
- if(!(HTML.TAG_INPUT.equalsIgnoreCase(visualDragElement.getNodeName())&&
- HTML.ATTR_TEXT.equalsIgnoreCase(visualDragElement.getAttribute(HTML.ATTR_TYPE))
- &&visualDragElement.getAttribute(HTML.ATTR_TYPE)!=null)) {
+// if(!(HTML.TAG_INPUT.equalsIgnoreCase(visualDragElement.getNodeName())&&
+// HTML.ATTR_TEXT.equalsIgnoreCase(visualDragElement.getAttribute(HTML.ATTR_TYPE))
+// &&visualDragElement.getAttribute(HTML.ATTR_TYPE)!=null)) {
selectionBuilder.setVisualElementSelection(visualDragElement);
mouseDownSelectionFlag = true;
- }
+// }
} else {
selectionBuilder.setCaretAtMouse(mouseEvent);
}
18 years
JBoss Tools SVN: r7066 - trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/templates.
by jbosstools-commits@lists.jboss.org
Author: dmaliarevich
Date: 2008-03-21 12:47:39 -0400 (Fri, 21 Mar 2008)
New Revision: 7066
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/templates/vpe-templates-jsf.xml
Log:
http://jira.jboss.com/jira/browse/JBIDE-1697, toggling on tab with label facet fixed
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/templates/vpe-templates-jsf.xml
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/templates/vpe-templates-jsf.xml 2008-03-21 16:47:32 UTC (rev 7065)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/templates/vpe-templates-jsf.xml 2008-03-21 16:47:39 UTC (rev 7066)
@@ -249,7 +249,7 @@
<vpe:template children="no" modify="yes">
<img src="{src(jsfvalue(@value))}" width="{@width}"
height="{@height}" class="{@styleClass}" style="{@style}"
- title="{tagstring()}" alt="{@alt}"/>
+ title="{tagstring()}" alt="{jsfvalue(@alt)}"/>
<vpe:dnd>
<vpe:drag start-enable="yes" />
</vpe:dnd>
@@ -262,7 +262,7 @@
<vpe:template children="no" modify="yes">
<img src="{src(jsfvalue(@url))}" width="{@width}"
height="{@height}" class="{@styleClass}" style="{@style}"
- title="{tagstring()}" alt="{@alt}"/>
+ title="{tagstring()}" alt="{jsfvalue(@alt)}"/>
<vpe:resize>
<vpe:width width-attr="width" />
<vpe:height height-attr="height" />
18 years
JBoss Tools SVN: r7065 - trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template.
by jbosstools-commits@lists.jboss.org
Author: dmaliarevich
Date: 2008-03-21 12:47:32 -0400 (Fri, 21 Mar 2008)
New Revision: 7065
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesTabPanelTemplate.java
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesTabTemplate.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1697, toggling on tab with label facet fixed
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesTabPanelTemplate.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesTabPanelTemplate.java 2008-03-21 16:47:27 UTC (rev 7064)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesTabPanelTemplate.java 2008-03-21 16:47:32 UTC (rev 7065)
@@ -10,6 +10,7 @@
******************************************************************************/
package org.jboss.tools.jsf.vpe.richfaces.template;
+import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@@ -23,6 +24,9 @@
import org.jboss.tools.vpe.editor.template.VpeToggableTemplate;
import org.mozilla.interfaces.nsIDOMDocument;
import org.mozilla.interfaces.nsIDOMElement;
+import org.mozilla.interfaces.nsIDOMNode;
+import org.mozilla.interfaces.nsIDOMNodeList;
+import org.mozilla.xpcom.XPCOMException;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
@@ -64,6 +68,7 @@
private final String TAB = ":tab"; //$NON-NLS-1$
private final String NAME = "name"; //$NON-NLS-1$
+ private List<nsIDOMElement> storedTabHeaders = new ArrayList<nsIDOMElement>();
private static Map toggleMap = new HashMap();
public VpeCreationData create(VpePageContext pageContext, Node sourceNode, nsIDOMDocument visualDocument) {
@@ -77,9 +82,7 @@
setDirAttr(table, sourceElement);
table.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR,
ComponentUtil.getAttribute(sourceElement, HtmlComponentUtil.HTML_STYLECLASS_ATTR)
- + SPACE + CSS_PANEL
- + SPACE + CSS_CONTENT
- + SPACE + CSS_CONTENT_POSITION);
+ + SPACE + CSS_PANEL);
table.setAttribute(HtmlComponentUtil.HTML_BORDER_ATTR, ZERO);
table.setAttribute(HtmlComponentUtil.HTML_CELLPADDING_ATTR, ZERO);
table.setAttribute(HtmlComponentUtil.HTML_CELLSPACING_ATTR, ZERO);
@@ -98,6 +101,8 @@
inerTable.setAttribute(HtmlComponentUtil.HTML_BORDER_ATTR, ZERO);
inerTable.setAttribute(HtmlComponentUtil.HTML_CELLPADDING_ATTR, ZERO);
inerTable.setAttribute(HtmlComponentUtil.HTML_CELLSPACING_ATTR, ZERO);
+ inerTable.setAttribute(HtmlComponentUtil.HTML_STYLE_ATTR,
+ CSS_CONTENT + SPACE + CSS_CONTENT_POSITION);
// Encode header
nsIDOMElement inerTr = visualDocument.createElement(HtmlComponentUtil.HTML_TAG_TR);
@@ -118,7 +123,7 @@
boolean active = (i == activeId);
if(child.getNodeName().endsWith(TAB)) {
- RichFacesTabTemplate.encodeHeader(creationData,
+ nsIDOMElement headerTd = RichFacesTabTemplate.encodeHeader(creationData,
(Element) child,
visualDocument, inerTr, active,
ComponentUtil.getAttribute(sourceElement,
@@ -142,6 +147,7 @@
headerSpacing = ONE;
}
spaceImg.setAttribute(HtmlComponentUtil.HTML_STYLE_ATTR, "width: " + headerSpacing + "px"); //$NON-NLS-1$ //$NON-NLS-2$
+ storedTabHeaders.add(headerTd);
}
}
@@ -309,4 +315,68 @@
return true;
}
+ /**
+ * Is invoked after construction of all child nodes of the current visual node.
+ * @param pageContext Contains the information on edited page.
+ * @param sourceNode The current node of the source tree.
+ * @param visualDocument The document of the visual tree.
+ * @param data Object <code>VpeCreationData</code>, built by a method <code>create</code>
+ */
+ public void validate(VpePageContext pageContext, Node sourceNode, nsIDOMDocument visualDocument, VpeCreationData data) {
+
+ super.validate(pageContext, sourceNode, visualDocument, data);
+ if ((storedTabHeaders == null) || (storedTabHeaders.size() < 1)){
+ return;
+ }
+
+ for (nsIDOMElement tab : storedTabHeaders) {
+ String value = tab.getAttribute(VpeVisualDomBuilder.VPE_USER_TOGGLE_ID);
+ applyAttributeValueOnChildren(VpeVisualDomBuilder.VPE_USER_TOGGLE_ID, value, getChildren(tab));
+ applyAttributeValueOnChildren(VpeVisualDomBuilder.VPE_USER_TOGGLE_LOOKUP_PARENT, "true", getChildren(tab));
+ }
+
+ }
+
+ /**
+ * Sets the attribute to element children
+ * @param attrName attribute name
+ * @param attrValue attribute value
+ * @param children children
+ */
+ private void applyAttributeValueOnChildren(String attrName, String attrValue, List<nsIDOMElement> children) {
+ if (children == null || attrName == null || attrValue == null) {
+ return;
+ }
+ for (nsIDOMElement child : children) {
+ child.setAttribute(attrName, attrValue);
+ applyAttributeValueOnChildren(attrName, attrValue, getChildren(child));
+ }
+ }
+
+ /**
+ * Gets element children
+ * @param element the element
+ * @return children
+ */
+ private List<nsIDOMElement> getChildren(nsIDOMElement element) {
+ List<nsIDOMElement> result = new ArrayList<nsIDOMElement>();
+ if (element.hasChildNodes()) {
+ nsIDOMNodeList children = element.getChildNodes();
+ if (null != children) {
+ long len = children.getLength();
+ for (int i = 0; i < len; i++) {
+ nsIDOMNode item = children.item(i);
+ try {
+ nsIDOMElement elem = (nsIDOMElement) item
+ .queryInterface(nsIDOMElement.NS_IDOMELEMENT_IID);
+ result.add(elem);
+ } catch (XPCOMException ex) {
+ // just ignore this exception
+ }
+ }
+ }
+ }
+ return result;
+ }
+
}
\ No newline at end of file
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesTabTemplate.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesTabTemplate.java 2008-03-21 16:47:27 UTC (rev 7064)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesTabTemplate.java 2008-03-21 16:47:32 UTC (rev 7065)
@@ -126,25 +126,25 @@
* Encode Header of tab
* @param sourceElement
* @param visualDocument
- * @param parentDiv
+ * @param parentTr
* @param active
* @param activeTabClass
* @param inactiveTabClass
* @param disabledTabClass
*/
- public static void encodeHeader(VpeCreationData creationData,
+ public static nsIDOMElement encodeHeader(VpeCreationData creationData,
Element sourceElement,
nsIDOMDocument visualDocument,
- nsIDOMElement parentDiv,
+ nsIDOMElement parentTr,
boolean active,
String activeTabClass,
String inactiveTabClass,
String disabledTabClass,
String toggleId) {
- nsIDOMElement td = visualDocument.createElement(HtmlComponentUtil.HTML_TAG_TD);
- parentDiv.appendChild(td);
- td.setAttribute(HtmlComponentUtil.HTML_STYLE_ATTR, "height: 100%; vertical-align: bottom;");
+ nsIDOMElement headerTd = visualDocument.createElement(HtmlComponentUtil.HTML_TAG_TD);
+ parentTr.appendChild(headerTd);
+ headerTd.setAttribute(HtmlComponentUtil.HTML_STYLE_ATTR, "height: 100%; vertical-align: bottom;");
String styleClass = "dr-tbpnl-tbcell-dsbl rich-tabhdr-cell-dsbl";
if(!"true".equalsIgnoreCase(sourceElement.getAttribute(DISABLED))) {
if(active) {
@@ -155,11 +155,11 @@
+ SPACE + RichFacesTabPanelTemplate.CSS_CELL_INACTIVE;
}
}
- td.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR, styleClass);
- td.setAttribute(VPE_USER_TOGGLE_ID, toggleId);
+ headerTd.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR, styleClass);
+ headerTd.setAttribute(VPE_USER_TOGGLE_ID, toggleId);
nsIDOMElement table = visualDocument.createElement(HtmlComponentUtil.HTML_TAG_TABLE);
- td.appendChild(table);
+ headerTd.appendChild(table);
table.setAttribute(HtmlComponentUtil.HTML_BORDER_ATTR, ZERO);
table.setAttribute(HtmlComponentUtil.HTML_CELLPADDING_ATTR, ZERO);
table.setAttribute(HtmlComponentUtil.HTML_CELLSPACING_ATTR, ZERO);
@@ -170,16 +170,16 @@
table.appendChild(mainTr);
encodeSpacer(mainTr, visualDocument);
- td = visualDocument.createElement(HtmlComponentUtil.HTML_TAG_TD);
- mainTr.appendChild(td);
- td.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR, "dr-tbpnl-tbtopbrdr"
+ headerTd = visualDocument.createElement(HtmlComponentUtil.HTML_TAG_TD);
+ mainTr.appendChild(headerTd);
+ headerTd.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR, "dr-tbpnl-tbtopbrdr"
+ SPACE + RichFacesTabPanelTemplate.CSS_SIDE_CELL);
- td.setAttribute(HtmlComponentUtil.HTML_STYLE_ATTR, "width: "
+ headerTd.setAttribute(HtmlComponentUtil.HTML_STYLE_ATTR, "width: "
+ ComponentUtil.getAttribute(sourceElement, LABEL_WIDTH) + ";");
- td.setAttribute(VPE_USER_TOGGLE_ID, toggleId);
+ headerTd.setAttribute(VPE_USER_TOGGLE_ID, toggleId);
table = visualDocument.createElement(HtmlComponentUtil.HTML_TAG_TABLE);
- td.appendChild(table);
+ headerTd.appendChild(table);
table.setAttribute(HtmlComponentUtil.HTML_STYLE_ATTR, "height: 100%; width: 100%;");
table.setAttribute(HtmlComponentUtil.HTML_BORDER_ATTR, ZERO);
table.setAttribute(HtmlComponentUtil.HTML_CELLPADDING_ATTR, ZERO);
@@ -188,8 +188,8 @@
nsIDOMElement tr = visualDocument.createElement(HtmlComponentUtil.HTML_TAG_TR);
table.appendChild(tr);
- td = visualDocument.createElement(HtmlComponentUtil.HTML_TAG_TD);
- tr.appendChild(td);
+ headerTd = visualDocument.createElement(HtmlComponentUtil.HTML_TAG_TD);
+ tr.appendChild(headerTd);
styleClass = "dr-tbpnl-tb dr-tbpnl-tb-dsbl"
+ SPACE + CSS_HEADER
@@ -215,24 +215,25 @@
}
}
- td.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR, styleClass);
+ headerTd.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR, styleClass);
String style = "background-image: url(file:///" + bgImgPath.replace('\\', '/') + ");";
- td.setAttribute(HtmlComponentUtil.HTML_STYLE_ATTR, style);
- td.setAttribute(VPE_USER_TOGGLE_ID, toggleId);
+ headerTd.setAttribute(HtmlComponentUtil.HTML_STYLE_ATTR, style);
+ headerTd.setAttribute(VPE_USER_TOGGLE_ID, toggleId);
Node labelFacet = ComponentUtil.getFacet(sourceElement, LABEL, true);
String labelAttr = sourceElement.getAttribute(LABEL);
if (null != labelFacet) {
- VpeChildrenInfo child = new VpeChildrenInfo(td);
+ VpeChildrenInfo child = new VpeChildrenInfo(headerTd);
child.addSourceChild(labelFacet);
creationData.addChildrenInfo(child);
} else if (null != labelAttr) {
- td.appendChild(visualDocument.createTextNode(labelAttr));
+ headerTd.appendChild(visualDocument.createTextNode(labelAttr));
} else {
char space = 160;
labelAttr = EMPTY + space;
- td.appendChild(visualDocument.createTextNode(labelAttr));
+ headerTd.appendChild(visualDocument.createTextNode(labelAttr));
}
encodeSpacer(mainTr, visualDocument);
+ return headerTd;
}
/*
18 years
JBoss Tools SVN: r7064 - trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor.
by jbosstools-commits@lists.jboss.org
Author: dmaliarevich
Date: 2008-03-21 12:47:27 -0400 (Fri, 21 Mar 2008)
New Revision: 7064
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeVisualDomBuilder.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1697, toggling on tab with label facet fixed
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeVisualDomBuilder.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeVisualDomBuilder.java 2008-03-21 15:52:28 UTC (rev 7063)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeVisualDomBuilder.java 2008-03-21 16:47:27 UTC (rev 7064)
@@ -91,10 +91,14 @@
import org.w3c.dom.NodeList;
public class VpeVisualDomBuilder extends VpeDomBuilder {
- /** REGEX_EL */
+
+ public static final String VPE_USER_TOGGLE_ID = "vpe-user-toggle-id"; //$NON-NLS-1$
+ public static final String VPE_USER_TOGGLE_LOOKUP_PARENT = "vpe-user-toggle-lookup-parent"; //$NON-NLS-1$
+
+ /** REGEX_EL */
private static final Pattern REGEX_EL = Pattern.compile(
"[\\$|\\#]\\{.*\\}", Pattern.MULTILINE + Pattern.DOTALL);
-
+
private static final String PSEUDO_ELEMENT = "br";
private static final String PSEUDO_ELEMENT_ATTR = "vpe:pseudo-element";
private static final String INIT_ELEMENT_ATTR = "vpe:init-element";
@@ -232,7 +236,7 @@
// temporary, will be change to prefference's variable
// private boolean borderVisible = true;
-
+
private boolean addNode(Node sourceNode, nsIDOMNode visualNextNode,
nsIDOMNode visualContainer) {
@@ -1038,7 +1042,7 @@
}
nsIDOMAttr toggleIdAttr = visualElement
- .getAttributeNode("vpe-user-toggle-id");
+ .getAttributeNode(VPE_USER_TOGGLE_ID);
if (toggleIdAttr == null) {
return false;
}
@@ -1050,7 +1054,7 @@
boolean toggleLookup = false;
nsIDOMAttr toggleLookupAttr = visualElement
- .getAttributeNode("vpe-user-toggle-lookup-parent");
+ .getAttributeNode(VPE_USER_TOGGLE_LOOKUP_PARENT);
if (toggleLookupAttr != null) {
toggleLookup = "true".equals(toggleLookupAttr.getNodeValue());
}
18 years
JBoss Tools SVN: r7063 - trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/refactoring.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2008-03-21 11:52:28 -0400 (Fri, 21 Mar 2008)
New Revision: 7063
Modified:
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/refactoring/SeamPropertyRefactoringTest.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1919 Added test for view folder renaming.
Modified: trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/refactoring/SeamPropertyRefactoringTest.java
===================================================================
--- trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/refactoring/SeamPropertyRefactoringTest.java 2008-03-21 15:39:32 UTC (rev 7062)
+++ trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/refactoring/SeamPropertyRefactoringTest.java 2008-03-21 15:52:28 UTC (rev 7063)
@@ -20,12 +20,23 @@
import org.eclipse.core.resources.IncrementalProjectBuilder;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.Path;
import org.eclipse.core.runtime.preferences.IEclipsePreferences;
import org.eclipse.jdt.core.IJavaProject;
import org.eclipse.jdt.core.IPackageFragmentRoot;
import org.eclipse.jdt.core.JavaCore;
import org.eclipse.jdt.core.JavaModelException;
+import org.eclipse.jdt.internal.corext.refactoring.rename.JavaRenameRefactoring;
+import org.eclipse.jdt.internal.corext.refactoring.rename.RenameResourceProcessor;
+import org.eclipse.jdt.internal.corext.refactoring.tagging.INameUpdating;
+import org.eclipse.jdt.internal.corext.refactoring.tagging.IReferenceUpdating;
+import org.eclipse.jdt.internal.corext.refactoring.tagging.ITextUpdating;
+import org.eclipse.jdt.internal.ui.refactoring.RefactoringExecutionHelper;
+import org.eclipse.jdt.internal.ui.refactoring.RefactoringSaveHelper;
+import org.eclipse.jdt.internal.ui.refactoring.reorg.RenameSelectionState;
import org.eclipse.jdt.ui.refactoring.RenameSupport;
+import org.eclipse.ltk.core.refactoring.RefactoringCore;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.IWorkbenchWindow;
import org.jboss.tools.common.model.util.EclipseResourceUtil;
@@ -225,7 +236,46 @@
}
private IFolder renameFolder(String folderPath, String newFolderName) throws CoreException {
- return null;
+ IResource resource = ResourcesPlugin.getWorkspace().getRoot().findMember(folderPath);
+ assertNotNull("Can't find folder: " + folderPath, resource);
+
+ // init refactoring
+ RenameResourceProcessor processor = new RenameResourceProcessor(resource);
+ JavaRenameRefactoring refactoring = new JavaRenameRefactoring(processor);
+ ((INameUpdating)refactoring.getAdapter(INameUpdating.class)).setNewElementName(newFolderName);
+ IReferenceUpdating reference = (IReferenceUpdating)refactoring.getAdapter(IReferenceUpdating.class);
+ if(reference != null) {
+ reference.setUpdateReferences(true);
+ }
+ ITextUpdating text = (ITextUpdating)refactoring.getAdapter(ITextUpdating.class);
+ if(text != null) {
+ text.setUpdateTextualMatches(true);
+ }
+
+ // perform
+ Object[] elements = processor.getElements();
+ RenameSelectionState state = elements.length==1?new RenameSelectionState(elements[0]):null;
+ RefactoringExecutionHelper helper= new RefactoringExecutionHelper(refactoring,
+ RefactoringCore.getConditionCheckingFailedSeverity(),
+ RefactoringSaveHelper.SAVE_ALL,
+ WorkbenchUtils.getActiveShell(),
+ WorkbenchUtils.getWorkbench().getActiveWorkbenchWindow());
+ try {
+ helper.perform(true, true);
+ } catch (InterruptedException e) {
+ JUnitUtils.fail("Exception during perform folder renaming: " + folderPath, e);
+ } catch (InvocationTargetException e) {
+ JUnitUtils.fail("Exception during perform folder renaming: " + folderPath, e);
+ }
+
+ EditorTestHelper.joinBackgroundActivities();
+
+ IPath path = new Path(folderPath);
+ String newFolderPath = path.removeLastSegments(1).append(newFolderName).toString();
+ resource = ResourcesPlugin.getWorkspace().getRoot().findMember(newFolderPath);
+ assertNotNull("Can't find folder: " + newFolderPath, resource);
+
+ return (IFolder)resource;
}
private IProject renameProject(IProject project, String newProjectName) throws CoreException {
18 years
JBoss Tools SVN: r7062 - trunk/hibernatetools/docs/reference/en/images/plugins.
by jbosstools-commits@lists.jboss.org
Author: ochikvina
Date: 2008-03-21 11:39:32 -0400 (Fri, 21 Mar 2008)
New Revision: 7062
Added:
trunk/hibernatetools/docs/reference/en/images/plugins/plugins_12_a.png
trunk/hibernatetools/docs/reference/en/images/plugins/plugins_12_b.png
Log:
http://jira.jboss.com/jira/browse/JBDS-281 - two screenshots for new "Structured mapping & config file editor' section are added;
Added: trunk/hibernatetools/docs/reference/en/images/plugins/plugins_12_a.png
===================================================================
(Binary files differ)
Property changes on: trunk/hibernatetools/docs/reference/en/images/plugins/plugins_12_a.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/hibernatetools/docs/reference/en/images/plugins/plugins_12_b.png
===================================================================
(Binary files differ)
Property changes on: trunk/hibernatetools/docs/reference/en/images/plugins/plugins_12_b.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
18 years
JBoss Tools SVN: r7061 - trunk/hibernatetools/docs/reference/en/modules.
by jbosstools-commits@lists.jboss.org
Author: ochikvina
Date: 2008-03-21 11:38:39 -0400 (Fri, 21 Mar 2008)
New Revision: 7061
Modified:
trunk/hibernatetools/docs/reference/en/modules/plugins.xml
Log:
http://jira.jboss.com/jira/browse/JBDS-281 - "Structured mapping & config file editor' section is added;
link to this secton is added in the "creating map file " section
Modified: trunk/hibernatetools/docs/reference/en/modules/plugins.xml
===================================================================
--- trunk/hibernatetools/docs/reference/en/modules/plugins.xml 2008-03-21 15:03:44 UTC (rev 7060)
+++ trunk/hibernatetools/docs/reference/en/modules/plugins.xml 2008-03-21 15:38:39 UTC (rev 7061)
@@ -47,8 +47,10 @@
<section>
<title>Creating a Hibernate Mapping File</title>
+
+ <para>Hibernate mapping files are used to specify how your objects are related to database tables.</para>
- <para>For creating a skeleton mapping file, i. e. <emphasis>
+ <para>For creating a skeleton mapping file, i. e. any <emphasis>
<property>.hbm.xml</property>
</emphasis>, Hibernate Tools provide a basic wizard which you can bring up by navigating <emphasis>
<property>New > Hibernate XML mapping file</property>.</emphasis></para>
@@ -64,30 +66,32 @@
</figure>
<para>At first you'll be asked to specify the location and the name for a new mapping
- file. On the next dialog you should type or browse the class to map.</para>
+ file. On the next dialog you should type or browse the class to map.</para>
<figure>
<title>Specifying the Class to Map</title>
-
+
<mediaobject>
<imageobject>
<imagedata fileref="images/plugins/plugins_0_a.png"/>
</imageobject>
</mediaobject>
</figure>
- <para>Pressing finish creates the file and opens it in the editor.</para>
-
- <para> If you start the wizard from the selected class, all values will be detected there automatically.</para>
-
- <figure>
+ <para>Pressing finish creates the file and opens it in the <link
+ linkend="map_config_struct_editor">structured hbm.xml editor</link>.</para>
+
+ <para> If you start the wizard from the selected class, all values will be detected there
+ automatically.</para>
+
+ <figure>
<title>Creating Mapping File for Selected Class</title>
-
+
<mediaobject>
<imageobject>
<imagedata fileref="images/plugins/plugins_0_b.png"/>
</imageobject>
</mediaobject>
- </figure>
-
+ </figure>
+
</section>
<section>
@@ -101,7 +105,7 @@
</emphasis> file is needed. The <property>Hibernate Tools</property> provide a wizard for
generating the <emphasis>
<property>hibernate.cfg.xml</property>
- </emphasis> file if you do not already have such file.</para>
+ </emphasis> file if you do not already have such one.</para>
<para>Start the wizard by clicking <emphasis>
<property>New > Other (Ctrl+N)</property>
@@ -1130,6 +1134,41 @@
</section>
</section>
+ <section id="map_config_struct_editor">
+ <title>Structured Hibernate Mapping and Configuration File Editor</title>
+ <para>The structured editor represents the file in the tree form. It also allows to modify the
+ structure of the file and its elements with the help of tables provided on the right-hand
+ area.</para>
+
+ <para>To open any mapping file in the editor, choose <emphasis>
+ <property>Open With > Hibernate 3.0 XML Editor</property></emphasis> option
+ from the context menu of the file. The editor should look as follows:</para>
+
+ <figure>
+ <title>Structured hbm.xml Editor</title>
+
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/plugins/plugins_12_a.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>For the configuration file you should choose <emphasis>
+ <property>Open With > Hibernate Configuration 3.0 XML Editor</property></emphasis>option.</para>
+
+ <figure>
+ <title>Structured cfg.xml Editor</title>
+
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/plugins/plugins_12_b.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ </section>
+
<section>
<title>Reveng.xml Editor</title>
18 years
JBoss Tools SVN: r7060 - in trunk/jst/plugins/org.jboss.tools.jst.web/resources: meta and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2008-03-21 11:03:44 -0400 (Fri, 21 Mar 2008)
New Revision: 7060
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web/resources/help/keys-web.properties
trunk/jst/plugins/org.jboss.tools.jst.web/resources/meta/tld20.meta
Log:
JBIDE-1942
Modified: trunk/jst/plugins/org.jboss.tools.jst.web/resources/help/keys-web.properties
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web/resources/help/keys-web.properties 2008-03-21 10:11:38 UTC (rev 7059)
+++ trunk/jst/plugins/org.jboss.tools.jst.web/resources/help/keys-web.properties 2008-03-21 15:03:44 UTC (rev 7060)
@@ -89,8 +89,8 @@
FileTLD_1_2=/struts/FileTLD_1_2.html
FileTLD_1_2_Properties=/struts/FileTLD_1_2_Properties.html
-FileTLD_1_2_Properties.WindowTitle=Edit Properties
-FileTLD_1_2_Properties.Title=File tld
+FileTLD_1_2_Properties.WindowTitle=Properties
+FileTLD_1_2_Properties.Title=File TLD
FileTLD_1_2_CreateListener=/struts/FileTLD_1_2_CreateListener.html
FileTLD_1_2_CreateListener.WindowTitle=Add Listener
@@ -103,8 +103,8 @@
FileTLD_1_2=/struts/FileTLD_1_2.html
FileTLD_1_2_Properties=/struts/FileTLD_1_2_Properties.html
-FileTLD_1_2_Properties.WindowTitle=Edit Properties
-FileTLD_1_2_Properties.Title=File tld
+FileTLD_1_2_Properties.WindowTitle=Properties
+FileTLD_1_2_Properties.Title=File TLD
FileTLD_1_2_CreateListener=/struts/FileTLD_1_2_CreateListener.html
FileTLD_1_2_CreateListener.WindowTitle=Add Listener
@@ -126,8 +126,8 @@
FileTLD_2_0=/struts/FileTLD_1_2.html
FileTLD_2_0_Properties=/struts/FileTLD_1_2_Properties.html
-FileTLD_2_0_Properties.WindowTitle=Edit Properties
-FileTLD_2_0_Properties.Title=File tld 2.0
+FileTLD_2_0_Properties.WindowTitle=Properties
+FileTLD_2_0_Properties.Title=File TLD 2.0
FileTLD_2_0_CreateListener=/struts/FileTLD_1_2_CreateListener.html
FileTLD_2_0_CreateListener.WindowTitle=Add Listener
@@ -151,8 +151,8 @@
FileTLD_2_1=/struts/FileTLD_1_2.html
FileTLD_2_1_Properties=/struts/FileTLD_1_2_Properties.html
-FileTLD_2_1_Properties.WindowTitle=Edit Properties
-FileTLD_2_1_Properties.Title=File tld 2.1
+FileTLD_2_1_Properties.WindowTitle=Properties
+FileTLD_2_1_Properties.Title=File TLD 2.1
FileTLD_2_1_CreateListener=/struts/FileTLD_1_2_CreateListener.html
FileTLD_2_1_CreateListener.WindowTitle=Add Listener
@@ -177,7 +177,7 @@
FileTLD_PRO=/struts/FileTLD.html
FileTLD_PRO_Properties=/struts/FileTLD_Properties.html
-FileTLD_PRO_Properties.WindowTitle=Edit Properties
+FileTLD_PRO_Properties.WindowTitle=Properties
FileTLD_PRO_Properties.Title=File TLD
FileTLD_PRO_CreateTag=/struts/FileTLD_CreateTag.html
@@ -189,7 +189,7 @@
TLDTag=/struts_pro/TLDTag.html
TLDTag_Properties=/struts_pro/TLDTag_Properties.html
-TLDTag_Properties.WindowTitle=Edit Properties
+TLDTag_Properties.WindowTitle=Properties
TLDTag_Properties.Title=TLD Tag
TLDTag_CreateAttribute=/struts_pro/TLDTag_CreateAttribute.html
@@ -199,7 +199,7 @@
TLDTag12=/struts_pro/TLDTag12.html
TLDTag12_Properties=/struts_pro/TLDTag12_Properties.html
-TLDTag12_Properties.WindowTitle=Edit Properties
+TLDTag12_Properties.WindowTitle=Properties
TLDTag12_Properties.Title=TLD Tag
TLDTag12_CreateVariable=/struts_pro/TLDTag12_CreateVariable.html
@@ -213,7 +213,7 @@
TLDTag21=/struts_pro/TLDTag12.html
TLDTag21_Properties=/struts_pro/TLDTag12_Properties.html
-TLDTag21_Properties.WindowTitle=Edit Properties
+TLDTag21_Properties.WindowTitle=Properties
TLDTag21_Properties.Title=TLD Tag
TLDTag21_CreateVariable=/struts_pro/TLDTag12_CreateVariable.html
@@ -228,22 +228,21 @@
TLDAttribute=/struts_pro/TLDAttribute.html
-TLDAttribute_Properties=/struts_pro/TLDAttribute_Properties.html
-TLDAttribute_Properties.WindowTitle=Edit Properties
+TLDAttribute_Properties.WindowTitle=Properties
TLDAttribute_Properties.Title=TLD Attribute
-TLDAttribute12=/struts_pro/TLDAttribute12.html
+TLDAttribute12_Properties.WindowTitle=Properties
+TLDAttribute12_Properties.Title=TLD Attribute
-TLDAttribute12_Properties=/struts_pro/TLDAttribute12_Properties.html
-TLDAttribute12_Properties.WindowTitle=Edit Properties
-TLDAttribute12_Properties.Title=Tld Attribute
+TLDAttribute21_Properties.WindowTitle=Properties
+TLDAttribute21_Properties.Title=TLD Attribute
##### TLD 1.2 Variable #####
TLDVariable=/struts_pro/TLDVariable.html
TLDVariable_Properties=/struts_pro/TLDVariable_Properties.html
-TLDVariable_Properties.WindowTitle=Edit Properties
+TLDVariable_Properties.WindowTitle=Properties
TLDVariable_Properties.Title=TLD Variable
TLDVariable_CreateInitParam=/struts_pro/WebAppServlet_CreateInitParam.html
@@ -255,7 +254,7 @@
TLDValidator=/struts_pro/TLDValidator.html
TLDValidator_Properties=/struts_pro/TLDValidator.html
-TLDValidator_Properties.WindowTitle=Edit Properties
+TLDValidator_Properties.WindowTitle=Properties
TLDValidator_Properties.Title=TLD Validator
TLDValidator_CreateInitParam=/struts_pro/WebAppServlet_CreateInitParam.html
@@ -266,13 +265,13 @@
TLDListener=/struts_pro/TLDListener.html
TLDListener_Properties=/struts_pro/TLDListener.html
-TLDListener_Properties.WindowTitle=Edit Properties
+TLDListener_Properties.WindowTitle=Properties
TLDListener_Properties.Title=TLD Listener
TLDListeners=/struts_pro/TLDListener.html
TLDListeners_Properties=/struts_pro/TLDListener.html
-TLDListeners_Properties.WindowTitle=Edit Properties
+TLDListeners_Properties.WindowTitle=Properties
TLDListeners_Properties.Title=TLD Listeners
TLDListeners_CreateListener.WindowTitle=Add Listener
@@ -283,7 +282,7 @@
TLDTaglib=/model/noHelpYet.html
TLDTaglib_Properties=/model/noHelpYet.html
-TLDTaglib_Properties.WindowTitle=Edit Properties
+TLDTaglib_Properties.WindowTitle=Properties
TLDTaglib_Properties.Title=TLD Taglib
TLDTaglib_CreateTag=/model/noHelpYet.html
@@ -295,7 +294,7 @@
TLDFunction=/model/noHelpYet.html
TLDFunction_Properties=/struts_pro/TLDAttribute_Properties.html
-TLDFunction_Properties.WindowTitle=Edit Properties
+TLDFunction_Properties.WindowTitle=Properties
TLDFunction_Properties.Title=TLD Function
TLDFunctions_CreateFunction=/model/noHelpYet.html
@@ -312,16 +311,16 @@
FileWebApp=/struts_pro/FileWebApp.html
FileWebApp_Properties=/struts_pro/FileWebApp_Properties.html
-FileWebApp_Properties.WindowTitle=Edit Properties
+FileWebApp_Properties.WindowTitle=Properties
FileWebApp_Properties.Title=File Web Descriptor
FileWebApp.editorTitle=Web XML Editor
FileWebApp24_Properties=/struts_pro/FileWebApp_Properties.html
-FileWebApp24_Properties.WindowTitle=Edit Properties
+FileWebApp24_Properties.WindowTitle=Properties
FileWebApp24_Properties.Title=File Web Descriptor
FileWebApp24.editorTitle=Web XML Editor
FileWebApp25.editorTitle=Web XML Editor
-FileWebApp25_Properties.WindowTitle=Edit Properties
+FileWebApp25_Properties.WindowTitle=Properties
FileWebApp25_Properties.Title=File Web Descriptor
@@ -415,7 +414,7 @@
WebAppAuthConstraint=/struts_pro/WebAppAuthConstraint.html
WebAppAuthConstraint_Properties=/struts_pro/WebAppAuthConstraint_Properties.html
-WebAppAuthConstraint_Properties.WindowTitle=Edit Properties
+WebAppAuthConstraint_Properties.WindowTitle=Properties
WebAppAuthConstraint_Properties.Title=Web Auth Constraint
WebAppAuthConstraint_CreateRole=/struts_pro/WebAppAuthConstraint_CreateRole.html
@@ -427,7 +426,7 @@
WebAppContextParam=/struts_pro/WebAppContextParam.html
WebAppContextParam_Properties=/struts_pro/WebAppContextParam.html
-WebAppContextParam_Properties.WindowTitle=Edit Properties
+WebAppContextParam_Properties.WindowTitle=Properties
WebAppContextParam_Properties.Title=Web Context Param
##### web ejb-ref element #####
@@ -435,7 +434,7 @@
WebAppEjbRef=/struts_pro/WebAppEjbRef.html
WebAppEjbRef_Properties=/struts_pro/WebAppEjbRef.html
-WebAppEjbRef_Properties.WindowTitle=Edit Properties
+WebAppEjbRef_Properties.WindowTitle=Properties
WebAppEjbRef_Properties.Title=Web Ejb Ref
##### web ejb-local-ref element #####
@@ -443,7 +442,7 @@
WebAppEjbRef=/struts_pro/WebAppEjbLocalRef.html
WebAppEjbLocalRef_Properties=/struts_pro/WebAppEjbRef.html
-WebAppEjbLocalRef_Properties.WindowTitle=Edit Properties
+WebAppEjbLocalRef_Properties.WindowTitle=Properties
WebAppEjbLocalRef_Properties.Title=Web Ejb Local Ref
##### web env-entry element #####
@@ -451,7 +450,7 @@
WebAppEnvEntry=/struts_pro/WebAppEnvEntry.html
WebAppEnvEntry_Properties=/struts_pro/WebAppEnvEntry.html
-WebAppEnvEntry_Properties.WindowTitle=Edit Properties
+WebAppEnvEntry_Properties.WindowTitle=Properties
WebAppEnvEntry_Properties.Title=Web Env Entry
##### web error-page element #####
@@ -459,14 +458,14 @@
WebAppErrorPage=/struts_pro/WebAppErrorPage.html
WebAppErrorPage_Properties=/struts_pro/WebAppErrorPage.html
-WebAppErrorPage_Properties.WindowTitle=Edit Properties
+WebAppErrorPage_Properties.WindowTitle=Properties
WebAppErrorPage_Properties.Title=Web Error Page
##### web init-param element #####
WebAppInitParam=/struts_pro/WebAppInitParam.html
WebAppInitParam_Properties=/struts_pro/WebAppInitParam.html
-WebAppInitParam_Properties.WindowTitle=Edit Properties
+WebAppInitParam_Properties.WindowTitle=Properties
WebAppInitParam_Properties.Title=Web Init Param
@@ -475,14 +474,14 @@
WebAppLoginConfig=/struts_pro/WebAppLoginConfig.html
WebAppLoginConfig_Properties=/struts_pro/WebAppLoginConfig.html
-WebAppLoginConfig_Properties.WindowTitle=Edit Properties
+WebAppLoginConfig_Properties.WindowTitle=Properties
WebAppLoginConfig_Properties.Title=Web Login Config
##### web mime-mapping element #####
WebAppMimeMapping=/struts_pro/WebAppMimeMapping.html
-WebAppMimeMapping_Properties.WindowTitle=Edit Properties
+WebAppMimeMapping_Properties.WindowTitle=Properties
WebAppMimeMapping_Properties=/struts_pro/WebAppMimeMapping.html
WebAppMimeMapping_Properties.Title=Web Mime Mapping
@@ -491,7 +490,7 @@
WebAppResourceCollection=/struts_pro/WebAppResourceCollection.html
WebAppResourceCollection_Properties=/struts_pro/WebAppResourceCollection.html
-WebAppResourceCollection_Properties.WindowTitle=Edit Properties
+WebAppResourceCollection_Properties.WindowTitle=Properties
WebAppResourceCollection_Properties.Title=Web Resource Collection
##### web resource-ref element #####
@@ -499,7 +498,7 @@
WebAppResourceRef=/struts_pro/WebAppResourceRef.html
WebAppResourceRef_Properties=/struts_pro/WebAppResourceRef.html
-WebAppResourceRef_Properties.WindowTitle=Edit Properties
+WebAppResourceRef_Properties.WindowTitle=Properties
WebAppResourceRef_Properties.Title=Web Resource Ref
##### web resource-env-ref element #####
@@ -507,7 +506,7 @@
WebAppResourceEnvRef=/struts_pro/WebAppResourceEnvRef.html
WebAppResourceEnvRef_Properties=/struts_pro/WebAppResourceEnvRef.html
-WebAppResourceEnvRef_Properties.WindowTitle=Edit Properties
+WebAppResourceEnvRef_Properties.WindowTitle=Properties
WebAppResourceEnvRef_Properties.Title=Web Resource Env Ref
##### web run-as element #####
@@ -515,7 +514,7 @@
WebAppRunAs=/struts_pro/WebAppRunAs.html
WebAppRunAs_Properties=/struts_pro/WebAppRunAs.html
-WebAppRunAs_Properties.WindowTitle=Edit Properties
+WebAppRunAs_Properties.WindowTitle=Properties
WebAppRunAs_Properties.Title=Run As
##### web security-constraint element #####
@@ -523,7 +522,7 @@
WebAppSecurityConstraint=/struts_pro/WebAppSecurityConstraint.html
WebAppSecurityConstraint_Properties=/struts_pro/WebAppSecurityConstraint_Properties.html
-WebAppSecurityConstraint_Properties.WindowTitle=Edit Properties
+WebAppSecurityConstraint_Properties.WindowTitle=Properties
WebAppSecurityConstraint_Properties.Title=Web Security Constraint
WebAppSecurityConstraint_CreateResourceCollection=/struts_pro/WebAppSecurityConstraint_CreateResourceCollection.html
@@ -543,7 +542,7 @@
WebAppSecurityRole=/struts_pro/WebAppSecurityRole.html
WebAppSecurityRole_Properties=/struts_pro/WebAppSecurityRole.html
-WebAppSecurityRole_Properties.WindowTitle=Edit Properties
+WebAppSecurityRole_Properties.WindowTitle=Properties
WebAppSecurityRole_Properties.Title=Web Security Role
##### web security-role-ref element #####
@@ -551,7 +550,7 @@
WebAppSecurityRoleRef=/struts_pro/WebAppSecurityRoleRef.html
WebAppSecurityRoleRef_Properties=/struts_pro/WebAppSecurityRoleRef.html
-WebAppSecurityRoleRef_Properties.WindowTitle=Edit Properties
+WebAppSecurityRoleRef_Properties.WindowTitle=Properties
WebAppSecurityRoleRef_Properties.Title=Web Security Role Ref
##### web servlet element #####
@@ -559,7 +558,7 @@
WebAppServlet=/struts_pro/WebAppServlet.html
WebAppServlet_Properties=/struts_pro/WebAppServlet.html
-WebAppServlet_Properties.WindowTitle=Edit Properties
+WebAppServlet_Properties.WindowTitle=Properties
WebAppServlet_Properties.Title=Web Servlet
WebAppServlet_CreateInitParam.WindowTitle=Add Init Param
@@ -576,7 +575,7 @@
WebAppServletMapping=/struts_pro/WebAppServletMapping.html
WebAppServletMapping_Properties=/struts_pro/WebAppServletMapping.html
-WebAppServletMapping_Properties.WindowTitle=Edit Properties
+WebAppServletMapping_Properties.WindowTitle=Properties
WebAppServletMapping_Properties.Title=Web Servlet Mapping
##### web session-config element #####
@@ -584,7 +583,7 @@
WebAppSessionConfig=/struts_pro/WebAppSessionConfig.html
WebAppSessionConfig_Properties=/struts_pro/WebAppSessionConfig.html
-WebAppSessionConfig_Properties.WindowTitle=Edit Properties
+WebAppSessionConfig_Properties.WindowTitle=Properties
WebAppSessionConfig_Properties.Title=Web Session Config
##### web taglib element #####
@@ -592,7 +591,7 @@
WebAppTaglib=/struts_pro/WebAppTaglib.html
WebAppTaglib_Properties=/struts_pro/WebAppTaglib.html
-WebAppTaglib_Properties.WindowTitle=Edit Properties
+WebAppTaglib_Properties.WindowTitle=Properties
WebAppTaglib_Properties.Title=Web taglib
##### web user-constraint element #####
@@ -600,7 +599,7 @@
WebAppUserConstraint=/struts_pro/WebAppUserConstraint.html
WebAppUserConstraint_Properties=/struts_pro/WebAppUserConstraint.html
-WebAppUserConstraint_Properties.WindowTitle=Edit Properties
+WebAppUserConstraint_Properties.WindowTitle=Properties
WebAppUserConstraint_Properties.Title=Web User Constraint
##### web welcome-file element #####
@@ -608,7 +607,7 @@
WebAppWelcomFile=/struts_pro/WebAppWelcomFile.html
WebAppWelcomFile_Properties=/struts_pro/WebAppWelcomFile.html
-WebAppWelcomFile_Properties.WindowTitle=Edit Properties
+WebAppWelcomFile_Properties.WindowTitle=Properties
WebAppWelcomFile_Properties.Title=Web Welcome File
##### web welcome-file-list element #####
@@ -616,7 +615,7 @@
WebAppWelcomFileList=/struts_pro/WebAppWelcomFileList.html
WebAppWelcomFileList_Properties=/model/noHelpYet.html
-WebAppWelcomFileList_Properties.WindowTitle=Edit Properties
+WebAppWelcomFileList_Properties.WindowTitle=Properties
WebAppWelcomFileList_Properties.Title=Web Welcom File List
WebAppWelcomFileList_CreateWelcomFile=/struts_pro/WebAppWelcomFileList_CreateWelcomFile.html
@@ -628,7 +627,7 @@
WebAppRoleName=/struts_pro/WebAppRoleName.html
WebAppRoleName_Properties=/struts_pro/WebAppRoleName.html
-WebAppRoleName_Properties.WindowTitle=Edit Properties
+WebAppRoleName_Properties.WindowTitle=Properties
WebAppRoleName_Properties.Title=Web Role
##### Create File web.xml #####
Modified: trunk/jst/plugins/org.jboss.tools.jst.web/resources/meta/tld20.meta
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web/resources/meta/tld20.meta 2008-03-21 10:11:38 UTC (rev 7059)
+++ trunk/jst/plugins/org.jboss.tools.jst.web/resources/meta/tld20.meta 2008-03-21 15:03:44 UTC (rev 7060)
@@ -934,7 +934,7 @@
<XActionItem HandlerClassName="%Create%" ICON="action.empty"
PROPERTIES="validator.add=true" WizardClassName="%Default%"
displayName="Add Attribute..." kind="action" name="CreateAttribute">
- <EntityData EntityName="TLDAttribute12">
+ <EntityData EntityName="TLDAttribute21">
<AttributeData AttributeName="name"/>
<AttributeData AttributeName="required" Mandatory="no"/>
<AttributeData AttributeName="rtexprvalue" Mandatory="no"/>
18 years
JBoss Tools SVN: r7059 - trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/action.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2008-03-21 06:11:38 -0400 (Fri, 21 Mar 2008)
New Revision: 7059
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/action/AddJSFNatureActionDelegate.java
Log:
JBIDE-1931
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/action/AddJSFNatureActionDelegate.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/action/AddJSFNatureActionDelegate.java 2008-03-21 10:11:30 UTC (rev 7058)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/action/AddJSFNatureActionDelegate.java 2008-03-21 10:11:38 UTC (rev 7059)
@@ -11,6 +11,7 @@
package org.jboss.tools.jsf.ui.action;
import org.eclipse.core.resources.IProject;
+import org.jboss.tools.common.meta.key.WizardKeys;
import org.jboss.tools.common.model.ui.util.ExtensionPointUtils;
import org.eclipse.jface.wizard.IWizard;
import org.jboss.tools.common.model.ui.ModelUIPlugin;
@@ -30,6 +31,7 @@
wizard.setInitialName(project.getName());
wizard.setInitialLocation(findWebXML(project.getLocation().toString()));
wizard.init(ModelUIPlugin.getDefault().getWorkbench(), null);
+ wizard.setWindowTitle(WizardKeys.getString("ADD_JSF_NATURE"));
return wizard;
}
18 years