JBoss Tools SVN: r15609 - trunk/birt/plugins/org.jboss.tools.birt.core.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2009-05-29 14:56:57 -0400 (Fri, 29 May 2009)
New Revision: 15609
Modified:
trunk/birt/plugins/org.jboss.tools.birt.core/plugin.xml
Log:
fixing BIRT Facet template version
Modified: trunk/birt/plugins/org.jboss.tools.birt.core/plugin.xml
===================================================================
--- trunk/birt/plugins/org.jboss.tools.birt.core/plugin.xml 2009-05-29 17:59:22 UTC (rev 15608)
+++ trunk/birt/plugins/org.jboss.tools.birt.core/plugin.xml 2009-05-29 18:56:57 UTC (rev 15609)
@@ -38,7 +38,7 @@
<static-preset id="preset.jboss.birt">
<label>%JBOSS_BIRT_FACET_TEMPLATE_LABEL</label>
<description>%JBOSS_BIRT_FACET_TEMPLATE_LABEL</description>
- <facet id="birt.runtime" version="2.3.0"/>
+ <facet id="birt.runtime" version="2.5.0"/>
<facet id="jst.java" version="5.0"/>
<facet id="jst.web" version="2.5"/>
<facet id="jst.jsf" version="1.2"/>
15 years, 3 months
JBoss Tools SVN: r15608 - trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/refactoring.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2009-05-29 13:59:22 -0400 (Fri, 29 May 2009)
New Revision: 15608
Modified:
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/refactoring/SeamComponentRefactoringTest.java
Log:
Corrected spelling.
Modified: trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/refactoring/SeamComponentRefactoringTest.java
===================================================================
--- trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/refactoring/SeamComponentRefactoringTest.java 2009-05-29 16:03:34 UTC (rev 15607)
+++ trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/refactoring/SeamComponentRefactoringTest.java 2009-05-29 17:59:22 UTC (rev 15608)
@@ -124,7 +124,7 @@
// Test before renaming
ISeamComponent component = seamProject.getComponent(componentName);
assertNotNull("Can't load component " + componentName, component);
- assertNull("There is unexisted component in seam project: " + newName, seamProject.getComponent(newName));
+ assertNull("There is unexpected component in seam project: " + newName, seamProject.getComponent(newName));
for(TestChangeStructure changeStructure : changeList){
IFile file = changeStructure.getProject().getFile(changeStructure.getFileName());
String content = null;
@@ -160,7 +160,7 @@
JobUtils.waitForIdle();
// Test results
- assertNull("There is unexisted component in seam project: " + componentName, seamProject.getComponent(componentName));
+ assertNull("There is unexpected component in seam project: " + componentName, seamProject.getComponent(componentName));
assertNotNull("Can't load component " + newName, seamProject.getComponent(newName));
for(TestChangeStructure changeStructure : changeList){
IFile file = changeStructure.getProject().getFile(changeStructure.getFileName());
15 years, 3 months
JBoss Tools SVN: r15607 - in trunk/documentation: jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools and 6 other directories.
by jbosstools-commits@lists.jboss.org
Author: smukhina
Date: 2009-05-29 12:03:34 -0400 (Fri, 29 May 2009)
New Revision: 15607
Modified:
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/com/jboss/tools/common.xsl
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/com/jboss/tools/xhtml-single.xsl
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/com/jboss/tools/xhtml.xsl
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/common.xsl
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/xhtml-single.xsl
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/xhtml.xsl
trunk/documentation/jbosstools-jdocbook-style/src/main/com/css/css/tools.css
trunk/documentation/jbosstools-jdocbook-style/src/main/com/css/images/feedback_logo.png
trunk/documentation/jbosstools-jdocbook-style/src/main/com/css/script/toggle.js
trunk/documentation/jbosstools-jdocbook-style/src/main/org/css/css/tools.css
trunk/documentation/jbosstools-jdocbook-style/src/main/org/css/images/feedback_logo.png
trunk/documentation/jbosstools-jdocbook-style/src/main/org/css/script/toggle.js
Log:
JBDS-741 Feedback form on JBDS and Tools guides is implemented
Modified: trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/com/jboss/tools/common.xsl
===================================================================
--- trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/com/jboss/tools/common.xsl 2009-05-29 15:48:53 UTC (rev 15606)
+++ trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/com/jboss/tools/common.xsl 2009-05-29 16:03:34 UTC (rev 15607)
@@ -11,6 +11,46 @@
<!-- XHTML settings -->
<xsl:param name="html.stylesheet" select="'css/tools.css'"/>
+ <xsl:template name="feedback">
+ <!--[if IE 6]><iframe frameborder="0" class="problemLayer" id="place"><xsl:text> </xsl:text></iframe><![endif]-->
+ <div class="time_out_div" id="timeOutDiv"><xsl:text> </xsl:text></div>
+ <div id="feedback-maincontainer">
+ <h3 id="feedback-header">
+ Create new JBDS Documentation Jira issue
+ <a href="javascript:void(0);" onclick="hidePopup('feedback-maincontainer', 'feedback-mailform', 'feedback-iFrame','feedback-submit', 'feedback-maincontainer');" id="feedback-close">
+ <img src="images/close.png" class="feedback-images" />
+ </a>
+ </h3>
+ <iframe id='feedback-iFrame' name="feedback-iFrame"><xsl:text> </xsl:text></iframe>
+ <form onsubmit="return validate_form()" id="feedback-mailform" method="post" action="https://jira.jboss.org/jira/secure/CreateIssueDetails!init.jspa?pid=12310..." target="feedback-iFrame">
+ <input type="hidden" id="priority" name="priority" value="3" />
+ <input type="hidden" id="components" name="components" value="12311170" />
+ <input type="hidden" id="versions" name="versions" value="12312451" />
+ <input type="hidden" id="customfield_12310031" name="customfield_12310031" value="Documentation (Ref Guide, User Guide, etc.)" />
+
+ <label for="summary">Summary</label>
+ <input type="text" id="feedback-summary" name="feedback-summary" title="Summarize the subject of the issue in a few words" maxlength="255" onKeyDown="countLeft('feedback-summary', 'left', 255);"
+ onKeyUp="countLeft('feedback-summary', 'left', 255);"/>
+ <div id="summary-helper-left" class="feedback-helper">
+ <span id="left">255</span> characters left
+ </div>
+ <div class="clear"><xsl:text> </xsl:text></div>
+ <label for="feedback-description">Description</label>
+ <textarea id="feedback-description" name="feedback-description" title="Provide more details about the issue" onKeyDown="countLeft('feedback-description', 'none', 500);"
+ onKeyUp="countLeft('feedback-description', 'none', 500);"><xsl:text> </xsl:text></textarea>
+ <div class="clear"><xsl:text> </xsl:text></div>
+ <label for="feedback-environment">Environment</label>
+ <textarea id="feedback-environment" name="feedback-environment" title="Describe your environment"><xsl:text> </xsl:text></textarea>
+ </form>
+ <div id="guide_words">This will launch the RichFaces Jira page - to complete your feedback please login if needed, and submit the Jira.</div>
+ <input type="button" id="feedback-submit" value="Proceed to Jira" name="submit" class="feedback-formbutton" title="Proceed to create new issue" onclick="fillForm('feedback-mailform'); submitForm('feedback-mailform', 'feedback-iFrame', 'feedback-submit', 'feedback-maincontainer');"/>
+ </div>
+ <div id="feedback-wrapper">
+ <a id="feedback-link" onclick="showPopup('feedback-maincontainer');">
+ <img src="images/feedback_logo.png" class="feedback-images" onload="init('feedback-summary', 'feedback-description');"/>
+ </a>
+ </div>
+ </xsl:template>
<xsl:template name="head.content">
@@ -54,17 +94,12 @@
</meta>
</xsl:if>
</xsl:if>
-
- <link rel="shortcut icon" type="image/vnd.microsoft.icon" href="images/favicon0.ico" />
-
+ <link rel="shortcut icon" type="image/vnd.microsoft.icon" href="images/favicon0.ico" />
+ <script type="text/javascript" src="script/toggle.js"><xsl:comment>If you see this message, your web browser doesn't support JavaScript or JavaScript is disabled.</xsl:comment></script>
<xsl:apply-templates select="." mode="head.keywords.content"/>
</xsl:template>
-
-
-
-
-
+
<!-- Overriding toc.line -->
<xsl:template name="toc.line">
<xsl:param name="toc-context" select="."/>
Modified: trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/com/jboss/tools/xhtml-single.xsl
===================================================================
--- trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/com/jboss/tools/xhtml-single.xsl 2009-05-29 15:48:53 UTC (rev 15606)
+++ trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/com/jboss/tools/xhtml-single.xsl 2009-05-29 16:03:34 UTC (rev 15607)
@@ -15,6 +15,9 @@
<div id="overlay">
<xsl:text> </xsl:text>
</div>
+
+ <!-- FEEDBACK -->
+ <xsl:call-template name="feedback" />
<p xmlns="http://www.w3.org/1999/xhtml">
<xsl:attribute name="id">
<xsl:text>title</xsl:text>
Modified: trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/com/jboss/tools/xhtml.xsl
===================================================================
--- trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/com/jboss/tools/xhtml.xsl 2009-05-29 15:48:53 UTC (rev 15606)
+++ trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/com/jboss/tools/xhtml.xsl 2009-05-29 16:03:34 UTC (rev 15607)
@@ -34,6 +34,8 @@
<xsl:text> </xsl:text>
</div>
+ <!-- FEEDBACK -->
+ <xsl:call-template name="feedback" />
<p xmlns="http://www.w3.org/1999/xhtml">
<xsl:attribute name="id">
<xsl:text>title</xsl:text>
@@ -97,6 +99,9 @@
</xsl:if>
</li>
</ul>
+
+
+
</xsl:if>
</xsl:if>
<xsl:if test="$header.rule != 0">
Modified: trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/common.xsl
===================================================================
--- trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/common.xsl 2009-05-29 15:48:53 UTC (rev 15606)
+++ trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/common.xsl 2009-05-29 16:03:34 UTC (rev 15607)
@@ -10,8 +10,47 @@
<!-- XHTML settings -->
<xsl:param name="html.stylesheet" select="'css/tools.css'"/>
+ <xsl:template name="feedback">
+ <!--[if IE 6]><iframe frameborder="0" class="problemLayer" id="place"><xsl:text> </xsl:text></iframe><![endif]-->
+ <div class="time_out_div" id="timeOutDiv"><xsl:text> </xsl:text></div>
+ <div id="feedback-maincontainer">
+ <h3 id="feedback-header">
+ Create new JBoss Tools Documentation Jira issue
+ <a href="javascript:void(0);" onclick="hidePopup('feedback-maincontainer', 'feedback-mailform', 'feedback-iFrame','feedback-submit', 'feedback-maincontainer');" id="feedback-close">
+ <img src="images/close_org.png" class="feedback-images" />
+ </a>
+ </h3>
+ <iframe id='feedback-iFrame' name="feedback-iFrame"><xsl:text> </xsl:text></iframe>
+ <form onsubmit="return validate_form()" id="feedback-mailform" method="post" action="https://jira.jboss.org/jira/secure/CreateIssueDetails!init.jspa?pid=12310..." target="feedback-iFrame">
+ <input type="hidden" id="priority" name="priority" value="3" />
+ <input type="hidden" id="components" name="components" value="12311170" />
+ <input type="hidden" id="versions" name="versions" value="12312451" />
+ <input type="hidden" id="customfield_12310031" name="customfield_12310031" value="Documentation (Ref Guide, User Guide, etc.)" />
+
+ <label for="summary">Summary</label>
+ <input type="text" id="feedback-summary" name="feedback-summary" title="Summarize the subject of the issue in a few words" maxlength="255" onKeyDown="countLeft('feedback-summary', 'left', 255);"
+ onKeyUp="countLeft('feedback-summary', 'left', 255);"/>
+ <div id="summary-helper-left" class="feedback-helper">
+ <span id="left">255</span> characters left
+ </div>
+ <div class="clear"><xsl:text> </xsl:text></div>
+ <label for="feedback-description">Description</label>
+ <textarea id="feedback-description" name="feedback-description" title="Provide more details about the issue" onKeyDown="countLeft('feedback-description', 'none', 500);"
+ onKeyUp="countLeft('feedback-description', 'none', 500);"><xsl:text> </xsl:text></textarea>
+ <div class="clear"><xsl:text> </xsl:text></div>
+ <label for="feedback-environment">Environment</label>
+ <textarea id="feedback-environment" name="feedback-environment" title="Describe your environment"><xsl:text> </xsl:text></textarea>
+ </form>
+ <div id="guide_words">This will launch the RichFaces Jira page - to complete your feedback please login if needed, and submit the Jira.</div>
+ <input type="button" id="feedback-submit" value="Proceed to Jira" name="submit" class="feedback-formbutton" title="Proceed to create new issue" onclick="fillForm('feedback-mailform'); submitForm('feedback-mailform', 'feedback-iFrame', 'feedback-submit', 'feedback-maincontainer');"/>
+ </div>
+ <div id="feedback-wrapper">
+ <a id="feedback-link" onclick="showPopup('feedback-maincontainer');">
+ <img src="images/feedback_logo.png" class="feedback-images" onload="init('feedback-summary', 'feedback-description');"/>
+ </a>
+ </div>
+ </xsl:template>
-
<xsl:template name="head.content">
<xsl:param name="node" select="."/>
@@ -56,7 +95,7 @@
</xsl:if>
<link rel="shortcut icon" type="image/vnd.microsoft.icon" href="images/favicon.ico" />
-
+ <script type="text/javascript" src="script/toggle.js"><xsl:comment>If you see this message, your web browser doesn't support JavaScript or JavaScript is disabled.</xsl:comment></script>
<xsl:apply-templates select="." mode="head.keywords.content"/>
</xsl:template>
Modified: trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/xhtml-single.xsl
===================================================================
--- trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/xhtml-single.xsl 2009-05-29 15:48:53 UTC (rev 15606)
+++ trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/xhtml-single.xsl 2009-05-29 16:03:34 UTC (rev 15607)
@@ -14,6 +14,8 @@
<div id="overlay">
<xsl:text> </xsl:text>
</div>
+ <!-- FEEDBACK -->
+ <xsl:call-template name="feedback" />
<p xmlns="http://www.w3.org/1999/xhtml">
<xsl:attribute name="id">
<xsl:text>title</xsl:text>
Modified: trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/xhtml.xsl
===================================================================
--- trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/xhtml.xsl 2009-05-29 15:48:53 UTC (rev 15606)
+++ trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/xhtml.xsl 2009-05-29 16:03:34 UTC (rev 15607)
@@ -16,7 +16,7 @@
<script type="text/javascript" src="script/prototype-1.6.0.2.js"><xsl:comment>If you see this message, your web browser doesn't support JavaScript or JavaScript is disabled.</xsl:comment></script>
<script type="text/javascript" src="script/effects.js"><xsl:comment>If you see this message, your web browser doesn't support JavaScript or JavaScript is disabled.</xsl:comment></script>
<script type="text/javascript" src="script/scriptaculous.js"><xsl:comment>If you see this message, your web browser doesn't support JavaScript or JavaScript is disabled.</xsl:comment></script>
- <script type="text/javascript" src="script/toggle.js"><xsl:comment>If you see this message, your web browser doesn't support JavaScript or JavaScript is disabled.</xsl:comment></script>
+
</xsl:template>
<xsl:template name="header.navigation">
@@ -34,6 +34,8 @@
<xsl:text> </xsl:text>
</div>
+ <!-- FEEDBACK -->
+ <xsl:call-template name="feedback" />
<p xmlns="http://www.w3.org/1999/xhtml">
<xsl:attribute name="id">
<xsl:text>title</xsl:text>
Modified: trunk/documentation/jbosstools-jdocbook-style/src/main/com/css/css/tools.css
===================================================================
--- trunk/documentation/jbosstools-jdocbook-style/src/main/com/css/css/tools.css 2009-05-29 15:48:53 UTC (rev 15606)
+++ trunk/documentation/jbosstools-jdocbook-style/src/main/com/css/css/tools.css 2009-05-29 16:03:34 UTC (rev 15607)
@@ -126,3 +126,205 @@
h1.title {
display:block;
}
+
+/* Feedback styles */
+
+.problemLayer {
+ position: absolute;
+ left: 34%;
+ top: 20%;
+ width: 400px;
+ height: 110px;
+ z-index: 2;
+ background: #fff;
+ display: none;
+}
+
+.time_out_div {
+ height: 100%;
+ width: 100%;
+ min-height: 100%;
+ background-color: #5781AF;
+ filter:alpha(opacity=50);
+ opacity: 0.5;
+ -moz-opacity: 0.5;
+ -khtml-opacity: 0.5;
+ z-index: 99;
+ position: fixed;
+ top: 0;
+ left: 0;
+ display: none;
+}
+
+* html div#feedback-wrapper, * html div#feedback-maincontainer, * html div#time_out_div {
+position: absolute;
+top:expression(eval(document.compatMode &&
+document.compatMode=='CSS1Compat') ?
+documentElement.scrollTop
++(documentElement.clientHeight-this.clientHeight)
+: document.body.scrollTop
++(document.body.clientHeight-this.clientHeight));
+}
+
+#feedback-maincontainer{
+ font-family: Arial;
+ font-size: 14px;
+ display:none;
+ background: #F5F5F5;
+ border: 8px solid #ababab;
+ height:440px;
+ left:30%;
+ position:fixed;
+ text-align:left;
+ top:20%;
+ bottom:20%;
+ width:500px;
+ z-index:100;
+}
+* html #feedback-maincontainer {
+ width:480px;
+}
+#feedback-maincontainer div#guide_words{
+ margin: 0px 20px 0px 20px !important;
+ font-size: 12px;
+}
+.feedback-helper, #summary-helper-left{
+ color: #ff3333;
+ font-size: 10px;
+ float:left;
+
+}
+#summary-helper-left{
+ float:right;
+ color: #5781AF;
+ padding-right:5px;
+}
+
+.clear{
+ clear:both;
+}
+*html #feedback-maincontainer{
+ width: 500px;
+}
+*html #feedback-header{
+ width: 100%;
+}
+#feedback-header{
+ background-color:#880001;
+ border-bottom: 2px solid #ccc;
+ color:white;
+ font-weight:bold;
+ font-size: 16px;
+ height:20px;
+ margin:0;
+ padding:10px 0 10px 20px;
+ position:relative;
+ text-align:left;
+}
+
+#feedback-close{
+ display:block;
+ position:absolute;
+ right:9px;
+ top:6px;
+ width:12px;
+ border: 0px;
+}
+
+#feedback-mailform{
+ margin: 0px 20px 0px 20px !important;
+ padding-bottom:5px;
+ text-align:left;
+}
+
+*html #feedback-mailform{
+ margin: 0px 20px 0px 0px;
+ padding-bottom:5px;
+}
+#feedback-mailform textarea, #feedback-mailform input, #feedback-mailform label{
+ font-family: Arial,Helvetica,sans-serif;
+ width:450px;
+}
+#feedback-mailform input, #feedback-mailform label{
+ display:block;
+}
+#feedback-mailform label{
+ margin-top: 10px;
+}
+#feedback-mailform label span{
+ color: #ff0000
+}
+#feedback-mailform textarea{
+ font-size: 14px;
+ height: 100px;
+ padding: 2px;
+}
+#feedback-mailform textarea#feedback-environment{
+ height: 50px;
+}
+
+.feedback-formbutton{
+ font-size: 12px;
+ font-family: Arial, Helvetica, sans-serif;
+ color: #999;
+ margin: 15px 20px;
+}
+
+
+.feedback-images{
+ border:0;
+ margin:0;
+ display: inline;
+}
+#feedback-iFrame {
+ background-color:#F5F5F5;
+ border:medium none;
+ height:90%;
+ line-height:20px;
+ overflow:visible;
+ width:100%;
+ display:none;
+}
+
+#feedback-wrapper{
+ margin: 0px;
+ padding: 0px;
+ position:fixed;
+ bottom:0px;
+ right:0px;
+ height:315px;
+ width: 47px;
+ overflow: hidden;
+ cursor:pointer;
+}
+
+#feedback-link{
+ float: left;
+ display: block;
+}
+
+#feedback-link img{
+ width: 47px;
+ height:315px;
+}
+h3#feedback-header{
+ display:block;
+ }
+
+.remark{
+ font-size: 11px;
+ margin-top: -15px;
+ margin-bottom:25px;
+ padding:0px;
+}
+.remark ul{
+ list-style: none;
+}
+.remark ul li{
+ margin:0px;
+ padding:0px;
+}
+p.remark i{
+ font-style:normal;
+}
+
Modified: trunk/documentation/jbosstools-jdocbook-style/src/main/com/css/images/feedback_logo.png
===================================================================
(Binary files differ)
Modified: trunk/documentation/jbosstools-jdocbook-style/src/main/com/css/script/toggle.js
===================================================================
--- trunk/documentation/jbosstools-jdocbook-style/src/main/com/css/script/toggle.js 2009-05-29 15:48:53 UTC (rev 15606)
+++ trunk/documentation/jbosstools-jdocbook-style/src/main/com/css/script/toggle.js 2009-05-29 16:03:34 UTC (rev 15607)
@@ -1,3 +1,115 @@
+var inputCorrect = false;
+var textCorrect = false;
+
+function getPlace(){
+ if(navigator.appName=="Microsoft Internet Explorer" && parseFloat(navigator.appVersion) < 7){
+ document.getElementById('place').style.display = "block";
+ }
+}
+
+function showPopup(_popupId) {
+ document.getElementById(_popupId).style.display = "block";
+ document.getElementById('timeOutDiv').style.display = "block";
+ document.getElementById("feedback-maincontainer").style.display = "block";
+ document.getElementById("guide_words").style.display = "block";
+ getPlace();
+}
+
+function hidePopup(_popupId, form, iFrame, but, container) {
+ document.getElementById(_popupId).style.display = "none";
+ document.getElementById('timeOutDiv').style.display = "none";
+ document.getElementById(iFrame).style.display = "none";
+ document.getElementById(form).style.display = "block";
+ document.getElementById(but).style.display = "inline";
+ document.getElementById(container).style.left="30%";
+ document.getElementById(container).style.top="20%";
+ document.getElementById(container).style.width="500px";
+ document.getElementById(container).style.height="440px";
+ getPlace();
+}
+
+function showIFrame(form, iFrame, but, container){
+ document.getElementById(form).style.display = "none";
+ document.getElementById(but).style.display = "none";
+ document.getElementById(iFrame).style.display = "block";
+ document.getElementById(container).style.height="99%";
+ document.getElementById(container).style.left="10%";
+ document.getElementById(container).style.top="0";
+ document.getElementById(container).style.width="80%";
+ document.getElementById("guide_words").style.display = "none";
+
+}
+function fillForm(form){
+ document.getElementById(form).attributes['action'].value =
+ document.getElementById(form).attributes['action'].value
+ +'&priority='+document.getElementById('priority').value
+ +'&summary='+document.getElementById('feedback-summary').value
+ +'&description='+document.getElementById('feedback-description').value
+ +'&environment='+document.getElementById('feedback-environment').value
+ +'&components='+document.getElementById('components').value
+ +'&versions='+document.getElementById('versions').value
+ +'&customfield_12310031='+document.getElementById('customfield_12310031').value;
+}
+
+function submitForm(form, iFrame, but, container){
+ document.getElementById(form).submit();
+ showIFrame(form, iFrame, but, container);
+}
+
+function setFieldFlag(type, flag){
+ if(type=="textarea"){
+ textCorrect = flag;
+ }else if(type=="text"){
+ inputCorrect = flag;
+ }
+}
+function countLeft(fieldToCheck, count, max) {
+ var field = document.getElementById(fieldToCheck);
+ var left = 'none';
+ var char_count = field.value.length;
+ var fullStr = field.value + " ";
+ var initial_whitespace_rExp = /^[^A-Za-z0-9]+/gi;
+ var left_trimmedStr = fullStr.replace(initial_whitespace_rExp, "");
+ var non_alphanumerics_rExp = rExp = /[^A-Za-z0-9]+/gi;
+ var cleanedStr = left_trimmedStr.replace(non_alphanumerics_rExp, " ");
+ var splitString = cleanedStr.split(" ");
+ var word_count = splitString.length -1;
+ if (fullStr.length <2) {
+ word_count = 0;
+ }
+ if (field.value.length > max){
+ field.value = field.value.substring(0, max);
+ }else if(count != "none"){
+ left = document.getElementById(count);
+ if(navigator.appName=="Microsoft Internet Explorer"){
+ left.innerText = max - field.value.length;
+ }else{
+ left.textContent = max - field.value.length;
+ }
+
+ }
+ if (word_count >= 1){
+ setFieldFlag(field.type, true);
+ }else{
+ setFieldFlag(field.type, false);
+ }
+ if(inputCorrect && textCorrect){
+ document.getElementById("feedback-submit").disabled=false;
+ document.getElementById("feedback-submit").style.color="#415973";
+ }else{
+ document.getElementById("feedback-submit").disabled=true;
+ document.getElementById("feedback-submit").style.color="#999";
+ }
+}
+
+
+function init(input, textarea){
+ document.getElementById("feedback-submit").disabled=true;
+ countLeft(input, "left", 255);
+ countLeft(textarea, "none", 500);
+}
+
+
// attach handler to window object
Event.observe(window,'load',initializeEmailClient,false);
Modified: trunk/documentation/jbosstools-jdocbook-style/src/main/org/css/css/tools.css
===================================================================
--- trunk/documentation/jbosstools-jdocbook-style/src/main/org/css/css/tools.css 2009-05-29 15:48:53 UTC (rev 15606)
+++ trunk/documentation/jbosstools-jdocbook-style/src/main/org/css/css/tools.css 2009-05-29 16:03:34 UTC (rev 15607)
@@ -123,3 +123,204 @@
display:block;
}
+/* Feedback styles */
+
+.problemLayer {
+ position: absolute;
+ left: 34%;
+ top: 20%;
+ width: 400px;
+ height: 110px;
+ z-index: 2;
+ background: #fff;
+ display: none;
+}
+
+.time_out_div {
+ height: 100%;
+ width: 100%;
+ min-height: 100%;
+ background-color: #5781AF;
+ filter:alpha(opacity=50);
+ opacity: 0.5;
+ -moz-opacity: 0.5;
+ -khtml-opacity: 0.5;
+ z-index: 99;
+ position: fixed;
+ top: 0;
+ left: 0;
+ display: none;
+}
+
+* html div#feedback-wrapper, * html div#feedback-maincontainer, * html div#time_out_div {
+position: absolute;
+top:expression(eval(document.compatMode &&
+document.compatMode=='CSS1Compat') ?
+documentElement.scrollTop
++(documentElement.clientHeight-this.clientHeight)
+: document.body.scrollTop
++(document.body.clientHeight-this.clientHeight));
+}
+
+#feedback-maincontainer{
+ font-family: Arial;
+ font-size: 14px;
+ display:none;
+ background: #F5F5F5;
+ border: 8px solid #7F9DB9;
+ height:440px;
+ left:30%;
+ position:fixed;
+ text-align:left;
+ top:20%;
+ bottom:20%;
+ width:500px;
+ z-index:100;
+}
+* html #feedback-maincontainer {
+ width:480px;
+}
+#feedback-maincontainer div#guide_words{
+ margin: 0px 20px 0px 20px !important;
+ font-size: 12px;
+}
+.feedback-helper, #summary-helper-left{
+ color: #ff3333;
+ font-size: 10px;
+ float:left;
+
+}
+#summary-helper-left{
+ float:right;
+ color: #5781AF;
+ padding-right:5px;
+}
+
+.clear{
+ clear:both;
+}
+*html #feedback-maincontainer{
+ width: 500px;
+}
+*html #feedback-header{
+ width: 100%;
+}
+#feedback-header{
+ background-color:#5781AF;
+ border-bottom: 2px solid #ccc;
+ color:white;
+ font-weight:bold;
+ font-size: 16px;
+ height:20px;
+ margin:0;
+ padding:10px 0 10px 20px;
+ position:relative;
+ text-align:left;
+}
+
+#feedback-close{
+ display:block;
+ position:absolute;
+ right:9px;
+ top:6px;
+ width:12px;
+ border: 0px;
+}
+
+#feedback-mailform{
+ margin: 0px 20px 0px 20px !important;
+ padding-bottom:5px;
+ text-align:left;
+}
+
+*html #feedback-mailform{
+ margin: 0px 20px 0px 0px;
+ padding-bottom:5px;
+}
+#feedback-mailform textarea, #feedback-mailform input, #feedback-mailform label{
+ font-family: Arial,Helvetica,sans-serif;
+ width:450px;
+}
+#feedback-mailform input, #feedback-mailform label{
+ display:block;
+}
+#feedback-mailform label{
+ margin-top: 10px;
+}
+#feedback-mailform label span{
+ color: #ff0000
+}
+#feedback-mailform textarea{
+ font-size: 14px;
+ height: 100px;
+ padding: 2px;
+}
+#feedback-mailform textarea#feedback-environment{
+ height: 50px;
+}
+
+.feedback-formbutton{
+ font-size: 12px;
+ font-family: Arial, Helvetica, sans-serif;
+ color: #999;
+ margin: 15px 20px;
+}
+
+
+.feedback-images{
+ border:0;
+ margin:0;
+ display: inline;
+}
+#feedback-iFrame {
+ background-color:#F5F5F5;
+ border:medium none;
+ height:90%;
+ line-height:20px;
+ overflow:visible;
+ width:100%;
+ display:none;
+}
+
+#feedback-wrapper{
+ margin: 0px;
+ padding: 0px;
+ position:fixed;
+ bottom:0px;
+ right:0px;
+ height:315px;
+ width: 47px;
+ overflow: hidden;
+ cursor:pointer;
+}
+
+#feedback-link{
+ float: left;
+ display: block;
+}
+
+#feedback-link img{
+ width: 47px;
+ height:315px;
+}
+h3#feedback-header{
+ display:block;
+ }
+
+.remark{
+ font-size: 11px;
+ margin-top: -15px;
+ margin-bottom:25px;
+ padding:0px;
+}
+.remark ul{
+ list-style: none;
+}
+.remark ul li{
+ margin:0px;
+ padding:0px;
+}
+p.remark i{
+ font-style:normal;
+}
+
Modified: trunk/documentation/jbosstools-jdocbook-style/src/main/org/css/images/feedback_logo.png
===================================================================
(Binary files differ)
Modified: trunk/documentation/jbosstools-jdocbook-style/src/main/org/css/script/toggle.js
===================================================================
--- trunk/documentation/jbosstools-jdocbook-style/src/main/org/css/script/toggle.js 2009-05-29 15:48:53 UTC (rev 15606)
+++ trunk/documentation/jbosstools-jdocbook-style/src/main/org/css/script/toggle.js 2009-05-29 16:03:34 UTC (rev 15607)
@@ -1,3 +1,114 @@
+var inputCorrect = false;
+var textCorrect = false;
+
+function getPlace(){
+ if(navigator.appName=="Microsoft Internet Explorer" && parseFloat(navigator.appVersion) < 7){
+ document.getElementById('place').style.display = "block";
+ }
+}
+
+function showPopup(_popupId) {
+ document.getElementById(_popupId).style.display = "block";
+ document.getElementById('timeOutDiv').style.display = "block";
+ document.getElementById("feedback-maincontainer").style.display = "block";
+ document.getElementById("guide_words").style.display = "block";
+ getPlace();
+}
+
+function hidePopup(_popupId, form, iFrame, but, container) {
+ document.getElementById(_popupId).style.display = "none";
+ document.getElementById('timeOutDiv').style.display = "none";
+ document.getElementById(iFrame).style.display = "none";
+ document.getElementById(form).style.display = "block";
+ document.getElementById(but).style.display = "inline";
+ document.getElementById(container).style.left="30%";
+ document.getElementById(container).style.top="20%";
+ document.getElementById(container).style.width="500px";
+ document.getElementById(container).style.height="440px";
+ getPlace();
+}
+
+function showIFrame(form, iFrame, but, container){
+ document.getElementById(form).style.display = "none";
+ document.getElementById(but).style.display = "none";
+ document.getElementById(iFrame).style.display = "block";
+ document.getElementById(container).style.height="99%";
+ document.getElementById(container).style.left="10%";
+ document.getElementById(container).style.top="0";
+ document.getElementById(container).style.width="80%";
+ document.getElementById("guide_words").style.display = "none";
+
+}
+function fillForm(form){
+ document.getElementById(form).attributes['action'].value =
+ document.getElementById(form).attributes['action'].value
+ +'&priority='+document.getElementById('priority').value
+ +'&summary='+document.getElementById('feedback-summary').value
+ +'&description='+document.getElementById('feedback-description').value
+ +'&environment='+document.getElementById('feedback-environment').value
+ +'&components='+document.getElementById('components').value
+ +'&versions='+document.getElementById('versions').value
+ +'&customfield_12310031='+document.getElementById('customfield_12310031').value;
+}
+
+function submitForm(form, iFrame, but, container){
+ document.getElementById(form).submit();
+ showIFrame(form, iFrame, but, container);
+}
+
+function setFieldFlag(type, flag){
+ if(type=="textarea"){
+ textCorrect = flag;
+ }else if(type=="text"){
+ inputCorrect = flag;
+ }
+}
+function countLeft(fieldToCheck, count, max) {
+ var field = document.getElementById(fieldToCheck);
+ var left = 'none';
+ var char_count = field.value.length;
+ var fullStr = field.value + " ";
+ var initial_whitespace_rExp = /^[^A-Za-z0-9]+/gi;
+ var left_trimmedStr = fullStr.replace(initial_whitespace_rExp, "");
+ var non_alphanumerics_rExp = rExp = /[^A-Za-z0-9]+/gi;
+ var cleanedStr = left_trimmedStr.replace(non_alphanumerics_rExp, " ");
+ var splitString = cleanedStr.split(" ");
+ var word_count = splitString.length -1;
+ if (fullStr.length <2) {
+ word_count = 0;
+ }
+ if (field.value.length > max){
+ field.value = field.value.substring(0, max);
+ }else if(count != "none"){
+ left = document.getElementById(count);
+ if(navigator.appName=="Microsoft Internet Explorer"){
+ left.innerText = max - field.value.length;
+ }else{
+ left.textContent = max - field.value.length;
+ }
+
+ }
+ if (word_count >= 1){
+ setFieldFlag(field.type, true);
+ }else{
+ setFieldFlag(field.type, false);
+ }
+ if(inputCorrect && textCorrect){
+ document.getElementById("feedback-submit").disabled=false;
+ document.getElementById("feedback-submit").style.color="#415973";
+ }else{
+ document.getElementById("feedback-submit").disabled=true;
+ document.getElementById("feedback-submit").style.color="#999";
+ }
+}
+
+
+function init(input, textarea){
+ document.getElementById("feedback-submit").disabled=true;
+ countLeft(input, "left", 255);
+ countLeft(textarea, "none", 500);
+}
+
// attach handler to window object
Event.observe(window,'load',initializeEmailClient,false);
15 years, 3 months
JBoss Tools SVN: r15606 - in trunk: seam/plugins/org.jboss.tools.seam.core/META-INF and 3 other directories.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2009-05-29 11:48:53 -0400 (Fri, 29 May 2009)
New Revision: 15606
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/META-INF/MANIFEST.MF
trunk/seam/plugins/org.jboss.tools.seam.core/META-INF/MANIFEST.MF
trunk/seam/plugins/org.jboss.tools.seam.ui/META-INF/MANIFEST.MF
trunk/seam/tests/org.jboss.tools.seam.core.test/META-INF/MANIFEST.MF
trunk/seam/tests/org.jboss.tools.seam.ui.test/META-INF/MANIFEST.MF
Log:
Removed plug-in versions from dependencies.
Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/META-INF/MANIFEST.MF
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.jsp/META-INF/MANIFEST.MF 2009-05-29 15:23:06 UTC (rev 15605)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp/META-INF/MANIFEST.MF 2009-05-29 15:48:53 UTC (rev 15606)
@@ -61,7 +61,7 @@
org.eclipse.core.databinding,
org.eclipse.jface.databinding,
org.eclipse.core.databinding.property,
- org.jboss.tools.jst.web.kb;bundle-version="1.0.0"
+ org.jboss.tools.jst.web.kb
Bundle-Version: 2.0.0
Export-Package: org.jboss.tools.jst.jsp.outline.cssdialog.common,
org.jboss.tools.jst.jsp.outline.cssdialog.parsers
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/META-INF/MANIFEST.MF
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/META-INF/MANIFEST.MF 2009-05-29 15:23:06 UTC (rev 15605)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/META-INF/MANIFEST.MF 2009-05-29 15:48:53 UTC (rev 15606)
@@ -52,7 +52,7 @@
org.eclipse.jst.jsf.facesconfig,
org.eclipse.jst.common.frameworks,
org.jboss.tools.common.kb,
- org.jboss.tools.jst.web.kb;bundle-version="1.0.0"
+ org.jboss.tools.jst.web.kb
Bundle-Version: 2.0.0
Export-Package:
org.jboss.tools.seam.core,
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/META-INF/MANIFEST.MF
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/META-INF/MANIFEST.MF 2009-05-29 15:23:06 UTC (rev 15605)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/META-INF/MANIFEST.MF 2009-05-29 15:48:53 UTC (rev 15606)
@@ -57,11 +57,11 @@
org.eclipse.search,
org.jboss.tools.jst.jsp,
org.eclipse.jst.jsf.core,
- org.eclipse.ltk.core.refactoring;bundle-version="3.4.0",
- org.eclipse.ltk.ui.refactoring;bundle-version="3.4.0",
- org.jboss.ide.eclipse.as.core;bundle-version="1.0.0",
- org.jboss.tools.jst.web.kb;bundle-version="1.0.0",
- org.jboss.tools.jsf;bundle-version="2.0.0"
+ org.eclipse.ltk.core.refactoring,
+ org.eclipse.ltk.ui.refactoring,
+ org.jboss.ide.eclipse.as.core,
+ org.jboss.tools.jst.web.kb,
+ org.jboss.tools.jsf
Eclipse-LazyStart: true
Export-Package: org.jboss.tools.seam.ui,
org.jboss.tools.seam.ui.actions,
Modified: trunk/seam/tests/org.jboss.tools.seam.core.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/seam/tests/org.jboss.tools.seam.core.test/META-INF/MANIFEST.MF 2009-05-29 15:23:06 UTC (rev 15605)
+++ trunk/seam/tests/org.jboss.tools.seam.core.test/META-INF/MANIFEST.MF 2009-05-29 15:48:53 UTC (rev 15606)
@@ -36,6 +36,6 @@
org.eclipse.wst.validation,
org.eclipse.jdt.launching,
org.eclipse.jdt.ui,
- org.eclipse.jst.j2ee;bundle-version="1.1.300",
- org.eclipse.text;bundle-version="3.5.0"
+ org.eclipse.jst.j2ee,
+ org.eclipse.text
Bundle-Localization: plugin
Modified: trunk/seam/tests/org.jboss.tools.seam.ui.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/seam/tests/org.jboss.tools.seam.ui.test/META-INF/MANIFEST.MF 2009-05-29 15:23:06 UTC (rev 15605)
+++ trunk/seam/tests/org.jboss.tools.seam.ui.test/META-INF/MANIFEST.MF 2009-05-29 15:48:53 UTC (rev 15606)
@@ -37,7 +37,7 @@
org.jboss.tools.jst.jsp,
org.jboss.tools.jst.jsp.test,
org.eclipse.jdt.ui,
- org.jboss.tools.vpe.ui.test;bundle-version="1.0.0"
+ org.jboss.tools.vpe.ui.test
Export-Package: org.jboss.tools.seam.ui.test,
org.jboss.tools.seam.ui.test.ca,
org.jboss.tools.seam.ui.test.hyperlink,
15 years, 3 months
JBoss Tools SVN: r15605 - trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog.
by jbosstools-commits@lists.jboss.org
Author: sdzmitrovich
Date: 2009-05-29 11:23:06 -0400 (Fri, 29 May 2009)
New Revision: 15605
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/AbstractCSSDialog.java
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/CSSClassDialog.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4391
Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/AbstractCSSDialog.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/AbstractCSSDialog.java 2009-05-29 14:59:38 UTC (rev 15604)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/AbstractCSSDialog.java 2009-05-29 15:23:06 UTC (rev 15605)
@@ -58,6 +58,8 @@
private StyleComposite styleComposite;
private DataBindingContext bindingContext = new DataBindingContext();
+
+ private AggregateValidationStatus aggregateStatus;
private IStatus status = Status.OK_STATUS;
@@ -114,7 +116,7 @@
});
- AggregateValidationStatus aggregateStatus = new AggregateValidationStatus(
+ aggregateStatus = new AggregateValidationStatus(
getBindingContext().getValidationStatusProviders(),
AggregateValidationStatus.MAX_SEVERITY);
aggregateStatus.addValueChangeListener(new IValueChangeListener() {
@@ -244,9 +246,14 @@
return html.toString();
}
+
+ public void releaseResources() {
+ aggregateStatus.dispose();
+ }
@Override
public boolean close() {
+ releaseResources();
return super.close();
}
Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/CSSClassDialog.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/CSSClassDialog.java 2009-05-29 14:59:38 UTC (rev 15604)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/CSSClassDialog.java 2009-05-29 15:23:06 UTC (rev 15605)
@@ -257,8 +257,11 @@
classCombo.select(classCombo.getItemCount() - 1);
}
+
+ @Override
public void releaseResources() {
+ super.releaseResources();
preview.releaseModel();
if (cssModel != null) {
@@ -298,7 +301,6 @@
default:
// make some closure operation
}
- releaseResources();
return super.close();
}
@@ -320,7 +322,8 @@
protected void handleStyleChanged() {
super.handleStyleChanged();
- applyButton.setEnabled(true);
+ if (getStatus().isOK())
+ applyButton.setEnabled(true);
}
15 years, 3 months
JBoss Tools SVN: r15604 - trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2009-05-29 10:59:38 -0400 (Fri, 29 May 2009)
New Revision: 15604
Modified:
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SerializationTest.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4351
Modified: trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SerializationTest.java
===================================================================
--- trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SerializationTest.java 2009-05-29 14:46:28 UTC (rev 15603)
+++ trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SerializationTest.java 2009-05-29 14:59:38 UTC (rev 15604)
@@ -81,7 +81,7 @@
} else if(SeamXMLConstants.CLS_PROPERTIES.equals(cls)) {
d2 = new SeamPropertiesDeclaration();
}
- assertTrue("Cannot restore declaration " + d.getName() + " " + d.getClass().getName(), d2 != null);
+ assertNotNull("Cannot restore declaration " + d.getName() + " " + d.getClass().getName(), d2);
d2.loadXML(e, context);
List<Change> changes = d2.merge(d);
if(changes != null && changes.size() > 0) {
@@ -104,7 +104,7 @@
} else if(SeamXMLConstants.CLS_JAVA.equals(cls)) {
f2 = new SeamAnnotatedFactory();
}
- assertTrue("Cannot restore factory declaration " + f.getName() + " " + f.getClass().getName(), f2 != null);
+ assertNotNull("Cannot restore factory declaration " + f.getName() + " " + f.getClass().getName(), f2);
f2.loadXML(e, context);
List<Change> changes = f2.merge(f);
if(changes != null && changes.size() > 0) {
@@ -113,21 +113,19 @@
System.out.println(f.getName() + " " + f.getClass().getName() + " " + changes.size());
}
}
-
}
-
+
public void testLoadSerializedModelTime() {
ISeamProject sp = getSeamProject();
-
+
long time = ((SeamProject)sp).reload();
int components = sp.getComponents().length;
System.out.print("Reloaded " + components + " components in " + time + " ms");
-
+
float timePerComponent = 1f * time / components;
- assertTrue("Loading time per component is too large: " + timePerComponent + " ms.", timePerComponent < 20.0f);
+ assertTrue("Loading time per component is too large: " + timePerComponent + " ms.", timePerComponent < 30.0f);
}
-
public void testCleanBuild() {
ISeamProject sp = getSeamProject();
try {
@@ -137,15 +135,14 @@
assertFalse(components_1 == 0);
sp.getProject().build(IncrementalProjectBuilder.CLEAN_BUILD, null);
int components_2 = sp.getComponents().length;
- assertTrue(components_2 == 0);
+ assertEquals(components_2, 0);
sp.getProject().build(IncrementalProjectBuilder.FULL_BUILD, null);
int components_3 = sp.getComponents().length;
assertEquals(components_1, components_3);
-
+
ResourcesUtils.setBuildAutomatically(auto);
} catch (CoreException e) {
JUnitUtils.fail(e.getMessage(), e);
}
}
-
-}
+}
\ No newline at end of file
15 years, 3 months
JBoss Tools SVN: r15603 - trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/refactoring.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2009-05-29 10:46:28 -0400 (Fri, 29 May 2009)
New Revision: 15603
Modified:
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/refactoring/SeamComponentRefactoringTest.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4351
Modified: trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/refactoring/SeamComponentRefactoringTest.java
===================================================================
--- trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/refactoring/SeamComponentRefactoringTest.java 2009-05-29 14:20:29 UTC (rev 15602)
+++ trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/refactoring/SeamComponentRefactoringTest.java 2009-05-29 14:46:28 UTC (rev 15603)
@@ -10,7 +10,6 @@
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.jst.j2ee.internal.common.classpath.J2EEComponentClasspathUpdater;
-import org.eclipse.ltk.core.refactoring.Change;
import org.eclipse.ltk.core.refactoring.CompositeChange;
import org.eclipse.ltk.core.refactoring.TextFileChange;
import org.eclipse.text.edits.MultiTextEdit;
@@ -121,10 +120,11 @@
}
private void renameComponent(ISeamProject seamProject, String componentName, String newName, List<TestChangeStructure> changeList) throws CoreException{
+ JobUtils.waitForIdle();
// Test before renaming
ISeamComponent component = seamProject.getComponent(componentName);
- assertNotNull(component);
- assertNull(seamProject.getComponent(newName));
+ assertNotNull("Can't load component " + componentName, component);
+ assertNull("There is unexisted component in seam project: " + newName, seamProject.getComponent(newName));
for(TestChangeStructure changeStructure : changeList){
IFile file = changeStructure.getProject().getFile(changeStructure.getFileName());
String content = null;
@@ -140,28 +140,28 @@
RenameComponentProcessor processor = new RenameComponentProcessor(component);
processor.setNewComponentName(newName);
CompositeChange rootChange = (CompositeChange)processor.createChange(new NullProgressMonitor());
-
+
for(int i = 0; i < rootChange.getChildren().length;i++){
TextFileChange fileChange = (TextFileChange)rootChange.getChildren()[i];
-
+
MultiTextEdit edit = (MultiTextEdit)fileChange.getEdit();
TestChangeStructure change = findChange(changeList, fileChange.getFile());
if(change != null){
- if(change.size() != edit.getChildrenSize()){
- System.out.println("File - "+fileChange.getFile().getName());
- System.out.println("Edit size - "+edit.getChildrenSize());
- }
+// if(change.size() != edit.getChildrenSize()){
+// System.out.println("File - "+fileChange.getFile().getName());
+// System.out.println("Edit size - "+edit.getChildrenSize());
+// }
assertEquals(change.size(), edit.getChildrenSize());
}
}
-
+
rootChange.perform(new NullProgressMonitor());
JobUtils.waitForIdle();
// Test results
- assertNull(seamProject.getComponent(componentName));
- assertNotNull(seamProject.getComponent(newName));
+ assertNull("There is unexisted component in seam project: " + componentName, seamProject.getComponent(componentName));
+ assertNotNull("Can't load component " + newName, seamProject.getComponent(newName));
for(TestChangeStructure changeStructure : changeList){
IFile file = changeStructure.getProject().getFile(changeStructure.getFileName());
String content = null;
15 years, 3 months
JBoss Tools SVN: r15602 - trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/refactoring.
by jbosstools-commits@lists.jboss.org
Author: dazarov
Date: 2009-05-29 10:20:29 -0400 (Fri, 29 May 2009)
New Revision: 15602
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/refactoring/RenameComponentProcessor.java
Log:
Test improvement
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/refactoring/RenameComponentProcessor.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/refactoring/RenameComponentProcessor.java 2009-05-29 14:17:49 UTC (rev 15601)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/refactoring/RenameComponentProcessor.java 2009-05-29 14:20:29 UTC (rev 15602)
@@ -197,24 +197,27 @@
}
private void renameJavaDeclaration(ISeamJavaComponentDeclaration javaDecl) throws CoreException{
- declarationFile = (IFile)javaDecl.getResource();
- if(declarationFile != null && !coreHelper.isJar(javaDecl)){
+ IFile file = (IFile)javaDecl.getResource();
+ if(file != null && !coreHelper.isJar(javaDecl)){
ITextSourceReference location = ((SeamComponentDeclaration)javaDecl).getLocationFor(ISeamXmlComponentDeclaration.NAME);
if(location != null && !isBadLocation(location)){
- TextFileChange change = getChange(declarationFile);
+ TextFileChange change = getChange(file);
TextEdit edit = new ReplaceEdit(location.getStartPosition(), location.getLength(), "\""+newName+"\""); //$NON-NLS-1$ //$NON-NLS-2$
change.addEdit(edit);
}
}
+ declarationFile = file;
}
private void renameXMLDeclaration(ISeamXmlComponentDeclaration xmlDecl){
- declarationFile = (IFile)xmlDecl.getResource();
- if(declarationFile != null && !coreHelper.isJar(xmlDecl)){
+ IFile file = (IFile)xmlDecl.getResource();
+ if(file != null && !coreHelper.isJar(xmlDecl)){
ITextSourceReference location = ((SeamComponentDeclaration)xmlDecl).getLocationFor(ISeamXmlComponentDeclaration.NAME);
if(location != null && !isBadLocation(location))
- changeXMLNode(location, declarationFile);
+ changeXMLNode(location, file);
}
+ if(declarationFile == null)
+ declarationFile = file;
}
private void scanJava(IFile file, String content){
15 years, 3 months
JBoss Tools SVN: r15601 - in trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces: resources/page and 3 other directories.
by jbosstools-commits@lists.jboss.org
Author: dmaliarevich
Date: 2009-05-29 10:17:49 -0400 (Fri, 29 May 2009)
New Revision: 15601
Added:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/page/
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/page/bkg-footer.png
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/page/bkg-header.png
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/page/page-basic.css
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/page/page-theme-simple.css
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesLayoutPanelTemplate.java
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesLayoutTemplate.java
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesPageTemplate.java
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesColumnTemplate.java
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesFileUploadTemplate.java
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesSubTableTemplate.java
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/util/RichFaces.java
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/templates/vpe-templates-richfaces.xml
Log:
https://jira.jboss.org/jira/browse/JBIDE-4381, templates for rich:layout, rich:layoutPanel, rich:page were added, code adjustment.
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/page/bkg-footer.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/page/bkg-footer.png
___________________________________________________________________
Name: svn:mime-type
+ image/png
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/page/bkg-header.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/page/bkg-header.png
___________________________________________________________________
Name: svn:mime-type
+ image/png
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/page/page-basic.css
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/page/page-basic.css (rev 0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/page/page-basic.css 2009-05-29 14:17:49 UTC (rev 15601)
@@ -0,0 +1,56 @@
+.rich-page {
+ font-size: 11px;
+ margin: auto 10px;
+ width: auto;
+ min-width: 750px;
+ text-align: left;
+}
+
+.rich-page-header {
+
+}
+
+.rich-page-header-content {
+
+}
+
+.rich-page-subheader {
+
+}
+
+.rich-page-content {
+
+}
+
+.rich-page-sidebar {
+ float: left;
+ position: relative;
+ width: 12.3077em;
+}
+
+.rich-page-main {
+ float: right;
+ margin-left: -30em;
+ width: 100%;
+}
+
+.rich-page-body {
+ float: none;
+ width: auto;
+ position: static;
+ margin-left: 13.3077em;
+}
+
+.rich-page-footer {
+ clear: both;
+}
+
+.rich-page-footer-content {
+
+}
+
+.rich-page-sidebar,.rich-page-body,.rich-page-footer {
+ color: #000000;
+ font-family: Arial, Verdana, sans-serif;
+ font-size: 11px;
+}
\ No newline at end of file
Property changes on: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/page/page-basic.css
___________________________________________________________________
Name: svn:mime-type
+ text/css
Name: svn:eol-style
+ native
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/page/page-theme-simple.css
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/page/page-theme-simple.css (rev 0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/page/page-theme-simple.css 2009-05-29 14:17:49 UTC (rev 15601)
@@ -0,0 +1,50 @@
+.rich-page-header {
+ min-height: 40px;
+ padding: 0 20px;
+ background-color: #EDEAE6;
+ background-image: url(bkg-header.png);
+ background-position: left top;
+ background-repeat: repeat-x;
+ border-bottom: 1px solid #FFFFFF;
+ color: #DFDCD5;
+}
+
+.rich-page-header-content {
+ color: #000000;
+ font-family: Arial, Verdana, sans-serif;
+ font-size: 11px;
+}
+
+.rich-page-subheader {
+ padding: 0 20px;
+ background-color: #EDEAE6;
+ border-bottom: 1px solid #FFFFFF;
+ color: #DFDCD5;
+}
+
+.rich-page-sidebar {
+ vertical-align: top;
+}
+
+.rich-page-content {
+ background-color: #FFFFFF;
+ border: 2px solid #C4C0B9;
+}
+
+.rich-page-main {
+ border-top: 2px solid #C4C0B9;
+}
+
+.rich-page-body {
+ vertical-align: top;
+}
+
+.rich-page-footer {
+ background-color: #C4C0B9;
+ background-image: url(bkg-footer.png);
+ background-position: left center;
+ background-repeat: repeat-x;
+ border-top: 1px solid #FFFFFF;
+ padding: 20px 0;
+ text-align: center;
+}
\ No newline at end of file
Property changes on: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/page/page-theme-simple.css
___________________________________________________________________
Name: svn:mime-type
+ text/css
Name: svn:eol-style
+ native
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesColumnTemplate.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesColumnTemplate.java 2009-05-29 14:04:37 UTC (rev 15600)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesColumnTemplate.java 2009-05-29 14:17:49 UTC (rev 15601)
@@ -147,7 +147,7 @@
public static nsIDOMElement getHeaderIcon(VpePageContext pageContext, Element column, nsIDOMDocument visualDocument) {
String sortable = ComponentUtil.getAttribute(column, RichFaces.ATTR_SORTABLE);
String sortBy = column.getAttribute(RichFaces.ATTR_SORT_BY);
- if (RichFaces.VAL_TRUE.equals(sortable) || sortBy != null) {
+ if (RichFaces.VALUE_TRUE.equals(sortable) || sortBy != null) {
nsIDOMElement img = visualDocument.createElement(HTML.TAG_IMG);
String sortIcon = column.getAttribute(RichFaces.ATTR_SORT_ICON);
if (sortIcon != null) {
@@ -166,7 +166,7 @@
public static boolean isBreakBefore(Node child) {
String breakBeforeVal = ((Element)child).getAttribute(RichFaces.ATTR_BREAK_BEFORE);
- boolean breakBefore = breakBeforeVal != null && breakBeforeVal.equalsIgnoreCase(RichFaces.VAL_TRUE);
+ boolean breakBefore = breakBeforeVal != null && breakBeforeVal.equalsIgnoreCase(RichFaces.VALUE_TRUE);
return breakBefore;
}
@@ -176,6 +176,6 @@
* @param column should be not {@code null}
*/
public static boolean isVisible(Element column) {
- return !RichFaces.VAL_FALSE.equals(column.getAttribute(RichFaces.ATTR_VISIBLE));
+ return !RichFaces.VALUE_FALSE.equals(column.getAttribute(RichFaces.ATTR_VISIBLE));
}
}
\ No newline at end of file
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesFileUploadTemplate.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesFileUploadTemplate.java 2009-05-29 14:04:37 UTC (rev 15600)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesFileUploadTemplate.java 2009-05-29 14:17:49 UTC (rev 15601)
@@ -252,7 +252,7 @@
private String uploadListClass = "rich-fileupload-list-overflow"; //$NON-NLS-1$
public StyleClasses(final Element sourceElement) {
- final boolean disabled = RichFaces.VAL_TRUE
+ final boolean disabled = RichFaces.VALUE_TRUE
.equalsIgnoreCase(sourceElement.getAttribute(RichFaces.ATTR_DISABLED));
final String styleAttrPostfix = disabled ? POSTFIX_DISABLED : POSTFIX_ENABLED;
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesLayoutPanelTemplate.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesLayoutPanelTemplate.java (rev 0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesLayoutPanelTemplate.java 2009-05-29 14:17:49 UTC (rev 15601)
@@ -0,0 +1,56 @@
+package org.jboss.tools.jsf.vpe.richfaces.template;
+
+import org.jboss.tools.jsf.vpe.richfaces.ComponentUtil;
+import org.jboss.tools.jsf.vpe.richfaces.template.util.RichFaces;
+import org.jboss.tools.vpe.editor.context.VpePageContext;
+import org.jboss.tools.vpe.editor.template.VpeAbstractTemplate;
+import org.jboss.tools.vpe.editor.template.VpeCreationData;
+import org.jboss.tools.vpe.editor.util.HTML;
+import org.mozilla.interfaces.nsIDOMDocument;
+import org.mozilla.interfaces.nsIDOMElement;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+
+public class RichFacesLayoutPanelTemplate extends VpeAbstractTemplate {
+
+ private static final String FLOAT_LEFT_STYLE = ";float: left;"; //$NON-NLS-1$
+ private static final String FLOAT_RIGHT_STYLE = ";float: right;"; //$NON-NLS-1$
+
+ /**
+ * Constructor
+ */
+ public RichFacesLayoutPanelTemplate() {
+ super();
+ }
+
+ public VpeCreationData create(VpePageContext pageContext, Node sourceNode,
+ nsIDOMDocument visualDocument) {
+ VpeCreationData creationData = null;
+ Element sourceElement = (Element)sourceNode;
+ nsIDOMElement mainDiv = visualDocument.createElement(HTML.TAG_DIV);
+ String style = sourceElement.getAttribute(HTML.ATTR_STYLE);
+ String width = sourceElement.getAttribute(HTML.ATTR_WIDTH);
+ String position = sourceElement.getAttribute(RichFaces.ATTR_POSITION);
+ if (ComponentUtil.isNotBlank(width)) {
+ mainDiv.setAttribute(HTML.ATTR_WIDTH, width);
+ style += ";width: " + width + ";"; //$NON-NLS-1$ //$NON-NLS-2$
+ }
+ if (RichFaces.VALUE_LEFT.equalsIgnoreCase(position)
+ || RichFaces.VALUE_CENTER.equalsIgnoreCase(position)) {
+ style += FLOAT_LEFT_STYLE;
+ } else if (RichFaces.VALUE_RIGHT.equalsIgnoreCase(position)) {
+ style += FLOAT_RIGHT_STYLE;
+ } else if (RichFaces.VALUE_BOTTOM.equalsIgnoreCase(position)) {
+ nsIDOMElement bottomDiv = visualDocument.createElement(HTML.TAG_DIV);
+ bottomDiv.setAttribute(HTML.ATTR_STYLE, "display: block; height: 0; clear: both; visibility: hidden;"); //$NON-NLS-1$
+ bottomDiv.appendChild(visualDocument.createTextNode(".")); //$NON-NLS-1$
+ mainDiv.appendChild(bottomDiv);
+ }
+ if (ComponentUtil.isNotBlank(style)) {
+ mainDiv.setAttribute(HTML.ATTR_STYLE, style);
+ }
+ creationData = new VpeCreationData(mainDiv);
+ return creationData;
+ }
+
+}
Property changes on: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesLayoutPanelTemplate.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Author Id Revision Date
Name: svn:eol-style
+ native
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesLayoutTemplate.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesLayoutTemplate.java (rev 0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesLayoutTemplate.java 2009-05-29 14:17:49 UTC (rev 15601)
@@ -0,0 +1,35 @@
+package org.jboss.tools.jsf.vpe.richfaces.template;
+
+import org.jboss.tools.jsf.vpe.richfaces.ComponentUtil;
+import org.jboss.tools.vpe.editor.context.VpePageContext;
+import org.jboss.tools.vpe.editor.template.VpeAbstractTemplate;
+import org.jboss.tools.vpe.editor.template.VpeCreationData;
+import org.jboss.tools.vpe.editor.util.HTML;
+import org.mozilla.interfaces.nsIDOMDocument;
+import org.mozilla.interfaces.nsIDOMElement;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+
+public class RichFacesLayoutTemplate extends VpeAbstractTemplate {
+
+ /**
+ * Constructor
+ */
+ public RichFacesLayoutTemplate() {
+ super();
+ }
+
+ public VpeCreationData create(VpePageContext pageContext, Node sourceNode,
+ nsIDOMDocument visualDocument) {
+ VpeCreationData creationData = null;
+ Element sourceElement = (Element)sourceNode;
+ nsIDOMElement mainDiv = visualDocument.createElement(HTML.TAG_DIV);
+ String style = sourceElement.getAttribute(HTML.ATTR_STYLE);
+ if (ComponentUtil.isNotBlank(style)) {
+ mainDiv.setAttribute(HTML.ATTR_STYLE, style);
+ }
+ creationData = new VpeCreationData(mainDiv);
+ return creationData;
+ }
+
+}
Property changes on: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesLayoutTemplate.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Author Id Revision Date
Name: svn:eol-style
+ native
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesPageTemplate.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesPageTemplate.java (rev 0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesPageTemplate.java 2009-05-29 14:17:49 UTC (rev 15601)
@@ -0,0 +1,302 @@
+package org.jboss.tools.jsf.vpe.richfaces.template;
+
+import org.jboss.tools.jsf.vpe.richfaces.ComponentUtil;
+import org.jboss.tools.jsf.vpe.richfaces.template.util.RichFaces;
+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.util.HTML;
+import org.mozilla.interfaces.nsIDOMDocument;
+import org.mozilla.interfaces.nsIDOMElement;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+
+public class RichFacesPageTemplate extends VpeAbstractTemplate {
+
+ private static final String CSS_BASIC_STYLE_PATH = "page/page-basic.css"; //$NON-NLS-1$
+ private static final String CSS_SIMPLE_THEME_STYLE_PATH = "page/page-theme_simple.css"; //$NON-NLS-1$
+ private static final String COMPONENT_NAME = "richFacesPage"; //$NON-NLS-1$
+
+// private static final String FACET_NAME_PAGE_HEADER = "pageHeader"; //$NON-NLS-1$
+ private static final String FACET_NAME_SUBHEADER = "subheader"; //$NON-NLS-1$
+ private static final String FACET_NAME_SIDEBAR = "sidebar"; //$NON-NLS-1$
+
+ private static final String CSS_PAGE = "rich-page"; //$NON-NLS-1$
+ private static final String CSS_PAGE_HEADER = "rich-page-header"; //$NON-NLS-1$
+ private static final String CSS_PAGE_HEADER_CONTENT = "rich-page-header-content"; //$NON-NLS-1$
+ private static final String CSS_PAGE_SUBHEADER = "rich-page-subheader"; //$NON-NLS-1$
+ private static final String CSS_PAGE_CONTENT = "rich-page-content"; //$NON-NLS-1$
+ private static final String CSS_PAGE_SIDEBAR = "rich-page-sidebar"; //$NON-NLS-1$
+ private static final String CSS_PAGE_MAIN = "rich-page-main"; //$NON-NLS-1$
+ private static final String CSS_PAGE_BODY = "rich-page-body"; //$NON-NLS-1$
+ private static final String CSS_PAGE_FOOTER = "rich-page-footer"; //$NON-NLS-1$
+ private static final String CSS_PAGE_FOOTER_CONTENT = "rich-page-footer-content"; //$NON-NLS-1$
+
+ /**
+ * Constructor
+ */
+ public RichFacesPageTemplate() {
+ super();
+ }
+
+ public VpeCreationData create(VpePageContext pageContext, Node sourceNode,
+ nsIDOMDocument visualDocument) {
+ VpeCreationData creationData = null;
+ Element sourceElement = (Element)sourceNode;
+
+ /*
+ * Adding default css file for rich:page component
+ */
+ ComponentUtil.setCSSLink(pageContext, CSS_BASIC_STYLE_PATH, COMPONENT_NAME);
+
+ /*
+ * Read rich:page's attributes
+ */
+ Attributes attrs = new Attributes(sourceElement);
+
+ /*
+ * Create divs' structure.
+ */
+ nsIDOMElement pageDiv = visualDocument.createElement(HTML.TAG_DIV);
+ nsIDOMElement pageContentDiv = visualDocument.createElement(HTML.TAG_DIV);
+ nsIDOMElement pageMainDiv = visualDocument.createElement(HTML.TAG_DIV);
+ nsIDOMElement pageBodyDiv = visualDocument.createElement(HTML.TAG_DIV);
+ nsIDOMElement pageHeaderDiv;
+ nsIDOMElement pageHeaderContentDiv;
+ nsIDOMElement pageSubHeaderDiv;
+ nsIDOMElement pageSidebarDiv;
+ nsIDOMElement pageFooterDiv;
+ nsIDOMElement pageFooterContentDiv;
+ creationData = new VpeCreationData(pageDiv);
+
+ /*
+ * Add basic style classes.
+ */
+ String styleClass = CSS_PAGE;
+ if (ComponentUtil.isNotBlank(attrs.getStyleClass())) {
+ styleClass += attrs.getStyleClass();
+ }
+ if (ComponentUtil.isNotBlank(attrs.getStyle())) {
+ pageDiv.setAttribute(HTML.ATTR_STYLE, attrs.getStyle());
+ }
+ pageDiv.setAttribute(HTML.ATTR_CLASS, styleClass);
+ pageContentDiv.setAttribute(HTML.ATTR_CLASS, CSS_PAGE_CONTENT);
+ pageMainDiv.setAttribute(HTML.ATTR_CLASS, CSS_PAGE_MAIN);
+ pageBodyDiv.setAttribute(HTML.ATTR_CLASS, CSS_PAGE_BODY);
+
+ /*
+ * 1)
+ * Encode page header facet,
+ * add header divs and classes
+ */
+ Element headerFacet = ComponentUtil.getFacet(sourceElement, RichFaces.NAME_FACET_HEADER);
+ if(headerFacet != null) {
+ pageHeaderDiv = visualDocument.createElement(HTML.TAG_DIV);
+ pageHeaderContentDiv = visualDocument.createElement(HTML.TAG_DIV);
+
+ pageHeaderDiv.setAttribute(HTML.ATTR_CLASS, CSS_PAGE_HEADER);
+ pageHeaderContentDiv.setAttribute(HTML.ATTR_CLASS, CSS_PAGE_HEADER_CONTENT);
+
+ pageHeaderDiv.appendChild(pageHeaderContentDiv);
+ pageDiv.appendChild(pageHeaderDiv);
+
+ VpeChildrenInfo headerInfo = new VpeChildrenInfo(pageHeaderContentDiv);
+ headerInfo.addSourceChild(headerFacet);
+ creationData.addChildrenInfo(headerInfo);
+ }
+
+ /*
+ * 2)
+ * Encode page subheader facet,
+ * add subheader divs and classes
+ */
+ Element subHeaderFacet = ComponentUtil.getFacet(sourceElement, FACET_NAME_SUBHEADER);
+ if(subHeaderFacet != null) {
+ pageSubHeaderDiv = visualDocument.createElement(HTML.TAG_DIV);
+ pageSubHeaderDiv.setAttribute(HTML.ATTR_CLASS, CSS_PAGE_SUBHEADER);
+ pageDiv.appendChild(pageSubHeaderDiv);
+
+ VpeChildrenInfo subHeaderInfo = new VpeChildrenInfo(pageSubHeaderDiv);
+ subHeaderInfo.addSourceChild(subHeaderFacet);
+ creationData.addChildrenInfo(subHeaderInfo);
+ }
+
+ /*
+ * 3)
+ * Nesting page content div.
+ */
+ pageDiv.appendChild(pageContentDiv);
+
+ /*
+ * 4)
+ * Encode page sidebar facet,
+ * add sidebar divs and classes
+ */
+ Element sidebarFacet = ComponentUtil.getFacet(sourceElement, FACET_NAME_SIDEBAR);
+ if(sidebarFacet != null) {
+ pageSidebarDiv = visualDocument.createElement(HTML.TAG_DIV);
+ pageSidebarDiv.setAttribute(HTML.ATTR_CLASS, CSS_PAGE_SIDEBAR);
+ pageContentDiv.appendChild(pageSidebarDiv);
+
+ VpeChildrenInfo sidebarInfo = new VpeChildrenInfo(pageSidebarDiv);
+ sidebarInfo.addSourceChild(sidebarFacet);
+ creationData.addChildrenInfo(sidebarInfo);
+ }
+
+ /*
+ * 5)
+ * Nesting page's main and body divs.
+ * Encode all children into page body div.
+ */
+ pageContentDiv.appendChild(pageMainDiv);
+ pageMainDiv.appendChild(pageBodyDiv);
+ VpeChildrenInfo pageBodyDivInfo = new VpeChildrenInfo(pageBodyDiv);
+ for (Node child : ComponentUtil.getChildren(sourceElement, true)) {
+ pageBodyDivInfo.addSourceChild(child);
+ }
+ creationData.addChildrenInfo(pageBodyDivInfo);
+
+ /*
+ * 6)
+ * Encode page footer facet,
+ * add footer divs and classes
+ */
+ Element footerFacet = ComponentUtil.getFacet(sourceElement, RichFaces.NAME_FACET_FOOTER);
+ if(footerFacet != null) {
+ pageFooterDiv = visualDocument.createElement(HTML.TAG_DIV);
+ pageFooterContentDiv = visualDocument.createElement(HTML.TAG_DIV);
+
+ pageFooterDiv.setAttribute(HTML.ATTR_CLASS, CSS_PAGE_FOOTER);
+ pageFooterContentDiv.setAttribute(HTML.ATTR_CLASS, CSS_PAGE_FOOTER_CONTENT);
+
+ pageFooterDiv.appendChild(pageFooterContentDiv);
+ pageDiv.appendChild(pageFooterDiv);
+
+ VpeChildrenInfo footerInfo = new VpeChildrenInfo(pageFooterContentDiv);
+ footerInfo.addSourceChild(footerFacet);
+ creationData.addChildrenInfo(footerInfo);
+ }
+
+ return creationData;
+ }
+
+ class Attributes {
+
+ /*
+ * rich:page attributes for groups
+ */
+ private final String BODY_CLASS = "bodyClass"; //$NON-NLS-1$
+ private final String CONTENT_CLASS = "contentClass"; //$NON-NLS-1$
+ private final String FOOTER_CLASS = "footerClass"; //$NON-NLS-1$
+ private final String HEADER_CLASS = "headerClass"; //$NON-NLS-1$
+ private final String LANG = "lang"; //$NON-NLS-1$
+ private final String MARKUP_TYPE = "markupType"; //$NON-NLS-1$
+ private final String NAMESPACE = "namespace"; //$NON-NLS-1$
+ private final String PAGE_TITLE = "pageTitle"; //$NON-NLS-1$
+ private final String SIDERBAR_CLASS = "siderbarClass"; //$NON-NLS-1$
+ private final String SIDERBAR_POSITION = "siderbarPosition"; //$NON-NLS-1$
+ private final String SIDERBAR_WIDTH = "siderbarWidth"; //$NON-NLS-1$
+ private final String THEME = "theme"; //$NON-NLS-1$
+
+ private String bodyClass;
+ private String contentClass;
+ private String footerClass;
+ private String headerClass;
+ private String lang;
+ private String markupType;
+ private String namespace;
+ private String pageTitle;
+ private String siderbarClass;
+ private String siderbarPosition;
+ private String siderbarWidth;
+ private String style;
+ private String styleClass;
+ private String theme;
+ private String width;
+
+ public Attributes(final Element sourceElement) {
+ bodyClass = sourceElement.getAttribute(BODY_CLASS);
+ contentClass = sourceElement.getAttribute(CONTENT_CLASS);
+ footerClass = sourceElement.getAttribute(FOOTER_CLASS);
+ headerClass = sourceElement.getAttribute(HEADER_CLASS);
+ lang = sourceElement.getAttribute(LANG);
+ markupType = sourceElement.getAttribute(MARKUP_TYPE);
+ namespace = sourceElement.getAttribute(NAMESPACE);
+ pageTitle = sourceElement.getAttribute(PAGE_TITLE);
+ siderbarClass = sourceElement.getAttribute(SIDERBAR_CLASS);
+ siderbarPosition = sourceElement.getAttribute(SIDERBAR_POSITION);
+ siderbarWidth = sourceElement.getAttribute(SIDERBAR_WIDTH);
+ style = sourceElement.getAttribute(HTML.ATTR_STYLE);
+ styleClass = sourceElement.getAttribute(RichFaces.ATTR_STYLE_CLASS);
+ theme = sourceElement.getAttribute(THEME);
+ width = sourceElement.getAttribute(HTML.ATTR_WIDTH);
+ }
+
+
+ public String getLang() {
+ return lang;
+ }
+
+ public void setLang(String lang) {
+ this.lang = lang;
+ }
+
+ public String getBodyClass() {
+ return bodyClass;
+ }
+
+ public String getContentClass() {
+ return contentClass;
+ }
+
+ public String getFooterClass() {
+ return footerClass;
+ }
+
+ public String getHeaderClass() {
+ return headerClass;
+ }
+
+ public String getMarkupType() {
+ return markupType;
+ }
+
+ public String getNamespace() {
+ return namespace;
+ }
+
+ public String getPageTitle() {
+ return pageTitle;
+ }
+
+ public String getSiderbarClass() {
+ return siderbarClass;
+ }
+
+ public String getSiderbarPosition() {
+ return siderbarPosition;
+ }
+
+ public String getSiderbarWidth() {
+ return siderbarWidth;
+ }
+
+ public String getStyle() {
+ return style;
+ }
+
+ public String getStyleClass() {
+ return styleClass;
+ }
+
+ public String getTheme() {
+ return theme;
+ }
+
+ public String getWidth() {
+ return width;
+ }
+ }
+
+}
Property changes on: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesPageTemplate.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Author Id Revision Date
Name: svn:eol-style
+ native
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesSubTableTemplate.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesSubTableTemplate.java 2009-05-29 14:04:37 UTC (rev 15600)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesSubTableTemplate.java 2009-05-29 14:17:49 UTC (rev 15601)
@@ -99,7 +99,7 @@
String nodeName = child.getNodeName();
if (nodeName.endsWith(':' + RichFaces.TAG_COLUMN) ||
nodeName.endsWith(':' + RichFaces.TAG_COLUMNS)) {
- final boolean breakBefore = RichFaces.VAL_TRUE.equals( ((Element)child).getAttribute(RichFaces.ATTR_BREAK_BEFORE) );
+ final boolean breakBefore = RichFaces.VALUE_TRUE.equals( ((Element)child).getAttribute(RichFaces.ATTR_BREAK_BEFORE) );
if (breakBefore) {
curRow++;
curColumn = 0;
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/util/RichFaces.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/util/RichFaces.java 2009-05-29 14:04:37 UTC (rev 15600)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/util/RichFaces.java 2009-05-29 14:17:49 UTC (rev 15601)
@@ -27,27 +27,20 @@
private RichFaces() {
}
- /** The Constant ATTR_ADD_CONTROL_LABEL. */
public static final String ATTR_ADD_CONTROL_LABEL = "addControlLabel"; //$NON-NLS-1$
public static final String ATTR_ALIGN = "align"; //$NON-NLS-1$
public static final String ATTR_BREAK_BEFORE = "breakBefore"; //$NON-NLS-1$
-
public static final String ATTR_CAPTION_CLASS = "captionClass"; //$NON-NLS-1$
public static final String ATTR_CAPTION_STYLE = "captionStyle"; //$NON-NLS-1$
- /** The Constant ATTR_COLUMN_CLASSES. */
public static final String ATTR_COLUMN_CLASSES = "columnClasses"; //$NON-NLS-1$
public static final String ATTR_COLUMNS = "columns"; //$NON-NLS-1$
public static final String ATTR_COLUMNS_WIDTH = "columnsWidth"; //$NON-NLS-1$
-
public static final String ATTR_BUTTON_ICON = "buttonIcon"; //$NON-NLS-1$
public static final String ATTR_BUTTON_ICON_DISABLED = "buttonIconDisabled"; //$NON-NLS-1$
public static final String ATTR_BUTTON_CLASS = "buttonClass"; //$NON-NLS-1$
public static final String ATTR_SHOW_INPUT = "showInput"; //$NON-NLS-1$
public static final String ATTR_LOCALE = "locale"; //$NON-NLS-1$
-
- /** The Constant ATTR_CONTROLS_TYPE. */
public static final String ATTR_CONTROLS_TYPE = "controlsType"; //$NON-NLS-1$
- /** The Constant ATTR_DEFAULT_LABEL. */
public static final String ATTR_DEFAULT_LABEL = "defaultLabel"; //$NON-NLS-1$
public static final String ATTR_DIRECTION = "direction"; //$NON-NLS-1$
public static final String ATTR_JOINT_POINT = "jointPoint"; //$NON-NLS-1$
@@ -55,40 +48,31 @@
public static final String ATTR_ELEMENTS = "elements"; //$NON-NLS-1$
public static final String ATTR_FOOTER_CLASS = "footerClass"; //$NON-NLS-1$
public static final String ATTR_HEADER_CLASS = "headerClass"; //$NON-NLS-1$
- /** The Constant ATTR_INPUT_CLASS. */
public static final String ATTR_INPUT_CLASS = "inputClass"; //$NON-NLS-1$
- /** The Constant ATTR_INPUT_SIZE. */
public static final String ATTR_INPUT_SIZE = "inputSize"; //$NON-NLS-1$
- /** The Constant ATTR_INPUT_STYLE. */
public static final String ATTR_INPUT_STYLE = "inputStyle"; //$NON-NLS-1$
public static final String ATTR_LIST_HEIGHT = "listHeight"; //$NON-NLS-1$
public static final String ATTR_LIST_WIDTH = "listWidth"; //$NON-NLS-1$
- /** The Constant ATTR_NAME. */
public static final String ATTR_NAME = "name"; //$NON-NLS-1$
public static final String ATTR_POPUP = "popup";//$NON-NLS-1$
public static final String ATTR_ROWS = "rows"; //$NON-NLS-1$
public static final String ATTR_ROW_CLASSES = "rowClasses"; //$NON-NLS-1$
public static final String ATTR_SELECT_ITEM_LABEL = "itemLabel"; //$NON-NLS-1$
public static final String ATTR_SELECT_ITEM_VALUE = "itemValue"; //$NON-NLS-1$
- /** The Constant ATTR_SHOW_BUTTON_LABELS. */
public static final String ATTR_SHOW_BUTTON_LABELS = "showButtonLabels"; //$NON-NLS-1$
public static final String ATTR_SORT_BY = "sortBy"; //$NON-NLS-1$
public static final String ATTR_SORT_ICON = "sortIcon"; //$NON-NLS-1$
public static final String ATTR_SORTABLE = "sortable"; //$NON-NLS-1$
- /** The Constant ATTR_STYLE. */
public static final String ATTR_STYLE = "style"; //$NON-NLS-1$
- /** The Constant ATTR_STYLE_CLASS. */
public static final String ATTR_STYLE_CLASS = "styleClass"; //$NON-NLS-1$
- /** The Constant ATTR_VALUE. */
public static final String ATTR_VALUE = "value"; //$NON-NLS-1$
public static final String ATTR_VISIBLE = "visible"; //$NON-NLS-1$
- /** The Constant ATTR_WIDTH. */
public static final String ATTR_WIDTH = "width"; //$NON-NLS-1$
public static final String ATTR_HEIGHT = "height"; //$NON-NLS-1$
-
public static final String ATTR_HORIZONTAL_OFFSET = "horizontalOffset"; //$NON-NLS-1$
public static final String ATTR_VERTICAL_OFFSET = "verticalOffset"; //$NON-NLS-1$
public static final String ATTR_ZINDEX = "zindex"; //$NON-NLS-1$
+ public static final String ATTR_POSITION = "position"; //$NON-NLS-1$
/** FACETS NAMES **/
public static final String NAME_FACET_CAPTION = "caption"; //$NON-NLS-1$
@@ -99,12 +83,16 @@
public static final String TAG_COLUMN = "column"; //$NON-NLS-1$
public static final String TAG_COLUMN_GROUP = "columnGroup"; //$NON-NLS-1$
public static final String TAG_COLUMNS = "columns"; //$NON-NLS-1$
- /** The Constant TAG_FACET. */
public static final String TAG_FACET = "facet"; //$NON-NLS-1$
public static final String TAG_SUB_TABLE = "subTable"; //$NON-NLS-1$
- public static final String VAL_TRUE = "true"; //$NON-NLS-1$
- public static final String VAL_FALSE = "false"; //$NON-NLS-1$
+ public static final String VALUE_TRUE = "true"; //$NON-NLS-1$
+ public static final String VALUE_FALSE = "false"; //$NON-NLS-1$
+ public static final String VALUE_LEFT = "left"; //$NON-NLS-1$
+ public static final String VALUE_RIGHT = "right"; //$NON-NLS-1$
+ public static final String VALUE_TOP = "top"; //$NON-NLS-1$
+ public static final String VALUE_BOTTOM = "bottom"; //$NON-NLS-1$
+ public static final String VALUE_CENTER = "center"; //$NON-NLS-1$
private static VpeExpression exprColumnClasses = null;
/**
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/templates/vpe-templates-richfaces.xml
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/templates/vpe-templates-richfaces.xml 2009-05-29 14:04:37 UTC (rev 15600)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/templates/vpe-templates-richfaces.xml 2009-05-29 14:17:49 UTC (rev 15601)
@@ -755,4 +755,24 @@
</vpe:template>
</vpe:if>
</vpe:tag>
+
+ <!-- Since RichFaces 3.3.1 -->
+ <vpe:tag name="rich:page" case-sensitive="yes">
+ <vpe:template children="yes" modify="no"
+ class="org.jboss.tools.jsf.vpe.richfaces.template.RichFacesPageTemplate">
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="rich:layout" case-sensitive="yes">
+ <vpe:template children="yes" modify="no"
+ class="org.jboss.tools.jsf.vpe.richfaces.template.RichFacesLayoutTemplate">
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="rich:layoutPanel" case-sensitive="yes">
+ <vpe:template children="yes" modify="no"
+ class="org.jboss.tools.jsf.vpe.richfaces.template.RichFacesLayoutPanelTemplate">
+ </vpe:template>
+ </vpe:tag>
+
</vpe:templates>
15 years, 3 months
JBoss Tools SVN: r15600 - trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/refactoring.
by jbosstools-commits@lists.jboss.org
Author: dazarov
Date: 2009-05-29 10:04:37 -0400 (Fri, 29 May 2009)
New Revision: 15600
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/refactoring/RenameComponentProcessor.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-1077
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/refactoring/RenameComponentProcessor.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/refactoring/RenameComponentProcessor.java 2009-05-29 13:53:46 UTC (rev 15599)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/refactoring/RenameComponentProcessor.java 2009-05-29 14:04:37 UTC (rev 15600)
@@ -494,10 +494,7 @@
}
private boolean isBadLocation(ITextSourceReference location){
- if(location.getStartPosition() == 0 && location.getLength() == 0)
- return true;
- else
- return false;
+ return location.getStartPosition() == 0 && location.getLength() == 0;
}
private void changeXMLNode(ITextSourceReference location, IFile file){
15 years, 3 months