Author: scabanovich
Date: 2009-12-17 11:53:24 -0500 (Thu, 17 Dec 2009)
New Revision: 19426
Added:
trunk/esb/plugins/org.jboss.tools.esb.core/src/org/jboss/tools/esb/core/model/handlers/AddJBRListerer12Handler.java
Modified:
trunk/esb/plugins/org.jboss.tools.esb.core/plugin.xml
trunk/esb/plugins/org.jboss.tools.esb.core/resources/meta/esb.meta
trunk/esb/plugins/org.jboss.tools.esb.core/resources/meta/esb12.meta
Log:
https://jira.jboss.org/jira/browse/JBIDE-5488
Modified: trunk/esb/plugins/org.jboss.tools.esb.core/plugin.xml
===================================================================
--- trunk/esb/plugins/org.jboss.tools.esb.core/plugin.xml 2009-12-17 15:58:30 UTC (rev
19425)
+++ trunk/esb/plugins/org.jboss.tools.esb.core/plugin.xml 2009-12-17 16:53:24 UTC (rev
19426)
@@ -37,6 +37,8 @@
class="org.jboss.tools.esb.core.model.handlers.AddGenericActionSupport"/>
<xclass
id="org.jboss.tools.esb.core.model.handlers.OpenESBResourceHandler"
class="org.jboss.tools.esb.core.model.handlers.OpenESBResourceHandler"/>
+ <xclass
id="org.jboss.tools.esb.core.model.handlers.AddJBRListerer12Handler"
+ class="org.jboss.tools.esb.core.model.handlers.AddJBRListerer12Handler"/>
<xclass id="org.jboss.tools.esb.core.model.ESBResourceTree"
class="org.jboss.tools.esb.core.model.ESBResourceTree"/>
Modified: trunk/esb/plugins/org.jboss.tools.esb.core/resources/meta/esb.meta
===================================================================
--- trunk/esb/plugins/org.jboss.tools.esb.core/resources/meta/esb.meta 2009-12-17 15:58:30
UTC (rev 19425)
+++ trunk/esb/plugins/org.jboss.tools.esb.core/resources/meta/esb.meta 2009-12-17 16:53:24
UTC (rev 19426)
@@ -1649,77 +1649,78 @@
<AttributeData AttributeName="channel id ref"
Mandatory="no"/>
</EntityData>
</XActionItem>
+ <XActionItem kind="list" name="Separator"/>
<XActionItem HandlerClassName="%Create%" ICON="action.empty"
PROPERTIES="validator.add=true" WizardClassName="%Default%"
- displayName="Scheduled Listener..." kind="action"
name="AddScheduledListener">
- <EntityData EntityName="ESBScheduledListener101">
+ displayName="FTP Listener..." kind="action"
name="AddFTPListener">
+ <EntityData EntityName="ESBFTPListener101">
<AttributeData AttributeName="name"/>
- <AttributeData AttributeName="event processor"
Mandatory="no"/>
+ <AttributeData AttributeName="channel id ref"
Mandatory="no"/>
</EntityData>
</XActionItem>
<XActionItem HandlerClassName="%Create%" ICON="action.empty"
PROPERTIES="validator.add=true" WizardClassName="%Default%"
- displayName="JCA Gateway..." kind="action"
name="AddJCAGateway">
- <EntityData EntityName="ESBJCAGateway101">
+ displayName="FS Listener..." kind="action"
name="AddFSListener">
+ <EntityData EntityName="ESBFSListener101">
<AttributeData AttributeName="name"/>
- <AttributeData AttributeName="adapter"/>
- <AttributeData AttributeName="endpoint class"/>
+ <AttributeData AttributeName="channel id ref"
Mandatory="no"/>
</EntityData>
</XActionItem>
<XActionItem HandlerClassName="%Create%" ICON="action.empty"
PROPERTIES="validator.add=true" WizardClassName="%Default%"
- displayName="JMS Listener..." kind="action"
name="AddJMSListener">
- <EntityData EntityName="ESBJMSListener101">
+ displayName="Groovy Listener..." kind="action"
name="AddGroovyListener">
+ <EntityData EntityName="ESBGroovyListener101">
<AttributeData AttributeName="name"/>
- <AttributeData AttributeName="channel id ref"
Mandatory="no"/>
+ <AttributeData AttributeName="script"/>
</EntityData>
</XActionItem>
<XActionItem HandlerClassName="%Create%" ICON="action.empty"
PROPERTIES="validator.add=true" WizardClassName="%Default%"
- displayName="FS Listener..." kind="action"
name="AddFSListener">
- <EntityData EntityName="ESBFSListener101">
+ displayName="Hibernate Listener..." kind="action"
name="AddHibernateListener">
+ <EntityData EntityName="ESBHibernateListener101">
<AttributeData AttributeName="name"/>
<AttributeData AttributeName="channel id ref"
Mandatory="no"/>
</EntityData>
</XActionItem>
<XActionItem HandlerClassName="%Create%" ICON="action.empty"
PROPERTIES="validator.add=true" WizardClassName="%Default%"
- displayName="FTP Listener..." kind="action"
name="AddFTPListener">
- <EntityData EntityName="ESBFTPListener101">
+ displayName="JBR Listener..." kind="action"
name="AddJBRListener">
+ <EntityData EntityName="ESBJBRListener101">
<AttributeData AttributeName="name"/>
<AttributeData AttributeName="channel id ref"
Mandatory="no"/>
</EntityData>
</XActionItem>
<XActionItem HandlerClassName="%Create%" ICON="action.empty"
PROPERTIES="validator.add=true" WizardClassName="%Default%"
- displayName="SQL Listener..." kind="action"
name="AddSQLListener">
- <EntityData EntityName="ESBSQLListener101">
+ displayName="JCA Gateway..." kind="action"
name="AddJCAGateway">
+ <EntityData EntityName="ESBJCAGateway101">
<AttributeData AttributeName="name"/>
- <AttributeData AttributeName="channel id ref"
Mandatory="no"/>
+ <AttributeData AttributeName="adapter"/>
+ <AttributeData AttributeName="endpoint class"/>
</EntityData>
</XActionItem>
<XActionItem HandlerClassName="%Create%" ICON="action.empty"
PROPERTIES="validator.add=true" WizardClassName="%Default%"
- displayName="Hibernate Listener..." kind="action"
name="AddHibernateListener">
- <EntityData EntityName="ESBHibernateListener101">
+ displayName="JMS Listener..." kind="action"
name="AddJMSListener">
+ <EntityData EntityName="ESBJMSListener101">
<AttributeData AttributeName="name"/>
<AttributeData AttributeName="channel id ref"
Mandatory="no"/>
</EntityData>
</XActionItem>
<XActionItem HandlerClassName="%Create%" ICON="action.empty"
PROPERTIES="validator.add=true" WizardClassName="%Default%"
- displayName="JBR Listener..." kind="action"
name="AddJBRListener">
- <EntityData EntityName="ESBJBRListener101">
+ displayName="Scheduled Listener..." kind="action"
name="AddScheduledListener">
+ <EntityData EntityName="ESBScheduledListener101">
<AttributeData AttributeName="name"/>
- <AttributeData AttributeName="channel id ref"
Mandatory="no"/>
+ <AttributeData AttributeName="event processor"
Mandatory="no"/>
</EntityData>
</XActionItem>
<XActionItem HandlerClassName="%Create%" ICON="action.empty"
PROPERTIES="validator.add=true" WizardClassName="%Default%"
- displayName="Groovy Listener..." kind="action"
name="AddGroovyListener">
- <EntityData EntityName="ESBGroovyListener101">
+ displayName="SQL Listener..." kind="action"
name="AddSQLListener">
+ <EntityData EntityName="ESBSQLListener101">
<AttributeData AttributeName="name"/>
- <AttributeData AttributeName="script"/>
+ <AttributeData AttributeName="channel id ref"
Mandatory="no"/>
</EntityData>
</XActionItem>
<XActionItem HIDE="always"
@@ -1779,22 +1780,13 @@
<XActionItem ICON="action.empty" displayName="New"
group="1"
kind="list" name="CreateActions">
<XActionItemReference entity="ESBListeners101"
name="AddListener" path="CreateActions/AddListener"/>
- <XActionItemReference entity="ESBListeners101"
- name="AddScheduledListener"
path="CreateActions/AddScheduledListener"/>
- <XActionItemReference entity="ESBListeners101"
name="AddJCAGateway" path="CreateActions/AddJCAGateway"/>
- <XActionItemReference entity="ESBListeners101"
name="AddJMSListener" path="CreateActions/AddJMSListener"/>
+ <XActionItem kind="list" name="Separator"/>
<XActionItemReference entity="ESBListeners101"
name="AddFSListener" path="CreateActions/AddFSListener"/>
<XActionItemReference entity="ESBListeners101"
name="AddFTPListener" path="CreateActions/AddFTPListener"/>
- <XActionItemReference entity="ESBListeners101"
name="AddSQLListener" path="CreateActions/AddSQLListener"/>
<XActionItemReference entity="ESBListeners101"
+ name="AddGroovyListener"
path="CreateActions/AddGroovyListener"/>
+ <XActionItemReference entity="ESBListeners101"
name="AddHibernateListener"
path="CreateActions/AddHibernateListener"/>
- <XActionItemReference entity="ESBListeners101"
name="AddJBRListener" path="CreateActions/AddJBRListener"/>
- <XActionItemReference entity="ESBListeners101"
- name="AddGroovyListener"
path="CreateActions/AddGroovyListener"/>
- <XActionItem HIDE="always"
-
HandlerClassName="org.jboss.tools.common.meta.action.impl.handlers.ShowMenuHandler"
- PROPERTIES="actionList=CreateActions" displayName="Listener..."
- kind="action" name="AddAnyListener"/>
<XActionItem HandlerClassName="%Create%" ICON="action.empty"
PROPERTIES="validator.add=true" WizardClassName="%Default%"
displayName="HTTP Listener..." kind="action"
name="AddHTTPListener">
@@ -1803,6 +1795,12 @@
<AttributeData AttributeName="channel id ref"
Mandatory="no"/>
</EntityData>
</XActionItem>
+ <XActionItemReference entity="ESBListeners101"
name="AddJBRListener" path="CreateActions/AddJBRListener"/>
+ <XActionItemReference entity="ESBListeners101"
name="AddJCAGateway" path="CreateActions/AddJCAGateway"/>
+ <XActionItemReference entity="ESBListeners101"
name="AddJMSListener" path="CreateActions/AddJMSListener"/>
+ <XActionItemReference entity="ESBListeners101"
+ name="AddScheduledListener"
path="CreateActions/AddScheduledListener"/>
+ <XActionItemReference entity="ESBListeners101"
name="AddSQLListener" path="CreateActions/AddSQLListener"/>
<XActionItem HandlerClassName="%Create%" ICON="action.empty"
PROPERTIES="validator.add=true" WizardClassName="%Default%"
displayName="UDP Listener..." kind="action"
name="AddUDPListener">
@@ -1812,6 +1810,10 @@
<AttributeData AttributeName="port"/>
</EntityData>
</XActionItem>
+ <XActionItem HIDE="always"
+
HandlerClassName="org.jboss.tools.common.meta.action.impl.handlers.ShowMenuHandler"
+ PROPERTIES="actionList=CreateActions" displayName="Listener..."
+ kind="action" name="AddAnyListener"/>
</XActionItem>
<XActionItemReference entity="ESBListeners101"
name="CopyActions"/>
<XActionItemReference entity="ESBListeners101"
name="DeleteActions"/>
Modified: trunk/esb/plugins/org.jboss.tools.esb.core/resources/meta/esb12.meta
===================================================================
--- trunk/esb/plugins/org.jboss.tools.esb.core/resources/meta/esb12.meta 2009-12-17
15:58:30 UTC (rev 19425)
+++ trunk/esb/plugins/org.jboss.tools.esb.core/resources/meta/esb12.meta 2009-12-17
16:53:24 UTC (rev 19426)
@@ -590,10 +590,31 @@
<AttributeData AttributeName="channel id ref"
Mandatory="no"/>
</EntityData>
</XActionItem>
+ <XActionItem kind="list" name="Separator"/>
+ <XActionItemReference entity="ESBListeners101"
name="AddFSListener" path="CreateActions/AddFSListener"/>
+ <XActionItemReference entity="ESBListeners101"
name="AddFTPListener" path="CreateActions/AddFTPListener"/>
<XActionItemReference entity="ESBListeners101"
- name="AddScheduledListener"
path="CreateActions/AddScheduledListener"/>
+ name="AddGroovyListener"
path="CreateActions/AddGroovyListener"/>
+ <XActionItemReference entity="ESBListeners101"
+ name="AddHibernateListener"
path="CreateActions/AddHibernateListener"/>
<XActionItem HandlerClassName="%Create%" ICON="action.empty"
PROPERTIES="validator.add=true" WizardClassName="%Default%"
+ displayName="HTTP Gateway..." kind="action"
name="AddHTTPGateway">
+ <EntityData EntityName="ESBHTTPGateway120">
+ <AttributeData AttributeName="name"/>
+ <AttributeData AttributeName="channel id ref"
Mandatory="no"/>
+ </EntityData>
+ </XActionItem>
+ <XActionItem
HandlerClassName="org.jboss.tools.esb.core.model.handlers.AddJBRListerer12Handler"
ICON="action.empty"
+ PROPERTIES="validator.add=true" WizardClassName="%Default%"
+ displayName="JBR Listener..." kind="action"
name="AddJBRListener">
+ <EntityData EntityName="ESBJBRListener101">
+ <AttributeData AttributeName="name"/>
+ <AttributeData AttributeName="channel id ref"
Mandatory="no"/>
+ </EntityData>
+ </XActionItem>
+ <XActionItem HandlerClassName="%Create%" ICON="action.empty"
+ PROPERTIES="validator.add=true" WizardClassName="%Default%"
displayName="JCA Gateway..." kind="action"
name="AddJCAGateway">
<EntityData EntityName="ESBJCAGateway120">
<AttributeData AttributeName="name"/>
@@ -602,8 +623,8 @@
</EntityData>
</XActionItem>
<XActionItemReference entity="ESBListeners101"
name="AddJMSListener" path="CreateActions/AddJMSListener"/>
- <XActionItemReference entity="ESBListeners101"
name="AddFSListener" path="CreateActions/AddFSListener"/>
- <XActionItemReference entity="ESBListeners101"
name="AddFTPListener" path="CreateActions/AddFTPListener"/>
+ <XActionItemReference entity="ESBListeners101"
+ name="AddScheduledListener"
path="CreateActions/AddScheduledListener"/>
<XActionItem HandlerClassName="%Create%" ICON="action.empty"
PROPERTIES="validator.add=true" WizardClassName="%Default%"
displayName="SQL Listener..." kind="action"
name="AddSQLListener">
@@ -612,19 +633,6 @@
<AttributeData AttributeName="channel id ref"
Mandatory="no"/>
</EntityData>
</XActionItem>
- <XActionItemReference entity="ESBListeners101"
- name="AddHibernateListener"
path="CreateActions/AddHibernateListener"/>
- <XActionItemReference entity="ESBListeners101"
name="AddJBRListener" path="CreateActions/AddJBRListener"/>
- <XActionItemReference entity="ESBListeners101"
- name="AddGroovyListener"
path="CreateActions/AddGroovyListener"/>
- <XActionItem HandlerClassName="%Create%" ICON="action.empty"
- PROPERTIES="validator.add=true" WizardClassName="%Default%"
- displayName="HTTP Gateway..." kind="action"
name="AddHTTPGateway">
- <EntityData EntityName="ESBHTTPGateway120">
- <AttributeData AttributeName="name"/>
- <AttributeData AttributeName="channel id ref"
Mandatory="no"/>
- </EntityData>
- </XActionItem>
<XActionItemReference entity="ESBListeners110"
name="AddUDPListener" path="CreateActions/AddUDPListener"/>
<XActionItem HIDE="always"
HandlerClassName="org.jboss.tools.common.meta.action.impl.handlers.ShowMenuHandler"
Added:
trunk/esb/plugins/org.jboss.tools.esb.core/src/org/jboss/tools/esb/core/model/handlers/AddJBRListerer12Handler.java
===================================================================
---
trunk/esb/plugins/org.jboss.tools.esb.core/src/org/jboss/tools/esb/core/model/handlers/AddJBRListerer12Handler.java
(rev 0)
+++
trunk/esb/plugins/org.jboss.tools.esb.core/src/org/jboss/tools/esb/core/model/handlers/AddJBRListerer12Handler.java 2009-12-17
16:53:24 UTC (rev 19426)
@@ -0,0 +1,30 @@
+/*******************************************************************************
+ * Copyright (c) 2007 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.esb.core.model.handlers;
+
+import org.jboss.tools.common.meta.action.impl.handlers.DefaultCreateHandler;
+import org.jboss.tools.common.model.XModelObject;
+
+/**
+ *
+ * @author Viacheslav Kabanovich
+ *
+ */
+public class AddJBRListerer12Handler extends DefaultCreateHandler {
+
+ public AddJBRListerer12Handler() {}
+
+ protected XModelObject modifyCreatedObject(XModelObject o) {
+ o.setAttributeValue("is gateway", "true");
+ return o;
+ }
+
+}
Property changes on:
trunk/esb/plugins/org.jboss.tools.esb.core/src/org/jboss/tools/esb/core/model/handlers/AddJBRListerer12Handler.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain