JBoss Tools SVN: r39819 - trunk/ws/docs/soap_reference/en-US.
by jbosstools-commits@lists.jboss.org
Author: irooskov(a)redhat.com
Date: 2012-03-25 21:50:28 -0400 (Sun, 25 Mar 2012)
New Revision: 39819
Modified:
trunk/ws/docs/soap_reference/en-US/Book_Info.xml
trunk/ws/docs/soap_reference/en-US/proc-jbt-web_service_test_view.xml
Log:
updated with beta1 info
Modified: trunk/ws/docs/soap_reference/en-US/Book_Info.xml
===================================================================
--- trunk/ws/docs/soap_reference/en-US/Book_Info.xml 2012-03-26 01:32:47 UTC (rev 39818)
+++ trunk/ws/docs/soap_reference/en-US/Book_Info.xml 2012-03-26 01:50:28 UTC (rev 39819)
@@ -7,7 +7,7 @@
<productname>JBoss Developer Studio</productname>
<productnumber>5.0</productnumber>
<edition>5.0.0</edition>
- <pubsnumber>3</pubsnumber>
+ <pubsnumber>4</pubsnumber>
<abstract>
<para>The JBoss SOAP Web Services User Guide explains how to use the JBoss Web Services module to implement SOAP web services in Java.</para>
</abstract>
Modified: trunk/ws/docs/soap_reference/en-US/proc-jbt-web_service_test_view.xml
===================================================================
--- trunk/ws/docs/soap_reference/en-US/proc-jbt-web_service_test_view.xml 2012-03-26 01:32:47 UTC (rev 39818)
+++ trunk/ws/docs/soap_reference/en-US/proc-jbt-web_service_test_view.xml 2012-03-26 01:50:28 UTC (rev 39819)
@@ -41,6 +41,11 @@
<!-- <para>&HORIZ_LINE;</para>-->
</step>
</substeps>
+ <note>
+ <para>
+ You can also access this view by right-clicking on a WSDL file of a project in the <guilabel>Project Explorer</guilabel> and selecting <menuchoice><guimenuitem>Web Services</guimenuitem><guimenuitem>Test in JBoss Web Service Tester</guimenuitem></menuchoice> from the context menu. This will open the <guilabel>Web Service Tester</guilabel> with the details of the selected WSDL file.
+ </para>
+ </note>
<para>
The main components of the Web Service Tester View are:
</para>
12 years, 3 months
JBoss Tools SVN: r39818 - in trunk/ws/docs/restful_reference/en-US: images and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: irooskov(a)redhat.com
Date: 2012-03-25 21:32:47 -0400 (Sun, 25 Mar 2012)
New Revision: 39818
Added:
trunk/ws/docs/restful_reference/en-US/images/working_with_RESTful_02.png
trunk/ws/docs/restful_reference/en-US/images/working_with_RESTful_03.png
Modified:
trunk/ws/docs/restful_reference/en-US/Book_Info.xml
trunk/ws/docs/restful_reference/en-US/working_with_RESTful_web_services.xml
Log:
updated with beta1 info
Modified: trunk/ws/docs/restful_reference/en-US/Book_Info.xml
===================================================================
--- trunk/ws/docs/restful_reference/en-US/Book_Info.xml 2012-03-25 23:42:38 UTC (rev 39817)
+++ trunk/ws/docs/restful_reference/en-US/Book_Info.xml 2012-03-26 01:32:47 UTC (rev 39818)
@@ -7,7 +7,7 @@
<productname>JBoss Developer Studio</productname>
<productnumber>5.0</productnumber>
<edition>5.0.0</edition>
- <pubsnumber>5</pubsnumber>
+ <pubsnumber>7</pubsnumber>
<abstract>
<para>The JBoss RESTful Web Services User Guide explains how to use RESTful Web Services to implement web services in Java.</para>
</abstract>
Added: trunk/ws/docs/restful_reference/en-US/images/working_with_RESTful_02.png
===================================================================
(Binary files differ)
Property changes on: trunk/ws/docs/restful_reference/en-US/images/working_with_RESTful_02.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: trunk/ws/docs/restful_reference/en-US/images/working_with_RESTful_03.png
===================================================================
(Binary files differ)
Property changes on: trunk/ws/docs/restful_reference/en-US/images/working_with_RESTful_03.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Modified: trunk/ws/docs/restful_reference/en-US/working_with_RESTful_web_services.xml
===================================================================
--- trunk/ws/docs/restful_reference/en-US/working_with_RESTful_web_services.xml 2012-03-25 23:42:38 UTC (rev 39817)
+++ trunk/ws/docs/restful_reference/en-US/working_with_RESTful_web_services.xml 2012-03-26 01:32:47 UTC (rev 39818)
@@ -16,7 +16,7 @@
</mediaobject>
</figure>
<para>
- Each element in the navigator displays the resolved HTTP method (for example: GET and POST) followed by the Uniform Resource Identifier (URI) path template (for example: /customers/{id}). <property>@Path</property> annotations are available for resources and subresources, at the method level. Optional <property>@ApplicationPath</property> annotation is available only any subclass of <classname>javax.ws.rs.core.Application</classname>.
+ Each element in the navigator displays the resolved HTTP method (for example: GET and POST) followed by the Uniform Resource Identifier (URI) path template (for example: /customers/{id}). <property>@Path</property> annotations are available for resources and subresources, at the method level. Optional <property>@ApplicationPath</property> annotation is available on any subclass of <classname>javax.ws.rs.core.Application</classname>.
</para>
<para>
Under each element are the resolved, consumed and produced media types (based on the annotations you have supplied for the method or type) and the associated Java method.
@@ -24,4 +24,61 @@
<para>
To navigate to the related source code for a JAX-RS resource, double click the elements of the resource explorer and the related source code will be opened and highlighted. You can also copy the URI path template for later use.
</para>
+ <para>
+ The tooling can include the <property>@ApplicationPath</property> annotation value in the endpoints URI Path Template for <classname>javax.ws.rs.core.Application</classname> subclases. To achieve this the JAX-RS application class must be provided. An example of this is:
+ </para>
+<programlisting>
+@ApplicationPath("/mypath")
+public class MyApplication extends Application {
+...
+}
+</programlisting>
+ <para>
+ You could also define the root path to the applications JAX-RS endpoint in the <filename>web.xml</filename> file. An example of this is:
+ </para>
+ <programlisting><![CDATA[
+<servlet-mapping>
+ <servlet-name>javax.ws.rs.core.Application</servlet-name>
+ <url-pattern>/hello/*</url-pattern>
+</servlet-mapping>]]>
+</programlisting>
+ <note>
+ <para>
+ The <filename>web.xml</filename> approach takes precedence over the annotation approach due to the JAX-RS 1.1 specification.
+ </para>
+ </note>
+ <section id="running_REST_methods">
+ <title>Running REST methods on the server</title>
+ <para>
+ You can run a particular method of your RESTful project by right-clicking on the <guilabel>JAX-RS REST Web Services</guilabel> method that exists for your project, viewable in the <guilabel>Project Explorer</guilabel> and selecting <menuchoice><guimenuitem>Run As</guimenuitem><guimenuitem>Run on Server</guimenuitem></menuchoice>.
+ </para>
+ <figure id="working_with_RESTful_02">
+ <title>Running a REST method on the server</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/working_with_RESTful_02.png" format="PNG"/>
+ </imageobject>
+ <textobject>
+ <para>Running a REST method on the server</para>
+ </textobject>
+ </mediaobject>
+ </figure>
+ <para>
+ If the server is not in a started state when this action is executed, or the application the method belongs to is not deployed to the server, these actions will be performed as a result of choosing to running the method on the server.
+ </para>
+ <para>
+ Once the method has successfully run on the server, the <guilabel>Web Service Tester</guilabel> will open within the current workbench perspective and the URL for the RESTful operation will have automatically been set.
+ </para>
+ <figure id="working_with_RESTful_03">
+ <title>Web Service Tester</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/working_with_RESTful_03.png" format="PNG"/>
+ </imageobject>
+ <textobject>
+ <para>Web Service Tester</para>
+ </textobject>
+ </mediaobject>
+ </figure>
+ </section>
</chapter>
\ No newline at end of file
12 years, 3 months
JBoss Tools SVN: r39817 - trunk/as/docs/reference/en-US.
by jbosstools-commits@lists.jboss.org
Author: irooskov(a)redhat.com
Date: 2012-03-25 19:42:38 -0400 (Sun, 25 Mar 2012)
New Revision: 39817
Modified:
trunk/as/docs/reference/en-US/Book_Info.xml
Log:
updated for brew
Modified: trunk/as/docs/reference/en-US/Book_Info.xml
===================================================================
--- trunk/as/docs/reference/en-US/Book_Info.xml 2012-03-25 23:39:16 UTC (rev 39816)
+++ trunk/as/docs/reference/en-US/Book_Info.xml 2012-03-25 23:42:38 UTC (rev 39817)
@@ -5,9 +5,9 @@
<title>JBoss Server Manager Reference Guide</title>
<subtitle>Provides information relating to the JBoss Server Manager.</subtitle>
<productname>JBoss Developer Studio</productname>
- <productnumber>5.0.Beta</productnumber>
+ <productnumber>5.0</productnumber>
<edition>5.0.0</edition>
- <pubsnumber>9</pubsnumber>
+ <pubsnumber>10</pubsnumber>
<abstract>
<para>The JBoss Server Manager Reference Guide explains how to use the JBoss Server Manager to configure, start, stop the server, to know deployment and archiving processes.</para>
</abstract>
12 years, 3 months
JBoss Tools SVN: r39816 - in trunk/as/docs/reference/en-US: images/perspective and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: irooskov(a)redhat.com
Date: 2012-03-25 19:39:16 -0400 (Sun, 25 Mar 2012)
New Revision: 39816
Added:
trunk/as/docs/reference/en-US/images/perspective/perspective_6a.png
trunk/as/docs/reference/en-US/images/perspective/perspective_6b.png
trunk/as/docs/reference/en-US/images/perspective/perspective_6c.png
Modified:
trunk/as/docs/reference/en-US/Book_Info.xml
trunk/as/docs/reference/en-US/images/perspective/perspective_4.png
trunk/as/docs/reference/en-US/images/perspective/perspective_4a.png
trunk/as/docs/reference/en-US/perspective.xml
Log:
updated with new server editor info from beta1
Modified: trunk/as/docs/reference/en-US/Book_Info.xml
===================================================================
--- trunk/as/docs/reference/en-US/Book_Info.xml 2012-03-25 12:08:28 UTC (rev 39815)
+++ trunk/as/docs/reference/en-US/Book_Info.xml 2012-03-25 23:39:16 UTC (rev 39816)
@@ -5,7 +5,7 @@
<title>JBoss Server Manager Reference Guide</title>
<subtitle>Provides information relating to the JBoss Server Manager.</subtitle>
<productname>JBoss Developer Studio</productname>
- <productnumber>5.0</productnumber>
+ <productnumber>5.0.Beta</productnumber>
<edition>5.0.0</edition>
<pubsnumber>9</pubsnumber>
<abstract>
Modified: trunk/as/docs/reference/en-US/images/perspective/perspective_4.png
===================================================================
(Binary files differ)
Modified: trunk/as/docs/reference/en-US/images/perspective/perspective_4a.png
===================================================================
(Binary files differ)
Added: trunk/as/docs/reference/en-US/images/perspective/perspective_6a.png
===================================================================
(Binary files differ)
Property changes on: trunk/as/docs/reference/en-US/images/perspective/perspective_6a.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: trunk/as/docs/reference/en-US/images/perspective/perspective_6b.png
===================================================================
(Binary files differ)
Property changes on: trunk/as/docs/reference/en-US/images/perspective/perspective_6b.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: trunk/as/docs/reference/en-US/images/perspective/perspective_6c.png
===================================================================
(Binary files differ)
Property changes on: trunk/as/docs/reference/en-US/images/perspective/perspective_6c.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Modified: trunk/as/docs/reference/en-US/perspective.xml
===================================================================
--- trunk/as/docs/reference/en-US/perspective.xml 2012-03-25 12:08:28 UTC (rev 39815)
+++ trunk/as/docs/reference/en-US/perspective.xml 2012-03-25 23:39:16 UTC (rev 39816)
@@ -678,9 +678,6 @@
<para>
You are also able to change a servers behaviour from <guilabel>Local</guilabel> to <guilabel>Remote System Deployment</guilabel> through this settings tab. In doing so you will see that the <guilabel>Host</guilabel> is not set by default, but the other fields contain default values. <!-- Once your remote server behaviour is configured, click the <guibutton>Test</guibutton> button to confirm the settings are correct. -->
</para>
- <para>
- You can select the <guilabel>Listen on all interfaces to allow remote web connections</guilabel> when using JBoss Application Server 3 to 7 or JBoss Enterprise Application Platform 4 to 6. This option will force the server to launch with the option <option>-b 0.0.0.0</option>. This option will change the host address to 0.0.0.0, useful for testing web applications on your local machine. JMX commands and web browser activities will still use the host set in the <guilabel>General Information</guilabel> section.
- </para>
<figure>
<title>Server Behaviour - Remote</title>
<mediaobject>
@@ -690,9 +687,64 @@
</mediaobject>
</figure>
<para>
+ You can select the <guilabel>Listen on all interfaces to allow remote web connections</guilabel> when using JBoss Application Server 3 to 7 or JBoss Enterprise Application Platform 4 to 6. This option will force the server to launch with the option <option>-b 0.0.0.0</option>. This option will change the host address to 0.0.0.0, useful for testing web applications on your local machine. JMX commands and web browser activities will still use the host set in the <guilabel>General Information</guilabel> section.
+ </para>
+ <para>
Under the <guilabel>Publishing</guilabel> section it is possible to disable or enable the automatic publishing of the changes in the workspace.
</para>
+ <para>In the <guilabel>Server editor</guilabel> you are able to edit the timeouts, reload behaviour and the server pollers.</para>
+
+ <formalpara>
+ <title>Timeouts</title>
+ <para>
+ The <guilabel>Timeouts</guilabel> section allows you to specify a time limit for the server to complete operations within. If an operation does not start or fails to finish before the times you specify, that operation will be cancelled to avoid server failure.
+ </para>
+ </formalpara>
+ <figure>
+ <title>Timeouts</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/perspective/perspective_6b.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <formalpara>
+ <title>Application Reload Behavior</title>
+ <para>
+ This section of the Server settings allows you to customize the reload behavior of your application, depending on server and module changes.
+ </para>
+ </formalpara>
+ <figure>
+ <title>Application Reload Behavior</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/perspective/perspective_6c.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <formalpara>
+ <title>Server Pollers</title>
+ <para>
+ Server pollers are set under the <guilabel>Server State Detectors</guilabel> section. Both <guilabel>Startup</guilabel> and <guilabel>Shutdown</guilabel> pollers can be set individually.
+ </para>
+ </formalpara>
+ <note>
+ <para>
+ By default, the Startup poller is set to Web Port. If you change the Startup poller to Timeout Poller (which may be required if you are using the minimal configuration for your server), this will do no polling at all and will only set the server state to <guilabel>"Started"</guilabel> after your startup timeout is reached.
+ </para>
+ </note>
+ <figure>
+ <title>Server Pollers</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/perspective/perspective_6a.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
<para>
It should be pointed out that the server adapter tries to automatically detect the ports it needs for integrating with a <property>JBoss Server</property> by default. Sometimes it is necessary to override this automatic detection if you are using a custom configuration. The <guilabel>Server Ports</guilabel> section in the <guilabel>Server editor</guilabel> provides fields to customize port settings. Click the <guilabel>Configure...</guilabel> link to bring up the wizard for adjusting the settings for the ports.
</para>
@@ -716,16 +768,7 @@
</imageobject>
</mediaobject>
</figure>
-
- <para>In the <guilabel>Server editor</guilabel> you are able to edit the timeouts and the server pollers to use.</para>
-
- <note>
- <title>Note:</title>
- <para>
- By default, the Startup poller is set to JMX Poller. If you change the Startup poller to Timeout Poller (which may be required if you are using the minimal configuration for your server), this will do no polling at all and will only set the server state to <guilabel>"Started"</guilabel> after your startup timeout is reached.
- </para>
- </note>
-
+
<para id="com_line_arg">
The <guilabel>Server editor</guilabel> window also allows you to modify the server's launch configuration. The settings is available by clicking the the <guilabel>Open launch configuration</guilabel> link. The resulting window provides tabs for setting command line arguments, main, classpaths and other things that are relevant to launching the server.
</para>
12 years, 3 months
JBoss Tools SVN: r39815 - in trunk/as/plugins: org.jboss.ide.eclipse.as.jmx.integration/icons and 2 other directories.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2012-03-25 08:08:28 -0400 (Sun, 25 Mar 2012)
New Revision: 39815
Added:
trunk/as/plugins/org.jboss.ide.eclipse.as.jmx.integration/icons/jboss.png
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.jmx.integration/plugin.xml
trunk/as/plugins/org.jboss.ide.eclipse.as.jmx.integration/src/org/jboss/ide/eclipse/as/jmx/integration/JBoss70ConnectionProvider.java
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/plugin.xml
Log:
https://issues.jboss.org/browse/JBIDE-11396 changes to allow for proper icon for jmx connections
Added: trunk/as/plugins/org.jboss.ide.eclipse.as.jmx.integration/icons/jboss.png
===================================================================
(Binary files differ)
Property changes on: trunk/as/plugins/org.jboss.ide.eclipse.as.jmx.integration/icons/jboss.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.jmx.integration/plugin.xml
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.jmx.integration/plugin.xml 2012-03-25 11:20:46 UTC (rev 39814)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.jmx.integration/plugin.xml 2012-03-25 12:08:28 UTC (rev 39815)
@@ -19,6 +19,23 @@
class="org.jboss.ide.eclipse.as.jmx.integration.JBoss71ConnectionProvider">
</connectionProvider>
</extension>
+
+ <!-- JMX Stuff -->
+ <extension
+ point="org.jboss.tools.jmx.ui.providerUI">
+ <providerUI
+ icon="$nl$/icons/jboss.png"
+ id="org.jboss.ide.eclipse.as.core.extensions.jmx.JBossServerConnectionProvider"
+ name="JBoss Server"/>
+ <providerUI
+ icon="$nl$/icons/jboss.png"
+ id="org.jboss.ide.eclipse.as.core.extensions.jmx.JBoss70ConnectionProvider"
+ name="JBoss Server"/>
+ <providerUI
+ icon="$nl$/icons/jboss.png"
+ id="org.jboss.ide.eclipse.as.core.extensions.jmx.JBoss71ServerConnectionProvider"
+ name="JBoss Server"/>
+ </extension>
<extension
point="org.jboss.ide.eclipse.as.core.pollers">
@@ -104,4 +121,5 @@
</includes>
</viewerActionBinding>
</extension>
+
</plugin>
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.jmx.integration/src/org/jboss/ide/eclipse/as/jmx/integration/JBoss70ConnectionProvider.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.jmx.integration/src/org/jboss/ide/eclipse/as/jmx/integration/JBoss70ConnectionProvider.java 2012-03-25 11:20:46 UTC (rev 39814)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.jmx.integration/src/org/jboss/ide/eclipse/as/jmx/integration/JBoss70ConnectionProvider.java 2012-03-25 12:08:28 UTC (rev 39815)
@@ -22,8 +22,11 @@
import org.jboss.ide.eclipse.as.core.server.internal.ExtendedServerPropertiesAdapterFactory;
import org.jboss.ide.eclipse.as.core.server.internal.extendedproperties.JBossExtendedProperties;
import org.jboss.ide.eclipse.as.core.server.internal.extendedproperties.ServerExtendedProperties;
+import org.jboss.tools.jmx.core.ExtensionManager;
+import org.jboss.tools.jmx.core.IConnectionProvider;
import org.jboss.tools.jmx.core.IConnectionProviderListener;
import org.jboss.tools.jmx.core.IConnectionWrapper;
+import org.jboss.tools.jmx.core.providers.DefaultConnectionProvider;
import org.jboss.tools.jmx.core.providers.DefaultConnectionWrapper;
import org.jboss.tools.jmx.core.providers.MBeanServerConnectionDescriptor;
@@ -36,8 +39,11 @@
}
public String getName(IConnectionWrapper wrapper) {
- if( wrapper instanceof JBossServerConnection) {
- return ((JBossServerConnection)wrapper).getName();
+ if( wrapper instanceof ExtendedDefaultConnectionWrapper) {
+ MBeanServerConnectionDescriptor desc =
+ ((ExtendedDefaultConnectionWrapper)wrapper).getDescriptor();
+ if( desc != null )
+ return desc.getID();
}
return null;
}
@@ -108,10 +114,13 @@
}
public void connectionChanged(IConnectionWrapper connection) {
}
+
+ public IConnectionProvider getProvider() {
+ return ExtensionManager.getProvider(PROVIDER_ID);
+ }
}
public String getId() {
return PROVIDER_ID;
}
-
}
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.ui/plugin.xml
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.ui/plugin.xml 2012-03-25 11:20:46 UTC (rev 39814)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.ui/plugin.xml 2012-03-25 12:08:28 UTC (rev 39815)
@@ -485,16 +485,7 @@
</decorator>
</extension>
- <!-- JMX Stuff
- <extension
- point="org.jboss.tools.jmx.ui.providerUI">
- <providerUI
- icon="$nl$/icons/jboss.png"
- id="org.jboss.ide.eclipse.as.core.extensions.jmx.JBossServerConnectionProvider"
- name="JBoss Server">
- </providerUI>
- </extension>-->
- <extension
+ <extension
point="org.eclipse.debug.ui.launchConfigurationTypeImages">
<launchConfigurationTypeImage
configTypeID="org.jboss.ide.eclipse.as.core.server.startupConfiguration"
12 years, 3 months
JBoss Tools SVN: r39814 - trunk/jmx/plugins/org.jboss.tools.jmx.core/src/org/jboss/tools/jmx/core/providers.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2012-03-25 07:20:46 -0400 (Sun, 25 Mar 2012)
New Revision: 39814
Modified:
trunk/jmx/plugins/org.jboss.tools.jmx.core/src/org/jboss/tools/jmx/core/providers/DefaultConnectionWrapper.java
Log:
JBIDE-11064 - see comments on jira (missed override)
Modified: trunk/jmx/plugins/org.jboss.tools.jmx.core/src/org/jboss/tools/jmx/core/providers/DefaultConnectionWrapper.java
===================================================================
--- trunk/jmx/plugins/org.jboss.tools.jmx.core/src/org/jboss/tools/jmx/core/providers/DefaultConnectionWrapper.java 2012-03-24 00:12:11 UTC (rev 39813)
+++ trunk/jmx/plugins/org.jboss.tools.jmx.core/src/org/jboss/tools/jmx/core/providers/DefaultConnectionWrapper.java 2012-03-25 11:20:46 UTC (rev 39814)
@@ -121,7 +121,6 @@
}
}
- @Override
public void run(IJMXRunnable runnable, HashMap<String, String> prefs)
throws JMXException {
run(runnable);
12 years, 3 months
JBoss Tools SVN: r39813 - trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/util.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2012-03-23 20:12:11 -0400 (Fri, 23 Mar 2012)
New Revision: 39813
Modified:
trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/util/DirtyEditorTracker.java
Log:
Modified: trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/util/DirtyEditorTracker.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/util/DirtyEditorTracker.java 2012-03-24 00:11:27 UTC (rev 39812)
+++ trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/util/DirtyEditorTracker.java 2012-03-24 00:12:11 UTC (rev 39813)
@@ -1,3 +1,13 @@
+/*******************************************************************************
+ * Copyright (c) 2012 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.common.util;
import java.util.HashSet;
@@ -18,6 +28,11 @@
import org.eclipse.ui.IWorkbenchWindow;
import org.jboss.tools.common.CommonPlugin;
+/**
+ *
+ * @author Viacheslav Kabanovich
+ *
+ */
public class DirtyEditorTracker implements IWindowListener, IPageListener, IPartListener, IPropertyListener {
static DirtyEditorTracker INSTANCE;
12 years, 3 months
JBoss Tools SVN: r39812 - trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/util.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2012-03-23 20:11:27 -0400 (Fri, 23 Mar 2012)
New Revision: 39812
Modified:
trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/util/DirtyEditorTracker.java
Log:
JBIDE-11385
https://issues.jboss.org/browse/JBIDE-11385
avoid private static.
Modified: trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/util/DirtyEditorTracker.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/util/DirtyEditorTracker.java 2012-03-24 00:05:39 UTC (rev 39811)
+++ trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/util/DirtyEditorTracker.java 2012-03-24 00:11:27 UTC (rev 39812)
@@ -19,7 +19,7 @@
import org.jboss.tools.common.CommonPlugin;
public class DirtyEditorTracker implements IWindowListener, IPageListener, IPartListener, IPropertyListener {
- private static DirtyEditorTracker INSTANCE;
+ static DirtyEditorTracker INSTANCE;
private Set<IFile> dirtyFiles = new HashSet<IFile>();
12 years, 3 months
JBoss Tools SVN: r39811 - in trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common: util and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2012-03-23 20:05:39 -0400 (Fri, 23 Mar 2012)
New Revision: 39811
Added:
trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/util/DirtyEditorTracker.java
Modified:
trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/CommonPlugin.java
trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/util/EclipseUIUtil.java
Log:
JBIDE-11385
https://issues.jboss.org/browse/JBIDE-11385
Method getDirtyFiles() implemented through workbench/page/editor listener that collects all dirty editors.
Modified: trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/CommonPlugin.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/CommonPlugin.java 2012-03-23 23:01:40 UTC (rev 39810)
+++ trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/CommonPlugin.java 2012-03-24 00:05:39 UTC (rev 39811)
@@ -18,11 +18,14 @@
import org.eclipse.core.runtime.FileLocator;
import org.eclipse.core.runtime.Platform;
-import org.jboss.tools.common.log.BasePlugin;
+import org.eclipse.swt.widgets.Display;
+import org.jboss.tools.common.log.BaseUIPlugin;
import org.jboss.tools.common.log.IPluginLog;
+import org.jboss.tools.common.util.DirtyEditorTracker;
import org.osgi.framework.Bundle;
+import org.osgi.framework.BundleContext;
-public class CommonPlugin extends BasePlugin {
+public class CommonPlugin extends BaseUIPlugin {
public static final String PLUGIN_ID = "org.jboss.tools.common"; //$NON-NLS-1$
protected static CommonPlugin instance;
@@ -37,6 +40,14 @@
return instance;
}
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ Display.getDefault().asyncExec(new Runnable() {
+ public void run() {
+ DirtyEditorTracker.getInstance();
+ }
+ });
+ }
/**
* Gets message from plugin.properties
* @param key
Added: trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/util/DirtyEditorTracker.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/util/DirtyEditorTracker.java (rev 0)
+++ trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/util/DirtyEditorTracker.java 2012-03-24 00:05:39 UTC (rev 39811)
@@ -0,0 +1,171 @@
+package org.jboss.tools.common.util;
+
+import java.util.HashSet;
+import java.util.Set;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.ui.IEditorInput;
+import org.eclipse.ui.IEditorPart;
+import org.eclipse.ui.IEditorReference;
+import org.eclipse.ui.IFileEditorInput;
+import org.eclipse.ui.IPageListener;
+import org.eclipse.ui.IPartListener;
+import org.eclipse.ui.IPropertyListener;
+import org.eclipse.ui.IWindowListener;
+import org.eclipse.ui.IWorkbench;
+import org.eclipse.ui.IWorkbenchPage;
+import org.eclipse.ui.IWorkbenchPart;
+import org.eclipse.ui.IWorkbenchWindow;
+import org.jboss.tools.common.CommonPlugin;
+
+public class DirtyEditorTracker implements IWindowListener, IPageListener, IPartListener, IPropertyListener {
+ private static DirtyEditorTracker INSTANCE;
+
+ private Set<IFile> dirtyFiles = new HashSet<IFile>();
+
+ private DirtyEditorTracker() {
+ init();
+ }
+
+ public static DirtyEditorTracker getInstance() {
+ if(INSTANCE == null) {
+ INSTANCE = new DirtyEditorTracker();
+ }
+ return INSTANCE;
+ }
+
+ private void init() {
+ IWorkbench workbench = CommonPlugin.getDefault().getWorkbench();
+ if(workbench != null) {
+ IWorkbenchWindow[] windows = workbench.getWorkbenchWindows();
+ for (IWorkbenchWindow window: windows) {
+ if(window.getShell() != null) {
+ IWorkbenchPage[] pages = window.getPages();
+ for (IWorkbenchPage page: pages) {
+ IEditorReference[] rs = page.getEditorReferences();
+ for (IEditorReference r: rs) {
+ IEditorPart part = r.getEditor(false);
+ if(part != null) {
+ update(part);
+ part.addPropertyListener(this);
+ }
+ }
+ page.addPartListener(this);
+ }
+ window.addPageListener(this);
+ }
+ }
+ CommonPlugin.getDefault().getWorkbench().addWindowListener(this);
+ }
+ }
+
+ public Set<IFile> getDirtyFiles() {
+ Set<IFile> result = new HashSet<IFile>();
+ synchronized(this) {
+ result.addAll(dirtyFiles);
+ }
+ return result;
+ }
+
+ public synchronized boolean isDirty(IFile file) {
+ return dirtyFiles.contains(file);
+ }
+
+ @Override
+ public void partActivated(IWorkbenchPart part) {
+ }
+
+ @Override
+ public void partBroughtToTop(IWorkbenchPart part) {
+ }
+
+ @Override
+ public void partClosed(IWorkbenchPart part) {
+ if (part instanceof IEditorPart) {
+ editorClosed((IEditorPart)part);
+ }
+ }
+
+ @Override
+ public void partDeactivated(IWorkbenchPart part) {
+ }
+
+ @Override
+ public void partOpened(IWorkbenchPart part) {
+ if (part instanceof IEditorPart) {
+ editorOpened((IEditorPart)part);
+ }
+ }
+
+ @Override
+ public void pageActivated(IWorkbenchPage page) {
+ }
+
+ @Override
+ public void pageClosed(IWorkbenchPage page) {
+ page.removePartListener(this);
+ }
+
+ @Override
+ public void pageOpened(IWorkbenchPage page) {
+ page.addPartListener(this);
+ }
+
+ @Override
+ public void windowActivated(IWorkbenchWindow window) {
+ }
+
+ @Override
+ public void windowDeactivated(IWorkbenchWindow window) {
+ }
+
+ @Override
+ public void windowClosed(IWorkbenchWindow window) {
+ window.removePageListener(this);
+ }
+
+ @Override
+ public void windowOpened(IWorkbenchWindow window) {
+ window.addPageListener(this);
+ }
+
+ public void editorOpened(IEditorPart part) {
+ IEditorInput input = part.getEditorInput();
+ if(input instanceof IFileEditorInput) {
+ part.addPropertyListener(this);
+ }
+ }
+
+ public void editorClosed(IEditorPart part) {
+ part.removePropertyListener(this);
+ }
+
+ @Override
+ public void propertyChanged(Object source, int propId) {
+ if(propId == IEditorPart.PROP_DIRTY && source instanceof IEditorPart) {
+ IEditorPart part = (IEditorPart)source;
+ update(part);
+ }
+
+ }
+
+ private void update(IEditorPart part) {
+ IEditorInput input = part.getEditorInput();
+ if(input instanceof IFileEditorInput) {
+ IFile f = ((IFileEditorInput)input).getFile();
+ update(f, part.isDirty());
+ }
+ }
+
+ private synchronized void update(IFile file, boolean isDirty) {
+ if(isDirty) {
+ if(!dirtyFiles.contains(file)) {
+ dirtyFiles.add(file);
+ }
+ } else {
+ if(dirtyFiles.contains(file)) {
+ dirtyFiles.remove(file);
+ }
+ }
+ }
+}
Property changes on: trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/util/DirtyEditorTracker.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Modified: trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/util/EclipseUIUtil.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/util/EclipseUIUtil.java 2012-03-23 23:01:40 UTC (rev 39810)
+++ trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/util/EclipseUIUtil.java 2012-03-24 00:05:39 UTC (rev 39811)
@@ -102,38 +102,6 @@
* @return
*/
public static Set<IFile> getDirtyFiles() {
- final Set<IFile> dirtyFiles = new HashSet<IFile>();
- IWorkbenchWindow[] windows = PlatformUI.getWorkbench().getWorkbenchWindows();
- for (IWorkbenchWindow window : windows) {
- final IWorkbenchPage page = window.getActivePage();
- if (page != null) {
- // If this method is invoked in non-UI thread then some editors may throw Invalid Thread Access exception.
- // We use SafeRunnable as a workaround to avoid crashing.
- // See https://issues.jboss.org/browse/JBIDE-11385
- SafeRunnable sr = new SafeRunnable() {
- @Override
- public void run() throws Exception {
- IEditorPart[] editors = page.getDirtyEditors();
- for (IEditorPart editor : editors) {
- IEditorInput input = editor.getEditorInput();
- if(input instanceof IFileEditorInput) {
- IFile file = ((IFileEditorInput)input).getFile();
- dirtyFiles.add(file);
- }
- }
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jface.util.SafeRunnable#handleException(java.lang.Throwable)
- */
- @Override
- public void handleException(Throwable e) {
- CommonPlugin.getDefault().logError(e);
- }
- };
- SafeRunnable.run(sr);
- }
- }
- return dirtyFiles;
+ return DirtyEditorTracker.getInstance().getDirtyFiles();
}
}
\ No newline at end of file
12 years, 3 months
JBoss Tools SVN: r39810 - in workspace/dgolovin/env: .settings and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2012-03-23 19:01:40 -0400 (Fri, 23 Mar 2012)
New Revision: 39810
Added:
workspace/dgolovin/env/.project
workspace/dgolovin/env/.settings/
workspace/dgolovin/env/.settings/org.eclipse.m2e.core.prefs
workspace/dgolovin/env/pom.xml
workspace/dgolovin/env/src/
workspace/dgolovin/env/src/site/
workspace/dgolovin/env/test.product
Log:
test project for product build
Added: workspace/dgolovin/env/.project
===================================================================
--- workspace/dgolovin/env/.project (rev 0)
+++ workspace/dgolovin/env/.project 2012-03-23 23:01:40 UTC (rev 39810)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>env</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.m2e.core.maven2Builder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.m2e.core.maven2Nature</nature>
+ </natures>
+</projectDescription>
Property changes on: workspace/dgolovin/env/.project
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: workspace/dgolovin/env/.settings/org.eclipse.m2e.core.prefs
===================================================================
--- workspace/dgolovin/env/.settings/org.eclipse.m2e.core.prefs (rev 0)
+++ workspace/dgolovin/env/.settings/org.eclipse.m2e.core.prefs 2012-03-23 23:01:40 UTC (rev 39810)
@@ -0,0 +1,4 @@
+activeProfiles=
+eclipse.preferences.version=1
+resolveWorkspaceProjects=false
+version=1
Property changes on: workspace/dgolovin/env/.settings/org.eclipse.m2e.core.prefs
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: workspace/dgolovin/env/pom.xml
===================================================================
--- workspace/dgolovin/env/pom.xml (rev 0)
+++ workspace/dgolovin/env/pom.xml 2012-03-23 23:01:40 UTC (rev 39810)
@@ -0,0 +1,186 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.test.dev</groupId>
+ <artifactId>env</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <name>Test Eclipse Repository Packaging</name>
+ <packaging>eclipse-repository</packaging>
+ <properties>
+ <tychoVersion>0.14.1</tychoVersion>
+ </properties>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <version>1.3</version>
+ </plugin>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-packaging-plugin</artifactId>
+ <version>${tychoVersion}</version>
+ <configuration>
+ <format>'v'yyyyMMddHHmm</format>
+ <archiveSite>true</archiveSite>
+ <environments>
+ <environment>
+ <os>linux</os>
+ <ws>gtk</ws>
+ <arch>x86</arch>
+ </environment>
+ <environment>
+ <os>linux</os>
+ <ws>gtk</ws>
+ <arch>x86_64</arch>
+ </environment>
+ <environment>
+ <os>win32</os>
+ <ws>win32</ws>
+ <arch>x86</arch>
+ </environment>
+ <environment>
+ <os>win32</os>
+ <ws>win32</ws>
+ <arch>x86_64</arch>
+ </environment>
+ </environments>
+ </configuration>
+ </plugin>
+
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-maven-plugin</artifactId>
+ <version>${tychoVersion}</version>
+ <extensions>true</extensions>
+ </plugin>
+
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>target-platform-configuration</artifactId>
+ <version>${tychoVersion}</version>
+ <configuration>
+ <resolver>p2</resolver>
+ <ignoreTychoRepositories>true</ignoreTychoRepositories>
+ <environments>
+ <environment>
+ <os>linux</os>
+ <ws>gtk</ws>
+ <arch>x86</arch>
+ </environment>
+ <environment>
+ <os>linux</os>
+ <ws>gtk</ws>
+ <arch>x86_64</arch>
+ </environment>
+ <environment>
+ <os>win32</os>
+ <ws>win32</ws>
+ <arch>x86</arch>
+ </environment>
+ <environment>
+ <os>win32</os>
+ <ws>win32</ws>
+ <arch>x86_64</arch>
+ </environment>
+ </environments>
+ </configuration>
+ </plugin>
+
+ <!-- to skip running tests (compile only) use commandline flag: -Dmaven.test.skip
+ To allow all tests in a pom to pass/fail, use commandline flag: -fae (fail
+ at end) -->
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-surefire-plugin</artifactId>
+ <version>${tychoVersion}</version>
+ <configuration>
+ <useUIHarness>true</useUIHarness>
+ <useUIThread>true</useUIThread>
+ <!-- set useUIThread=true for regular ui tests -->
+ <!-- set useUIThread=false for swtbot tests (?) -->
+ <product>org.eclipse.platform.ide</product>
+ <application>org.eclipse.ui.ide.workbench</application>
+ <dependencies>
+ <dependency>
+ <type>p2-installable-unit</type>
+ <artifactId>org.eclipse.platform.ide</artifactId>
+ <version>0.0.0</version>
+ </dependency>
+ </dependencies>
+ <includes>
+ <include>**/*TestSuite*.class</include>
+ </includes>
+ <parallel>true</parallel>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-compiler-plugin</artifactId>
+ <version>${tychoVersion}</version>
+ <configuration>
+ <encoding>UTF-8</encoding>
+ <source>1.6</source>
+ <target>1.6</target>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-p2-publisher-plugin</artifactId>
+ <version>${tychoVersion}</version>
+ <configuration>
+ <publishArtifacts>true</publishArtifacts>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-p2-director-plugin</artifactId>
+ <version>${tychoVersion}</version>
+ <executions>
+ <execution>
+ <id>materialize-products</id>
+ <goals>
+ <goal>materialize-products</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>archive-products</id>
+ <goals>
+ <goal>archive-products</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <products>
+ <product>
+ <id>org.test.dev.env</id>
+ </product>
+ </products>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ <repositories>
+ <repository>
+ <id>eclipse</id>
+ <url>http://mirrors.xmission.com/eclipse/releases/indigo</url>
+ <layout>p2</layout>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ </repository>
+ <repository>
+ <id>gef</id>
+ <url>http://download.eclipse.org/tools/gef/updates/releases/</url>
+ <layout>p2</layout>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ </repository>
+ </repositories>
+</project>
\ No newline at end of file
Property changes on: workspace/dgolovin/env/pom.xml
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: workspace/dgolovin/env/test.product
===================================================================
--- workspace/dgolovin/env/test.product (rev 0)
+++ workspace/dgolovin/env/test.product 2012-03-23 23:01:40 UTC (rev 39810)
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?pde version="3.5"?>
+
+<product name="Dev Env" uid="org.test.dev.env" id="org.eclipse.sdk.ide" application="org.eclipse.ui.ide.workbench" version="1.0.0.qualifier" useFeatures="true" includeLaunchers="true">
+
+ <configIni use="default">
+ </configIni>
+
+ <launcherArgs>
+ <vmArgs>-Xmx512m</vmArgs>
+ <vmArgsMac>-XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts</vmArgsMac>
+ </launcherArgs>
+
+ <splash
+ location="org.eclipse.platform" />
+ <launcher name="devenv">
+ <solaris/>
+ <win useIco="false">
+ <bmp/>
+ </win>
+ </launcher>
+
+ <vm>
+ </vm>
+
+ <plugins>
+ </plugins>
+
+ <features>
+ <feature id="org.eclipse.sdk" version="3.7.2.r37x_v20111213-7Q7xALDPb32vCjY6UACVPdFTz-icPtJkUadz0lMmk4z-8"/>
+ <feature id="org.eclipse.platform" version="3.7.2.v20120207-1839-9gF7UHPDFxGjd-PqDr2jX_4yKaumkoHTz04_q-q"/>
+ </features>
+
+ <configurations>
+ <plugin id="org.eclipse.core.runtime" autoStart="true" startLevel="4" />
+ <plugin id="org.eclipse.equinox.common" autoStart="true" startLevel="2" />
+ <plugin id="org.eclipse.equinox.ds" autoStart="true" startLevel="2" />
+ <plugin id="org.eclipse.equinox.p2.reconciler.dropins" autoStart="true" startLevel="4" />
+ <plugin id="org.eclipse.equinox.simpleconfigurator" autoStart="true" startLevel="1" />
+ </configurations>
+
+</product>
Property changes on: workspace/dgolovin/env/test.product
___________________________________________________________________
Added: svn:mime-type
+ text/plain
12 years, 3 months