JBoss Tools SVN: r12690 - branches/jbosstools-3.0.0.CR1/seam/plugins/org.jboss.tools.seam.text.ext/src/org/jboss/tools/seam/text/ext/hyperlink.
by jbosstools-commits@lists.jboss.org
Author: vrubezhny
Date: 2008-12-18 11:37:50 -0500 (Thu, 18 Dec 2008)
New Revision: 12690
Modified:
branches/jbosstools-3.0.0.CR1/seam/plugins/org.jboss.tools.seam.text.ext/src/org/jboss/tools/seam/text/ext/hyperlink/SeamELInJavaStringHyperlinkDetector.java
Log:
JBIDE-1975 OpenOn for #{messages.***} in Seam EL.
Issue is fixed
Modified: branches/jbosstools-3.0.0.CR1/seam/plugins/org.jboss.tools.seam.text.ext/src/org/jboss/tools/seam/text/ext/hyperlink/SeamELInJavaStringHyperlinkDetector.java
===================================================================
--- branches/jbosstools-3.0.0.CR1/seam/plugins/org.jboss.tools.seam.text.ext/src/org/jboss/tools/seam/text/ext/hyperlink/SeamELInJavaStringHyperlinkDetector.java 2008-12-18 16:37:37 UTC (rev 12689)
+++ branches/jbosstools-3.0.0.CR1/seam/plugins/org.jboss.tools.seam.text.ext/src/org/jboss/tools/seam/text/ext/hyperlink/SeamELInJavaStringHyperlinkDetector.java 2008-12-18 16:37:50 UTC (rev 12690)
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2007 Red Hat, Inc.
+ * Copyright (c) 2008 Red Hat, Inc.
* Distributed under license by Red Hat, Inc. All rights reserved.
* This program is made available under the terms of the
* Eclipse Public License v1.0 which accompanies this distribution,
@@ -39,14 +39,11 @@
import org.jboss.tools.common.el.core.model.ELPropertyInvocation;
import org.jboss.tools.common.text.ext.util.Utils;
import org.jboss.tools.seam.core.ISeamContextVariable;
-import org.jboss.tools.seam.core.ISeamElement;
+import org.jboss.tools.seam.core.ISeamMessages;
import org.jboss.tools.seam.core.ISeamProject;
-import org.jboss.tools.seam.core.ISeamXmlFactory;
import org.jboss.tools.seam.core.ScopeType;
import org.jboss.tools.seam.core.SeamCorePlugin;
-import org.jboss.tools.seam.internal.core.SeamMessagesComponent;
import org.jboss.tools.seam.internal.core.el.SeamELCompletionEngine;
-import org.jboss.tools.seam.internal.core.el.SeamExpressionResolver;
import org.jboss.tools.seam.text.ext.SeamExtPlugin;
public class SeamELInJavaStringHyperlinkDetector extends
@@ -100,7 +97,7 @@
if(range == null) range = new int[]{0, document.getLength()};
- Map<String, SeamMessagesComponent> messages = findMessagesComponents(document, file, wordRegion, range[0], range[1]);
+ Map<String, ISeamMessages> messages = findMessagesComponents(document, file, wordRegion, range[0], range[1]);
if (messages != null && messages.size() > 0)
return new IHyperlink[] {new SeamELInJavaStringHyperlink(wordRegion, messages)};
@@ -138,7 +135,7 @@
return javaElements == null ? new IJavaElement[0] : javaElements.toArray(new IJavaElement[0]);
}
- public static Map<String, SeamMessagesComponent> findMessagesComponents(IDocument document, IFile file, IRegion region, int start, int end) {
+ public static Map<String, ISeamMessages> findMessagesComponents(IDocument document, IFile file, IRegion region, int start, int end) {
IProject project = (file == null ? null : file.getProject());
ISeamProject seamProject = SeamCorePlugin.getSeamProject(project, true);
@@ -199,39 +196,15 @@
// And now we need to extract SeamXmlFactory vars to the real ones
// and filter out all non-SeamMessagesComponent vars
// Next we need to map the SeamMessagesComponent vars to properties
- Map<String, SeamMessagesComponent> messages = new HashMap<String, SeamMessagesComponent>();
+ Map<String, ISeamMessages> messages = new HashMap<String, ISeamMessages>();
if (map != null && !map.isEmpty()) {
for (ELInvocationExpression l : map.keySet()) {
List<ISeamContextVariable> variables = map.get(l);
for (ISeamContextVariable variable : variables) {
- if (variable instanceof SeamMessagesComponent) {
- messages.put(propertyName, (SeamMessagesComponent)variable);
- } else if (variable instanceof ISeamXmlFactory) {
- ISeamXmlFactory factory = (ISeamXmlFactory)variable;
- String value = factory.getValue();
- if (value != null && value.length() > 0) {
- if (value.startsWith("#{") || value.startsWith("${")) //$NON-NLS-1$ //$NON-NLS-2$
- value = value.substring(2);
- if (value.endsWith("}")) //$NON-NLS-1$
- value = value.substring(0, value.length() - 1);
- }
- if (value != null && value.length() > 0) {
- // TODO: Need to make sure that it's correct way to get the project and
- // the scope from the factory
- ISeamProject p = ((ISeamElement)factory).getSeamProject();
- if (p != null) {
- List<ISeamContextVariable> resolvedValues = SeamExpressionResolver.resolveVariables(p, null, value, true);
- for (ISeamContextVariable var : resolvedValues) {
- if (var.getName().equals(value)) {
- if (var instanceof SeamMessagesComponent) {
- messages.put(propertyName,(SeamMessagesComponent)var);
- }
- }
- }
- }
- }
+ ISeamMessages messagesVariable = SeamELCompletionEngine.getSeamMessagesComponentVariable(variable);
+ if (messagesVariable != null) {
+ messages.put(propertyName, messagesVariable);
}
-
}
}
}
17 years
JBoss Tools SVN: r12689 - trunk/esb/docs/esb_ref_guide/en/modules.
by jbosstools-commits@lists.jboss.org
Author: abogachuk
Date: 2008-12-18 11:37:37 -0500 (Thu, 18 Dec 2008)
New Revision: 12689
Modified:
trunk/esb/docs/esb_ref_guide/en/modules/esb_support.xml
Log:
https://jira.jboss.org/jira/browse/JBDS-452
Modified: trunk/esb/docs/esb_ref_guide/en/modules/esb_support.xml
===================================================================
--- trunk/esb/docs/esb_ref_guide/en/modules/esb_support.xml 2008-12-18 16:36:10 UTC (rev 12688)
+++ trunk/esb/docs/esb_ref_guide/en/modules/esb_support.xml 2008-12-18 16:37:37 UTC (rev 12689)
@@ -287,6 +287,11 @@
<para>In this chapter you will know what is JBoss Enterprise SOA Platform and how you can configure it to use for your ESB projects. </para>
<literallayout> </literallayout>
<para>JBoss Enterprise SOA Platform delivers a flexible, standards-based platform to integrate applications, SOA services, business events and automate business processes. The SOA Platform integrates specific versions of JBoss ESB, jBPM, Drools and the JBoss Enterprise Application Platform that are certified to work together in a single supported enterprise distribution.</para>
+ <para>Having configured JBoss Enterprise SOA Platform for your ESB project you don't need to install and configure ESB server and runtime as they are already included.</para>
+
+ <para>Check here to find more details on the platform: <ulink url="http://www.jboss.com/products/platforms/soa">JBoss Enterprise SOA Platform</ulink> <ulink url="http://www.jboss.com/products/platforms/soa/components">JBoss Enterprise SOA Platform Component Details</ulink> JBoss Enterprise SOA Platform Component Details and here to view Answers to Frequently Asked Questions</para>
+ <para>You can know what is SOA here: <ulink url="http://www.jboss.org/jbossesb/resources/SOABasics.html">Basics of SOA</ulink> and <ulink url="http://www.jboss.org/jbossesb/resources/SOAEOA.html">SOA and EOA</ulink>.</para>
+
17 years
JBoss Tools SVN: r12688 - trunk/seam/plugins/org.jboss.tools.seam.text.ext/src/org/jboss/tools/seam/text/ext/hyperlink.
by jbosstools-commits@lists.jboss.org
Author: vrubezhny
Date: 2008-12-18 11:36:10 -0500 (Thu, 18 Dec 2008)
New Revision: 12688
Modified:
trunk/seam/plugins/org.jboss.tools.seam.text.ext/src/org/jboss/tools/seam/text/ext/hyperlink/SeamELInJavaStringHyperlinkDetector.java
Log:
JBIDE-1975 OpenOn for #{messages.***} in Seam EL.
Issue is fixed
Modified: trunk/seam/plugins/org.jboss.tools.seam.text.ext/src/org/jboss/tools/seam/text/ext/hyperlink/SeamELInJavaStringHyperlinkDetector.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.text.ext/src/org/jboss/tools/seam/text/ext/hyperlink/SeamELInJavaStringHyperlinkDetector.java 2008-12-18 16:34:47 UTC (rev 12687)
+++ trunk/seam/plugins/org.jboss.tools.seam.text.ext/src/org/jboss/tools/seam/text/ext/hyperlink/SeamELInJavaStringHyperlinkDetector.java 2008-12-18 16:36:10 UTC (rev 12688)
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2007 Red Hat, Inc.
+ * Copyright (c) 2008 Red Hat, Inc.
* Distributed under license by Red Hat, Inc. All rights reserved.
* This program is made available under the terms of the
* Eclipse Public License v1.0 which accompanies this distribution,
@@ -39,14 +39,11 @@
import org.jboss.tools.common.el.core.model.ELPropertyInvocation;
import org.jboss.tools.common.text.ext.util.Utils;
import org.jboss.tools.seam.core.ISeamContextVariable;
-import org.jboss.tools.seam.core.ISeamElement;
+import org.jboss.tools.seam.core.ISeamMessages;
import org.jboss.tools.seam.core.ISeamProject;
-import org.jboss.tools.seam.core.ISeamXmlFactory;
import org.jboss.tools.seam.core.ScopeType;
import org.jboss.tools.seam.core.SeamCorePlugin;
-import org.jboss.tools.seam.internal.core.SeamMessagesComponent;
import org.jboss.tools.seam.internal.core.el.SeamELCompletionEngine;
-import org.jboss.tools.seam.internal.core.el.SeamExpressionResolver;
import org.jboss.tools.seam.text.ext.SeamExtPlugin;
public class SeamELInJavaStringHyperlinkDetector extends
@@ -100,7 +97,7 @@
if(range == null) range = new int[]{0, document.getLength()};
- Map<String, SeamMessagesComponent> messages = findMessagesComponents(document, file, wordRegion, range[0], range[1]);
+ Map<String, ISeamMessages> messages = findMessagesComponents(document, file, wordRegion, range[0], range[1]);
if (messages != null && messages.size() > 0)
return new IHyperlink[] {new SeamELInJavaStringHyperlink(wordRegion, messages)};
@@ -138,7 +135,7 @@
return javaElements == null ? new IJavaElement[0] : javaElements.toArray(new IJavaElement[0]);
}
- public static Map<String, SeamMessagesComponent> findMessagesComponents(IDocument document, IFile file, IRegion region, int start, int end) {
+ public static Map<String, ISeamMessages> findMessagesComponents(IDocument document, IFile file, IRegion region, int start, int end) {
IProject project = (file == null ? null : file.getProject());
ISeamProject seamProject = SeamCorePlugin.getSeamProject(project, true);
@@ -199,39 +196,15 @@
// And now we need to extract SeamXmlFactory vars to the real ones
// and filter out all non-SeamMessagesComponent vars
// Next we need to map the SeamMessagesComponent vars to properties
- Map<String, SeamMessagesComponent> messages = new HashMap<String, SeamMessagesComponent>();
+ Map<String, ISeamMessages> messages = new HashMap<String, ISeamMessages>();
if (map != null && !map.isEmpty()) {
for (ELInvocationExpression l : map.keySet()) {
List<ISeamContextVariable> variables = map.get(l);
for (ISeamContextVariable variable : variables) {
- if (variable instanceof SeamMessagesComponent) {
- messages.put(propertyName, (SeamMessagesComponent)variable);
- } else if (variable instanceof ISeamXmlFactory) {
- ISeamXmlFactory factory = (ISeamXmlFactory)variable;
- String value = factory.getValue();
- if (value != null && value.length() > 0) {
- if (value.startsWith("#{") || value.startsWith("${")) //$NON-NLS-1$ //$NON-NLS-2$
- value = value.substring(2);
- if (value.endsWith("}")) //$NON-NLS-1$
- value = value.substring(0, value.length() - 1);
- }
- if (value != null && value.length() > 0) {
- // TODO: Need to make sure that it's correct way to get the project and
- // the scope from the factory
- ISeamProject p = ((ISeamElement)factory).getSeamProject();
- if (p != null) {
- List<ISeamContextVariable> resolvedValues = SeamExpressionResolver.resolveVariables(p, null, value, true);
- for (ISeamContextVariable var : resolvedValues) {
- if (var.getName().equals(value)) {
- if (var instanceof SeamMessagesComponent) {
- messages.put(propertyName,(SeamMessagesComponent)var);
- }
- }
- }
- }
- }
+ ISeamMessages messagesVariable = SeamELCompletionEngine.getSeamMessagesComponentVariable(variable);
+ if (messagesVariable != null) {
+ messages.put(propertyName, messagesVariable);
}
-
}
}
}
17 years
JBoss Tools SVN: r12687 - trunk/seam/plugins/org.jboss.tools.seam.text.ext/src/org/jboss/tools/seam/text/ext/hyperlink.
by jbosstools-commits@lists.jboss.org
Author: vrubezhny
Date: 2008-12-18 11:34:47 -0500 (Thu, 18 Dec 2008)
New Revision: 12687
Modified:
trunk/seam/plugins/org.jboss.tools.seam.text.ext/src/org/jboss/tools/seam/text/ext/hyperlink/SeamELInJavaStringHyperlink.java
Log:
JBIDE-1975 OpenOn for #{messages.***} in Seam EL.
Issue is fixed
Modified: trunk/seam/plugins/org.jboss.tools.seam.text.ext/src/org/jboss/tools/seam/text/ext/hyperlink/SeamELInJavaStringHyperlink.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.text.ext/src/org/jboss/tools/seam/text/ext/hyperlink/SeamELInJavaStringHyperlink.java 2008-12-18 16:34:42 UTC (rev 12686)
+++ trunk/seam/plugins/org.jboss.tools.seam.text.ext/src/org/jboss/tools/seam/text/ext/hyperlink/SeamELInJavaStringHyperlink.java 2008-12-18 16:34:47 UTC (rev 12687)
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2007 Red Hat, Inc.
+ * Copyright (c) 2008 Red Hat, Inc.
* Distributed under license by Red Hat, Inc. All rights reserved.
* This program is made available under the terms of the
* Eclipse Public License v1.0 which accompanies this distribution,
17 years
JBoss Tools SVN: r12686 - in trunk: jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: dmaliarevich
Date: 2008-12-18 11:34:42 -0500 (Thu, 18 Dec 2008)
New Revision: 12686
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/ComponentUtil.java
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesSimpleTogglePanelTemplate.java
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesTabPanelTemplate.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/Constants.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-883, code adjustment for rich:simpleTogglePanel and rich:tabPanel.
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/ComponentUtil.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/ComponentUtil.java 2008-12-18 16:33:32 UTC (rev 12685)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/ComponentUtil.java 2008-12-18 16:34:42 UTC (rev 12686)
@@ -308,8 +308,59 @@
img.setAttribute(HTML.ATTR_SRC, "file://" //$NON-NLS-1$
+ getAbsoluteResourcePath(fileImageName).replace('\\', '/'));
}
+
+ /**
+ * Sets the attribute to element children
+ *
+ * @param attrName
+ * attribute name
+ * @param attrValue
+ * attribute value
+ * @param children
+ * children
+ */
+ public static 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,
+ getElementChildren(child));
+ }
+ }
/**
+ * Gets element's children of type nsIDOMElement. No text nodes will be
+ * returned.
+ *
+ * @param element
+ * the element
+ * @return children the list of the elements
+ */
+ public static List<nsIDOMElement> getElementChildren(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;
+ }
+
+ /**
* Returns all child source elements of component but facets.
*
* @param returnTextNodes return child text nodes and elements or elements only;
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesSimpleTogglePanelTemplate.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesSimpleTogglePanelTemplate.java 2008-12-18 16:33:32 UTC (rev 12685)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesSimpleTogglePanelTemplate.java 2008-12-18 16:34:42 UTC (rev 12686)
@@ -7,214 +7,221 @@
*
* Contributors:
* Exadel, Inc. and Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
+ ******************************************************************************/
package org.jboss.tools.jsf.vpe.richfaces.template;
-import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.jboss.tools.jsf.vpe.richfaces.ComponentUtil;
-import org.jboss.tools.jsf.vpe.richfaces.HtmlComponentUtil;
+import org.jboss.tools.jsf.vpe.richfaces.template.util.RichFaces;
import org.jboss.tools.vpe.editor.VpeVisualDomBuilder;
import org.jboss.tools.vpe.editor.context.VpePageContext;
import org.jboss.tools.vpe.editor.template.VpeAbstractTemplate;
import org.jboss.tools.vpe.editor.template.VpeChildrenInfo;
import org.jboss.tools.vpe.editor.template.VpeCreationData;
import org.jboss.tools.vpe.editor.template.VpeToggableTemplate;
+import org.jboss.tools.vpe.editor.util.Constants;
+import org.jboss.tools.vpe.editor.util.HTML;
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;
-public class RichFacesSimpleTogglePanelTemplate extends VpeAbstractTemplate implements VpeToggableTemplate {
+public class RichFacesSimpleTogglePanelTemplate extends VpeAbstractTemplate
+ implements VpeToggableTemplate {
- private static Map toggleMap = new HashMap();
- private nsIDOMElement storedHeaderDiv = null;
-
- private static final String COLLAPSED_STYLE ="; display: none;";
- private static final String HEADER_NAME_FACET = "header";
-
+ private static final String CSS_STYLE_PATH = "simpleTogglePanel/simpleTogglePanel.css"; //$NON-NLS-1$
+ private static final String COMPONENT_NAME = "richFacesSimpleTogglePanel"; //$NON-NLS-1$
+ private static final String ATTR_LABEL = "label"; //$NON-NLS-1$
+ private static final String ATTR_BODY_CLASS = "bodyClass"; //$NON-NLS-1$
+ private static final String ATTR_OPENED = "opened"; //$NON-NLS-1$
+ private static final String OPEN_MARKER_FACET_NAME = "openMarker"; //$NON-NLS-1$
+ private static final String CLOSE_MARKER_FACET_NAME = "closeMarker"; //$NON-NLS-1$
+ private static final String CSS_DR_STGLPANEL = "dr-stglpnl"; //$NON-NLS-1$
+ private static final String CSS_DR_STGLPANEL_HEADER = "dr-stglpnl-h"; //$NON-NLS-1$
+ private static final String CSS_DR_STGLPANEL_BODY = "dr-stglpnl-b"; //$NON-NLS-1$
+ private static final String CSS_RICH_STGLPANEL = "rich-stglpanel"; //$NON-NLS-1$
+ private static final String CSS_RICH_STGLPANEL_HEADER = "rich-stglpanel-header"; //$NON-NLS-1$
+ private static final String CSS_RICH_STGLPNL_MARKER = "rich-stglpnl-marker"; //$NON-NLS-1$
+ private static final String CSS_RICH_STGLPANEL_BODY = "rich-stglpanel-body"; //$NON-NLS-1$
+ private static final String COLLAPSED_STYLE = "; display: none;"; //$NON-NLS-1$
+ private static final String SWITCH_DIV_STYLE = "position : absolute; top: 0px; right: 5px;"; //$NON-NLS-1$
- public VpeCreationData create(VpePageContext pageContext, Node sourceNode, nsIDOMDocument visualDocument) {
+ private static Map toggleMap = new HashMap();
+ private nsIDOMElement storedHeaderDiv = null;
- Element sourceElement = (Element)sourceNode;
- nsIDOMElement div = visualDocument.createElement("div");
+ public VpeCreationData create(VpePageContext pageContext, Node sourceNode,
+ nsIDOMDocument visualDocument) {
- VpeCreationData creationData = new VpeCreationData(div);
+ Element sourceElement = (Element) sourceNode;
- ComponentUtil.setCSSLink(pageContext, "simpleTogglePanel/simpleTogglePanel.css", "richFacesSimpleTogglePanel");
- div.setAttribute("class", "dr-stglpnl rich-stglpanel " + ComponentUtil.getAttribute(sourceElement, "styleClass"));
- div.setAttribute("style", "width: " + ComponentUtil.getAttribute(sourceElement, "width") + ";" + ComponentUtil.getAttribute(sourceElement, "style"));
+ nsIDOMElement div = visualDocument.createElement(HTML.TAG_DIV);
- // Encode Header
- nsIDOMElement headerDiv = visualDocument.createElement("div");
- div.appendChild(headerDiv);
- headerDiv.setAttribute("class", "dr-stglpnl-h rich-stglpanel-header " + ComponentUtil.getAttribute(sourceElement, "headerClass"));
- headerDiv.setAttribute("style", "position : relative; " + ComponentUtil.getHeaderBackgoundImgStyle());
+ VpeCreationData creationData = new VpeCreationData(div);
- //http://jira.jboss.com/jira/browse/JBIDE-791
- Element firstElementOfHeaderFacet = ComponentUtil.getFacet(sourceElement, HEADER_NAME_FACET);
- if(firstElementOfHeaderFacet != null) {
- VpeChildrenInfo headerInfo = new VpeChildrenInfo(headerDiv);
- headerInfo.addSourceChild(firstElementOfHeaderFacet);
- creationData.addChildrenInfo(headerInfo);
- } else {
- String label = ComponentUtil.getAttribute(sourceElement, "label");
- headerDiv.appendChild(visualDocument.createTextNode(label));
- }
- /////
+ ComponentUtil.setCSSLink(pageContext, CSS_STYLE_PATH, COMPONENT_NAME);
+ div.setAttribute(HTML.ATTR_CLASS, CSS_DR_STGLPANEL
+ + Constants.WHITE_SPACE
+ + CSS_RICH_STGLPANEL
+ + Constants.WHITE_SPACE
+ + ComponentUtil.getAttribute(sourceElement,
+ RichFaces.ATTR_STYLE_CLASS));
+ div.setAttribute(HTML.ATTR_STYLE, "width: " //$NON-NLS-1$
+ + ComponentUtil.getAttribute(sourceElement, HTML.ATTR_WIDTH)
+ + Constants.SEMICOLON
+ + ComponentUtil.getAttribute(sourceElement, HTML.ATTR_STYLE));
- nsIDOMElement switchDiv = visualDocument.createElement("div");
- headerDiv.appendChild(switchDiv);
- switchDiv.setAttribute("style", "position : absolute; top: 0px; right: 5px;");
+ // Encode Header
+ nsIDOMElement headerDiv = visualDocument.createElement(HTML.TAG_DIV);
+ div.appendChild(headerDiv);
- String markerName = "openMarker";
- char defaultMarkerCode = 187;
- boolean opened = getActiveState(sourceElement);
-
- headerDiv.setAttribute(VpeVisualDomBuilder.VPE_USER_TOGGLE_ID, (opened ? "false" : "true"));
- storedHeaderDiv = headerDiv;
-
- if(opened) {
- markerName = "closeMarker";
- defaultMarkerCode = 171;
- }
- Element markerFacet = ComponentUtil.getFacet(sourceElement, markerName);
- if(markerFacet==null) {
- switchDiv.appendChild(visualDocument.createTextNode("" + defaultMarkerCode));
- } else {
- VpeChildrenInfo switchInfo = new VpeChildrenInfo(switchDiv);
- switchInfo.addSourceChild(markerFacet);
- creationData.addChildrenInfo(switchInfo);
- }
+ headerDiv.setAttribute(HTML.ATTR_CLASS, CSS_DR_STGLPANEL_HEADER
+ + Constants.WHITE_SPACE
+ + CSS_RICH_STGLPANEL_HEADER
+ + Constants.WHITE_SPACE
+ + ComponentUtil.getAttribute(sourceElement,
+ RichFaces.ATTR_HEADER_CLASS));
+ headerDiv.setAttribute(HTML.ATTR_STYLE, "position : relative; " //$NON-NLS-1$
+ + ComponentUtil.getHeaderBackgoundImgStyle());
- // Encode Body
- //if(opened) {
- nsIDOMElement bodyDiv = visualDocument.createElement("div");
- div.appendChild(bodyDiv);
- bodyDiv.setAttribute("style", "overflow: hidden; height: " + ComponentUtil.getAttribute(sourceElement, "height") + "; width: 100%;");
+ // http://jira.jboss.com/jira/browse/JBIDE-791
+ Element firstElementOfHeaderFacet = ComponentUtil.getFacet(
+ sourceElement, RichFaces.NAME_FACET_HEADER);
+ if (firstElementOfHeaderFacet != null) {
+ VpeChildrenInfo headerInfo = new VpeChildrenInfo(headerDiv);
+ headerInfo.addSourceChild(firstElementOfHeaderFacet);
+ creationData.addChildrenInfo(headerInfo);
+ } else {
+ String label = ComponentUtil
+ .getAttribute(sourceElement, ATTR_LABEL);
+ headerDiv.appendChild(visualDocument.createTextNode(label));
+ }
+ // ///
- nsIDOMElement table = visualDocument.createElement("table");
- bodyDiv.appendChild(table);
- table.setAttribute("cellpadding", "0");
- table.setAttribute("style", "width: 100%");
- nsIDOMElement tr = visualDocument.createElement("tr");
- table.appendChild(tr);
- nsIDOMElement td = visualDocument.createElement("td");
- tr.appendChild(td);
- td.setAttribute("class", "dr-stglpnl-b rich-stglpanel-body " + ComponentUtil.getAttribute(sourceElement, "bodyClass"));
+ nsIDOMElement switchDiv = visualDocument.createElement(HTML.TAG_DIV);
+ headerDiv.appendChild(switchDiv);
+ switchDiv.setAttribute(HTML.ATTR_STYLE, SWITCH_DIV_STYLE);
- List<Node> children = ComponentUtil.getChildren(sourceElement, true);
- VpeChildrenInfo bodyInfo = new VpeChildrenInfo(td);
- for (Node child : children) {
- bodyInfo.addSourceChild(child);
- }
- creationData.addChildrenInfo(bodyInfo);
-
- //http://jira.jboss.com/jira/browse/JBIDE-791
- if(!opened) {
- String newStyle = bodyDiv.getAttribute(HtmlComponentUtil.HTML_STYLE_ATTR);
- newStyle += COLLAPSED_STYLE;
- bodyDiv.setAttribute(HtmlComponentUtil.HTML_STYLE_ATTR, newStyle);
- }
- //-------------------------
- //}
- return creationData;
- }
+ String markerName = OPEN_MARKER_FACET_NAME;
+ char defaultMarkerCode = 187;
+ boolean opened = getActiveState(sourceElement);
- /**
- * 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 (storedHeaderDiv == null) return;
- String value = storedHeaderDiv.getAttribute(VpeVisualDomBuilder.VPE_USER_TOGGLE_ID);
- if ("true".equals(value) || "false".equals(value)) {
- applyAttributeValueOnChildren(VpeVisualDomBuilder.VPE_USER_TOGGLE_ID, value, getChildren(storedHeaderDiv));
- applyAttributeValueOnChildren(VpeVisualDomBuilder.VPE_USER_TOGGLE_LOOKUP_PARENT, "true", getChildren(storedHeaderDiv));
- }
- }
+ headerDiv.setAttribute(VpeVisualDomBuilder.VPE_USER_TOGGLE_ID,
+ (opened ? Constants.FALSE : Constants.TRUE));
+ storedHeaderDiv = headerDiv;
- /**
- * 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));
- }
+ if (opened) {
+ markerName = CLOSE_MARKER_FACET_NAME;
+ defaultMarkerCode = 171;
}
-
- /**
- * 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;
+ Element markerFacet = ComponentUtil.getFacet(sourceElement, markerName);
+ if (markerFacet == null) {
+ switchDiv.appendChild(visualDocument.createTextNode(Constants.EMPTY
+ + defaultMarkerCode));
+ } else {
+ VpeChildrenInfo switchInfo = new VpeChildrenInfo(switchDiv);
+ switchInfo.addSourceChild(markerFacet);
+ creationData.addChildrenInfo(switchInfo);
}
-
- private boolean getActiveState(Element sourceElement) {
- String opennedStr;
- opennedStr = (String)toggleMap.get(sourceElement);
+ // Encode Body
+ // if(opened) {
+ nsIDOMElement bodyDiv = visualDocument.createElement(HTML.TAG_DIV);
+ div.appendChild(bodyDiv);
+ bodyDiv.setAttribute(HTML.ATTR_STYLE, "overflow: hidden; height: " //$NON-NLS-1$
+ + ComponentUtil.getAttribute(sourceElement, HTML.ATTR_HEIGHT)
+ + "; width: 100%;"); //$NON-NLS-1$
- if (opennedStr == null) {
- opennedStr = ComponentUtil.getAttribute(sourceElement, "opened");
- }
-
- if (opennedStr == null || "".equals(opennedStr)) {
- opennedStr = "true";
- }
+ nsIDOMElement table = visualDocument.createElement(HTML.TAG_TABLE);
+ bodyDiv.appendChild(table);
+ table.setAttribute(HTML.ATTR_CELLPADDING, Constants.ZERO_STRING);
+ table.setAttribute(HTML.ATTR_STYLE, "width: 100%"); //$NON-NLS-1$
+ nsIDOMElement tr = visualDocument.createElement(HTML.TAG_TR);
+ table.appendChild(tr);
+ nsIDOMElement td = visualDocument.createElement(HTML.TAG_TD);
+ tr.appendChild(td);
+ td.setAttribute(HTML.ATTR_CLASS, CSS_DR_STGLPANEL_BODY
+ + Constants.WHITE_SPACE + CSS_RICH_STGLPANEL_BODY
+ + Constants.WHITE_SPACE
+ + ComponentUtil.getAttribute(sourceElement, ATTR_BODY_CLASS));
- return (!"false".equals(opennedStr));
+ List<Node> children = ComponentUtil.getChildren(sourceElement, true);
+ VpeChildrenInfo bodyInfo = new VpeChildrenInfo(td);
+ for (Node child : children) {
+ bodyInfo.addSourceChild(child);
}
+ creationData.addChildrenInfo(bodyInfo);
- public void toggle(VpeVisualDomBuilder builder, Node sourceNode, String toggleId) {
- toggleMap.put(sourceNode, toggleId);
+ // http://jira.jboss.com/jira/browse/JBIDE-791
+ if (!opened) {
+ String newStyle = bodyDiv.getAttribute(HTML.ATTR_STYLE);
+ newStyle += COLLAPSED_STYLE;
+ bodyDiv.setAttribute(HTML.ATTR_STYLE, newStyle);
}
+ // -------------------------
+ // }
+ return creationData;
+ }
- public void stopToggling(Node sourceNode) {
- toggleMap.remove(sourceNode);
+ /**
+ * 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 (storedHeaderDiv == null)
+ return;
+ String value = storedHeaderDiv
+ .getAttribute(VpeVisualDomBuilder.VPE_USER_TOGGLE_ID);
+ if (Constants.TRUE.equals(value) || Constants.FALSE.equals(value)) {
+ ComponentUtil.applyAttributeValueOnChildren(
+ VpeVisualDomBuilder.VPE_USER_TOGGLE_ID, value,
+ ComponentUtil.getElementChildren(storedHeaderDiv));
+ ComponentUtil.applyAttributeValueOnChildren(
+ VpeVisualDomBuilder.VPE_USER_TOGGLE_LOOKUP_PARENT,
+ Constants.TRUE, ComponentUtil
+ .getElementChildren(storedHeaderDiv));
}
-
+ }
- public boolean isRecreateAtAttrChange(VpePageContext pageContext,
- Element sourceElement, nsIDOMDocument visualDocument,
- nsIDOMElement visualNode, Object data, String name, String value) {
- return true;
+ private boolean getActiveState(Element sourceElement) {
+ String opennedStr;
+ opennedStr = (String) toggleMap.get(sourceElement);
+ if (opennedStr == null) {
+ opennedStr = ComponentUtil.getAttribute(sourceElement, ATTR_OPENED);
}
+ if (opennedStr == null || Constants.EMPTY.equals(opennedStr)) {
+ opennedStr = Constants.TRUE;
+ }
+ return (!Constants.FALSE.equals(opennedStr));
+ }
+
+ public void toggle(VpeVisualDomBuilder builder, Node sourceNode,
+ String toggleId) {
+ toggleMap.put(sourceNode, toggleId);
+ }
+
+ public void stopToggling(Node sourceNode) {
+ toggleMap.remove(sourceNode);
+ }
+
+ public boolean isRecreateAtAttrChange(VpePageContext pageContext,
+ Element sourceElement, nsIDOMDocument visualDocument,
+ nsIDOMElement visualNode, Object data, String name, String value) {
+ return true;
+ }
}
\ No newline at end of file
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-12-18 16:33:32 UTC (rev 12685)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesTabPanelTemplate.java 2008-12-18 16:34:42 UTC (rev 12686)
@@ -23,11 +23,11 @@
import org.jboss.tools.vpe.editor.template.VpeChildrenInfo;
import org.jboss.tools.vpe.editor.template.VpeCreationData;
import org.jboss.tools.vpe.editor.template.VpeToggableTemplate;
+import org.jboss.tools.vpe.editor.util.Constants;
import org.jboss.tools.vpe.editor.util.HTML;
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;
@@ -220,7 +220,7 @@
if(headerSpacing==null) {
headerSpacing = ONE;
}
- spaceImg.setAttribute(HTML.ATTR_STYLE, "width: " + headerSpacing + "px"); //$NON-NLS-1$ //$NON-NLS-2$
+ spaceImg.setAttribute(HTML.ATTR_STYLE, "width: " + headerSpacing + Constants.PIXEL); //$NON-NLS-1$
}
private int getActiveId(Element sourceElement, List<Node> children) {
@@ -356,7 +356,10 @@
element.removeAttribute(HTML.ATTR_STYLE);
}
if (ComponentUtil.getAttribute(element, RichFacesTabTemplate.TAB_BODY_ATTR).equalsIgnoreCase(YES)) {
- element.setAttribute(HTML.ATTR_STYLE, HTML.ATTR_DISPLAY+" : "+RichFacesTabTemplate.DISABLED_ELEMENT_STYLE+";"); //$NON-NLS-1$//$NON-NLS-2$
+ element.setAttribute(HTML.ATTR_STYLE, HTML.ATTR_DISPLAY
+ + Constants.COLON
+ + RichFacesTabTemplate.DISABLED_ELEMENT_STYLE
+ + Constants.SEMICOLON);
}
} catch (XPCOMException exeption) {
// Ignore
@@ -369,55 +372,14 @@
}
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)); //$NON-NLS-1$
+ String value = tab.getAttribute(VpeVisualDomBuilder.VPE_USER_TOGGLE_ID);
+ ComponentUtil.applyAttributeValueOnChildren(
+ VpeVisualDomBuilder.VPE_USER_TOGGLE_ID,
+ value,ComponentUtil.getElementChildren(tab));
+ ComponentUtil.applyAttributeValueOnChildren(
+ VpeVisualDomBuilder.VPE_USER_TOGGLE_LOOKUP_PARENT,
+ Constants.TRUE, ComponentUtil.getElementChildren(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/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/Constants.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/Constants.java 2008-12-18 16:33:32 UTC (rev 12685)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/Constants.java 2008-12-18 16:34:42 UTC (rev 12686)
@@ -27,4 +27,5 @@
public static final String COMMA = ","; //$NON-NLS-1$
public static final String FILE_PREFIX = "file://"; //$NON-NLS-1$
public static final String UNDERSCORE = "_"; //$NON-NLS-1$
+ public static final String ZERO_STRING = "0"; //$NON-NLS-1$
}
17 years
JBoss Tools SVN: r12685 - branches/jbosstools-3.0.0.CR1/seam/plugins/org.jboss.tools.seam.text.ext/src/org/jboss/tools/seam/text/ext/hyperlink.
by jbosstools-commits@lists.jboss.org
Author: vrubezhny
Date: 2008-12-18 11:33:32 -0500 (Thu, 18 Dec 2008)
New Revision: 12685
Modified:
branches/jbosstools-3.0.0.CR1/seam/plugins/org.jboss.tools.seam.text.ext/src/org/jboss/tools/seam/text/ext/hyperlink/SeamELInJavaStringHyperlink.java
Log:
JBIDE-1975 OpenOn for #{messages.***} in Seam EL.
Issue is fixed
Modified: branches/jbosstools-3.0.0.CR1/seam/plugins/org.jboss.tools.seam.text.ext/src/org/jboss/tools/seam/text/ext/hyperlink/SeamELInJavaStringHyperlink.java
===================================================================
--- branches/jbosstools-3.0.0.CR1/seam/plugins/org.jboss.tools.seam.text.ext/src/org/jboss/tools/seam/text/ext/hyperlink/SeamELInJavaStringHyperlink.java 2008-12-18 16:31:48 UTC (rev 12684)
+++ branches/jbosstools-3.0.0.CR1/seam/plugins/org.jboss.tools.seam.text.ext/src/org/jboss/tools/seam/text/ext/hyperlink/SeamELInJavaStringHyperlink.java 2008-12-18 16:33:32 UTC (rev 12685)
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2007 Red Hat, Inc.
+ * Copyright (c) 2008 Red Hat, Inc.
* Distributed under license by Red Hat, Inc. All rights reserved.
* This program is made available under the terms of the
* Eclipse Public License v1.0 which accompanies this distribution,
@@ -27,14 +27,14 @@
import org.jboss.tools.common.model.util.EclipseResourceUtil;
import org.jboss.tools.common.model.util.FindObjectHelper;
import org.jboss.tools.common.text.ext.hyperlink.xpl.Messages;
-import org.jboss.tools.seam.internal.core.SeamMessagesComponent;
+import org.jboss.tools.seam.core.ISeamMessages;
import org.jboss.tools.seam.text.ext.SeamExtPlugin;
public class SeamELInJavaStringHyperlink implements IHyperlink {
private final IRegion fRegion;
private final IJavaElement[] fElements;
- private final Map<String, SeamMessagesComponent> fMessages;
+ private final Map<String, ISeamMessages> fMessages;
/**
* Creates a new Seam EL in Java string hyperlink.
*/
@@ -50,7 +50,7 @@
/**
* Creates a new Seam EL in Java string hyperlink for messages.
*/
- SeamELInJavaStringHyperlink(IRegion region, Map<String, SeamMessagesComponent> messages) {
+ SeamELInJavaStringHyperlink(IRegion region, Map<String, ISeamMessages> messages) {
Assert.isNotNull(region);
Assert.isNotNull(messages);
@@ -95,14 +95,14 @@
}
private void openMessages() {
- Map <String, SeamMessagesComponent> messages = fMessages;
+ Map <String, ISeamMessages> messages = fMessages;
if (messages == null || messages.size() == 0) {
// Nothing to open
return;
}
for (String property : messages.keySet()) {
- SeamMessagesComponent messagesComponent = messages.get(property);
+ ISeamMessages messagesComponent = messages.get(property);
Map <String, IResource> resources = messagesComponent.getResourcesMap();
if (resources == null || resources.size() == 0)
continue;
17 years
JBoss Tools SVN: r12684 - trunk/seam/plugins/org.jboss.tools.seam.text.ext/src/org/jboss/tools/seam/text/ext/hyperlink.
by jbosstools-commits@lists.jboss.org
Author: vrubezhny
Date: 2008-12-18 11:31:48 -0500 (Thu, 18 Dec 2008)
New Revision: 12684
Modified:
trunk/seam/plugins/org.jboss.tools.seam.text.ext/src/org/jboss/tools/seam/text/ext/hyperlink/SeamELInJavaStringHyperlink.java
Log:
JBIDE-1975 OpenOn for #{messages.***} in Seam EL.
Issue is fixed
Modified: trunk/seam/plugins/org.jboss.tools.seam.text.ext/src/org/jboss/tools/seam/text/ext/hyperlink/SeamELInJavaStringHyperlink.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.text.ext/src/org/jboss/tools/seam/text/ext/hyperlink/SeamELInJavaStringHyperlink.java 2008-12-18 15:31:47 UTC (rev 12683)
+++ trunk/seam/plugins/org.jboss.tools.seam.text.ext/src/org/jboss/tools/seam/text/ext/hyperlink/SeamELInJavaStringHyperlink.java 2008-12-18 16:31:48 UTC (rev 12684)
@@ -27,14 +27,14 @@
import org.jboss.tools.common.model.util.EclipseResourceUtil;
import org.jboss.tools.common.model.util.FindObjectHelper;
import org.jboss.tools.common.text.ext.hyperlink.xpl.Messages;
-import org.jboss.tools.seam.internal.core.SeamMessagesComponent;
+import org.jboss.tools.seam.core.ISeamMessages;
import org.jboss.tools.seam.text.ext.SeamExtPlugin;
public class SeamELInJavaStringHyperlink implements IHyperlink {
private final IRegion fRegion;
private final IJavaElement[] fElements;
- private final Map<String, SeamMessagesComponent> fMessages;
+ private final Map<String, ISeamMessages> fMessages;
/**
* Creates a new Seam EL in Java string hyperlink.
*/
@@ -50,7 +50,7 @@
/**
* Creates a new Seam EL in Java string hyperlink for messages.
*/
- SeamELInJavaStringHyperlink(IRegion region, Map<String, SeamMessagesComponent> messages) {
+ SeamELInJavaStringHyperlink(IRegion region, Map<String, ISeamMessages> messages) {
Assert.isNotNull(region);
Assert.isNotNull(messages);
@@ -95,14 +95,14 @@
}
private void openMessages() {
- Map <String, SeamMessagesComponent> messages = fMessages;
+ Map <String, ISeamMessages> messages = fMessages;
if (messages == null || messages.size() == 0) {
// Nothing to open
return;
}
for (String property : messages.keySet()) {
- SeamMessagesComponent messagesComponent = messages.get(property);
+ ISeamMessages messagesComponent = messages.get(property);
Map <String, IResource> resources = messagesComponent.getResourcesMap();
if (resources == null || resources.size() == 0)
continue;
17 years
JBoss Tools SVN: r12683 - trunk/esb/docs/esb_ref_guide/en/modules.
by jbosstools-commits@lists.jboss.org
Author: abogachuk
Date: 2008-12-18 10:31:47 -0500 (Thu, 18 Dec 2008)
New Revision: 12683
Modified:
trunk/esb/docs/esb_ref_guide/en/modules/esb_support.xml
Log:
https://jira.jboss.org/jira/browse/JBDS-452
Modified: trunk/esb/docs/esb_ref_guide/en/modules/esb_support.xml
===================================================================
--- trunk/esb/docs/esb_ref_guide/en/modules/esb_support.xml 2008-12-18 15:31:27 UTC (rev 12682)
+++ trunk/esb/docs/esb_ref_guide/en/modules/esb_support.xml 2008-12-18 15:31:47 UTC (rev 12683)
@@ -243,7 +243,7 @@
</section>
<section>
- <title>Configuring ESB Runtime in Preference</title>
+ <title>Configuring ESB Runtime in Preferences</title>
<para>In this chapter you will know how to predefine a JBoss ESB runtime on the Preferences page.</para>
<para>You may already know, there are two ways to set JBoss ESB runtime when creating a ESB project,
@@ -276,8 +276,39 @@
</figure>
<para>The new JBoss ESB Runtime will be configured. Click <emphasis> <property>OK</property> </emphasis> to finish and save the preferences.
- You can use the configuration when creating a JBoss ESB project. </para>
+ You can use the configuration when creating a JBoss ESB project. </para>
</section>
+
+ <section id="using_SOA" role="updated">
+ <title>Using and Configuring SOA Platform</title>
+
+ <para>In this chapter you will know what is JBoss Enterprise SOA Platform and how you can configure it to use for your ESB projects. </para>
+ <literallayout> </literallayout>
+ <para>JBoss Enterprise SOA Platform delivers a flexible, standards-based platform to integrate applications, SOA services, business events and automate business processes. The SOA Platform integrates specific versions of JBoss ESB, jBPM, Drools and the JBoss Enterprise Application Platform that are certified to work together in a single supported enterprise distribution.</para>
+
+
+
+
+
+
+
+
+
+
+
+
+
+</section>
+
+
+
+
+
+
+
+
+
+
</chapter>
17 years
JBoss Tools SVN: r12682 - trunk/esb/docs/esb_ref_guide/en.
by jbosstools-commits@lists.jboss.org
Author: abogachuk
Date: 2008-12-18 10:31:27 -0500 (Thu, 18 Dec 2008)
New Revision: 12682
Modified:
trunk/esb/docs/esb_ref_guide/en/master.xml
Log:
nothing changed
Modified: trunk/esb/docs/esb_ref_guide/en/master.xml
===================================================================
--- trunk/esb/docs/esb_ref_guide/en/master.xml 2008-12-18 15:17:44 UTC (rev 12681)
+++ trunk/esb/docs/esb_ref_guide/en/master.xml 2008-12-18 15:31:27 UTC (rev 12682)
@@ -18,7 +18,7 @@
<!ENTITY strutsreflink "../../struts_tools_ref_guide/html_single/index.html">
<!ENTITY strutstutoriallink "../../struts_tools_tutorial/html_single/index.html">
-]>
+]>
<book>
<bookinfo>
@@ -47,7 +47,7 @@
<toc/>
&introduction;
- &esb_support;
+ &esb_support;
&esb_editor;
</book>
\ No newline at end of file
17 years
JBoss Tools SVN: r12681 - branches/jbosstools-3.0.0.CR1/seam/plugins/org.jboss.tools.seam.text.ext/src/org/jboss/tools/seam/text/ext/hyperlink.
by jbosstools-commits@lists.jboss.org
Author: vrubezhny
Date: 2008-12-18 10:17:44 -0500 (Thu, 18 Dec 2008)
New Revision: 12681
Modified:
branches/jbosstools-3.0.0.CR1/seam/plugins/org.jboss.tools.seam.text.ext/src/org/jboss/tools/seam/text/ext/hyperlink/SeamMessagesBeanHyperlink.java
Log:
JBIDE-1975 OpenOn for #{messages.***} in Seam EL.
Issue is fixed
Modified: branches/jbosstools-3.0.0.CR1/seam/plugins/org.jboss.tools.seam.text.ext/src/org/jboss/tools/seam/text/ext/hyperlink/SeamMessagesBeanHyperlink.java
===================================================================
--- branches/jbosstools-3.0.0.CR1/seam/plugins/org.jboss.tools.seam.text.ext/src/org/jboss/tools/seam/text/ext/hyperlink/SeamMessagesBeanHyperlink.java 2008-12-18 15:16:30 UTC (rev 12680)
+++ branches/jbosstools-3.0.0.CR1/seam/plugins/org.jboss.tools.seam.text.ext/src/org/jboss/tools/seam/text/ext/hyperlink/SeamMessagesBeanHyperlink.java 2008-12-18 15:17:44 UTC (rev 12681)
@@ -11,22 +11,17 @@
package org.jboss.tools.seam.text.ext.hyperlink;
import java.text.MessageFormat;
-import java.util.List;
import java.util.Map;
import org.eclipse.core.resources.IResource;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.jdt.core.IJavaElement;
-import org.eclipse.jdt.ui.JavaUI;
import org.eclipse.jface.text.BadLocationException;
import org.eclipse.jface.text.IRegion;
-import org.eclipse.ui.IEditorPart;
import org.jboss.tools.common.model.XModelObject;
import org.jboss.tools.common.model.util.EclipseResourceUtil;
import org.jboss.tools.common.model.util.FindObjectHelper;
import org.jboss.tools.common.text.ext.hyperlink.AbstractHyperlink;
import org.jboss.tools.common.text.ext.hyperlink.xpl.Messages;
-import org.jboss.tools.seam.internal.core.SeamMessagesComponent;
+import org.jboss.tools.seam.core.ISeamMessages;
/**
* @author Jeremy
@@ -38,7 +33,7 @@
* @see com.ibm.sse.editor.AbstractHyperlink#doHyperlink(org.eclipse.jface.text.IRegion)
*/
protected void doHyperlink(IRegion region) {
- Map <String, SeamMessagesComponent> messages = SeamBeanHyperlinkPartitioner.findMessagesComponents(getDocument(), region);
+ Map <String, ISeamMessages> messages = SeamBeanHyperlinkPartitioner.findMessagesComponents(getDocument(), region);
if (messages == null || messages.size() == 0) {
// Nothing to open
openFileFailed();
@@ -46,7 +41,7 @@
}
for (String property : messages.keySet()) {
- SeamMessagesComponent messagesComponent = messages.get(property);
+ ISeamMessages messagesComponent = messages.get(property);
Map <String, IResource> resources = messagesComponent.getResourcesMap();
if (resources == null || resources.size() == 0)
continue;
17 years