JBoss Tools SVN: r37432 - trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/uiutils/wizards.
by jbosstools-commits@lists.jboss.org
Author: jjankovi
Date: 2011-12-19 11:39:29 -0500 (Mon, 19 Dec 2011)
New Revision: 37432
Added:
trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/uiutils/wizards/SimpleWSWizard.java
Log:
SimpleWSWizard added
Added: trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/uiutils/wizards/SimpleWSWizard.java
===================================================================
--- trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/uiutils/wizards/SimpleWSWizard.java (rev 0)
+++ trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/uiutils/wizards/SimpleWSWizard.java 2011-12-19 16:39:29 UTC (rev 37432)
@@ -0,0 +1,74 @@
+/*******************************************************************************
+ * Copyright (c) 2010 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+
+package org.jboss.tools.ws.ui.bot.test.uiutils.wizards;
+
+import org.eclipse.swtbot.swt.finder.SWTBot;
+import org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundException;
+import org.eclipse.swtbot.swt.finder.widgets.SWTBotCombo;
+import org.jboss.tools.ui.bot.ext.parts.SWTBotRadioExt;
+
+/**
+ *
+ * @author jjankovi
+ *
+ */
+public class SimpleWSWizard extends Wizard {
+
+ private Type type;
+
+ public SimpleWSWizard(Type type) throws WidgetNotFoundException {
+ super(new SWTBot().activeShell().widget);
+ assert "Simple Web Service".equals(getText());
+ this.type = type;
+ if (type == Type.REST) {
+ new SWTBotRadioExt(bot().radio(0).widget).setSelection(false);
+ new SWTBotRadioExt(bot().radio(1).widget).clickWithoutDeselectionEvent();
+ }
+ }
+
+ public SimpleWSWizard setProjectName(String name) {
+ SWTBotCombo c = bot().comboBox(0);
+ c.setSelection(name);
+ return this;
+ }
+
+ public SimpleWSWizard setServiceName(String name) {
+ setText("Service name", name);
+ return this;
+ }
+
+ public SimpleWSWizard setPackageName(String name) {
+ setText("Package", name);
+ return this;
+ }
+
+ public SimpleWSWizard setClassName(String name) {
+ setText("Class", name);
+ return this;
+ }
+
+ public SimpleWSWizard setApplicationClassName(String name) {
+ assert type == Type.REST;
+ setText("Application class", name);
+ return this;
+ }
+
+ public SimpleWSWizard addRESTEasyLibraryFromRuntime() {
+ assert type == Type.REST;
+ //if server is AS, this checkbox is not enabled
+ if (bot().checkBox(1).isEnabled()) {
+ bot().checkBox(1).select();
+ }
+ return this;
+ }
+
+}
14 years
JBoss Tools SVN: r37431 - trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/uiutils/wizards.
by jbosstools-commits@lists.jboss.org
Author: jjankovi
Date: 2011-12-19 11:38:53 -0500 (Mon, 19 Dec 2011)
New Revision: 37431
Added:
trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/uiutils/wizards/Type.java
Log:
Type enum of WS added
Added: trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/uiutils/wizards/Type.java
===================================================================
--- trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/uiutils/wizards/Type.java (rev 0)
+++ trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/uiutils/wizards/Type.java 2011-12-19 16:38:53 UTC (rev 37431)
@@ -0,0 +1,35 @@
+/*******************************************************************************
+ * Copyright (c) 2010 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.ws.ui.bot.test.uiutils.wizards;
+
+import org.eclipse.core.runtime.Platform;
+import org.osgi.framework.Bundle;
+
+public enum Type {
+ SOAP, REST;
+
+ private static final Bundle WSUI_BUNDLE = Platform.getBundle("org.jboss.tools.ws.ui");
+
+ public String getLabel() {
+ switch (this) {
+ case SOAP:
+ return getStringFromBundle("%JBOSSWS_GENERATEACTION_LABEL");
+ case REST:
+ return getStringFromBundle("%restful.wizard.name");
+ default:
+ throw new IllegalArgumentException("Unknown type: " + this);
+ }
+ }
+
+ private static String getStringFromBundle(String key) {
+ return Platform.getResourceString(WSUI_BUNDLE, key);
+ }
+}
14 years
JBoss Tools SVN: r37430 - trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/task/dialog.
by jbosstools-commits@lists.jboss.org
Author: ljelinko
Date: 2011-12-19 10:58:11 -0500 (Mon, 19 Dec 2011)
New Revision: 37430
Modified:
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/task/dialog/ProjectPropertyDialogCloseTask.java
Log:
added wait until the dialog closes
Modified: trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/task/dialog/ProjectPropertyDialogCloseTask.java
===================================================================
--- trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/task/dialog/ProjectPropertyDialogCloseTask.java 2011-12-19 15:32:36 UTC (rev 37429)
+++ trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/task/dialog/ProjectPropertyDialogCloseTask.java 2011-12-19 15:58:11 UTC (rev 37430)
@@ -1,11 +1,19 @@
package org.jboss.tools.portlet.ui.bot.task.dialog;
+import org.eclipse.swtbot.swt.finder.widgets.SWTBotShell;
import org.jboss.tools.portlet.ui.bot.task.AbstractSWTTask;
+import org.jboss.tools.portlet.ui.bot.task.wait.TaskDuration;
+import org.jboss.tools.portlet.ui.bot.task.wait.WaitWhileTask;
+import org.jboss.tools.portlet.ui.bot.task.wait.condition.NonSystemJobRunsCondition;
+import org.jboss.tools.portlet.ui.bot.task.wait.condition.ShellIsActiveCondition;
public class ProjectPropertyDialogCloseTask extends AbstractSWTTask {
@Override
public void perform() {
+ SWTBotShell activeShell = getBot().activeShell();
getBot().button("OK").click();
+ performInnerTask(new WaitWhileTask(new ShellIsActiveCondition(activeShell), TaskDuration.NORMAL));
+ performInnerTask(new WaitWhileTask(new NonSystemJobRunsCondition(), TaskDuration.LONG));
}
}
14 years
JBoss Tools SVN: r37429 - trunk/documentation/whatsnew/forge.
by jbosstools-commits@lists.jboss.org
Author: koen.aers(a)jboss.com
Date: 2011-12-19 10:32:36 -0500 (Mon, 19 Dec 2011)
New Revision: 37429
Modified:
trunk/documentation/whatsnew/forge/forge-news-3.3.0.M5.html
Log:
make the full screen images smaller
Modified: trunk/documentation/whatsnew/forge/forge-news-3.3.0.M5.html
===================================================================
--- trunk/documentation/whatsnew/forge/forge-news-3.3.0.M5.html 2011-12-19 14:00:35 UTC (rev 37428)
+++ trunk/documentation/whatsnew/forge/forge-news-3.3.0.M5.html 2011-12-19 15:32:36 UTC (rev 37429)
@@ -49,7 +49,7 @@
<td valign="top" align="right"><a name="itemname3" id="itemname3"></a><b>Support for the 'open' Command</b></td>
<td valign="top">
<p>The 'open' command is now intercepted and the default Forge runtime behaviour is slightly modified. As expected, if the resource is a file Forge opens it in an editor. Before M5, this editor was external to the workbench. This is unwanted behavior and is now changed to open an editor in the workbench. If the resource is a folder in the workspace, this folder is selected and expanded in the Project and/or Package Explorer views. If the resource is a folder outside the workspace it will be selected and expanded in the Remote Systems Explorer view if this view is installed. </p>
- <p><img src="images/3.3.0.M5/open_file.png"/></p>
+ <p><img src="images/3.3.0.M5/open_file.png" width="640" height="382"/></p>
</td>
</tr>
<tr>
@@ -61,7 +61,7 @@
<td valign="top" align="right"><a name="itemname3" id="itemname3"></a><b>Support for the 'pick-up' command</b></td>
<td valign="top">
<p>Issuing the 'pick-up' command will now automatically result not only in a change in the Forge runtime context but also in opening the resource. This means that a workbench editor will open if the resource is a file or that the folder will be expanded and selected in the Project and/or Package explorer views if the resource is a folder. Just like with the 'open' command above, the Remote Systems view will be used if the resource is outside of the workspace.</p>
- <p><img src="images/3.3.0.M5/pick_up.png"/></p>
+ <p><img src="images/3.3.0.M5/pick_up.png" width="640" height="382"/></p>
</td>
</tr>
<tr>
@@ -75,7 +75,7 @@
<p>A very nice feature we have added is the so called 'Show In Forge Console' feature. Bringing up the context menu and then selecting the 'Show In' menu on a selected item in the Project or Package explorer will contain an entry labeled 'Forge Console'. </p>
<p><img src="images/3.3.0.M5/show_in_forge_console.png"/></p>
<p>Selecting this entry will result in the Forge Console automatically issuing the 'pick-up' command and changing the current Forge runtime context to the selected resource and performing the other behaviour mentioned earlier.</p>
- <p><img src="images/3.3.0.M5/show_in_result.png"/></p>
+ <p><img src="images/3.3.0.M5/show_in_result.png" width="640" height="382"/></p>
<p>An alternative for this behavior is to use the toolbar button or the dropdown menu of the Forge Console view.</p>
<p><img src="images/3.3.0.M5/show_in_shortcut.png"/></p>
</td>
14 years
JBoss Tools SVN: r37428 - trunk/documentation/whatsnew/as/images.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2011-12-19 09:00:35 -0500 (Mon, 19 Dec 2011)
New Revision: 37428
Modified:
trunk/documentation/whatsnew/as/images/mark-deployable.png
Log:
[JBIDE-10376] added screenshots
Modified: trunk/documentation/whatsnew/as/images/mark-deployable.png
===================================================================
(Binary files differ)
14 years
JBoss Tools SVN: r37427 - in trunk/documentation/whatsnew/as: images and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2011-12-19 08:57:44 -0500 (Mon, 19 Dec 2011)
New Revision: 37427
Added:
trunk/documentation/whatsnew/as/images/mark-deployable.png
Modified:
trunk/documentation/whatsnew/as/as-news-3.3.0.M5.html
Log:
[JBIDE-10376] added screenshots
Modified: trunk/documentation/whatsnew/as/as-news-3.3.0.M5.html
===================================================================
--- trunk/documentation/whatsnew/as/as-news-3.3.0.M5.html 2011-12-19 13:53:40 UTC (rev 37426)
+++ trunk/documentation/whatsnew/as/as-news-3.3.0.M5.html 2011-12-19 13:57:44 UTC (rev 37427)
@@ -79,6 +79,7 @@
</td>
<td valign="top" width="90%">
<p>Some users may have been confusing the "Mark as Deployable" feature with simple deployment done via the Add / Remove Module wizard. When a user now attempts to "Mark as Deployable" a project which is already a deployable module, a dialog is shown, advising them against it unless they are aware of what they are doing. </p>
+ <p><img src="images/mark-deployable.png" alt="mark deployable"/)></p>
<p><small><a href="https://issues.jboss.org/browse/JBIDE-9995">Related Jira</a></small></p>
</td>
</tr>
Added: trunk/documentation/whatsnew/as/images/mark-deployable.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/as/images/mark-deployable.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
14 years
JBoss Tools SVN: r37426 - in trunk/documentation/whatsnew: as and 2 other directories.
by jbosstools-commits@lists.jboss.org
Author: max.andersen(a)jboss.com
Date: 2011-12-19 08:53:40 -0500 (Mon, 19 Dec 2011)
New Revision: 37426
Modified:
trunk/documentation/whatsnew/as/as-news-3.3.0.M5.html
trunk/documentation/whatsnew/index.html
trunk/documentation/whatsnew/openshift/openshift-news-2.3.0.M5.html
trunk/documentation/whatsnew/teiid/teiid-news-7.6.html
Log:
add in appropriate hr's
Modified: trunk/documentation/whatsnew/as/as-news-3.3.0.M5.html
===================================================================
--- trunk/documentation/whatsnew/as/as-news-3.3.0.M5.html 2011-12-19 13:50:00 UTC (rev 37425)
+++ trunk/documentation/whatsnew/as/as-news-3.3.0.M5.html 2011-12-19 13:53:40 UTC (rev 37426)
@@ -61,6 +61,7 @@
<p><small><a href="https://issues.jboss.org/browse/JBIDE-8863">Related Jira</a></small></p>
</td>
</tr>
+ <tr><td colspan="2"><hr /></td></tr>
<tr>
<td valign="top" align="right">
<p><b>Actions to load AS Management urls</b></p>
@@ -71,6 +72,7 @@
<p><small><a href="https://issues.jboss.org/browse/JBIDE-6828">Related Jira</a></small></p>
</td>
</tr>
+ <tr><td colspan="2"><hr /></td></tr>
<tr>
<td valign="top" align="right">
<p><b>Usability improvement for "Mark As Deployable" feature</b></p>
Modified: trunk/documentation/whatsnew/index.html
===================================================================
--- trunk/documentation/whatsnew/index.html 2011-12-19 13:50:00 UTC (rev 37425)
+++ trunk/documentation/whatsnew/index.html 2011-12-19 13:53:40 UTC (rev 37426)
@@ -37,15 +37,25 @@
<p align="right"><b>3.3.0.M5</b>
<td valign="top">
<p><a href="core/core-news-3.3.0.M5.html">Core/General</a></p>
+ <p><a href="openshift/openshift-news-2.3.0.M5.html">OpenShift
+ Tools</a></p>
+
+ <p><a href="as/as-news-3.3.0.M5.html">JBoss AS Server
+ Tools</a></p>
<p><a href="jst/jst-news-3.3.0.M5.html">JST/JSF</a></p>
<p><a href="vpe/vpe-news-3.3.0.M5.html">Visual Page Editor</a></p>
<p><a href="cdi/cdi-news-3.3.0.M5.html">CDI/Seam 3 Tools</a></p>
<p><a href="forge/forge-news-3.3.0.M5.html">Forge Tools</a></p>
- <p><a href="openshift/openshift-news-2.3.0.M5.html">OpenShift Tools</a></p>
- <!-- p><a href="examples/examples-news-3.3.0.M5.html">Project Examples</a></p -->
+ <p><a href="hibernate/hibernate-news-3.5.0.M5.html">Hibernate Tools</a></p>
+ <p><a href="examples/examples-news-3.3.0.M5.html">Project Examples</a></p>
<p><a href="maven/maven-news-3.3.0.M5.html">Maven Tools</a></p>
- <p><a href="central/central-news-1.0.0.M5.html">JBoss Central</a></p>
- </td>
+
+ <p><a href="central/central-news-1.0.0.M5.html">JBoss
+ Central</a></p>
+ <p><a href="teiid/teiid-news-7.6.html">Teiid Designer</a></p>
+ <p><a href="ws/ws-news-1.2.2.M5.html">Webservices Tools</a></p>
+
+ </td>
</tr>
<tr>
<td valign="top" align="left">
Modified: trunk/documentation/whatsnew/openshift/openshift-news-2.3.0.M5.html
===================================================================
--- trunk/documentation/whatsnew/openshift/openshift-news-2.3.0.M5.html 2011-12-19 13:50:00 UTC (rev 37425)
+++ trunk/documentation/whatsnew/openshift/openshift-news-2.3.0.M5.html 2011-12-19 13:53:40 UTC (rev 37426)
@@ -45,6 +45,11 @@
<p><img src="images/embed-cartridge.png" alt="embed cartridge"/></p>
</td>
</tr>
+ <tr>
+ <td colspan="2">
+ <hr/>
+ </td>
+ </tr>
<tr>
<td valign="top" align="left"><a name="itemname3" id="itemname3"></a><b>Embed Jenkins</b></td>
<td valign="top">
@@ -58,6 +63,11 @@
<p><small><a href="https://issues.jboss.org/browse/JBIDE-9927">Related Jira</a></small></p>
</td>
</tr>
+ <tr>
+ <td colspan="2">
+ <hr/>
+ </td>
+ </tr>
<tr>
<td valign="top" align="left"><a name="itemname3" id="itemname3"></a><b>Push Existing Projects</b></td>
<td valign="top">
@@ -70,6 +80,11 @@
<p><small><a href="https://issues.jboss.org/browse/JBIDE-10171">Related Jira</a></small></p>
</td>
</tr>
+ <tr>
+ <td colspan="2">
+ <hr/>
+ </td>
+ </tr>
<tr>
<td valign="top" align="left"><a name="itemname3" id="itemname3"></a><b>OpenShift server adapter</b></td>
<td valign="top">
@@ -79,7 +94,8 @@
<p><img src="images/openshift-server-adapter.png" alt="openshift server adapter"/></p>
<p><small><a href="https://issues.jboss.org/browse/JBIDE-9935">Related Jira</a></small></p>
</td>
- </tr> <tr>
+ </tr>
+ <tr>
<td colspan="2">
<hr/>
<h3>OpenShift Express REST client</h3>
Modified: trunk/documentation/whatsnew/teiid/teiid-news-7.6.html
===================================================================
--- trunk/documentation/whatsnew/teiid/teiid-news-7.6.html 2011-12-19 13:50:00 UTC (rev 37425)
+++ trunk/documentation/whatsnew/teiid/teiid-news-7.6.html 2011-12-19 13:53:40 UTC (rev 37426)
@@ -46,7 +46,7 @@
<b> </b></b></p>
<b> </b></td>
<td valign="top">
- <p> n 7.5, we introduced an Flat File import option which
+ <p>In 7.5, we introduced an Flat File import option which
simplified the process of constructing the source and view models
(including generated transformation SQL) necessary for querying the
flat file as a source. In 7.6, we've added an importer which
14 years
JBoss Tools SVN: r37425 - in trunk/documentation/whatsnew/as: images and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2011-12-19 08:50:00 -0500 (Mon, 19 Dec 2011)
New Revision: 37425
Added:
trunk/documentation/whatsnew/as/images/credentials-dialog.png
trunk/documentation/whatsnew/as/images/show-in-management-console.png
Modified:
trunk/documentation/whatsnew/as/as-news-3.3.0.M5.html
Log:
[JBIDE-10376] added screenshots
Modified: trunk/documentation/whatsnew/as/as-news-3.3.0.M5.html
===================================================================
--- trunk/documentation/whatsnew/as/as-news-3.3.0.M5.html 2011-12-19 13:40:34 UTC (rev 37424)
+++ trunk/documentation/whatsnew/as/as-news-3.3.0.M5.html 2011-12-19 13:50:00 UTC (rev 37425)
@@ -37,6 +37,7 @@
</td>
<td valign="top" width="90%">
<p>JBoss AS Tools now supports JBoss AS 7.1 beta1b. The support includes a new server adapter type. JBoss AS 7.1 also includes new security features restricting access to the remote management services. The new 7.1 adapter includes methods for storing these credentials. </p>
+ <p><img src="images/credentials-dialog.png" alt="credentials dialog"/></p>
<p><small><a href="https://issues.jboss.org/browse/JBIDE-10292">Related Jira</a></small></p>
</td>
</tr>
@@ -66,6 +67,7 @@
</td>
<td valign="top" width="90%">
<p>The most commonly loaded bundled apps for our servers now appear in the server view's context menu. Simply right-click on the server, select "show in", and you will see options such as the JMX Console, Admin Console, and Web Console.</p>
+ <p><img src="images/show-in-management-console.png" alt="show in management console"/></p>
<p><small><a href="https://issues.jboss.org/browse/JBIDE-6828">Related Jira</a></small></p>
</td>
</tr>
Added: trunk/documentation/whatsnew/as/images/credentials-dialog.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/as/images/credentials-dialog.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/whatsnew/as/images/show-in-management-console.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/as/images/show-in-management-console.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
14 years
JBoss Tools SVN: r37424 - in trunk/maven/plugins/org.jboss.tools.maven.project.examples/src/org/jboss/tools/maven/project/examples: wizard and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: fbricon
Date: 2011-12-19 08:40:34 -0500 (Mon, 19 Dec 2011)
New Revision: 37424
Modified:
trunk/maven/plugins/org.jboss.tools.maven.project.examples/src/org/jboss/tools/maven/project/examples/Messages.java
trunk/maven/plugins/org.jboss.tools.maven.project.examples/src/org/jboss/tools/maven/project/examples/messages.properties
trunk/maven/plugins/org.jboss.tools.maven.project.examples/src/org/jboss/tools/maven/project/examples/wizard/ArchetypeExamplesWizardFirstPage.java
Log:
JBIDE-10505 : added error message when setting a wrong package
Modified: trunk/maven/plugins/org.jboss.tools.maven.project.examples/src/org/jboss/tools/maven/project/examples/Messages.java
===================================================================
--- trunk/maven/plugins/org.jboss.tools.maven.project.examples/src/org/jboss/tools/maven/project/examples/Messages.java 2011-12-19 13:25:23 UTC (rev 37423)
+++ trunk/maven/plugins/org.jboss.tools.maven.project.examples/src/org/jboss/tools/maven/project/examples/Messages.java 2011-12-19 13:40:34 UTC (rev 37424)
@@ -12,6 +12,7 @@
public static String ArchetypeExamplesWizardFirstPage_Target_Runtime_Label;
public static String ArchetypeExamplesWizardFirstPage_Title;
public static String ArchetypeExamplesWizardFirstPage_Unresolved_Enterprise_Repo;
+ public static String ArchetypeExamplesWizardFirstPage_Error_Package;
static {
// initialize resource bundle
NLS.initializeMessages(BUNDLE_NAME, Messages.class);
Modified: trunk/maven/plugins/org.jboss.tools.maven.project.examples/src/org/jboss/tools/maven/project/examples/messages.properties
===================================================================
--- trunk/maven/plugins/org.jboss.tools.maven.project.examples/src/org/jboss/tools/maven/project/examples/messages.properties 2011-12-19 13:25:23 UTC (rev 37423)
+++ trunk/maven/plugins/org.jboss.tools.maven.project.examples/src/org/jboss/tools/maven/project/examples/messages.properties 2011-12-19 13:40:34 UTC (rev 37424)
@@ -6,3 +6,4 @@
ArchetypeExamplesWizardFirstPage_Target_Runtime_Label=Target Runtime
ArchetypeExamplesWizardFirstPage_Title=Create a new Java EE project
ArchetypeExamplesWizardFirstPage_Unresolved_Enterprise_Repo={0} cannot be found.\n This indicates you do not have access to a JBoss Enterprise Maven repository.\n This can cause build problems. Follow this <a href\="http\://community.jboss.org/wiki/SettingUpTheJBossEnterpriseRepositories">link</a> for more details.
+ArchetypeExamplesWizardFirstPage_Error_Package=Invalid package name
\ No newline at end of file
Modified: trunk/maven/plugins/org.jboss.tools.maven.project.examples/src/org/jboss/tools/maven/project/examples/wizard/ArchetypeExamplesWizardFirstPage.java
===================================================================
--- trunk/maven/plugins/org.jboss.tools.maven.project.examples/src/org/jboss/tools/maven/project/examples/wizard/ArchetypeExamplesWizardFirstPage.java 2011-12-19 13:25:23 UTC (rev 37423)
+++ trunk/maven/plugins/org.jboss.tools.maven.project.examples/src/org/jboss/tools/maven/project/examples/wizard/ArchetypeExamplesWizardFirstPage.java 2011-12-19 13:40:34 UTC (rev 37424)
@@ -231,7 +231,7 @@
String packageName = packageCombo.getText();
if(packageName.trim().length() != 0) {
if(!Pattern.matches("[A-Za-z_$][A-Za-z_$\\d]*(?:\\.[A-Za-z_$][A-Za-z_$\\d]*)*", packageName)) { //$NON-NLS-1$
- return "";
+ return Messages.ArchetypeExamplesWizardFirstPage_Error_Package;
}
}
14 years
JBoss Tools SVN: r37423 - trunk/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/util.
by jbosstools-commits@lists.jboss.org
Author: dmaliarevich
Date: 2011-12-19 08:25:23 -0500 (Mon, 19 Dec 2011)
New Revision: 37423
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/util/DOMTreeDumper.java
Log:
https://issues.jboss.org/browse/JBIDE-5861 - "Dump Style" method was added to DOMTreeDumper.
Modified: trunk/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/util/DOMTreeDumper.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/util/DOMTreeDumper.java 2011-12-19 12:48:19 UTC (rev 37422)
+++ trunk/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/util/DOMTreeDumper.java 2011-12-19 13:25:23 UTC (rev 37423)
@@ -18,11 +18,14 @@
import java.util.List;
import org.mozilla.interfaces.nsIDOMAttr;
+import org.mozilla.interfaces.nsIDOMCSSStyleDeclaration;
import org.mozilla.interfaces.nsIDOMDocument;
+import org.mozilla.interfaces.nsIDOMDocumentView;
import org.mozilla.interfaces.nsIDOMElement;
import org.mozilla.interfaces.nsIDOMNamedNodeMap;
import org.mozilla.interfaces.nsIDOMNode;
import org.mozilla.interfaces.nsIDOMNodeList;
+import org.mozilla.interfaces.nsIDOMViewCSS;
/**
@@ -143,6 +146,23 @@
public void dumpNode(nsIDOMNode node) {
dumpNode(node, false);
}
+
+
+ public void dumpStyle(nsIDOMNode vpeNode) {
+ if (vpeNode != null) {
+ final nsIDOMDocumentView view = queryInterface(vpeNode.getOwnerDocument(), nsIDOMDocumentView.class);
+ final nsIDOMViewCSS viewCss = queryInterface(view.getDefaultView(), nsIDOMViewCSS.class);
+ final nsIDOMElement vpeElement = queryInterface(vpeNode, nsIDOMElement.class);
+ final nsIDOMCSSStyleDeclaration styleDeclaration = viewCss.getComputedStyle(vpeElement, null);
+ String item = null;
+ String value = null;
+ for (int i = 0; i < styleDeclaration.getLength(); i++) {
+ item = styleDeclaration.item(i);
+ value = styleDeclaration.getPropertyValue(item);
+ ps.println(item + ": " + value + ";"); //$NON-NLS-1$ //$NON-NLS-2$
+ }
+ }
+ }
/**
* Dump node.
@@ -340,9 +360,4 @@
public void setIgnoredAttributes(List<String> ignoredAttributes) {
this.ignoredAttributes = ignoredAttributes;
}
-
- public void dumpStyle(nsIDOMNode visualNode) {
- // TODO Auto-generated method stub
-
- }
}
\ No newline at end of file
14 years