JBoss Tools SVN: r14517 - trunk/jsf/plugins/org.jboss.tools.jsf.vpe.seam/src/org/jboss/tools/jsf/vpe/seam/template.
by jbosstools-commits@lists.jboss.org
Author: dmaliarevich
Date: 2009-04-06 10:16:22 -0400 (Mon, 06 Apr 2009)
New Revision: 14517
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.seam/src/org/jboss/tools/jsf/vpe/seam/template/SeamFormattedTextTemplate.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4104, NPE was fixed.
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.seam/src/org/jboss/tools/jsf/vpe/seam/template/SeamFormattedTextTemplate.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.seam/src/org/jboss/tools/jsf/vpe/seam/template/SeamFormattedTextTemplate.java 2009-04-06 14:16:18 UTC (rev 14516)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.seam/src/org/jboss/tools/jsf/vpe/seam/template/SeamFormattedTextTemplate.java 2009-04-06 14:16:22 UTC (rev 14517)
@@ -18,6 +18,7 @@
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.nsIComponentManager;
import org.mozilla.interfaces.nsIDOMDocument;
import org.mozilla.interfaces.nsIDOMNode;
@@ -37,7 +38,7 @@
*/
public class SeamFormattedTextTemplate extends VpeAbstractTemplate {
- private static final String CID_DOMPARSER = "@mozilla.org/xmlextras/domparser;1";
+ private static final String CID_DOMPARSER = "@mozilla.org/xmlextras/domparser;1"; //$NON-NLS-1$
/**
* component manager
@@ -58,49 +59,58 @@
* @return The information on the created node of the visual tree.
*/
public VpeCreationData create(VpePageContext pageContext, Node sourceNode,
- nsIDOMDocument visualDocument) {
+ nsIDOMDocument visualDocument) {
- Element sourceElement = (Element) sourceNode;
- String valueT = sourceElement.getAttribute("value");
- // complex test case:
- //Reader r = new InputStreamReader( SeamFormattedTextTemplate.class.getResourceAsStream("SeamTextTest2.txt") );
- StringReader r = new StringReader(valueT);
- SeamTextLexer lexer = new SeamTextLexer(r);
- SeamTextParser parser = new SeamTextParser(lexer);
- try {
- parser.startRule();
- } catch (RecognitionException e) {
- SeamTemplatesActivator.getPluginLog().logError(e);
- } catch (TokenStreamException e) {
- SeamTemplatesActivator.getPluginLog().logError(e);
+ Element sourceElement = (Element) sourceNode;
+ /*
+ * Fixes https://jira.jboss.org/jira/browse/JBIDE-4104
+ * When there is no value attribute string reader
+ * will be created with empty value.
+ */
+ String valueT = ""; //$NON-NLS-1$
+ if (sourceElement.hasAttribute(HTML.ATTR_VALUE)) {
+ valueT = sourceElement.getAttribute(HTML.ATTR_VALUE);
+ }
+
+ StringReader r = new StringReader(valueT);
+ SeamTextLexer lexer = new SeamTextLexer(r);
+ SeamTextParser parser = new SeamTextParser(lexer);
+ try {
+ parser.startRule();
+ } catch (RecognitionException e) {
+ SeamTemplatesActivator.getPluginLog().logError(e);
+ } catch (TokenStreamException e) {
+ SeamTemplatesActivator.getPluginLog().logError(e);
+ }
+
+ nsIDOMParser parserDom = parserDom = (nsIDOMParser) getComponentManager()
+ .createInstanceByContractID(CID_DOMPARSER, null,
+ nsIDOMParser.NS_IDOMPARSER_IID);
+
+ String strDoc = "<HTML><BODY>" + parser.toString() + "</BODY></HTML>"; //$NON-NLS-1$ //$NON-NLS-2$
+ nsIDOMDocument domDoc = parserDom.parseFromString(strDoc,
+ "application/xhtml+xml"); //$NON-NLS-1$
+ nsIDOMNode patronItem = null, nodeTmp = null;
+ nsIDOMNodeList list = null;
+ if (null != domDoc.getDocumentElement()) {
+ list = domDoc.getDocumentElement().getChildNodes();
+ long i = 0;
+ for (; i < list.getLength(); i++) {
+ nodeTmp = list.item(i);
+ if (HTML.TAG_BODY.equalsIgnoreCase(nodeTmp.getNodeName())) {
+ patronItem = nodeTmp.cloneNode(true);
+ break;
+ }
}
-
- nsIDOMParser parserDom = parserDom = (nsIDOMParser)getComponentManager().
- createInstanceByContractID(CID_DOMPARSER, null, nsIDOMParser.NS_IDOMPARSER_IID);
-
- String strDoc = "<HTML><BODY>" + parser.toString() + "</BODY></HTML>";
- nsIDOMDocument domDoc = parserDom.parseFromString(strDoc, "application/xhtml+xml");
- nsIDOMNode patronItem = null, nodeTmp = null;
- nsIDOMNodeList list = null;
- if ( null != domDoc.getDocumentElement()) {
- list = domDoc.getDocumentElement().getChildNodes();
- long i = 0;
- for (; i < list.getLength(); i++) {
- nodeTmp = list.item(i);
- if ("BODY".equalsIgnoreCase(nodeTmp.getNodeName())) {
- patronItem = nodeTmp.cloneNode(true);
- break;
- }
- }
- }
- if (null != patronItem) {
- list = patronItem.getChildNodes();
- //mainItem = visualDocument.createElement("DIV");
- patronItem = visualDocument.createElement("SPAN");
- createCopyChildren(visualDocument, patronItem, list);
- }
- VpeCreationData creationData = new VpeCreationData(patronItem);
- return creationData;
+ }
+ if (null != patronItem) {
+ list = patronItem.getChildNodes();
+ // mainItem = visualDocument.createElement("DIV");
+ patronItem = visualDocument.createElement(HTML.TAG_SPAN);
+ createCopyChildren(visualDocument, patronItem, list);
+ }
+ VpeCreationData creationData = new VpeCreationData(patronItem);
+ return creationData;
}
public void createCopyChildren(nsIDOMDocument visualDocument,
@@ -111,11 +121,11 @@
nodeTmp = listCopyChildren.item(i);
// remark: cloneNode true/false - is not suitable function here
//nodeTmp2 = nodeTmp.cloneNode(false);
- if (nodeTmp.getNodeName().startsWith("#text")) {
+ if (nodeTmp.getNodeName().startsWith("#text")) { //$NON-NLS-1$
nodeTmp2 = visualDocument.createTextNode(nodeTmp.getNodeValue());
}
else {
- if (!nodeTmp.getNodeName().startsWith("#")) {
+ if (!nodeTmp.getNodeName().startsWith("#")) { //$NON-NLS-1$
nodeTmp2 = visualDocument.createElement(nodeTmp.getNodeName());
}
}
15 years, 9 months
JBoss Tools SVN: r14516 - trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components.
by jbosstools-commits@lists.jboss.org
Author: dmaliarevich
Date: 2009-04-06 10:16:18 -0400 (Mon, 06 Apr 2009)
New Revision: 14516
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/formattedText.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/formattedText.xhtml.xml
Log:
https://jira.jboss.org/jira/browse/JBIDE-4104, NPE was fixed.
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/formattedText.xhtml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/formattedText.xhtml 2009-04-06 11:52:10 UTC (rev 14515)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/formattedText.xhtml 2009-04-06 14:16:18 UTC (rev 14516)
@@ -6,6 +6,10 @@
<head>
</head>
<body>
- <s:formattedText value="#{blog.text}" id="id1"/>
+ <s:formattedText value="#{blog.text}" id="id1"/>
+ <s:formattedText id="id2">
+ It's easy to make *emphasis*, |monospace|,~deleted text~, super^scripts^ or _underlines_.
+ </s:formattedText>
+ <s:formattedText id="id3" value="It's easy to make *emphasis*, |monospace|,~deleted text~, super^scripts^ or _underlines_." />
</body>
</html>
\ No newline at end of file
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/formattedText.xhtml.xml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/formattedText.xhtml.xml 2009-04-06 11:52:10 UTC (rev 14515)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/formattedText.xhtml.xml 2009-04-06 14:16:18 UTC (rev 14516)
@@ -1,12 +1,50 @@
<tests>
<test id="id1">
- <SPAN>
- <OL>
- <LI>
- {blog.text}
+ <SPAN>
+ <OL>
+ <LI>
+ {blog.text}
</LI>
- </OL>
- <BR VPE:PSEUDO-ELEMENT="yes" STYLE="font-style: italic; color: green; -moz-user-modify: read-only;"/>
- </SPAN>
+ </OL>
+ <BR VPE:PSEUDO-ELEMENT="yes"
+ STYLE="font-style: italic; color: green; -moz-user-modify: read-only;" />
+ </SPAN>
</test>
+ <test id="id2">
+ <SPAN>
+ <SPAN CLASS="vpe-text">
+ It's easy to make *emphasis*, |monospace|,~deleted text~, super^scripts^ or _underlines_.
+ </SPAN>
+ </SPAN>
+ </test>
+
+ <test id="id3">
+ <SPAN>
+ <P>
+ It's easy to make
+ <B>
+ emphasis
+ </B>
+ ,
+ <TT>
+ monospace
+ </TT>
+ ,
+ <DEL>
+ deleted text
+ </DEL>
+ , super
+ <SUP>
+ scripts
+ </SUP>
+ or
+ <U>
+ underlines
+ </U>
+ .
+ </P>
+ <BR VPE:PSEUDO-ELEMENT="yes"
+ STYLE="font-style: italic; color: green; -moz-user-modify: read-only;" />
+ </SPAN>
+ </test>
</tests>
\ No newline at end of file
15 years, 9 months
JBoss Tools SVN: r14515 - 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-04-06 07:52:10 -0400 (Mon, 06 Apr 2009)
New Revision: 14515
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-04-06 09:19:15 UTC (rev 14514)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/refactoring/RenameComponentProcessor.java 2009-04-06 11:52:10 UTC (rev 14515)
@@ -34,6 +34,7 @@
import org.eclipse.ltk.core.refactoring.participants.SharableParticipants;
import org.eclipse.text.edits.ReplaceEdit;
import org.eclipse.text.edits.TextEdit;
+import org.jboss.tools.common.model.util.EclipseJavaUtil;
import org.jboss.tools.common.model.util.EclipseResourceUtil;
import org.jboss.tools.seam.core.ISeamComponent;
import org.jboss.tools.seam.core.ISeamProject;
@@ -43,7 +44,7 @@
* @author Alexey Kazakov
*/
public class RenameComponentProcessor extends RenameProcessor {
- private static final String ANNOTATION_NAME = "Name";//"org.jboss.seam.annotations.Name";
+ private static final String ANNOTATION_NAME = "org.jboss.seam.annotations.Name";
private IFile file;
private ISeamComponent component;
@@ -88,7 +89,7 @@
ICompilationUnit unit = getCompilationUnit(file);
for(IType type : unit.getAllTypes()){
for(IAnnotation annotation : type.getAnnotations()){
- if(annotation.getElementName().equals(ANNOTATION_NAME))
+ if(EclipseJavaUtil.resolveType(type, annotation.getElementName()).equals(ANNOTATION_NAME))
return annotation;
}
}
15 years, 9 months
JBoss Tools SVN: r14514 - trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide.
by jbosstools-commits@lists.jboss.org
Author: mareshkau
Date: 2009-04-06 05:19:15 -0400 (Mon, 06 Apr 2009)
New Revision: 14514
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2505Test.java
Log:
Fixing errors in junit tests
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2505Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2505Test.java 2009-04-06 08:43:52 UTC (rev 14513)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2505Test.java 2009-04-06 09:19:15 UTC (rev 14514)
@@ -37,7 +37,9 @@
*
* @throws Throwable
*/
- public void testCursorForJSPElements() throws Throwable {
+ //we process selections only with reasons, but when we select programticly,
+ //we get exception with selection no reason
+ public void _testCursorForJSPElements() throws Throwable {
// wait
TestUtil.waitForJobs();
// set exception
15 years, 9 months
JBoss Tools SVN: r14513 - trunk/vpe/plugins/org.jboss.tools.vpe.ui.palette/src/org/jboss/tools/vpe/ui/palette.
by jbosstools-commits@lists.jboss.org
Author: yradtsevich
Date: 2009-04-06 04:43:52 -0400 (Mon, 06 Apr 2009)
New Revision: 14513
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe.ui.palette/src/org/jboss/tools/vpe/ui/palette/messages.properties
Log:
JBIDE-4044: Review unused strings as reported by "Find Broken Externalized Strings"
https://jira.jboss.org/jira/browse/JBIDE-4044
- a comment added
Modified: trunk/vpe/plugins/org.jboss.tools.vpe.ui.palette/src/org/jboss/tools/vpe/ui/palette/messages.properties
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe.ui.palette/src/org/jboss/tools/vpe/ui/palette/messages.properties 2009-04-06 06:25:14 UTC (rev 14512)
+++ trunk/vpe/plugins/org.jboss.tools.vpe.ui.palette/src/org/jboss/tools/vpe/ui/palette/messages.properties 2009-04-06 08:43:52 UTC (rev 14513)
@@ -1,3 +1,4 @@
+#BEGIN all these properties are referenced from PaletteUIMessages.java
PALETTE_EDITOR=Palette Editor
SHOW_HIDE_TABS=Show/Hide tabs
SHOW_HIDE=Show/Hide
@@ -3,2 +4,3 @@
IMPORT_TLD=Import TLD
IMPORT=Import
+#END all these properties are referenced from PaletteUIMessages.java
15 years, 9 months
JBoss Tools SVN: r14512 - in trunk: as/plugins/org.jboss.ide.eclipse.as.classpath.ui/src/org/jboss/ide/eclipse/as/classpath/ui/jee and 2 other directories.
by jbosstools-commits@lists.jboss.org
Author: sflanigan
Date: 2009-04-06 02:25:14 -0400 (Mon, 06 Apr 2009)
New Revision: 14512
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/src/org/jboss/ide/eclipse/as/classpath/ui/ClasspathUIMessages.properties
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/src/org/jboss/ide/eclipse/as/classpath/ui/ClasspathUIPlugin.java
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/src/org/jboss/ide/eclipse/as/classpath/ui/Messages.java
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/src/org/jboss/ide/eclipse/as/classpath/ui/jee/ClasspathContainerPage.java
trunk/esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/tools/esb/project/ui/messages/JBossESBUI.properties
trunk/esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/tools/esb/project/ui/messages/JBossESBUIMessages.java
trunk/esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/tools/esb/project/ui/preference/controls/JBossRuntimeListFieldEditor.java
Log:
JBIDE-3557 Externalise English strings (eliminating string concatenation)
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/src/org/jboss/ide/eclipse/as/classpath/ui/ClasspathUIMessages.properties
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/src/org/jboss/ide/eclipse/as/classpath/ui/ClasspathUIMessages.properties 2009-04-06 00:52:28 UTC (rev 14511)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/src/org/jboss/ide/eclipse/as/classpath/ui/ClasspathUIMessages.properties 2009-04-06 06:25:14 UTC (rev 14512)
@@ -1,6 +1,5 @@
-jeeClasspathAdding=Adding
-jeeClasspathBody1=Click finish to continue adding
-jeeClasspathBody2= to your project's classpath.
+jeeClasspathAdding=Adding {0}
+jeeClasspathBody=Click finish to continue adding {0} to your project's classpath.
jeeClasspathDescription=These libraries include the API and Source for the chosen JEE version.
ejb3ClasspathPageTitle=JBoss EJB 3.0 Libraries
ejb3ClasspathPageDescription=Add EJB 3.0 Libraries from one of the declared servers.
\ No newline at end of file
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/src/org/jboss/ide/eclipse/as/classpath/ui/ClasspathUIPlugin.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/src/org/jboss/ide/eclipse/as/classpath/ui/ClasspathUIPlugin.java 2009-04-06 00:52:28 UTC (rev 14511)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/src/org/jboss/ide/eclipse/as/classpath/ui/ClasspathUIPlugin.java 2009-04-06 06:25:14 UTC (rev 14512)
@@ -34,7 +34,7 @@
public class ClasspathUIPlugin extends AbstractUIPlugin {
// The plug-in ID
- public static final String PLUGIN_ID = "org.jboss.ide.eclipse.as.classpath.ui";
+ public static final String PLUGIN_ID = "org.jboss.ide.eclipse.as.classpath.ui"; //$NON-NLS-1$
// The shared instance
private static ClasspathUIPlugin plugin;
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/src/org/jboss/ide/eclipse/as/classpath/ui/Messages.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/src/org/jboss/ide/eclipse/as/classpath/ui/Messages.java 2009-04-06 00:52:28 UTC (rev 14511)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/src/org/jboss/ide/eclipse/as/classpath/ui/Messages.java 2009-04-06 06:25:14 UTC (rev 14512)
@@ -25,12 +25,11 @@
public class Messages {
public static String jeeClasspathAdding;
- public static String jeeClasspathBody1;
- public static String jeeClasspathBody2;
+ public static String jeeClasspathBody;
public static String jeeClasspathDescription;
public static String ejb3ClasspathPageTitle;
public static String ejb3ClasspathPageDescription;
static {
- NLS.initializeMessages(ClasspathUIPlugin.PLUGIN_ID + ".ClasspathUIMessages", Messages.class);
+ NLS.initializeMessages(ClasspathUIPlugin.PLUGIN_ID + ".ClasspathUIMessages", Messages.class); //$NON-NLS-1$
}
}
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/src/org/jboss/ide/eclipse/as/classpath/ui/jee/ClasspathContainerPage.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/src/org/jboss/ide/eclipse/as/classpath/ui/jee/ClasspathContainerPage.java 2009-04-06 00:52:28 UTC (rev 14511)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/src/org/jboss/ide/eclipse/as/classpath/ui/jee/ClasspathContainerPage.java 2009-04-06 06:25:14 UTC (rev 14512)
@@ -27,6 +27,7 @@
import org.eclipse.jdt.internal.ui.JavaPluginImages;
import org.eclipse.jdt.ui.wizards.IClasspathContainerPage;
import org.eclipse.jface.wizard.WizardPage;
+import org.eclipse.osgi.util.NLS;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
@@ -50,7 +51,7 @@
super(PAGE_NAME);
this.containerId = id;
this.description = description;
- this.setTitle(Messages.jeeClasspathAdding + description);
+ this.setTitle(NLS.bind(Messages.jeeClasspathAdding, description));
this.setDescription(Messages.jeeClasspathDescription);
this.setImageDescriptor(JavaPluginImages.DESC_WIZBAN_ADD_LIBRARY);
}
@@ -67,9 +68,8 @@
top.setLayout(layout);
Label lbl = new Label(top, SWT.NONE);
- lbl.setText(Messages.jeeClasspathBody1 +
- this.getClasspathEntryDescription() +
- Messages.jeeClasspathBody2);
+ lbl.setText(NLS.bind(Messages.jeeClasspathBody,
+ this.getClasspathEntryDescription()));
GridData gd = new GridData(GridData.FILL_HORIZONTAL);
lbl.setLayoutData(gd);
Modified: trunk/esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/tools/esb/project/ui/messages/JBossESBUI.properties
===================================================================
--- trunk/esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/tools/esb/project/ui/messages/JBossESBUI.properties 2009-04-06 00:52:28 UTC (rev 14511)
+++ trunk/esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/tools/esb/project/ui/messages/JBossESBUI.properties 2009-04-06 06:25:14 UTC (rev 14512)
@@ -15,8 +15,8 @@
JBoss_Runtime_List_Field_Editor_Modify_Runtime=Input new values
JBoss_Runtime_List_Field_Editor_New_Runtime=New JBoss ESB Runtime
Error_JBoss_Runtime_List_Field_Editor_Path_To_Home_Diretory_Cannot_Be_Empty=Path to JBoss ESB runtime home directory cannot be empty
-JBoss_Runtime_List_Field_Editor_Already_Exists=' already exists
-JBoss_Runtime_List_Field_Editor_Runtime=JBoss ESB Runtime
+JBoss_Runtime_List_Field_Editor_Runtime_Already_Exists=JBoss ESB Runtime ''{0}'' already exists
+JBoss_Runtime_List_Field_Editor_Runtime=JBoss ESB Runtime
Error_JBoss_Runtime_List_Field_Editor_Runtime_Name_Is_Not_Correct=Runtime name is not correct
Error_JBoss_Runtime_List_Field_Editor_Name_Cannot_Be_Empty=Name cannot be empty
Error_JBoss_Runtime_List_Field_Editor_Version_Cannot_Be_Empty=Version cannot be empty
Modified: trunk/esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/tools/esb/project/ui/messages/JBossESBUIMessages.java
===================================================================
--- trunk/esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/tools/esb/project/ui/messages/JBossESBUIMessages.java 2009-04-06 00:52:28 UTC (rev 14511)
+++ trunk/esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/tools/esb/project/ui/messages/JBossESBUIMessages.java 2009-04-06 06:25:14 UTC (rev 14512)
@@ -42,7 +42,7 @@
public static String JBoss_Runtime_List_Field_Editor_Modify_Runtime;
public static String JBoss_Runtime_List_Field_Editor_New_Runtime;
public static String Error_JBoss_Runtime_List_Field_Editor_Path_To_Home_Diretory_Cannot_Be_Empty;
- public static String JBoss_Runtime_List_Field_Editor_Already_Exists;
+ public static String JBoss_Runtime_List_Field_Editor_Runtime_Already_Exists;
public static String JBoss_Runtime_List_Field_Editor_Runtime;
public static String Error_JBoss_Runtime_List_Field_Editor_Runtime_Name_Is_Not_Correct;
public static String Error_JBoss_Runtime_List_Field_Editor_Name_Cannot_Be_Empty;
Modified: trunk/esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/tools/esb/project/ui/preference/controls/JBossRuntimeListFieldEditor.java
===================================================================
--- trunk/esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/tools/esb/project/ui/preference/controls/JBossRuntimeListFieldEditor.java 2009-04-06 00:52:28 UTC (rev 14511)
+++ trunk/esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/tools/esb/project/ui/preference/controls/JBossRuntimeListFieldEditor.java 2009-04-06 06:25:14 UTC (rev 14512)
@@ -518,9 +518,9 @@
continue;
}
if (rt.getName().equals(name.getValueAsString())) {
- setErrorMessage(JBossESBUIMessages.JBoss_Runtime_List_Field_Editor_Runtime
- + name.getValueAsString()
- + JBossESBUIMessages.JBoss_Runtime_List_Field_Editor_Already_Exists);
+ setErrorMessage(NLS.bind(
+ JBossESBUIMessages.JBoss_Runtime_List_Field_Editor_Runtime_Already_Exists,
+ name.getValueAsString()));
setPageComplete(false);
return;
}
15 years, 9 months
JBoss Tools SVN: r14511 - trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/jboss/tools/hibernate/jpt/ui/wizard.
by jbosstools-commits@lists.jboss.org
Author: sflanigan
Date: 2009-04-05 20:52:28 -0400 (Sun, 05 Apr 2009)
New Revision: 14511
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/jboss/tools/hibernate/jpt/ui/wizard/messages.properties
Log:
JBIDE-4044 remove duplicate property key
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/jboss/tools/hibernate/jpt/ui/wizard/messages.properties
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/jboss/tools/hibernate/jpt/ui/wizard/messages.properties 2009-04-05 00:10:59 UTC (rev 14510)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/jboss/tools/hibernate/jpt/ui/wizard/messages.properties 2009-04-06 00:52:28 UTC (rev 14511)
@@ -1,5 +1,4 @@
GenerateInitWizardPage_title=Use existing console configuration or connection profile for database connection
-GenerateInitWizardPage_autodetect=[Autodetect]
GenerateInitWizardPage_use_console_configuration=Use Console Configuration
GenerateInitWizardPage_refresh=Refresh
GenerateInitWizardPage_autodetect=[Autodetect]
15 years, 9 months
JBoss Tools SVN: r14510 - in trunk/birt/plugins/org.jboss.tools.birt.oda/src/org: eclipse and 4 other directories.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2009-04-04 20:10:59 -0400 (Sat, 04 Apr 2009)
New Revision: 14510
Added:
trunk/birt/plugins/org.jboss.tools.birt.oda/src/org/eclipse/
trunk/birt/plugins/org.jboss.tools.birt.oda/src/org/eclipse/datatools/
trunk/birt/plugins/org.jboss.tools.birt.oda/src/org/eclipse/datatools/connectivity/
trunk/birt/plugins/org.jboss.tools.birt.oda/src/org/eclipse/datatools/connectivity/oda/
trunk/birt/plugins/org.jboss.tools.birt.oda/src/org/eclipse/datatools/connectivity/oda/spec/
trunk/birt/plugins/org.jboss.tools.birt.oda/src/org/eclipse/datatools/connectivity/oda/spec/QuerySpecification.java
Log:
JBIDE-4123 Migration to Eclipse 3.5 M Builds
Added: trunk/birt/plugins/org.jboss.tools.birt.oda/src/org/eclipse/datatools/connectivity/oda/spec/QuerySpecification.java
===================================================================
--- trunk/birt/plugins/org.jboss.tools.birt.oda/src/org/eclipse/datatools/connectivity/oda/spec/QuerySpecification.java (rev 0)
+++ trunk/birt/plugins/org.jboss.tools.birt.oda/src/org/eclipse/datatools/connectivity/oda/spec/QuerySpecification.java 2009-04-05 00:10:59 UTC (rev 14510)
@@ -0,0 +1,10 @@
+package org.eclipse.datatools.connectivity.oda.spec;
+
+/**
+ *
+ * A dummy interface to provide the compatibility with Galileo
+ *
+ */
+public interface QuerySpecification {
+
+}
15 years, 9 months
JBoss Tools SVN: r14509 - branches/jbosstools-3.0.x/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-04-04 05:01:25 -0400 (Sat, 04 Apr 2009)
New Revision: 14509
Modified:
branches/jbosstools-3.0.x/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-4084
Modified: branches/jbosstools-3.0.x/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/CSSClassDialog.java
===================================================================
--- branches/jbosstools-3.0.x/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/CSSClassDialog.java 2009-04-03 22:03:06 UTC (rev 14508)
+++ branches/jbosstools-3.0.x/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/CSSClassDialog.java 2009-04-04 09:01:25 UTC (rev 14509)
@@ -373,6 +373,9 @@
}
});
if (dlg.open() == Window.OK) {
+ if (classNameStatus.matches(IStatus.ERROR))
+ classNameStatus = new Status(IStatus.OK, notUsed, 0,
+ JstUIMessages.CSS_STYLE_CLASS_EDITOR_DESCRIPTION, null);
addNewStyleClass(dlg.getValue().trim());
}
}
15 years, 9 months
JBoss Tools SVN: r14508 - in trunk: examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/wizard and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2009-04-03 18:03:06 -0400 (Fri, 03 Apr 2009)
New Revision: 14508
Modified:
trunk/birt/plugins/org.jboss.tools.birt.oda/src/org/jboss/tools/birt/oda/impl/HibernateConnection.java
trunk/birt/plugins/org.jboss.tools.birt.oda/src/org/jboss/tools/birt/oda/impl/HibernateOdaQuery.java
trunk/birt/plugins/org.jboss.tools.birt.oda/src/org/jboss/tools/birt/oda/impl/HibernateResultSet.java
trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/wizard/NewProjectExamplesWizard.java
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/WtpUtils.java
Log:
JBIDE-4123 Migration to Eclipse 3.5 M Builds
Modified: trunk/birt/plugins/org.jboss.tools.birt.oda/src/org/jboss/tools/birt/oda/impl/HibernateConnection.java
===================================================================
--- trunk/birt/plugins/org.jboss.tools.birt.oda/src/org/jboss/tools/birt/oda/impl/HibernateConnection.java 2009-04-03 22:02:30 UTC (rev 14507)
+++ trunk/birt/plugins/org.jboss.tools.birt.oda/src/org/jboss/tools/birt/oda/impl/HibernateConnection.java 2009-04-03 22:03:06 UTC (rev 14508)
@@ -20,6 +20,8 @@
import org.jboss.tools.birt.oda.Messages;
import org.osgi.framework.Bundle;
+import com.ibm.icu.util.ULocale;
+
/**
* Implementation class of IConnection for an ODA runtime driver.
*
@@ -123,4 +125,10 @@
return odaSessionFactory;
}
+ /* (non-Javadoc)
+ * @see org.eclipse.datatools.connectivity.oda.IConnection#setLocale(com.ibm.icu.util.ULocale)
+ */
+ public void setLocale(ULocale uLocale) throws OdaException {
+ throw new UnsupportedOperationException();
+ }
}
Modified: trunk/birt/plugins/org.jboss.tools.birt.oda/src/org/jboss/tools/birt/oda/impl/HibernateOdaQuery.java
===================================================================
--- trunk/birt/plugins/org.jboss.tools.birt.oda/src/org/jboss/tools/birt/oda/impl/HibernateOdaQuery.java 2009-04-03 22:02:30 UTC (rev 14507)
+++ trunk/birt/plugins/org.jboss.tools.birt.oda/src/org/jboss/tools/birt/oda/impl/HibernateOdaQuery.java 2009-04-03 22:03:06 UTC (rev 14508)
@@ -20,7 +20,7 @@
import org.eclipse.datatools.connectivity.oda.IResultSetMetaData;
import org.eclipse.datatools.connectivity.oda.OdaException;
import org.eclipse.datatools.connectivity.oda.SortSpec;
-import org.jboss.tools.birt.oda.Messages;
+import org.eclipse.datatools.connectivity.oda.spec.QuerySpecification;
/**
* Implementation class of IQuery for an ODA runtime driver.
@@ -363,4 +363,36 @@
return connection;
}
+ public void cancel() throws OdaException, UnsupportedOperationException {
+ // TODO
+ throw new UnsupportedOperationException();
+ }
+
+ public String getEffectiveQueryText() {
+ // TODO
+ return null;
+ }
+
+ public QuerySpecification getSpecification() {
+ // TODO
+ return null;
+ }
+
+ public void setObject(String parameterName, Object value)
+ throws OdaException {
+ // TODO
+ throw new UnsupportedOperationException();
+ }
+
+ public void setObject(int parameterId, Object value) throws OdaException {
+ // TODO
+ throw new UnsupportedOperationException();
+ }
+
+ public void setSpecification(QuerySpecification querySpec)
+ throws OdaException, UnsupportedOperationException {
+ // TODO
+ throw new UnsupportedOperationException();
+ }
+
}
Modified: trunk/birt/plugins/org.jboss.tools.birt.oda/src/org/jboss/tools/birt/oda/impl/HibernateResultSet.java
===================================================================
--- trunk/birt/plugins/org.jboss.tools.birt.oda/src/org/jboss/tools/birt/oda/impl/HibernateResultSet.java 2009-04-03 22:02:30 UTC (rev 14507)
+++ trunk/birt/plugins/org.jboss.tools.birt.oda/src/org/jboss/tools/birt/oda/impl/HibernateResultSet.java 2009-04-03 22:03:06 UTC (rev 14508)
@@ -377,4 +377,12 @@
throw new OdaException(Messages.HibernateResultSet_Cursor_has_not_been_initialized);
}
+ public Object getObject(int index) throws OdaException {
+ return getResult(index);
+ }
+
+ public Object getObject(String columnName) throws OdaException {
+ return getObject(findColumn(columnName));
+ }
+
}
Modified: trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/wizard/NewProjectExamplesWizard.java
===================================================================
--- trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/wizard/NewProjectExamplesWizard.java 2009-04-03 22:02:30 UTC (rev 14507)
+++ trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/wizard/NewProjectExamplesWizard.java 2009-04-03 22:03:06 UTC (rev 14508)
@@ -46,8 +46,8 @@
import org.eclipse.jdt.core.IJavaProject;
import org.eclipse.jdt.core.IPackageFragmentRoot;
import org.eclipse.jdt.core.JavaCore;
-import org.eclipse.jdt.internal.core.JavaElementInfo;
import org.eclipse.jdt.internal.core.JavaProject;
+import org.eclipse.jdt.internal.core.OpenableElementInfo;
import org.eclipse.jface.dialogs.Dialog;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.jface.dialogs.MessageDialogWithToggle;
@@ -442,9 +442,9 @@
IJavaProject javaProject = JavaCore.create(project);
if (javaProject != null && javaProject.exists() && javaProject.isOpen() && javaProject instanceof JavaProject) {
Object object = ((JavaProject) javaProject).getElementInfo();
- if (object instanceof JavaElementInfo) {
+ if (object instanceof OpenableElementInfo) {
// copied from JavaProject.buildStructure(...)
- JavaElementInfo info = (JavaElementInfo) object;
+ OpenableElementInfo info = (OpenableElementInfo) object;
IClasspathEntry[] resolvedClasspath = ((JavaProject) javaProject).getResolvedClasspath();
IPackageFragmentRoot[] children = ((JavaProject) javaProject).computePackageFragmentRoots(resolvedClasspath,false, null /* no reverse map */);
info.setChildren(children);
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/WtpUtils.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/WtpUtils.java 2009-04-03 22:02:30 UTC (rev 14507)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/WtpUtils.java 2009-04-03 22:03:06 UTC (rev 14508)
@@ -34,8 +34,8 @@
import org.eclipse.jdt.core.JavaConventions;
import org.eclipse.jdt.core.JavaCore;
import org.eclipse.jdt.core.JavaModelException;
-import org.eclipse.jdt.internal.core.JavaElementInfo;
import org.eclipse.jdt.internal.core.JavaProject;
+import org.eclipse.jdt.internal.core.OpenableElementInfo;
import org.eclipse.jdt.internal.ui.util.CoreUtility;
import org.eclipse.jdt.launching.JavaRuntime;
import org.eclipse.jdt.ui.PreferenceConstants;
@@ -271,9 +271,9 @@
IJavaProject javaProject = JavaCore.create(project);
if (javaProject != null && javaProject.exists() && javaProject.isOpen() && javaProject instanceof JavaProject) {
Object object = ((JavaProject) javaProject).getElementInfo();
- if (object instanceof JavaElementInfo) {
+ if (object instanceof OpenableElementInfo) {
// copied from JavaProject.buildStructure(...)
- JavaElementInfo info = (JavaElementInfo) object;
+ OpenableElementInfo info = (OpenableElementInfo) object;
IClasspathEntry[] resolvedClasspath = ((JavaProject) javaProject).getResolvedClasspath();
IPackageFragmentRoot[] children = ((JavaProject) javaProject).computePackageFragmentRoots(resolvedClasspath,false, null /* no reverse map */);
info.setChildren(children);
15 years, 9 months