JBoss Tools SVN: r8192 - trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2008-05-19 13:51:05 -0400 (Mon, 19 May 2008)
New Revision: 8192
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/ValidationErrorManager.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-2219 Fixed
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/ValidationErrorManager.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/ValidationErrorManager.java 2008-05-19 17:45:18 UTC (rev 8191)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/ValidationErrorManager.java 2008-05-19 17:51:05 UTC (rev 8192)
@@ -122,6 +122,10 @@
ignore = true;
}
+ if (ignore) {
+ return;
+ }
+
IMessage message = new Message(getBaseName(), messageSeverity,
messageId, messageArguments, target,
getMarkerId());
@@ -143,10 +147,13 @@
"Exception occurred during error line number calculation",
e);
return;
+ } finally {
+ if(coreHelper!=null) {
+ coreHelper.getDocumentProvider().disconnect(target);
+ }
}
- if (!ignore) {
- reporter.addMessage(validationManager, message);
- }
+
+ reporter.addMessage(validationManager, message);
}
/*
17 years, 11 months
JBoss Tools SVN: r8191 - trunk/jsf/features/org.jboss.tools.richfaces.feature.
by jbosstools-commits@lists.jboss.org
Author: mculpepper(a)jboss.com
Date: 2008-05-19 13:45:18 -0400 (Mon, 19 May 2008)
New Revision: 8191
Modified:
trunk/jsf/features/org.jboss.tools.richfaces.feature/feature.xml
Log:
[JBIDE-2216] show more JBossTools/JBDS features in the about dialog (hibernate, seam, VPE, JBossAS)
Modified: trunk/jsf/features/org.jboss.tools.richfaces.feature/feature.xml
===================================================================
--- trunk/jsf/features/org.jboss.tools.richfaces.feature/feature.xml 2008-05-19 17:45:14 UTC (rev 8190)
+++ trunk/jsf/features/org.jboss.tools.richfaces.feature/feature.xml 2008-05-19 17:45:18 UTC (rev 8191)
@@ -3,7 +3,8 @@
id="org.jboss.tools.richfaces.feature"
label="RichFaces VPE Feature"
version="2.0.0"
- provider-name="JBoss, a division of Red Hat">
+ provider-name="JBoss, a division of Red Hat"
+ plugin="org.jboss.tools.vpe">
<description url="http://www.jboss.org/tools">
JBossTools RichFaces feature
17 years, 11 months
JBoss Tools SVN: r8190 - trunk/as/features/org.jboss.ide.eclipse.as.feature.
by jbosstools-commits@lists.jboss.org
Author: mculpepper(a)jboss.com
Date: 2008-05-19 13:45:14 -0400 (Mon, 19 May 2008)
New Revision: 8190
Modified:
trunk/as/features/org.jboss.ide.eclipse.as.feature/feature.xml
Log:
[JBIDE-2216] show more JBossTools/JBDS features in the about dialog (hibernate, seam, VPE, JBossAS)
Modified: trunk/as/features/org.jboss.ide.eclipse.as.feature/feature.xml
===================================================================
--- trunk/as/features/org.jboss.ide.eclipse.as.feature/feature.xml 2008-05-19 17:42:12 UTC (rev 8189)
+++ trunk/as/features/org.jboss.ide.eclipse.as.feature/feature.xml 2008-05-19 17:45:14 UTC (rev 8190)
@@ -3,7 +3,8 @@
id="org.jboss.ide.eclipse.as.feature"
label="JBossAS Tools"
version="1.0.0"
- provider-name="JBoss, Inc.">
+ provider-name="JBoss, Inc."
+ plugin="org.jboss.ide.eclipse.as.ui">
<description url="http://www.jboss.org/tools">
JBossAS Tools Feature
17 years, 11 months
JBoss Tools SVN: r8189 - branches/jbosstools-2.1.x/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2008-05-19 13:42:12 -0400 (Mon, 19 May 2008)
New Revision: 8189
Modified:
branches/jbosstools-2.1.x/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/ValidationErrorManager.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-2219
Modified: branches/jbosstools-2.1.x/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/ValidationErrorManager.java
===================================================================
--- branches/jbosstools-2.1.x/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/ValidationErrorManager.java 2008-05-19 17:41:55 UTC (rev 8188)
+++ branches/jbosstools-2.1.x/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/ValidationErrorManager.java 2008-05-19 17:42:12 UTC (rev 8189)
@@ -148,7 +148,9 @@
e);
return;
} finally {
- coreHelper.getDocumentProvider().disconnect(target);
+ if(coreHelper!=null) {
+ coreHelper.getDocumentProvider().disconnect(target);
+ }
}
reporter.addMessage(validationManager, message);
17 years, 11 months
JBoss Tools SVN: r8188 - trunk/seam/plugins/org.jboss.tools.seam.core.
by jbosstools-commits@lists.jboss.org
Author: mculpepper(a)jboss.com
Date: 2008-05-19 13:41:55 -0400 (Mon, 19 May 2008)
New Revision: 8188
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/build.properties
Log:
[JBIDE-2216] show more JBossTools/JBDS features in the about dialog (hibernate, seam, VPE, JBossAS)
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/build.properties
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/build.properties 2008-05-19 17:41:53 UTC (rev 8187)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/build.properties 2008-05-19 17:41:55 UTC (rev 8188)
@@ -4,7 +4,11 @@
seam-core.jar,\
plugin.properties,\
templates/,\
- about.html
+ about.html,\
+ about.ini,\
+ about.mappings,\
+ about.properties,\
+ seam_icon.png
jars.compile.order = seam-core.jar
src.includes = templates/,\
src/,\
17 years, 11 months
JBoss Tools SVN: r8187 - trunk/as/plugins/org.jboss.ide.eclipse.as.ui.
by jbosstools-commits@lists.jboss.org
Author: mculpepper(a)jboss.com
Date: 2008-05-19 13:41:53 -0400 (Mon, 19 May 2008)
New Revision: 8187
Added:
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/about.ini
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/about.mappings
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/about.properties
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jboss_about.png
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/build.properties
Log:
[JBIDE-2216] show more JBossTools/JBDS features in the about dialog (hibernate, seam, VPE, JBossAS)
Added: trunk/as/plugins/org.jboss.ide.eclipse.as.ui/about.ini
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.ui/about.ini (rev 0)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.ui/about.ini 2008-05-19 17:41:53 UTC (rev 8187)
@@ -0,0 +1,27 @@
+# about.ini
+# contains information about a feature
+# java.io.Properties file (ISO 8859-1 with "\" escapes)
+# "%key" are externalized strings defined in about.properties
+# This file does not need to be translated.
+# test
+# Property "aboutText" contains blurb for "About" dialog (translated)
+aboutText=%blurb
+
+# Property "windowImage" contains path to window icon (16x16)
+# needed for primary features only
+
+# Property "featureImage" contains path to feature image (32x32)
+featureImage=jboss_about.png
+
+# Property "aboutImage" contains path to product image (500x330 or 115x164)
+# needed for primary features only
+
+# Property "appName" contains name of the application (not translated)
+# needed for primary features only
+
+# Property "welcomePerspective" contains the id of the perspective in which the
+# welcome page is to be opened.
+# optional
+
+
+
Added: trunk/as/plugins/org.jboss.ide.eclipse.as.ui/about.mappings
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.ui/about.mappings (rev 0)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.ui/about.mappings 2008-05-19 17:41:53 UTC (rev 8187)
@@ -0,0 +1,5 @@
+# about.mappings
+# contains fill-ins for about.properties
+# java.io.Properties file (ISO 8859-1 with "\" escapes)
+# This file does not need to be translated.
+
Added: trunk/as/plugins/org.jboss.ide.eclipse.as.ui/about.properties
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.ui/about.properties (rev 0)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.ui/about.properties 2008-05-19 17:41:53 UTC (rev 8187)
@@ -0,0 +1,6 @@
+blurb=JBossAS Tools\n \
+\n \
+Version\: {featureVersion}\n \
+\n \
+(c) Copyright JBoss Inc. contributors and others 2004 - 2008. All rights reserved.\n \
+Visit http\://jboss.org/tools
\ No newline at end of file
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.ui/build.properties
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.ui/build.properties 2008-05-19 17:41:49 UTC (rev 8186)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.ui/build.properties 2008-05-19 17:41:53 UTC (rev 8187)
@@ -5,4 +5,9 @@
plugin.xml,\
plugin.properties,\
icons/,\
- License.txt
+ License.txt,\
+ about.ini,\
+ about.mappings,\
+ about.html,\
+ about.properties,\
+ jboss_about.png
Added: trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jboss_about.png
===================================================================
(Binary files differ)
Property changes on: trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jboss_about.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
17 years, 11 months
JBoss Tools SVN: r8186 - trunk/vpe/plugins/org.jboss.tools.vpe.
by jbosstools-commits@lists.jboss.org
Author: mculpepper(a)jboss.com
Date: 2008-05-19 13:41:49 -0400 (Mon, 19 May 2008)
New Revision: 8186
Added:
trunk/vpe/plugins/org.jboss.tools.vpe/about.ini
trunk/vpe/plugins/org.jboss.tools.vpe/about.mappings
trunk/vpe/plugins/org.jboss.tools.vpe/about.properties
trunk/vpe/plugins/org.jboss.tools.vpe/ico_32_jbds.png
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/build.properties
Log:
[JBIDE-2216] show more JBossTools/JBDS features in the about dialog (hibernate, seam, VPE, JBossAS)
Added: trunk/vpe/plugins/org.jboss.tools.vpe/about.ini
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/about.ini (rev 0)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/about.ini 2008-05-19 17:41:49 UTC (rev 8186)
@@ -0,0 +1,27 @@
+# about.ini
+# contains information about a feature
+# java.io.Properties file (ISO 8859-1 with "\" escapes)
+# "%key" are externalized strings defined in about.properties
+# This file does not need to be translated.
+# test
+# Property "aboutText" contains blurb for "About" dialog (translated)
+aboutText=%blurb
+
+# Property "windowImage" contains path to window icon (16x16)
+# needed for primary features only
+
+# Property "featureImage" contains path to feature image (32x32)
+featureImage=ico_32_jbds.png
+
+# Property "aboutImage" contains path to product image (500x330 or 115x164)
+# needed for primary features only
+
+# Property "appName" contains name of the application (not translated)
+# needed for primary features only
+
+# Property "welcomePerspective" contains the id of the perspective in which the
+# welcome page is to be opened.
+# optional
+
+
+
Added: trunk/vpe/plugins/org.jboss.tools.vpe/about.mappings
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/about.mappings (rev 0)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/about.mappings 2008-05-19 17:41:49 UTC (rev 8186)
@@ -0,0 +1,5 @@
+# about.mappings
+# contains fill-ins for about.properties
+# java.io.Properties file (ISO 8859-1 with "\" escapes)
+# This file does not need to be translated.
+
Added: trunk/vpe/plugins/org.jboss.tools.vpe/about.properties
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/about.properties (rev 0)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/about.properties 2008-05-19 17:41:49 UTC (rev 8186)
@@ -0,0 +1,6 @@
+blurb=XULRunner for Eclipse\n \
+\n \
+Version\: {featureVersion}\n \
+\n \
+(c) Copyright JBoss Inc. contributors and others 2004 - 2008. All rights reserved.\n \
+Visit http\://jboss.org/tools
\ No newline at end of file
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/build.properties
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/build.properties 2008-05-19 17:40:45 UTC (rev 8185)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/build.properties 2008-05-19 17:41:49 UTC (rev 8186)
@@ -7,7 +7,10 @@
html/,\
about.html,\
META-INF/,\
- ve/
+ ve/,\
+ about.ini,\
+ about.mappings,\
+ about.properties
jars.compile.order = vpe.jar
source.vpe.jar = resources/,\
src/
Added: trunk/vpe/plugins/org.jboss.tools.vpe/ico_32_jbds.png
===================================================================
(Binary files differ)
Property changes on: trunk/vpe/plugins/org.jboss.tools.vpe/ico_32_jbds.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
17 years, 11 months
JBoss Tools SVN: r8185 - branches/jbosstools-2.1.x/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2008-05-19 13:40:45 -0400 (Mon, 19 May 2008)
New Revision: 8185
Modified:
branches/jbosstools-2.1.x/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/ValidationErrorManager.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-2219 Fixed.
Modified: branches/jbosstools-2.1.x/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/ValidationErrorManager.java
===================================================================
--- branches/jbosstools-2.1.x/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/ValidationErrorManager.java 2008-05-19 16:43:03 UTC (rev 8184)
+++ branches/jbosstools-2.1.x/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/ValidationErrorManager.java 2008-05-19 17:40:45 UTC (rev 8185)
@@ -122,6 +122,10 @@
ignore = true;
}
+ if (ignore) {
+ return;
+ }
+
IMessage message = new Message(getBaseName(), messageSeverity,
messageId, messageArguments, target,
getMarkerId());
@@ -143,10 +147,11 @@
"Exception occurred during error line number calculation",
e);
return;
+ } finally {
+ coreHelper.getDocumentProvider().disconnect(target);
}
- if (!ignore) {
- reporter.addMessage(validationManager, message);
- }
+
+ reporter.addMessage(validationManager, message);
}
/*
17 years, 11 months
JBoss Tools SVN: r8184 - trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util.
by jbosstools-commits@lists.jboss.org
Author: sdzmitrovich
Date: 2008-05-19 12:43:03 -0400 (Mon, 19 May 2008)
New Revision: 8184
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/TemplateManagingUtil.java
Log:
correct input elements editable
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/TemplateManagingUtil.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/TemplateManagingUtil.java 2008-05-19 16:40:02 UTC (rev 8183)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/TemplateManagingUtil.java 2008-05-19 16:43:03 UTC (rev 8184)
@@ -10,8 +10,6 @@
******************************************************************************/
package org.jboss.tools.vpe.editor.util;
-import java.util.List;
-
import org.eclipse.swt.graphics.Point;
import org.eclipse.wst.sse.core.internal.provisional.IndexedRegion;
import org.eclipse.wst.xml.core.internal.provisional.document.IDOMAttr;
@@ -272,7 +270,7 @@
*/
public static nsIDOMNode getSelectedNode(nsISelection selection) {
- if (selection.getIsCollapsed()) {
+ if (selection.getFocusNode() == selection.getAnchorNode()) {
if (selection.getFocusNode() != null) {
if ((selection.getFocusNode().getNodeType() != nsIDOMNode.TEXT_NODE)
&& (selection.getFocusOffset() != 0)) {
17 years, 11 months
JBoss Tools SVN: r8183 - trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template.
by jbosstools-commits@lists.jboss.org
Author: sdzmitrovich
Date: 2008-05-19 12:40:02 -0400 (Mon, 19 May 2008)
New Revision: 8183
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/EditableTemplateAdapter.java
Log:
correct editable
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/EditableTemplateAdapter.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/EditableTemplateAdapter.java 2008-05-19 16:19:58 UTC (rev 8182)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/EditableTemplateAdapter.java 2008-05-19 16:40:02 UTC (rev 8183)
@@ -176,7 +176,7 @@
.getCurrentSelection(pageContext));
}
- if (node == null)
+ if (node == null || selectedRange == null)
return false;
// get focus and anchor offsets
@@ -288,7 +288,7 @@
.getCurrentSelection(pageContext));
}
- if (node == null)
+ if (node == null || selectedRange == null)
return false;
// get focus and anchor offsets
@@ -391,7 +391,7 @@
selectedRange = getSelectionRange(TemplateManagingUtil
.getCurrentSelection(pageContext));
}
- if (node == null)
+ if (node == null || selectedRange == null)
return false;
// get focus and anchor offsets
@@ -523,13 +523,13 @@
Node node = getTargetSourceNodeByVisualNode(pageContext, visualNode,
elementMapping);
- if (node == null)
- return false;
-
// get focus and anchor offsets
Point selectedRange = getSelectionRange(TemplateManagingUtil
.getCurrentSelection(pageContext));
+ if (node == null || selectedRange == null)
+ return false;
+
int focusOffset = selectedRange.x;
// if node editable
@@ -595,13 +595,13 @@
Node node = getTargetSourceNodeByVisualNode(pageContext,
visualNode, elementMapping);
- if (node == null)
- return false;
-
// get focus and anchor offsets
Point selectedRange = getSelectionRange(TemplateManagingUtil
.getCurrentSelection(pageContext));
+ if (node == null || selectedRange == null)
+ return false;
+
int focusOffset = selectedRange.x;
if (focusOffset != 0) {
@@ -710,6 +710,20 @@
TemplateManagingUtil.setSourceSelection(pageContext, targetSourceNode,
focusOffset, length);
+ if ((HTML.TAG_INPUT.equalsIgnoreCase(targetVisualNode.getLocalName()))
+ || (HTML.TAG_TEXTAREA.equalsIgnoreCase(targetVisualNode
+ .getLocalName()))) {
+
+ TemplateManagingUtil.setSelectionRangeInInputElement(
+ targetVisualNode, new Point(focusOffset, length));
+
+ selection.collapse(targetVisualNode.getParentNode(),
+ (int) VisualDomUtil.getOffset(targetVisualNode));
+
+ selection.extend(targetVisualNode.getParentNode(),
+ (int) VisualDomUtil.getOffset(targetVisualNode) + 1);
+ }
+
// setSelectionRange(selection,
// targetVisualNode, new Point(focusOffset, length));
@@ -826,6 +840,23 @@
// .getSelection(nsISelectionController.SELECTION_NORMAL),
// targetVisualNode, new Point(selectionOffset, selectionLength));
+ if ((HTML.TAG_INPUT.equalsIgnoreCase(targetVisualNode.getLocalName()))
+ || (HTML.TAG_TEXTAREA.equalsIgnoreCase(targetVisualNode
+ .getLocalName()))) {
+
+ TemplateManagingUtil.setSelectionRangeInInputElement(
+ targetVisualNode, new Point(selectionOffset,
+ selectionLength));
+
+ (selectionController.getSelection(nsISelectionController.SELECTION_NORMAL)).collapse(targetVisualNode.getParentNode(),(int)
+ VisualDomUtil.getOffset(targetVisualNode));
+
+ (selectionController
+ .getSelection(nsISelectionController.SELECTION_NORMAL))
+ .extend(targetVisualNode.getParentNode(),
+ (int) VisualDomUtil.getOffset(targetVisualNode) + 1);
+ }
+
// check for text node
if (targetVisualNode.getNodeType() != nsIDOMNode.ELEMENT_NODE) {
targetVisualNode = targetVisualNode.getParentNode();
@@ -1114,9 +1145,11 @@
nsIDOMNode focusedNode = TemplateManagingUtil
.getSelectedNode(selection);
- Point range = new Point(0, 0);
+ Point range = null;
if (focusedNode != null) {
+
+ range = new Point(0,0);
if ((HTML.TAG_INPUT.equalsIgnoreCase(focusedNode.getLocalName()))
|| (HTML.TAG_TEXTAREA.equalsIgnoreCase(focusedNode
.getLocalName()))) {
17 years, 11 months