JBoss Tools SVN: r6182 - trunk/jsf/docs/userguide/en/modules.
by jbosstools-commits@lists.jboss.org
Author: ykryvinchanka
Date: 2008-02-07 12:20:30 -0500 (Thu, 07 Feb 2008)
New Revision: 6182
Modified:
trunk/jsf/docs/userguide/en/modules/editors.xml
Log:
http://jira.jboss.com/jira/browse/JBDS-127 code lines corrected
Modified: trunk/jsf/docs/userguide/en/modules/editors.xml
===================================================================
--- trunk/jsf/docs/userguide/en/modules/editors.xml 2008-02-07 17:10:15 UTC (rev 6181)
+++ trunk/jsf/docs/userguide/en/modules/editors.xml 2008-02-07 17:20:30 UTC (rev 6182)
@@ -859,7 +859,8 @@
CSS is defined on your page in the following way:</para>
<para>Code:</para>
- <programlisting role="XML"><![CDATA[<link rel="stylesheet" type="text/css" href="#{facesContext.externalContext.requestContextPath}/style.css"/>
+ <programlisting role="XML"><![CDATA[<link rel="stylesheet" type="text/css"
+ href="#{facesContext.externalContext.requestContextPath}/style.css"/>
]]></programlisting>
<para>This will work fine in runtime, but the Visual Page Editor doesn't
16 years, 4 months
JBoss Tools SVN: r6181 - trunk/hibernatetools/docs/reference/en/modules.
by jbosstools-commits@lists.jboss.org
Author: ykryvinchanka
Date: 2008-02-07 12:10:15 -0500 (Thu, 07 Feb 2008)
New Revision: 6181
Modified:
trunk/hibernatetools/docs/reference/en/modules/codegen.xml
trunk/hibernatetools/docs/reference/en/modules/reverseengineering.xml
Log:
http://jira.jboss.com/jira/browse/JBDS-127 code lines corrected
Modified: trunk/hibernatetools/docs/reference/en/modules/codegen.xml
===================================================================
--- trunk/hibernatetools/docs/reference/en/modules/codegen.xml 2008-02-07 17:00:48 UTC (rev 6180)
+++ trunk/hibernatetools/docs/reference/en/modules/codegen.xml 2008-02-07 17:10:15 UTC (rev 6181)
@@ -463,11 +463,15 @@
<para>The contents of the file is something like this:</para>
<programlisting><#foreach property in pojo.getAllPropertiesIterator()>
- ${pojo.getPropertyGetModifiers(property)} ${pojo.getJavaTypeName(property, jdk5)} ${pojo.getGetterSignature(property)}() {
+ ${pojo.getPropertyGetModifiers(property)}
+ ${pojo.getJavaTypeName(property, jdk5)}
+ ${pojo.getGetterSignature(property)}() {
return this.${property.name};
}
- ${pojo.getPropertySetModifiers(property)} void set${pojo.getPropertyName(property)}(${pojo.getJavaTypeName(property, jdk5)} ${property.name}) {
+ ${pojo.getPropertySetModifiers(property)} void set${pojo.getPropertyName(property)}
+ (${pojo.getJavaTypeName(property, jdk5)} ${property.name})
+ {
this.${property.name} = ${property.name};
}
</#foreach></programlisting>
@@ -476,11 +480,16 @@
generation just adding a little Freemarker syntax to the above source code:</para>
<programlisting><#foreach property in pojo.getAllPropertiesIterator()>
- ${pojo.getPropertyGetModifiers(property)} ${pojo.getJavaTypeName(property, jdk5)} ${pojo.getGetterSignature(property)}() {
+ ${pojo.getPropertyGetModifiers(property)}
+ ${pojo.getJavaTypeName(property, jdk5)}
+ ${pojo.getGetterSignature(property)}()
+ {
return this.${property.name};
}
- ${pojo.getPropertySetModifiers(property)} void set${pojo.getPropertyName(property)}(${pojo.getJavaTypeName(property, jdk5)} ${property.name}) {
+ ${pojo.getPropertySetModifiers(property)} void set${pojo.getPropertyName(property)}
+ (${pojo.getJavaTypeName(property, jdk5)} ${property.name})
+ {
<#if pojo.hasMetaAttribute(property, "pre-cond")>
${c2j.getMetaAsString(property, "pre-cond","\n")}
</#if>
Modified: trunk/hibernatetools/docs/reference/en/modules/reverseengineering.xml
===================================================================
--- trunk/hibernatetools/docs/reference/en/modules/reverseengineering.xml 2008-02-07 17:00:48 UTC (rev 6180)
+++ trunk/hibernatetools/docs/reference/en/modules/reverseengineering.xml 2008-02-07 17:10:15 UTC (rev 6181)
@@ -152,7 +152,7 @@
</section>
</section>
- <section id="type_map">
+ <section>
<title>Type mappings (<type-mapping>)</title>
<para>The <emphasis>
@@ -188,7 +188,8 @@
<sql-type jdbc-type="NUMERIC" precision="15" hibernate-type="big_decimal"/>
<sql-type jdbc-type="NUMERIC" not-null="true" hibernate-type="long" />
<sql-type jdbc-type="NUMERIC" not-null="false" hibernate-type="java.lang.Long" />
- <sql-type jdbc-type="VARCHAR" length="1" not-null="true" hibernate-type="java.lang.Character"/>
+ <sql-type jdbc-type="VARCHAR" length="1" not-null="true"
+ hibernate-type="java.lang.Character"/>
<sql-type jdbc-type="VARCHAR" hibernate-type="your.package.TrimStringUserType"/>
<sql-type jdbc-type="VARCHAR" length="1" hibernate-type="char"/>
<sql-type jdbc-type="VARCHAR" hibernate-type="string"/>
@@ -397,7 +398,7 @@
</programlistingco>
</section>
- <section id="tab_and_col">
+ <section>
<title>Specific table configuration (<table>)</title>
<para><emphasis>
16 years, 4 months
JBoss Tools SVN: r6180 - branches/jbosstools-2.0.x/hibernatetools/plugins/org.jboss.tools.hibernate.xml/resources/help.
by jbosstools-commits@lists.jboss.org
Author: dazarov
Date: 2008-02-07 12:00:48 -0500 (Thu, 07 Feb 2008)
New Revision: 6180
Modified:
branches/jbosstools-2.0.x/hibernatetools/plugins/org.jboss.tools.hibernate.xml/resources/help/keys-hibernate3.properties
Log:
http://jira.jboss.com/jira/browse/JBIDE-1757 and http://jira.jboss.com/jira/browse/JBIDE-1756
Modified: branches/jbosstools-2.0.x/hibernatetools/plugins/org.jboss.tools.hibernate.xml/resources/help/keys-hibernate3.properties
===================================================================
--- branches/jbosstools-2.0.x/hibernatetools/plugins/org.jboss.tools.hibernate.xml/resources/help/keys-hibernate3.properties 2008-02-07 16:47:55 UTC (rev 6179)
+++ branches/jbosstools-2.0.x/hibernatetools/plugins/org.jboss.tools.hibernate.xml/resources/help/keys-hibernate3.properties 2008-02-07 17:00:48 UTC (rev 6180)
@@ -11,27 +11,72 @@
FileHibConfig3_Properties.WindowTitle=Edit Properties
FileHibConfig3_Properties.Title=Hibernate Configuration File 3.0
+FileHibConfig3_Rename.WindowTitle=Rename
+FileHibConfig3_Rename.Title=Hibernate Configuration File 3.0
+
+HibConfig3SessionFactory_Properties.WindowTitle=Edit Properties
+HibConfig3SessionFactory_Properties.Title=Session Factory Folder
+
+HibConfig3PropertiesFolder_Properties.WindowTitle=Edit Properties
+HibConfig3PropertiesFolder_Properties.Title=Properties Folder
+
HibConfig3PropertiesFolder_AddProperty.WindowTitle=Add Property
HibConfig3PropertiesFolder_AddProperty.Title=Property
+HibConfig3Property_Properties.WindowTitle=Edit Properties
+HibConfig3Property_Properties.Title=Property
+
+HibConfig3MappingsFolder_Properties.WindowTitle=Edit Properties
+HibConfig3MappingsFolder_Properties.Title=Mappings Folder
+
HibConfig3MappingsFolder_AddMapping.WindowTitle=Add Mapping
HibConfig3MappingsFolder_AddMapping.Title=Mapping
-HibConfig3CachesFolder_AddClassCache.WindowTitle=Add Class Cashe
-HibConfig3CachesFolder_AddClassCache.Title=Class Cashe
+HibConfig3Mapping_Properties.WindowTitle=Edit Properties
+HibConfig3Mapping_Properties.Title=Mapping
-HibConfig3CachesFolder_AddCollectionCache.WindowTitle=Add Collection Cashe
-HibConfig3CachesFolder_AddCollectionCache.Title=Collection Cashe
+HibConfig3CachesFolder_Properties.WindowTitle=Edit Properties
+HibConfig3CachesFolder_Properties.Title=Caches Folder
+HibConfig3CachesFolder_AddClassCache.WindowTitle=Add Class Cache
+HibConfig3CachesFolder_AddClassCache.Title=Class Cache
+
+HibConfig3ClassCache_Properties.WindowTitle=Edit Properties
+HibConfig3ClassCache_Properties.Title=Class Cache
+
+HibConfig3CachesFolder_AddCollectionCache.WindowTitle=Add Collection Cache
+HibConfig3CachesFolder_AddCollectionCache.Title=Collection Cache
+
+HibConfig3CollectionCache_Properties.WindowTitle=Edit Properties
+HibConfig3CollectionCache_Properties.Title=Collection Cache
+
+HibConfig3EventsFolder_Properties.WindowTitle=Edit Properties
+HibConfig3EventsFolder_Properties.Title=Events Folder
+
HibConfig3EventsFolder_AddEvent.WindowTitle=Add Event
HibConfig3EventsFolder_AddEvent.Title=Event
+HibConfig3Event_Properties.WindowTitle=Edit Properties
+HibConfig3Event_Properties.Title=Event
+
+HibConfig3ListenersFolder_Properties.WindowTitle=Edit Properties
+HibConfig3ListenersFolder_Properties.Title=Listeners Folder
+
HibConfig3ListenersFolder_AddListener.WindowTitle=Add Listener
HibConfig3ListenersFolder_AddListener.Title=Listener
+HibConfig3Listener_Properties.WindowTitle=Edit Properties
+HibConfig3Listener_Properties.Title=Listener
+
+HibConfig3Security_Properties.WindowTitle=Edit Properties
+HibConfig3Security_Properties.Title=Security Folder
+
HibConfig3Security_AddGrant.WindowTitle=Add Grant
HibConfig3Security_AddGrant.Title=Grant
+HibConfig3Grant_Properties.WindowTitle=Edit Properties
+HibConfig3Grant_Properties.Title=Grant
+
### File Hibernate
FileHibernate3=/model/noHelpYet.html
16 years, 4 months
JBoss Tools SVN: r6179 - trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/resources/help.
by jbosstools-commits@lists.jboss.org
Author: dazarov
Date: 2008-02-07 11:47:55 -0500 (Thu, 07 Feb 2008)
New Revision: 6179
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/resources/help/keys-hibernate3.properties
Log:
http://jira.jboss.com/jira/browse/JBIDE-1757
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/resources/help/keys-hibernate3.properties
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/resources/help/keys-hibernate3.properties 2008-02-07 16:47:19 UTC (rev 6178)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/resources/help/keys-hibernate3.properties 2008-02-07 16:47:55 UTC (rev 6179)
@@ -11,6 +11,9 @@
FileHibConfig3_Properties.WindowTitle=Edit Properties
FileHibConfig3_Properties.Title=Hibernate Configuration File 3.0
+FileHibConfig3_Rename.WindowTitle=Rename
+FileHibConfig3_Rename.Title=Hibernate Configuration File 3.0
+
HibConfig3SessionFactory_Properties.WindowTitle=Edit Properties
HibConfig3SessionFactory_Properties.Title=Session Factory Folder
16 years, 4 months
JBoss Tools SVN: r6178 - trunk/documentation/guides/userguide/Legacy-jsf-struts/en/modules.
by jbosstools-commits@lists.jboss.org
Author: ykryvinchanka
Date: 2008-02-07 11:47:19 -0500 (Thu, 07 Feb 2008)
New Revision: 6178
Modified:
trunk/documentation/guides/userguide/Legacy-jsf-struts/en/modules/struts_application.xml
Log:
http://jira.jboss.com/jira/browse/JBDS-127 code lines corrected
Modified: trunk/documentation/guides/userguide/Legacy-jsf-struts/en/modules/struts_application.xml
===================================================================
--- trunk/documentation/guides/userguide/Legacy-jsf-struts/en/modules/struts_application.xml 2008-02-07 16:36:34 UTC (rev 6177)
+++ trunk/documentation/guides/userguide/Legacy-jsf-struts/en/modules/struts_application.xml 2008-02-07 16:47:19 UTC (rev 6178)
@@ -297,7 +297,8 @@
this.greetName = "";
}
- public ActionErrors validate(ActionMapping actionMapping, HttpServletRequest request)
+ public ActionErrors validate(ActionMapping actionMapping,
+ HttpServletRequest request)
{
ActionErrors errors = new ActionErrors();
return errors;
16 years, 4 months
JBoss Tools SVN: r6177 - trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/resources/help.
by jbosstools-commits@lists.jboss.org
Author: dazarov
Date: 2008-02-07 11:36:34 -0500 (Thu, 07 Feb 2008)
New Revision: 6177
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/resources/help/keys-hibernate3.properties
Log:
http://jira.jboss.com/jira/browse/JBIDE-1756
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/resources/help/keys-hibernate3.properties
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/resources/help/keys-hibernate3.properties 2008-02-07 16:35:43 UTC (rev 6176)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/resources/help/keys-hibernate3.properties 2008-02-07 16:36:34 UTC (rev 6177)
@@ -11,27 +11,69 @@
FileHibConfig3_Properties.WindowTitle=Edit Properties
FileHibConfig3_Properties.Title=Hibernate Configuration File 3.0
+HibConfig3SessionFactory_Properties.WindowTitle=Edit Properties
+HibConfig3SessionFactory_Properties.Title=Session Factory Folder
+
+HibConfig3PropertiesFolder_Properties.WindowTitle=Edit Properties
+HibConfig3PropertiesFolder_Properties.Title=Properties Folder
+
HibConfig3PropertiesFolder_AddProperty.WindowTitle=Add Property
HibConfig3PropertiesFolder_AddProperty.Title=Property
+HibConfig3Property_Properties.WindowTitle=Edit Properties
+HibConfig3Property_Properties.Title=Property
+
+HibConfig3MappingsFolder_Properties.WindowTitle=Edit Properties
+HibConfig3MappingsFolder_Properties.Title=Mappings Folder
+
HibConfig3MappingsFolder_AddMapping.WindowTitle=Add Mapping
HibConfig3MappingsFolder_AddMapping.Title=Mapping
-HibConfig3CachesFolder_AddClassCache.WindowTitle=Add Class Cashe
-HibConfig3CachesFolder_AddClassCache.Title=Class Cashe
+HibConfig3Mapping_Properties.WindowTitle=Edit Properties
+HibConfig3Mapping_Properties.Title=Mapping
-HibConfig3CachesFolder_AddCollectionCache.WindowTitle=Add Collection Cashe
-HibConfig3CachesFolder_AddCollectionCache.Title=Collection Cashe
+HibConfig3CachesFolder_Properties.WindowTitle=Edit Properties
+HibConfig3CachesFolder_Properties.Title=Caches Folder
+HibConfig3CachesFolder_AddClassCache.WindowTitle=Add Class Cache
+HibConfig3CachesFolder_AddClassCache.Title=Class Cache
+
+HibConfig3ClassCache_Properties.WindowTitle=Edit Properties
+HibConfig3ClassCache_Properties.Title=Class Cache
+
+HibConfig3CachesFolder_AddCollectionCache.WindowTitle=Add Collection Cache
+HibConfig3CachesFolder_AddCollectionCache.Title=Collection Cache
+
+HibConfig3CollectionCache_Properties.WindowTitle=Edit Properties
+HibConfig3CollectionCache_Properties.Title=Collection Cache
+
+HibConfig3EventsFolder_Properties.WindowTitle=Edit Properties
+HibConfig3EventsFolder_Properties.Title=Events Folder
+
HibConfig3EventsFolder_AddEvent.WindowTitle=Add Event
HibConfig3EventsFolder_AddEvent.Title=Event
+HibConfig3Event_Properties.WindowTitle=Edit Properties
+HibConfig3Event_Properties.Title=Event
+
+HibConfig3ListenersFolder_Properties.WindowTitle=Edit Properties
+HibConfig3ListenersFolder_Properties.Title=Listeners Folder
+
HibConfig3ListenersFolder_AddListener.WindowTitle=Add Listener
HibConfig3ListenersFolder_AddListener.Title=Listener
+HibConfig3Listener_Properties.WindowTitle=Edit Properties
+HibConfig3Listener_Properties.Title=Listener
+
+HibConfig3Security_Properties.WindowTitle=Edit Properties
+HibConfig3Security_Properties.Title=Security Folder
+
HibConfig3Security_AddGrant.WindowTitle=Add Grant
HibConfig3Security_AddGrant.Title=Grant
+HibConfig3Grant_Properties.WindowTitle=Edit Properties
+HibConfig3Grant_Properties.Title=Grant
+
### File Hibernate
FileHibernate3=/model/noHelpYet.html
16 years, 4 months
JBoss Tools SVN: r6176 - trunk/documentation/guides/userguide/GettingStartedGuide/en/modules.
by jbosstools-commits@lists.jboss.org
Author: ykryvinchanka
Date: 2008-02-07 11:35:43 -0500 (Thu, 07 Feb 2008)
New Revision: 6176
Modified:
trunk/documentation/guides/userguide/GettingStartedGuide/en/modules/first_seam.xml
trunk/documentation/guides/userguide/GettingStartedGuide/en/modules/rad_jsf_application.xml
Log:
http://jira.jboss.com/jira/browse/JBDS-127 code lines corrected
Modified: trunk/documentation/guides/userguide/GettingStartedGuide/en/modules/first_seam.xml
===================================================================
--- trunk/documentation/guides/userguide/GettingStartedGuide/en/modules/first_seam.xml 2008-02-07 16:35:30 UTC (rev 6175)
+++ trunk/documentation/guides/userguide/GettingStartedGuide/en/modules/first_seam.xml 2008-02-07 16:35:43 UTC (rev 6176)
@@ -350,7 +350,8 @@
public void simpleAction()
{
//implement your business logic here
- log.info("simpleAction.simpleAction() action called with: #{simpleAction.value}");
+ log.info("simpleAction.simpleAction()
+ action called with: #{simpleAction.value}");
facesMessages.add("simpleAction #{simpleAction.value}");
}
Modified: trunk/documentation/guides/userguide/GettingStartedGuide/en/modules/rad_jsf_application.xml
===================================================================
--- trunk/documentation/guides/userguide/GettingStartedGuide/en/modules/rad_jsf_application.xml 2008-02-07 16:35:30 UTC (rev 6175)
+++ trunk/documentation/guides/userguide/GettingStartedGuide/en/modules/rad_jsf_application.xml 2008-02-07 16:35:43 UTC (rev 6176)
@@ -374,7 +374,8 @@
public String playagain ()
{
FacesContext context = FacesContext.getCurrentInstance();
- HttpSession session = (HttpSession) context.getExternalContext().getSession(false);
+ HttpSession session =
+ (HttpSession) context.getExternalContext().getSession(false);
session.invalidate();
return "playagain";
}
@@ -389,7 +390,8 @@
else
{
FacesContext context = FacesContext.getCurrentInstance();
- ResourceBundle bundle = ResourceBundle.getBundle("game.messages", context.getViewRoot().getLocale());
+ ResourceBundle bundle = ResourceBundle.getBundle("game.messages",
+ context.getViewRoot().getLocale());
String msg = "";
// if number bigger, get appropriate message
if ( userNumber.intValue() > randomNumber )
@@ -445,7 +447,8 @@
public String playagain ()
{
FacesContext context = FacesContext.getCurrentInstance();
- HttpSession session = (HttpSession) context.getExternalContext().getSession(false);
+ HttpSession session =
+ (HttpSession) context.getExternalContext().getSession(false);
session.invalidate();
return "playagain";
}
@@ -463,7 +466,9 @@
{
// get a reference to properties file to retrieve messages
FacesContext context = FacesContext.getCurrentInstance();
- ResourceBundle bundle = ResourceBundle.getBundle("game.messages", context.getViewRoot().getLocale());
+ ResourceBundle bundle =
+ ResourceBundle.getBundle("game.messages",
+ context.getViewRoot().getLocale());
String msg = "";
// if number is bigger, get appropriate message
if ( userNumber.intValue() > randomNumber )
@@ -499,7 +504,8 @@
<faces-config version="1.2" xmlns="http://java.sun.com/xml/ns/javaee
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2_.xsd">
+xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
+ http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2_.xsd">
<navigation-rule>
<from-view-id>*</from-view-id>
@@ -900,7 +906,8 @@
<f:validateLongRange minimum="0" maximum="100"/>
</h:inputText>
<br/><br/>
- <h:commandButton value="#{msg.makeguess_button}" action="#{NumberBean.checkGuess}"/>
+ <h:commandButton value=
+ "#{msg.makeguess_button}" action="#{NumberBean.checkGuess}"/>
</h:form>
</f:view>
</html>
@@ -922,7 +929,8 @@
<f:param value="#{NumberBean.userNumber}"/>
</h:outputFormat>
<br/><br/>
- <h:commandButton value="#{msg.trayagain_button}" action="#{NumberBean.playagain}"/>
+ <h:commandButton value=
+ "#{msg.trayagain_button}" action="#{NumberBean.playagain}"/>
</h:form>
</f:view>
</html>
16 years, 4 months
JBoss Tools SVN: r6175 - trunk/documentation/guides/userguide/GettingStartedGuide/en/modules.
by jbosstools-commits@lists.jboss.org
Author: ykryvinchanka
Date: 2008-02-07 11:35:30 -0500 (Thu, 07 Feb 2008)
New Revision: 6175
Modified:
trunk/documentation/guides/userguide/GettingStartedGuide/en/modules/jsp_application.xml
Log:
http://jira.jboss.com/jira/browse/JBDS-226 AS. Scale param is defined
Modified: trunk/documentation/guides/userguide/GettingStartedGuide/en/modules/jsp_application.xml
===================================================================
--- trunk/documentation/guides/userguide/GettingStartedGuide/en/modules/jsp_application.xml 2008-02-07 16:20:39 UTC (rev 6174)
+++ trunk/documentation/guides/userguide/GettingStartedGuide/en/modules/jsp_application.xml 2008-02-07 16:35:30 UTC (rev 6175)
@@ -214,7 +214,7 @@
<title>Project Archives</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/jsp_application/jsp_application_8.png"/>
+ <imagedata fileref="images/jsp_application/jsp_application_8.png" scale="80"/>
</imageobject>
</mediaobject>
</figure>
16 years, 4 months
JBoss Tools SVN: r6174 - trunk/as/docs/reference/en/modules.
by jbosstools-commits@lists.jboss.org
Author: ykryvinchanka
Date: 2008-02-07 11:20:39 -0500 (Thu, 07 Feb 2008)
New Revision: 6174
Modified:
trunk/as/docs/reference/en/modules/perspective.xml
Log:
http://jira.jboss.com/jira/browse/JBDS-127 code lines corrected
Modified: trunk/as/docs/reference/en/modules/perspective.xml
===================================================================
--- trunk/as/docs/reference/en/modules/perspective.xml 2008-02-07 16:19:37 UTC (rev 6173)
+++ trunk/as/docs/reference/en/modules/perspective.xml 2008-02-07 16:20:39 UTC (rev 6174)
@@ -451,11 +451,13 @@
<programlisting role="XML"><![CDATA[...
<server>
...
- <mbean code="org.jboss.ejb.EJBDeployer" name="jboss.ejb:service=EJBDeployer" xmbean-dd="">
+ <mbean code="org.jboss.ejb.EJBDeployer"
+ name="jboss.ejb:service=EJBDeployer" xmbean-dd="">
<!-- Inline XMBean Descriptor BEGIN -->
<xmbean>
- <description>The EJBDeployer responsible for ejb jar deployment</description>
+ <description>
+ The EJBDeployer responsible for ejb jar deployment</description>
...
</xmbean>
</mbean>
16 years, 4 months
JBoss Tools SVN: r6173 - in trunk/hibernatetools/plugins/org.hibernate.eclipse.console: src/org/hibernate/eclipse/launch and 2 other directories.
by jbosstools-commits@lists.jboss.org
Author: dgeraskov
Date: 2008-02-07 11:19:37 -0500 (Thu, 07 Feb 2008)
New Revision: 6173
Added:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/core/
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/core/refactoring/
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/core/refactoring/HibernateRefactoringUtil.java
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/core/refactoring/LaunchConfigurationResourceNameChange.java
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/core/refactoring/MoveResourceParticipant.java
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/core/refactoring/RenameResourceParticipant.java
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/plugin.xml
Log:
http://jira.jboss.com/jira/browse/JBIDE-1558
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/plugin.xml
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/plugin.xml 2008-02-07 16:19:35 UTC (rev 6172)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/plugin.xml 2008-02-07 16:19:37 UTC (rev 6173)
@@ -597,6 +597,63 @@
id="org.hibernate.eclipse.hqleditor.preferencekeywords"
label="hql editor colors coloring highlighting query"/>
</extension>
+ <extension
+ point="org.eclipse.ltk.core.refactoring.renameParticipants">
+ <!--renameParticipant
+ class="org.hibernate.eclipse.launch.core.refactoring.RenameProjectParticipant"
+ id="org.hibernate.eclipse.launch.core.refactoring.RenameProjectParticipant"
+ name="Launch Configurations projectrename updates">
+ <enablement>
+ <with variable="element">
+ <instanceof value="org.eclipse.jdt.core.IJavaProject"/>
+ </with>
+ </enablement>
+ </renameParticipant>
+ <renameParticipant
+ class="org.hibernate.eclipse.launch.core.refactoring.RenamePackageParticipant"
+ id="org.hibernate.eclipse.launch.core.refactoring.RenamePackageParticipant"
+ name="Launch Configurations package rename updates">
+ <enablement>
+ <with variable="element">
+ <instanceof value="org.eclipse.jdt.core.IPackageFragment"/>
+ </with>
+ </enablement>
+ </renameParticipant-->
+ <renameParticipant
+ class="org.hibernate.eclipse.launch.core.refactoring.RenameResourceParticipant"
+ id="org.hibernate.eclipse.launch.core.refactoring.RenameResourceParticipant"
+ name="Launch Configurations resource rename updates">
+ <enablement>
+ <with variable="element">
+ <instanceof value="org.eclipse.core.resources.IResource"/>
+ </with>
+ </enablement>
+ </renameParticipant>
+ </extension>
+ <extension
+ point="org.eclipse.ltk.core.refactoring.moveParticipants">
+ <moveParticipant
+ class="org.hibernate.eclipse.launch.core.refactoring.MoveResourceParticipant"
+ id="org.hibernate.eclipse.launch.core.refactoring.MoveResourceParticipant"
+ name="Launch Configurations resource move updates">
+ <enablement>
+ <with variable="element">
+ <instanceof value="org.eclipse.core.resources.IResource"/>
+ </with>
+ </enablement>
+ </moveParticipant>
+ <!--moveParticipant
+ class="org.hibernate.eclipse.launch.core.refactoring.MovePackageParticipant"
+ id="org.hibernate.eclipse.launch.core.refactoring.MovePackageParticipant"
+ name="Launch Configurations resource move updates">
+ <enablement>
+ <with variable="element">
+ <instanceof value="org.eclipse.jdt.core.IPackageFragment"/>
+ </with>
+ </enablement>
+ </moveParticipant-->
+
+ </extension>
<!-- <extension
point="org.eclipse.ui.themes">
<themeElementCategory
Added: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/core/refactoring/HibernateRefactoringUtil.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/core/refactoring/HibernateRefactoringUtil.java (rev 0)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/core/refactoring/HibernateRefactoringUtil.java 2008-02-07 16:19:37 UTC (rev 6173)
@@ -0,0 +1,228 @@
+/*******************************************************************************
+ * Copyright (c) 2007-2008 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
+ *
+ * Contributor:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.hibernate.eclipse.launch.core.refactoring;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.Iterator;
+import java.util.List;
+
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.Path;
+import org.eclipse.debug.core.DebugPlugin;
+import org.eclipse.debug.core.ILaunchConfiguration;
+import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
+import org.eclipse.jdt.core.IClasspathEntry;
+import org.eclipse.jdt.core.JavaCore;
+import org.eclipse.jdt.internal.launching.JavaMigrationDelegate;
+import org.eclipse.jdt.internal.launching.RuntimeClasspathEntry;
+import org.eclipse.jdt.launching.IJavaLaunchConfigurationConstants;
+import org.eclipse.jdt.launching.IRuntimeClasspathEntry;
+import org.eclipse.jdt.launching.JavaRuntime;
+import org.eclipse.ltk.core.refactoring.Change;
+import org.eclipse.ltk.core.refactoring.CompositeChange;
+import org.hibernate.eclipse.console.HibernateConsolePlugin;
+import org.hibernate.eclipse.launch.HibernateLaunchConstants;
+import org.hibernate.eclipse.launch.IConsoleConfigurationLaunchConstants;
+
+/**
+ * @author Dmitry Geraskov
+ *
+ */
+public class HibernateRefactoringUtil {
+
+ private static final String ERROR_MESS = "Error during refactoring";
+
+ private static String[] stringAttribs = new String[]{
+ IConsoleConfigurationLaunchConstants.CFG_XML_FILE,
+ IConsoleConfigurationLaunchConstants.PROPERTY_FILE,
+ HibernateLaunchConstants.ATTR_TEMPLATE_DIR,
+ HibernateLaunchConstants.ATTR_OUTPUT_DIR,
+ HibernateLaunchConstants.ATTR_REVERSE_ENGINEER_SETTINGS,
+ };
+
+ private static String[] strListAttribs = new String[]{
+ IConsoleConfigurationLaunchConstants.FILE_MAPPINGS,
+ };
+
+ static boolean isConfigurationChanged(ILaunchConfiguration config, IPath oldPath) throws CoreException{
+ String attrib = null;
+ for (int i = 0; i < stringAttribs.length; i++) {
+ attrib = config.getAttribute(stringAttribs[i], (String)null);
+ if (isAttributeChanged(attrib, oldPath))
+ return true;
+ }
+
+ for (int i = 0; i < strListAttribs.length; i++) {
+ List list = config.getAttribute(strListAttribs[i], Collections.EMPTY_LIST);
+ List newMappings = new ArrayList();
+ Iterator iter = list.iterator();
+ while ( iter.hasNext() ) {
+ attrib = (String) iter.next();
+ if (isAttributeChanged(attrib, oldPath)){
+ return true;
+ }
+ newMappings.add(attrib);
+ }
+ }
+
+ //classpath
+ IRuntimeClasspathEntry[] entries;
+ try {
+ entries = JavaRuntime.computeUnresolvedRuntimeClasspath(config);
+ for (int i = 0; i < entries.length; i++) {
+ IRuntimeClasspathEntry entry = entries[i];
+ if(entry.getClasspathProperty()==IRuntimeClasspathEntry.USER_CLASSES) {
+ attrib = entry.getPath() == null ? null
+ : entry.getPath().toString();
+ if(isAttributeChanged(attrib, oldPath)){
+ return true;
+ }
+ }
+ }
+ }
+ catch (CoreException e) {
+ HibernateConsolePlugin.getDefault().log( e );
+ }
+
+ return false;
+ }
+
+ public static boolean isAttributeChanged(String attrib, IPath path){
+ if (attrib == null || path == null) return false;
+ return path.isPrefixOf(new Path(attrib));
+ }
+
+ public static ILaunchConfiguration updateLaunchConfig(ILaunchConfiguration config, IPath oldPath, IPath newPath) throws CoreException{
+ final ILaunchConfigurationWorkingCopy wc = config.getWorkingCopy();
+
+ String attrib = null;
+ for (int i = 0; i < stringAttribs.length; i++) {
+ attrib = wc.getAttribute(stringAttribs[i], (String)null);
+ if (isAttributeChanged(attrib, oldPath)){
+ attrib = getUpdatedPath(attrib, oldPath, newPath);
+ wc.setAttribute(stringAttribs[i], attrib);
+ }
+ }
+
+ boolean isChanged = false;
+ for (int i = 0; i < strListAttribs.length; i++) {
+ List list = wc.getAttribute(strListAttribs[i], Collections.EMPTY_LIST);
+ isChanged = false;
+ List newMappings = new ArrayList();
+ Iterator iter = list.iterator();
+ while ( iter.hasNext() ) {
+ attrib = (String) iter.next();
+ if (isAttributeChanged(attrib, oldPath)){
+ attrib = getUpdatedPath(attrib, oldPath, newPath);
+ isChanged = true;
+ }
+ newMappings.add(attrib);
+ }
+ if (isChanged) wc.setAttribute(strListAttribs[i], newMappings);
+ }
+
+ //classpath
+ isChanged = false;
+ IRuntimeClasspathEntry[] entries;
+ try {
+ entries = JavaRuntime.computeUnresolvedRuntimeClasspath(config);
+ List mementos = new ArrayList(entries.length);
+ for (int i = 0; i < entries.length; i++) {
+ IRuntimeClasspathEntry entry = entries[i];
+ if(entry.getClasspathProperty()==IRuntimeClasspathEntry.USER_CLASSES) {
+ attrib = entry.getPath() == null ? null
+ : entry.getPath().toString();
+ if(isAttributeChanged(attrib, oldPath)){
+ attrib = getUpdatedPath(attrib, oldPath, newPath);
+ IPath p = new Path(attrib).makeAbsolute();
+
+ switch (entry.getClasspathEntry().getEntryKind()) {
+ case IClasspathEntry.CPE_PROJECT:
+ entry = new RuntimeClasspathEntry( JavaCore.newProjectEntry(p));
+ break;
+ default:
+ entry = JavaRuntime.newArchiveRuntimeClasspathEntry(p);
+ break;
+ }
+
+ entries[i] = entry;
+ isChanged = true;
+ }
+ }
+ mementos.add(entries[i].getMemento());
+ }
+ if (isChanged) wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_CLASSPATH, mementos);
+ }
+ catch (CoreException e) {
+ HibernateConsolePlugin.getDefault().log( e );
+ }
+
+ //JavaMigrationDelegate.updateResourceMapping(wc);
+
+ if (wc.isDirty()) {
+ return wc.doSave();
+ } else {
+ return config;
+ }
+ }
+
+ private static String getUpdatedPath(String attrib, IPath oldPath, IPath newPath){
+ IPath attribPath = new Path(attrib);
+ IPath newAttribPath = Path.EMPTY;
+ for (int j = 0; j < attribPath.segmentCount(); j++){
+ if (!oldPath.isPrefixOf(attribPath.removeFirstSegments(j))){
+ //add prefix
+ newAttribPath = newAttribPath.append(attribPath.segment(j));
+ } else {
+ newAttribPath = newAttribPath.append(newPath); //add new path instead of old path
+ // add suffix
+ newAttribPath = newAttribPath.append(attribPath.removeFirstSegments(j + oldPath.segmentCount()));
+ break;
+ }
+ }
+ return newAttribPath.toString();
+ }
+
+ public static ILaunchConfiguration[] getChangedLaunchConfigurations(IPath path){
+ ILaunchConfiguration[] configs = null;
+ try {
+ configs = DebugPlugin.getDefault().getLaunchManager().getLaunchConfigurations();
+ ArrayList list = new ArrayList();
+ for(int i = 0; i < configs.length; i++) {
+ //ILaunchConfigurationWorkingCopy wc = configs[i].getWorkingCopy();
+ if (HibernateRefactoringUtil.isConfigurationChanged(configs[i], path)) list.add(configs[i]);
+ }
+ configs = (ILaunchConfiguration[])list.toArray(new ILaunchConfiguration[list.size()]);
+ }
+ catch(CoreException e) {
+ configs = new ILaunchConfiguration[0];
+ HibernateConsolePlugin.getDefault().logErrorMessage( ERROR_MESS, e );
+ }
+
+ return configs;
+ }
+
+ /**
+ * @param changes - List of Change objects
+ * @return
+ */
+ public static Change createChangesFromList(List changes, String name) {
+ if (changes.size() == 0) {
+ return null;
+ } else if (changes.size() == 1) {
+ return (Change) changes.get(0);
+ } else {
+ return new CompositeChange(name, (Change[])changes.toArray(new Change[changes.size()]));
+ }
+ }
+}
Property changes on: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/core/refactoring/HibernateRefactoringUtil.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Author Id Revision Date
Name: svn:eol-style
+ native
Added: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/core/refactoring/LaunchConfigurationResourceNameChange.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/core/refactoring/LaunchConfigurationResourceNameChange.java (rev 0)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/core/refactoring/LaunchConfigurationResourceNameChange.java 2008-02-07 16:19:37 UTC (rev 6173)
@@ -0,0 +1,77 @@
+/*******************************************************************************
+ * Copyright (c) 2007-2008 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
+ *
+ * Contributor:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.hibernate.eclipse.launch.core.refactoring;
+
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.OperationCanceledException;
+import org.eclipse.debug.core.ILaunchConfiguration;
+import org.eclipse.ltk.core.refactoring.Change;
+import org.eclipse.ltk.core.refactoring.RefactoringStatus;
+
+/**
+ * @author Dmitry Geraskov
+ *
+ */
+public class LaunchConfigurationResourceNameChange extends Change {
+
+ private ILaunchConfiguration fLaunchConfiguration;
+ private IPath fOldPath;
+ private IPath fNewPath;
+
+ /**
+ * LaunchConfigurationResourceMoveChange constructor.
+ * @param launchConfiguration the launch configuration to modify
+ * @param oldPath the old Path of the resource.
+ * @param newPath the new Path of the resource.
+ */
+ LaunchConfigurationResourceNameChange(ILaunchConfiguration launchConfiguration, IPath oldPath, IPath newPath){
+ fLaunchConfiguration = launchConfiguration;
+ fOldPath = oldPath;
+ fNewPath = newPath;
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.ltk.core.refactoring.Change#getModifiedElement()
+ */
+ public Object getModifiedElement() {
+ return fLaunchConfiguration;
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.ltk.core.refactoring.Change#getName()
+ */
+ public String getName() {
+ return "Update resource path in launch configuration " + fLaunchConfiguration.getName();
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.ltk.core.refactoring.Change#initializeValidationData(org.eclipse.core.runtime.IProgressMonitor)
+ */
+ public void initializeValidationData(IProgressMonitor pm) { }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.ltk.core.refactoring.Change#isValid(org.eclipse.core.runtime.IProgressMonitor)
+ */
+ public RefactoringStatus isValid(IProgressMonitor pm) throws CoreException,
+ OperationCanceledException {
+ return new RefactoringStatus();
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.ltk.core.refactoring.Change#perform(org.eclipse.core.runtime.IProgressMonitor)
+ */
+ public Change perform(IProgressMonitor pm) throws CoreException {
+ fLaunchConfiguration = HibernateRefactoringUtil.updateLaunchConfig(fLaunchConfiguration, fOldPath, fNewPath);
+ return new LaunchConfigurationResourceNameChange(fLaunchConfiguration, fNewPath, fOldPath);
+ }
+}
Property changes on: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/core/refactoring/LaunchConfigurationResourceNameChange.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Author Id Revision Date
Name: svn:eol-style
+ native
Added: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/core/refactoring/MoveResourceParticipant.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/core/refactoring/MoveResourceParticipant.java (rev 0)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/core/refactoring/MoveResourceParticipant.java 2008-02-07 16:19:37 UTC (rev 6173)
@@ -0,0 +1,48 @@
+package org.hibernate.eclipse.launch.core.refactoring;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.core.resources.IResource;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.OperationCanceledException;
+import org.eclipse.debug.core.ILaunchConfiguration;
+import org.eclipse.ltk.core.refactoring.Change;
+import org.eclipse.ltk.core.refactoring.RefactoringStatus;
+import org.eclipse.ltk.core.refactoring.participants.CheckConditionsContext;
+import org.eclipse.ltk.core.refactoring.participants.MoveParticipant;
+
+public class MoveResourceParticipant extends MoveParticipant {
+
+ private IResource fResource;
+
+ public RefactoringStatus checkConditions(IProgressMonitor pm,
+ CheckConditionsContext context) throws OperationCanceledException {
+ return new RefactoringStatus();
+ }
+
+ public Change createChange(IProgressMonitor pm) throws CoreException,
+ OperationCanceledException {
+ ILaunchConfiguration[] configs = HibernateRefactoringUtil.getChangedLaunchConfigurations(fResource.getFullPath());
+
+ List changes = new ArrayList();
+ LaunchConfigurationResourceNameChange change = null;
+ for (int i= 0; i < configs.length; i++) {
+ change = new LaunchConfigurationResourceNameChange(configs[i], fResource.getFullPath(), ((IResource)getArguments().getDestination()).getFullPath().append(fResource.getName()));
+ changes.add(change);
+ }
+
+ return HibernateRefactoringUtil.createChangesFromList(changes, getName());
+ }
+
+ public String getName() {
+ return "Launch Configurations updates";
+ }
+
+ protected boolean initialize(Object element) {
+ fResource = (IResource) element;
+ return true;
+ }
+
+}
Property changes on: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/core/refactoring/MoveResourceParticipant.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Author Id Revision Date
Name: svn:eol-style
+ native
Added: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/core/refactoring/RenameResourceParticipant.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/core/refactoring/RenameResourceParticipant.java (rev 0)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/core/refactoring/RenameResourceParticipant.java 2008-02-07 16:19:37 UTC (rev 6173)
@@ -0,0 +1,77 @@
+/*******************************************************************************
+ * Copyright (c) 2007-2008 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
+ *
+ * Contributor:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.hibernate.eclipse.launch.core.refactoring;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.core.resources.IResource;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.OperationCanceledException;
+import org.eclipse.debug.core.ILaunchConfiguration;
+import org.eclipse.ltk.core.refactoring.Change;
+import org.eclipse.ltk.core.refactoring.RefactoringStatus;
+import org.eclipse.ltk.core.refactoring.participants.CheckConditionsContext;
+import org.eclipse.ltk.core.refactoring.participants.RenameParticipant;
+
+/**
+ * @author Dmitry Geraskov
+ *
+ */
+public class RenameResourceParticipant extends RenameParticipant {
+
+ private IResource fResource;
+
+ /* (non-Javadoc)
+ * @see org.eclipse.ltk.core.refactoring.participants.RefactoringParticipant#checkConditions(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.ltk.core.refactoring.participants.CheckConditionsContext)
+ */
+ public RefactoringStatus checkConditions(IProgressMonitor pm,
+ CheckConditionsContext context) throws OperationCanceledException {
+ return new RefactoringStatus();
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.ltk.core.refactoring.participants.RefactoringParticipant#createChange(org.eclipse.core.runtime.IProgressMonitor)
+ */
+ public Change createChange(IProgressMonitor pm) throws CoreException,
+ OperationCanceledException {
+ ILaunchConfiguration[] configs = HibernateRefactoringUtil.getChangedLaunchConfigurations(fResource.getFullPath());
+
+ List changes = new ArrayList();
+ LaunchConfigurationResourceNameChange change = null;
+ for (int i= 0; i < configs.length; i++) {
+ change = new LaunchConfigurationResourceNameChange(configs[i], fResource.getFullPath(),
+ fResource.getParent().getFullPath().append(getArguments().getNewName()));
+ changes.add(change);
+ }
+
+ return HibernateRefactoringUtil.createChangesFromList(changes, getName());
+ }
+
+
+
+ /* (non-Javadoc)
+ * @see org.eclipse.ltk.core.refactoring.participants.RefactoringParticipant#getName()
+ */
+ public String getName() {
+ return "Launch Configurations updates";
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.ltk.core.refactoring.participants.RefactoringParticipant#initialize(java.lang.Object)
+ */
+ protected boolean initialize(Object element) {
+ fResource = (IResource) element;
+ return true;
+ }
+
+}
Property changes on: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/core/refactoring/RenameResourceParticipant.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Author Id Revision Date
Name: svn:eol-style
+ native
16 years, 4 months