JBoss Tools SVN: r35986 - trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template.
by jbosstools-commits@lists.jboss.org
Author: dmaliarevich
Date: 2011-10-25 12:32:15 -0400 (Tue, 25 Oct 2011)
New Revision: 35986
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/AbstractOutputJsfTemplate.java
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/JsfOutputFormatTemplate.java
Log:
https://issues.jboss.org/browse/JBIDE-9417 - jsf template was updated, escaped attr name was added.
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/AbstractOutputJsfTemplate.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/AbstractOutputJsfTemplate.java 2011-10-25 16:02:06 UTC (rev 35985)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/AbstractOutputJsfTemplate.java 2011-10-25 16:32:15 UTC (rev 35986)
@@ -35,24 +35,23 @@
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
-public abstract class AbstractOutputJsfTemplate extends
- AbstractEditableJsfTemplate {
+public abstract class AbstractOutputJsfTemplate extends AbstractEditableJsfTemplate {
- /**
- *
- * @param element
- * @return
+ /*
+ * https://issues.jboss.org/browse/JBIDE-9417
+ * For some templates escape attribute name could differ,
+ * so it was made editable.
*/
+ protected String escapeAttributeName = JSF.ATTR_ESCAPE;
+
@Override
public Attr getOutputAttributeNode(Element element) {
-
- if (element.hasAttribute(JSF.ATTR_VALUE))
+ if (element.hasAttribute(JSF.ATTR_VALUE)) {
return element.getAttributeNode(JSF.ATTR_VALUE);
- else if (element.hasAttribute(JSF.ATTR_BINDING))
+ } else if (element.hasAttribute(JSF.ATTR_BINDING)) {
return element.getAttributeNode(JSF.ATTR_BINDING);
-
+ }
return null;
-
}
/**
@@ -61,127 +60,76 @@
* @param visualElement
* @param sourceElement
*/
- protected void copyOutputJsfAttributes(nsIDOMElement visualElement,
- Element sourceElement) {
+ protected void copyOutputJsfAttributes(nsIDOMElement visualElement, Element sourceElement) {
copyGeneralJsfAttributes(sourceElement, visualElement);
copyAttribute(visualElement, sourceElement, JSF.ATTR_DIR, HTML.ATTR_DIR);
}
- /**
- *
- * @param pageContext
- * @param visualDocument
- * @param sourceElement
- * @param targetVisualElement
- * @param creationData
- */
protected void processOutputAttribute(VpePageContext pageContext,
nsIDOMDocument visualDocument, Element sourceElement,
nsIDOMElement targetVisualElement, VpeCreationData creationData) {
-
VpeElementProxyData elementData = new VpeElementProxyData();
-
Attr outputAttr = getOutputAttributeNode(sourceElement);
-
if (outputAttr != null) {
-
- // prepare value
String newValue = prepareAttrValue(pageContext, sourceElement, outputAttr);
- // if escape then contents of value (or other attribute) is only
- // text
- if (!sourceElement.hasAttribute(JSF.ATTR_ESCAPE)
- || "true".equalsIgnoreCase(sourceElement //$NON-NLS-1$
- .getAttribute(JSF.ATTR_ESCAPE))) {
-
+ /*
+ * if escape then contents of value (or other attribute) is only text
+ */
+ if (!sourceElement.hasAttribute(escapeAttributeName)
+ || "true".equalsIgnoreCase(sourceElement.getAttribute(escapeAttributeName))) { //$NON-NLS-1$
String value = outputAttr.getValue();
-
nsIDOMText text;
// if bundleValue differ from value then will be represent
// bundleValue, but text will be not edit
boolean isEditable = value.equals(newValue);
-
text = visualDocument.createTextNode(newValue);
// add attribute for ability of editing
-
- elementData.addNodeData(new AttributeData(outputAttr, text,
- isEditable));
-
+ elementData.addNodeData(new AttributeData(outputAttr, text, isEditable));
targetVisualElement.appendChild(text);
-
- }
- // then text can be html code
- else {
-
- // create info
- VpeChildrenInfo targetVisualInfo = new VpeChildrenInfo(
- targetVisualElement);
-
+ } else {
+ /*
+ * then text can be html code
+ * create VpeChildrenInfo to process source nodes
+ */
+ VpeChildrenInfo targetVisualInfo = new VpeChildrenInfo(targetVisualElement);
// get atribute's offset
-
//mareshkau because it's node can be a proxy, see JBIDE-3144
if(!(outputAttr instanceof IDOMAttr)) {
- outputAttr = (Attr) ((((Attr)outputAttr).getOwnerElement()).getAttributes().getNamedItem(outputAttr.getLocalName()));
+ outputAttr = (Attr) ((((Attr)outputAttr).getOwnerElement())
+ .getAttributes().getNamedItem(outputAttr.getLocalName()));
}
-
- int offset = ((IDOMAttr) outputAttr)
- .getValueRegionStartOffset();
-
+ int offset = ((IDOMAttr) outputAttr).getValueRegionStartOffset();
// reparse attribute's value
NodeList list = NodeProxyUtil.reparseAttributeValue(
elementData, newValue, offset + 1);
-
// add children to info
for (int i = 0; i < list.getLength(); i++) {
-
Node child = list.item(i);
-
// add info to creation data
targetVisualInfo.addSourceChild(child);
}
-
- elementData.addNodeData(new AttributeData(outputAttr,
- targetVisualElement, true));
-
+ elementData.addNodeData(new AttributeData(outputAttr, targetVisualElement, true));
creationData.addChildrenInfo(targetVisualInfo);
-
}
-
}
-
creationData.setElementData(elementData);
}
-
-// @Deprecated
-// protected String prepareAttrValue(VpePageContext pageContext,
-// Element parent, Attr attr) {
-//
-// return ComponentUtil.getBundleValue(pageContext, attr);
-// }
- /*
- * (non-Javadoc)
- *
- * @see
- * org.jboss.tools.vpe.editor.template.VpeAbstractTemplate#setPseudoContent
- * (org.jboss.tools.vpe.editor.context.VpePageContext, org.w3c.dom.Node,
- * org.mozilla.interfaces.nsIDOMNode, org.mozilla.interfaces.nsIDOMDocument)
- */
@Override
public void setPseudoContent(VpePageContext pageContext,
Node sourceContainer, nsIDOMNode visualContainer,
nsIDOMDocument visualDocument) {
- // Empty
+ /*
+ * Do nothing
+ */
}
@Override
public NodeData getNodeData(nsIDOMNode node, VpeElementData elementData,
VpeDomMapping domMapping) {
- // TODO Auto-generated method stub
NodeData nodeData = super.getNodeData(node, elementData, domMapping);
if (nodeData == null) {
-
VpeNodeMapping nodeMapping = domMapping.getNodeMapping(node);
-
if (nodeMapping != null) {
if (nodeMapping instanceof VpeElementMapping) {
nodeData = super.getNodeData(node,
@@ -201,19 +149,12 @@
public nsIDOMNode getVisualNodeBySourcePosition(
VpeElementMapping elementMapping, Point selectionRange, VpeDomMapping domMapping) {
nsIDOMNode node = null;
-
if ((elementMapping.getElementData() instanceof VpeElementProxyData)
- && (((VpeElementProxyData) elementMapping.getElementData())
- .getNodelist() != null)) {
-
- VpeElementProxyData elementProxyData = (VpeElementProxyData) elementMapping
- .getElementData();
-
+ && (((VpeElementProxyData) elementMapping.getElementData()).getNodelist() != null)) {
+ VpeElementProxyData elementProxyData = (VpeElementProxyData) elementMapping.getElementData();
VpeNodeMapping nodeMapping = NodeProxyUtil.findNodeByPosition(
domMapping, elementProxyData.getNodelist(), selectionRange);
-
if (nodeMapping != null) {
-
if (nodeMapping instanceof VpeElementMapping) {
node = super.getVisualNodeBySourcePosition(
(VpeElementMapping) nodeMapping, selectionRange, domMapping);
@@ -222,17 +163,27 @@
}
}
}
-
if (node == null) {
- node = super.getVisualNodeBySourcePosition(elementMapping,
- selectionRange, domMapping);
+ node = super.getVisualNodeBySourcePosition(elementMapping, selectionRange, domMapping);
}
return node;
}
-
- protected String prepareAttrValue(VpePageContext pageContext,
- Element parent, Attr attr) {
- return attr.getNodeValue();
- }
+ protected String prepareAttrValue(VpePageContext pageContext, Element parent, Attr attr) {
+ /*
+ * Currently used only in JsfOutputFormatTemplate
+ */
+ return attr.getNodeValue();
+ }
+
+ /**
+ * If tag uses different attribute name than "escape" for displaying escaped sequence --
+ * subclasses could set an appropriate attribute name directly
+ *
+ * @param escapeAttributeName the new attribute name
+ */
+ protected void setEscapeAttributeName(String escapeAttributeName) {
+ this.escapeAttributeName = escapeAttributeName;
+ }
+
}
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/JsfOutputFormatTemplate.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/JsfOutputFormatTemplate.java 2011-10-25 16:02:06 UTC (rev 35985)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/JsfOutputFormatTemplate.java 2011-10-25 16:32:15 UTC (rev 35986)
@@ -97,12 +97,8 @@
}
@Override
- protected String prepareAttrValue(VpePageContext pageContext,
- Element parent, Attr attr) {
- String newString = prepareAttrValueByParams(attr.getNodeValue(),
- getParams(parent));
-
- return newString;
+ protected String prepareAttrValue(VpePageContext pageContext, Element parent, Attr attr) {
+ return prepareAttrValueByParams(attr.getNodeValue(), getParams(parent));
}
/**
@@ -112,39 +108,26 @@
* @param paramList
* @return
*/
- private String prepareAttrValueByParams(String nodeValue,
- List<Element> paramList) {
-
+ private String prepareAttrValueByParams(String nodeValue, List<Element> paramList) {
// matcher
- Matcher matcher = Pattern.compile(MESSAGE_FORMAT_ELEMENTS_PATTERN)
- .matcher(nodeValue);
-
+ Matcher matcher = Pattern.compile(MESSAGE_FORMAT_ELEMENTS_PATTERN).matcher(nodeValue);
int lastPos = 0;
StringBuilder sb = new StringBuilder();
-
while (matcher.find()) {
-
// get next message format elements
String messageFormatElement = matcher.group();
// set end and start
int start = matcher.start();
int end = matcher.end();
-
// get value of message format element
- String value = parseMessageFormatElement(messageFormatElement,
- paramList);
-
+ String value = parseMessageFormatElement(messageFormatElement, paramList);
// update value
sb.append(nodeValue.substring(lastPos, start));
sb.append(value);
-
lastPos = end;
}
-
sb.append(nodeValue.substring(lastPos));
-
return sb.toString();
-
}
/**
@@ -196,10 +179,8 @@
// illegal param value
}
}
-
// return or value or starting value
return value != null ? value : messageFormatElement;
-
}
/**
@@ -209,19 +190,15 @@
* @return
*/
private String getChoice(String choiceString) {
-
// separate all choices
String[] choices = choiceString.split(CHOICES_SEPARATOR);
-
// separate first choice pair(choice value / choice string)
String[] choice = choices[0].split(CHOICE_PAIR_SEPARATOR);
-
// return choice string
- if (choice.length > 1)
+ if (choice.length > 1) {
return choice[1];
-
+ }
return null;
-
}
/**
@@ -231,21 +208,14 @@
* @return
*/
private List<Element> getParams(Element sourcElement) {
-
NodeList nodeList = sourcElement.getChildNodes();
-
List<Element> params = new ArrayList<Element>();
-
for (int i = 0; i < nodeList.getLength(); i++) {
-
Node child = nodeList.item(i);
-
- if (JSF.TAG_PARAM.equals(child.getLocalName()))
+ if (JSF.TAG_PARAM.equals(child.getLocalName())) {
params.add((Element) child);
-
+ }
}
-
return params;
-
}
}
14 years, 2 months
JBoss Tools SVN: r35985 - workspace/yradtsevich/browsersim/swt-webkit-browsersim/org.jboss.tools.browsersim/src/org/jboss/tools/browsersim.
by jbosstools-commits@lists.jboss.org
Author: yradtsevich
Date: 2011-10-25 12:02:06 -0400 (Tue, 25 Oct 2011)
New Revision: 35985
Modified:
workspace/yradtsevich/browsersim/swt-webkit-browsersim/org.jboss.tools.browsersim/src/org/jboss/tools/browsersim/BrowserSim.java
Log:
https://issues.jboss.org/browse/JBIDE-9539 : Browsersim app for testing mobile/desktop web apps
- a page which shows current user-agent header is set as the home page
Modified: workspace/yradtsevich/browsersim/swt-webkit-browsersim/org.jboss.tools.browsersim/src/org/jboss/tools/browsersim/BrowserSim.java
===================================================================
--- workspace/yradtsevich/browsersim/swt-webkit-browsersim/org.jboss.tools.browsersim/src/org/jboss/tools/browsersim/BrowserSim.java 2011-10-25 16:02:05 UTC (rev 35984)
+++ workspace/yradtsevich/browsersim/swt-webkit-browsersim/org.jboss.tools.browsersim/src/org/jboss/tools/browsersim/BrowserSim.java 2011-10-25 16:02:06 UTC (rev 35985)
@@ -10,6 +10,8 @@
******************************************************************************/
package org.jboss.tools.browsersim;
+import java.io.FileInputStream;
+import java.io.FileNotFoundException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
@@ -154,7 +156,7 @@
setDevice(DevicesManager.getInstance().getDevices().get(0));
}
shell.open();
- browser.setUrl("file:///C:/doc/prj/JavaScript/user-agent.html");
+ browser.setUrl("http://www.w3schools.com/js/tryit_view.asp?filename=try_nav_useragent");
while (!shell.isDisposed()) {
if (!display.readAndDispatch())
@@ -205,11 +207,11 @@
}
});
- final Image imageBack = new Image(display, getResourceAsStream("/resources/icons/nav_backward.gif"));
- final Image imageForward = new Image(display, getResourceAsStream("/resources/icons/nav_forward.gif"));
- final Image imageStop = new Image(display, getResourceAsStream("/resources/icons/nav_stop.gif"));
- final Image imageRefresh = new Image(display, getResourceAsStream("/resources/icons/nav_refresh.gif"));
- final Image imageGo = new Image(display, getResourceAsStream("/resources/icons/nav_go.gif"));
+ final Image imageBack = new Image(display, getResourceAsStream("resources/icons/nav_backward.gif"));
+ final Image imageForward = new Image(display, getResourceAsStream("resources/icons/nav_forward.gif"));
+ final Image imageStop = new Image(display, getResourceAsStream("resources/icons/nav_stop.gif"));
+ final Image imageRefresh = new Image(display, getResourceAsStream("resources/icons/nav_refresh.gif"));
+ final Image imageGo = new Image(display, getResourceAsStream("resources/icons/nav_go.gif"));
itemBack.setImage(imageBack);
itemForward.setImage(imageForward);
@@ -233,6 +235,14 @@
}
private InputStream getResourceAsStream(String name) {
+ if (true) {
+ try {
+ return new FileInputStream(name);
+ } catch (FileNotFoundException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+ }
return this.getClass().getResourceAsStream(name);
}
14 years, 2 months
JBoss Tools SVN: r35984 - branches/jbosstools-3.3.0.M4/as/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2011-10-25 12:02:05 -0400 (Tue, 25 Oct 2011)
New Revision: 35984
Modified:
branches/jbosstools-3.3.0.M4/as/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/AdapterWizardPage.java
Log:
[JBIDE-10031] only checking 'create server adapter' if a compatible server adapter was found
Modified: branches/jbosstools-3.3.0.M4/as/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/AdapterWizardPage.java
===================================================================
--- branches/jbosstools-3.3.0.M4/as/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/AdapterWizardPage.java 2011-10-25 15:59:20 UTC (rev 35983)
+++ branches/jbosstools-3.3.0.M4/as/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/AdapterWizardPage.java 2011-10-25 16:02:05 UTC (rev 35984)
@@ -516,7 +516,7 @@
boolean canCreateServer = serverTypeToCreate != null;
serverAdapterCheckbox.setEnabled(canCreateServer);
// serverAdapterCheckbox.setSelection(canCreateServer);
- serverAdapterCheckboxObservable.setValue(true);
+ serverAdapterCheckboxObservable.setValue(canCreateServer);
enableServerWidgets(canCreateServer);
refreshValidRuntimes();
model.getParentModel().setProperty(AdapterWizardPageModel.SERVER_TYPE, serverTypeToCreate);
14 years, 2 months
JBoss Tools SVN: r35983 - trunk/as/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2011-10-25 11:59:20 -0400 (Tue, 25 Oct 2011)
New Revision: 35983
Modified:
trunk/as/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/AdapterWizardPage.java
Log:
[JBIDE-10031] only checking 'create server adapter' if a compatible server adapter was found
Modified: trunk/as/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/AdapterWizardPage.java
===================================================================
--- trunk/as/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/AdapterWizardPage.java 2011-10-25 15:58:59 UTC (rev 35982)
+++ trunk/as/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/AdapterWizardPage.java 2011-10-25 15:59:20 UTC (rev 35983)
@@ -518,8 +518,7 @@
serverTypeToCreate = getServerTypeToCreate();
boolean canCreateServer = serverTypeToCreate != null;
serverAdapterCheckbox.setEnabled(canCreateServer);
- // serverAdapterCheckbox.setSelection(canCreateServer);
- serverAdapterCheckboxObservable.setValue(true);
+ serverAdapterCheckboxObservable.setValue(canCreateServer);
enableServerWidgets(canCreateServer);
refreshValidRuntimes();
model.getParentModel().setProperty(AdapterWizardPageModel.SERVER_TYPE, serverTypeToCreate);
14 years, 2 months
JBoss Tools SVN: r35982 - trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2011-10-25 11:58:59 -0400 (Tue, 25 Oct 2011)
New Revision: 35982
Modified:
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/AdapterWizardPage.java
Log:
[JBIDE-10031] only checking 'create server adapter' if a compatible server adapter was found
Modified: trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/AdapterWizardPage.java
===================================================================
--- trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/AdapterWizardPage.java 2011-10-25 15:37:05 UTC (rev 35981)
+++ trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/AdapterWizardPage.java 2011-10-25 15:58:59 UTC (rev 35982)
@@ -519,7 +519,7 @@
boolean canCreateServer = serverTypeToCreate != null;
serverAdapterCheckbox.setEnabled(canCreateServer);
// serverAdapterCheckbox.setSelection(canCreateServer);
- serverAdapterCheckboxObservable.setValue(true);
+ serverAdapterCheckboxObservable.setValue(canCreateServer);
enableServerWidgets(canCreateServer);
refreshValidRuntimes();
model.getParentModel().setProperty(AdapterWizardPageModel.SERVER_TYPE, serverTypeToCreate);
14 years, 2 months
JBoss Tools SVN: r35981 - in trunk/documentation/whatsnew: as and 3 other directories.
by jbosstools-commits@lists.jboss.org
Author: fbricon
Date: 2011-10-25 11:37:05 -0400 (Tue, 25 Oct 2011)
New Revision: 35981
Added:
trunk/documentation/whatsnew/core/core-news-3.3.0.M4.html
trunk/documentation/whatsnew/core/images/install-JDT-ext.png
trunk/documentation/whatsnew/core/images/materialize-lib-complete.png
trunk/documentation/whatsnew/core/images/materialize-lib-context-menu.png
trunk/documentation/whatsnew/core/images/materialize-lib-dialog.png
Modified:
trunk/documentation/whatsnew/as/as-news-3.3.0.M4.html
trunk/documentation/whatsnew/forge/forge-news-3.3.0.M4.html
trunk/documentation/whatsnew/index.html
Log:
JBIDE-9972 : added N&N for commons/jst/core component (focusing on the Materialize Classpath Libary feature).
Also fixed some N&N nav issues
corrected the AS7 N&N about web fragments support
Modified: trunk/documentation/whatsnew/as/as-news-3.3.0.M4.html
===================================================================
--- trunk/documentation/whatsnew/as/as-news-3.3.0.M4.html 2011-10-25 12:02:37 UTC (rev 35980)
+++ trunk/documentation/whatsnew/as/as-news-3.3.0.M4.html 2011-10-25 15:37:05 UTC (rev 35981)
@@ -21,8 +21,7 @@
<h1>JBoss AS Tools 3.3.0.M4 What's New</h1>
- <p align="right"><a href="../index.html">< Main Index</a> <a href="../gwt/gwt-news-1.0.2.M4.html">GWT Tools ></a></p>
-
+ <p align="right"><a href="../index.html">< Main Index</a> <a href="../openshift/openshift-news-2.3.0.M4.html">OpenShift Tools></a></p>
<table border="0" cellpadding="10" cellspacing="0" width="80%">
<tr>
@@ -47,8 +46,8 @@
<p><b>Support for Web Fragments</b></p>
</td>
<td valign="top" width="90%">
- <p>We added support for web fragments in M4. Web fragment project are now deployed as
- exploded jars to JBoss AS6 and AS7.</p>
+ <p>We added support for web fragments in M4. Web fragment projects are now deployed as
+ jar files to JBoss AS6 and AS7.</p>
<p><small><a href="https://issues.jboss.org/browse/JBIDE-9836">Related Jira</a></small></p>
</td>
</tr>
Added: trunk/documentation/whatsnew/core/core-news-3.3.0.M4.html
===================================================================
--- trunk/documentation/whatsnew/core/core-news-3.3.0.M4.html (rev 0)
+++ trunk/documentation/whatsnew/core/core-news-3.3.0.M4.html 2011-10-25 15:37:05 UTC (rev 35981)
@@ -0,0 +1,90 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Language" content="en-us" />
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+<link rel="stylesheet" href="../whatsnew.css"/>
+<title>Core/Common 3.3.0.M4 What's New</title>
+<script type="text/javascript">
+
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-17645367-5']);
+ _gaq.push(['_trackPageview']);
+
+ (function() {
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+ })();
+
+</script></head>
+<body>
+<h1>Core/Common 3.3.0.M4 What's New</h1>
+
+<p align="right"><a href="../index.html">< Main Index</a>
+<a href="../jst/jst-news-3.3.0.M4.html">JST/JSF 3.3.0.M4 ></a>
+</p>
+
+<table border="0" cellpadding="10" cellspacing="0" width="80%">
+ <tr>
+ <td colspan="2">
+ <hr/>
+ <h3>General</h3>
+ <hr/>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top" align="right">
+ <a name="itemnam1e" id="itemname1"></a><b>Materializing Classpath Library</b>
+ </td>
+ <td width="70%" valign="top">
+ <p>
+ An experimental new feature allows JBoss Tools users to Materialize Classpath Libraries. A Classpath Library is a virtual container added to the classpath, referencing jars in a portable way (avoiding direct absolute path references from the project).
+ Materialization means jars listed in any Classpath Library can be copied under a project folder and referenced directly under the project classpath, instead of using said Classpath Library.
+ The source Classpath Library is then removed from said classpath.
+ </p>
+
+ <p>This feature can be useful if you want to compile/run a project without Maven (or Ivy or any other dependency management tool that exists), for example.</p>
+ <p>In order to use this new feature, you need to install the JBoss Tools JDT Extensions feature : </p>
+ <img src="images/install-JDT-ext.png" />
+
+ <p>
+ To use it, right-click on a Classpath Library from one of your Java projects (In the Project Explorer view for example, go under Java Resources > Libraries)
+ and select the "Materialize Library..." menu :
+ </p>
+ <img src="images/materialize-lib-context-menu.png" />
+
+
+ <p>This will open a new dialog window in which you can choose the destination folder into which will be copied the selected jars :</p>
+ <img src="images/materialize-lib-dialog.png" />
+ <p><ul><li>Clicking on the source column should show you the complete path of the original location (the cell is not editable).</li>
+ <li>Clicking on the "Copy as" column should allow you to rename the copied file in it's destination folder.</li>
+ </ul>
+ <i><b>Unfortunately the columns are not clickable under Windows. The <a href="https://issues.jboss.org/browse/JBIDE-10015">bug</a> was discovered too late and could not be fixed in time for the JBoss Tools 3.3.0 M4 release. This should be fixed shortly after that release, and made available via the <a href="http://download.jboss.org/jbosstools/builds/nightly/trunk/latest/all/repo/">nightly build update site</a></b></i>
+ </p>
+ <p>Once materialized, jars are copied and referenced directly in the classpath, the Classpath Library is removed. </p>
+ <img src="images/materialize-lib-complete.png" />
+ <p>in the case of Maven-powered projects, the Maven nature is removed, thus disabling the Maven builder. If you want to enable the Maven nature back on, just right-click on your project and select <i>Configure > Convert to Maven Project</i>
+
+ </p>
+ <p>Feedback on this feature are very welcome. You can follow existing related issues using this <a href="https://issues.jboss.org/secure/IssueNavigator.jspa?reset=true&jqlQuery=l...">link</a>. Please use the "materialize_library" label when submitting new issues.</p>
+<p></p>
+
+ <p><small>Related Jira : <a href="https://issues.jboss.org/browse/JBIDE-8972">JBIDE-8972</a></small></p>
+
+ </td>
+ </tr>
+
+ <tr>
+ <td colspan="2">
+ <hr />
+ </td>
+ </tr>
+
+</table>
+
+</body>
+
+</html>
Added: trunk/documentation/whatsnew/core/images/install-JDT-ext.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/core/images/install-JDT-ext.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/whatsnew/core/images/materialize-lib-complete.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/core/images/materialize-lib-complete.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/whatsnew/core/images/materialize-lib-context-menu.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/core/images/materialize-lib-context-menu.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/whatsnew/core/images/materialize-lib-dialog.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/core/images/materialize-lib-dialog.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Modified: trunk/documentation/whatsnew/forge/forge-news-3.3.0.M4.html
===================================================================
--- trunk/documentation/whatsnew/forge/forge-news-3.3.0.M4.html 2011-10-25 12:02:37 UTC (rev 35980)
+++ trunk/documentation/whatsnew/forge/forge-news-3.3.0.M4.html 2011-10-25 15:37:05 UTC (rev 35981)
@@ -24,7 +24,7 @@
<h1>Forge Tools 3.3.0.M4 What's New</h1>
<p align="right"><a href="../index.html">< Main Index</a> <a
- href="../maven/maven-news-3.3.0.M3.html">Maven Tools ></a></p>
+ href="../as/as-news-3.3.0.M4.html">JBoss AS Server Tools ></a></p>
<table border="0" cellpadding="10" cellspacing="0" width="80%">
Modified: trunk/documentation/whatsnew/index.html
===================================================================
--- trunk/documentation/whatsnew/index.html 2011-10-25 12:02:37 UTC (rev 35980)
+++ trunk/documentation/whatsnew/index.html 2011-10-25 15:37:05 UTC (rev 35981)
@@ -36,12 +36,13 @@
<td valign="top" align="left">
<p align="right"><b>3.3.0.M4</b>
<td valign="top">
+ <p><a href="core/core-news-3.3.0.M4.html">Core/General 3.3.0.M4</a></p>
<p><a href="jst/jst-news-3.3.0.M4.html">JST/JSF 3.3.0.M4</a></p>
<p><a href="vpe/vpe-news-3.3.0.M4.html">Visual Page Editor 3.3.0.M4</a></p>
<p><a href="cdi/cdi-news-3.3.0.M4.html">CDI/Seam 3 Tools</a></p>
<p><a href="forge/forge-news-3.3.0.M4.html">Forge Tools</a></p>
<p><a href="as/as-news-3.3.0.M4.html">JBoss AS Server Tools</a></p>
- <p><a href="openshift/openshift-news-2.3.0.M4.html">Openshift Application Wizard 2.3.0.M4</a></p>
+ <p><a href="openshift/openshift-news-2.3.0.M4.html">OpenShift Tools</a></p>
</td>
</tr>
<tr>
14 years, 2 months
JBoss Tools SVN: r35980 - trunk/documentation/whatsnew/as.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2011-10-25 08:02:37 -0400 (Tue, 25 Oct 2011)
New Revision: 35980
Modified:
trunk/documentation/whatsnew/as/as-news-3.3.0.M4.html
Log:
astools n&n english fixed
Modified: trunk/documentation/whatsnew/as/as-news-3.3.0.M4.html
===================================================================
--- trunk/documentation/whatsnew/as/as-news-3.3.0.M4.html 2011-10-25 11:27:48 UTC (rev 35979)
+++ trunk/documentation/whatsnew/as/as-news-3.3.0.M4.html 2011-10-25 12:02:37 UTC (rev 35980)
@@ -81,7 +81,7 @@
<td valign="top" width="90%">
<p>JBoss AS7 offers an impressive OSGI runtime. We therefore added the capability to deploy osgi projects to an
AS7 instance in prior versions of JBoss tools. We still had minor bugs when deploying those projects.
- We fixed those bugs and now offer a flawless behaviour.</p>
+ We fixed those bugs and now offer flawless behaviour.</p>
<p><small><a href="https://issues.jboss.org/browse/JBIDE-9709">Related Jira</a> <a href="https://issues.jboss.org/browse/JBIDE-9711">Related Jira</a></small></p>
</td>
</tr>
@@ -91,10 +91,10 @@
<p><b>Run on Server now waits</b></p>
</td>
<td valign="top" width="90%">
- <p>If you want to check your application running on the app server you'd have to start it's deployment
- and pick <b>Run As/Run on Server</b> afterwards. In many cases your browser then showed a 404 "Not Found" since the browser
- did not wait until the deployment was successfully executed. We fixed that and
- now show the browser only when the server completed its duties.</p>
+ <p>If you want to check your application running on the app server, you'd have to start it's deployment
+ and pick <b>Run As/Run on Server</b> afterwards. In many cases your browser then showed a 404 "Not Found". The reason for this was that the browser
+ did not wait until the deployment was successfully started. This has been fixed, and
+ now the browser is only shown when the server has completed its duties.</p>
<p><small><a href="https://issues.jboss.org/browse/JBIDE-10030">Related Jira</a></small></p>
</td>
</tr>
14 years, 2 months
JBoss Tools SVN: r35979 - trunk/documentation/whatsnew/as.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2011-10-25 07:27:48 -0400 (Tue, 25 Oct 2011)
New Revision: 35979
Modified:
trunk/documentation/whatsnew/as/as-news-3.3.0.M4.html
Log:
[JBIDE-10011] created N&N for AS
Modified: trunk/documentation/whatsnew/as/as-news-3.3.0.M4.html
===================================================================
--- trunk/documentation/whatsnew/as/as-news-3.3.0.M4.html 2011-10-25 11:27:06 UTC (rev 35978)
+++ trunk/documentation/whatsnew/as/as-news-3.3.0.M4.html 2011-10-25 11:27:48 UTC (rev 35979)
@@ -95,7 +95,7 @@
and pick <b>Run As/Run on Server</b> afterwards. In many cases your browser then showed a 404 "Not Found" since the browser
did not wait until the deployment was successfully executed. We fixed that and
now show the browser only when the server completed its duties.</p>
- <p><small><a href="https://issues.jboss.org/browse/JBIDE-10030">Related Jira</a> <a href="https://issues.jboss.org/browse/JBIDE-9711">Related Jira</a></small></p>
+ <p><small><a href="https://issues.jboss.org/browse/JBIDE-10030">Related Jira</a></small></p>
</td>
</tr>
14 years, 2 months
JBoss Tools SVN: r35978 - trunk/documentation/whatsnew/as.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2011-10-25 07:27:06 -0400 (Tue, 25 Oct 2011)
New Revision: 35978
Modified:
trunk/documentation/whatsnew/as/as-news-3.3.0.M4.html
Log:
[JBIDE-10011] created N&N for AS
Modified: trunk/documentation/whatsnew/as/as-news-3.3.0.M4.html
===================================================================
--- trunk/documentation/whatsnew/as/as-news-3.3.0.M4.html 2011-10-25 10:01:38 UTC (rev 35977)
+++ trunk/documentation/whatsnew/as/as-news-3.3.0.M4.html 2011-10-25 11:27:06 UTC (rev 35978)
@@ -86,6 +86,18 @@
</td>
</tr>
<tr><td colspan="2"><hr /></td></tr>
+ <tr>
+ <td valign="top" align="right">
+ <p><b>Run on Server now waits</b></p>
+ </td>
+ <td valign="top" width="90%">
+ <p>If you want to check your application running on the app server you'd have to start it's deployment
+ and pick <b>Run As/Run on Server</b> afterwards. In many cases your browser then showed a 404 "Not Found" since the browser
+ did not wait until the deployment was successfully executed. We fixed that and
+ now show the browser only when the server completed its duties.</p>
+ <p><small><a href="https://issues.jboss.org/browse/JBIDE-10030">Related Jira</a> <a href="https://issues.jboss.org/browse/JBIDE-9711">Related Jira</a></small></p>
+ </td>
+ </tr>
</table>
14 years, 2 months
JBoss Tools SVN: r35977 - trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2011-10-25 06:01:38 -0400 (Tue, 25 Oct 2011)
New Revision: 35977
Modified:
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/AbstractOpenShiftWizardPage.java
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/AdapterWizardPage.java
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ApplicationWizardPage.java
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/CredentialsWizardPage.java
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/NewDomainWizardPage.java
Log:
[JBIDE-10012] corrected page activation notifications
Modified: trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/AbstractOpenShiftWizardPage.java
===================================================================
--- trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/AbstractOpenShiftWizardPage.java 2011-10-25 10:00:50 UTC (rev 35976)
+++ trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/AbstractOpenShiftWizardPage.java 2011-10-25 10:01:38 UTC (rev 35977)
@@ -20,6 +20,7 @@
import org.eclipse.jface.layout.GridLayoutFactory;
import org.eclipse.jface.wizard.IWizard;
import org.eclipse.jface.wizard.IWizardContainer;
+import org.eclipse.jface.wizard.IWizardPage;
import org.eclipse.jface.wizard.WizardDialog;
import org.eclipse.jface.wizard.WizardPage;
import org.eclipse.swt.SWT;
@@ -32,6 +33,10 @@
*/
public abstract class AbstractOpenShiftWizardPage extends WizardPage {
+ protected enum WizardProgressDirection {
+ BACKWARD, FORWARD
+ }
+
private DataBindingContext dbc;
protected AbstractOpenShiftWizardPage(String title, String description, String pageName, IWizard wizard) {
@@ -80,29 +85,46 @@
@Override
public void handlePageChanging(PageChangingEvent event) {
if (event.getTargetPage() == AbstractOpenShiftWizardPage.this) {
- onPageWillGetActivated(event, dbc);
- } else {
- onPageWillGetDeactivated(event, dbc);
+ onPageWillGetActivated(getActivationDirection(event), event, dbc);
+ } else if (event.getCurrentPage() == AbstractOpenShiftWizardPage.this){
+ onPageWillGetDeactivated(getDeactivationDirection(event), event, dbc);
}
}
+
});
}
}
- protected DataBindingContext getDatabindingContext() {
- return dbc;
+ private WizardProgressDirection getActivationDirection(PageChangingEvent event) {
+ IWizardPage previousPage = getPreviousPage();
+ if (previousPage == null
+ || previousPage.equals(event.getCurrentPage())) {
+ return WizardProgressDirection.BACKWARD;
+ } else {
+ return WizardProgressDirection.FORWARD;
+ }
}
+ private WizardProgressDirection getDeactivationDirection(PageChangingEvent event) {
+ IWizardPage previousPage = getPreviousPage();
+ if (previousPage == null
+ || previousPage.equals(event.getTargetPage())) {
+ return WizardProgressDirection.BACKWARD;
+ } else {
+ return WizardProgressDirection.FORWARD;
+ }
+ }
+
protected void onPageActivated(DataBindingContext dbc) {
}
protected void onPageDeactivated(DataBindingContext dbc) {
}
- protected void onPageWillGetActivated(PageChangingEvent event, DataBindingContext dbc) {
+ protected void onPageWillGetActivated(WizardProgressDirection direction, PageChangingEvent event, DataBindingContext dbc) {
}
- protected void onPageWillGetDeactivated(PageChangingEvent event, DataBindingContext dbc) {
+ protected void onPageWillGetDeactivated(WizardProgressDirection direction, PageChangingEvent event, DataBindingContext dbc) {
}
protected abstract void doCreateControls(Composite parent, DataBindingContext dbc);
@@ -110,5 +132,4 @@
protected DataBindingContext getDataBindingContext() {
return dbc;
}
-
}
Modified: trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/AdapterWizardPage.java
===================================================================
--- trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/AdapterWizardPage.java 2011-10-25 10:00:50 UTC (rev 35976)
+++ trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/AdapterWizardPage.java 2011-10-25 10:01:38 UTC (rev 35977)
@@ -323,7 +323,7 @@
Label domainLabel = new Label(c, SWT.NONE);
domainLabel.setText("Host");
domainValueLabel = new Label(c, SWT.NONE);
- DataBindingContext dbc = getDatabindingContext();
+ DataBindingContext dbc = getDataBindingContext();
ValueBindingBuilder
.bind(WidgetProperties.text().observe(domainValueLabel))
.notUpdating(BeanProperties.value(AdapterWizardPageModel.PROPERTY_APPLICATION_URL).observe(model))
Modified: trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ApplicationWizardPage.java
===================================================================
--- trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ApplicationWizardPage.java 2011-10-25 10:00:50 UTC (rev 35976)
+++ trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ApplicationWizardPage.java 2011-10-25 10:01:38 UTC (rev 35977)
@@ -208,7 +208,7 @@
"Could not rename domain", e);
}
}
- }, getContainer(), getDatabindingContext());
+ }, getContainer(), getDataBindingContext());
} catch (Exception ex) {
// ignore
}
@@ -363,7 +363,7 @@
}
}
- }, getContainer(), getDatabindingContext());
+ }, getContainer(), getDataBindingContext());
} catch (Exception ex) {
// ignore
Modified: trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/CredentialsWizardPage.java
===================================================================
--- trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/CredentialsWizardPage.java 2011-10-25 10:00:50 UTC (rev 35976)
+++ trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/CredentialsWizardPage.java 2011-10-25 10:01:38 UTC (rev 35977)
@@ -146,8 +146,9 @@
}
@Override
- protected void onPageWillGetDeactivated(PageChangingEvent event, DataBindingContext dbc) {
- if (!model.areCredentialsValidated()) {
+ protected void onPageWillGetDeactivated(WizardProgressDirection direction, PageChangingEvent event, DataBindingContext dbc) {
+ if (!model.areCredentialsValidated()
+ && direction == WizardProgressDirection.FORWARD) {
try {
final ArrayBlockingQueue<IStatus> queue = new ArrayBlockingQueue<IStatus>(1);
WizardUtils.runInWizard(
@@ -159,7 +160,7 @@
queue.offer(status);
return Status.OK_STATUS;
}
- }, getContainer(), getDatabindingContext());
+ }, getContainer(), getDataBindingContext());
queue.poll(10, TimeUnit.SECONDS);
event.doit = model.areCredentialsValid();
} catch (Exception ex) {
Modified: trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/NewDomainWizardPage.java
===================================================================
--- trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/NewDomainWizardPage.java 2011-10-25 10:00:50 UTC (rev 35976)
+++ trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/NewDomainWizardPage.java 2011-10-25 10:01:38 UTC (rev 35977)
@@ -177,7 +177,7 @@
SshPrivateKeysPreferences.openPreferencesPage(getShell());
// refresh warning about key
// (since user may have changed SSH2 prefs)
- getDatabindingContext().updateTargets();
+ getDataBindingContext().updateTargets();
}
};
}
14 years, 2 months