Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 71743 invoked from network); 7 Feb 2006 14:38:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Feb 2006 14:38:02 -0000 Received: (qmail 97459 invoked by uid 500); 7 Feb 2006 14:37:59 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 97442 invoked by uid 500); 7 Feb 2006 14:37:59 -0000 Mailing-List: contact user-java-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user-java@ibatis.apache.org Delivered-To: mailing list user-java@ibatis.apache.org Received: (qmail 97431 invoked by uid 99); 7 Feb 2006 14:37:59 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Feb 2006 06:37:59 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [156.42.10.187] (HELO mb2.maricopa.gov) (156.42.10.187) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Feb 2006 06:37:58 -0800 Received: from mcaoswss.mcao.maricopa.gov (mcao.maricopa.gov [156.42.237.191]) by mb2.maricopa.gov (8.13.1/9.99.9) with ESMTP id k17EbXPt018886 for ; Tue, 7 Feb 2006 07:37:35 -0700 (MST) Received: from mcaosx2.ca.mcao.maricopa.gov ([156.42.113.201]) by mcaoswss.mcao.maricopa.gov with InterScan Messaging Security Suite; Tue, 07 Feb 2006 07:37:32 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C62BF4.0781AC19" Subject: RE: [Abator] Unable to generate artifacts Date: Tue, 7 Feb 2006 07:37:32 -0700 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [Abator] Unable to generate artifacts Thread-Index: AcYrSzTa/jskbSUbT1uJmPv7RJMfOwApoCtA From: "Bruyn Bill" To: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N This is a multi-part message in MIME format. ------_=_NextPart_001_01C62BF4.0781AC19 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Thanks, Jeff. I'd appreciate that. Their solution does seem like a bit of a hack, and rather limited in that you have to configure the name of the file, to your point - but IIRC doesn't the current release only recognize abatorConfig.xml anyway? In any case, I have it working per their suggestion for now. (Had to restart Eclipse with -clean to clear its cached version of the Abator plugin config). Looking forward to hearing more about anything you find. =20 Again, many thanks. =20 =20 Bill -----Original Message----- From: Jeff Butler [mailto:jeffgbutler@gmail.com]=20 Sent: Monday, February 06, 2006 11:29 AM To: user-java@ibatis.apache.org Subject: Re: [Abator] Unable to generate artifacts =09 =09 Well I'm not surprised it didn't work - that was a pretty silly (and awfully limiting) suggestion from them. Enabling selections by XML root element type is relatively new in Eclipse - perhaps they don't know how it works?=20 =20 I suppose it could also be an Eclipse problem where Eclipse is getting confused about whether to enable the menu selection or not. But hard to tell. =20 I don't have an oXygen license to be able to test it myself. I might try to get a demo of oXygen to see if I can debug it further, but that will take me a few days. =20 Jeff Butler =20 On 2/6/06, Bruyn Bill wrote:=20 I got the following response from oXygen support. I tried the config as suggested, but no change. Any insight as to why this wouldn't work?=20 =09 Thanks again. =09 Bill =09 ---------------------------------------------------------------- =09 After studying the plugin.xml file from the UI plugin of the "abator" bundle the problem seems to be related with their mode of associating=20 the context menu actions. =09 So, on the "org.eclipse.ui.popupMenus" extension point you will see that the element claims that the current object must have a certain conten type, i.e. the =09 "org.apache.ibatis.abator.ui.abatorConfigurationFileByElement" content type. But oXygen also has its own content type for xml documents with encoding and BOM handling which seems to be more general than the one that=20 "abator" has, and Eclipse it taking the oXygen's one into account. =09 The solution for you is to edit by hand the "plugin.xml" file from the "org.apache.ibatis.abator.ui_0.5.1" directory and comment the=20 element, and then modify as follows: =09 =09 =09 =09 =09 > -----Original Message----- > From: Bruyn Bill > Sent: Thursday, February 02, 2006 1:41 PM > To: ' user-java@ibatis.apache.org ' > Subject: RE: [Abator] Unable to generate artifacts > > > Yeah, their plugin does add a few items to the context > menu... I don't know how that's handled internally, but now=20 > I can file a bug report and find out. I'll post what I find, > if anything. > > Thanks, Jeff. (BTW, nice job.) > > > Bill > > -----Original Message----- > From: Jeff Butler [mailto: jeffgbutler@gmail.com] > Sent: Thursday, February 02, 2006 12:23 PM > To: user-java@ibatis.apache.org > Subject: Re: [Abator] Unable to generate artifacts=20 > > > That's odd. The menu option should enable for any file with > xml as the extension, and with a root element of > "abatorConfiguration". > > Question - does oXygen change the popup menu on an XML file=20 > significantly? Abator assumes there is an insertion point on > the popup menu called "additions" (which is an Eclipse > convention). If oXygen has significantly altered the popup > menu for XML files, or they somehow removed the "additions"=20 > insertion point, then that could cause the problem. This > does point the finger at them I'm afraid, but I can't think > of any other reason for the trouble you're having. > > Nevertheless, there should probably be more ways to run=20 > Abator than just through a pop-up menu. I'll try to think of > some for the next release. > > Jeff Butler > > > On 2/2/06, Bruyn Bill < Bruynb@mcao.maricopa.gov > wrote: > I have the Abator (0.5.1) plugin for Eclipse (3.1.2) > installed here, and have a little trouble with it when I also > have my oXygen XML Editor > (7.0.0) plugin installed/enabled.=20 > > I can set up my file association okay, create my config with > the File/New wizard and edit it with the Abator editor (if I > want to), but my "Generate iBATIS Artifcats" menu option=20 > disappears. When I disable > the oXygen plugin, everything works as advertised, so I'm not > sure this is an Abator problem... Still, I was hoping > somebody might be able to explain what's going on?=20 > > > TIA, > > Bill Bruyn > =09 ------_=_NextPart_001_01C62BF4.0781AC19 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Message
Thanks, Jeff.  I'd appreciate=20 that.  Their solution does seem like a bit of a hack, and = rather=20 limited in that you have to configure the name of the file, to your = point - but IIRC doesn't the current release only recognize=20 abatorConfig.xml anyway?  In any case, I have it working per their=20 suggestion for now.  (Had to restart Eclipse with -clean to clear = its=20 cached version of the Abator plugin config).  Looking forward to = hearing=20 more about anything you find.
 
Again, many thanks.
 
 
Bill
-----Original Message-----
From: Jeff = Butler=20 [mailto:jeffgbutler@gmail.com]
Sent: Monday, February 06, = 2006=20 11:29 AM
To: user-java@ibatis.apache.org
Subject: = Re:=20 [Abator] Unable to generate artifacts

Well I'm not surprised it didn't work - that was a pretty silly = (and=20 awfully limiting) suggestion from them.  Enabling selections = by XML=20 root element type is relatively new in Eclipse - perhaps they = don't know=20 how it works?
 
I suppose it could also be an Eclipse problem where Eclipse is = getting=20 confused about whether to enable the menu selection or not.  But = hard to=20 tell.
 
I don't have an oXygen license to be able to test it = myself.  I=20 might try to get a demo of oXygen to see if I can debug it = further, but=20 that will take me a few days.
 
Jeff Butler


 
On 2/6/06, Bruyn=20 Bill <Bruynb@mcao.maricopa.gov>= =20 wrote:=20
I=20 got the following response from oXygen support.  I tried = the=20 config as
suggested, but no change.  Any insight as to = why this=20 wouldn't work?

Thanks=20 = again.

Bill
---------------------------------------------------= -------------

After=20 studying the plugin.xml file from the UI plugin of the = "abator"
bundle=20 the problem seems to be related with their mode of associating =
the=20 context menu actions.

So, on the "org.eclipse.ui.popupMenus"=20 extension point you will see that
the <visibility> element = claims=20 that the current object must have a
certain conten type, i.e.=20 = the
"org.apache.ibatis.abator.ui.abatorConfigurationFileByElement"=20 content
type.
But oXygen also has its own content type for xml = documents with encoding
and BOM handling which seems to be more = general=20 than the one that
"abator" has, and Eclipse it taking the = oXygen's one=20 into account.

The solution for you is to edit by hand the=20 "plugin.xml" file from the
"org.apache.ibatis.abator.ui_0.5.1" = directory=20 and comment the
<visibility> element, and then modify=20 <action> as=20 follows:

<action
enablesFor=3D"1"
label=3D"Generate = iBATIS=20 Artifacts"
icon=3D"icons/iBatisLogo.gif"
class=3D"=20 = org.apache.ibatis.abator.ui.actions.RunAbatorAction"
menubarPath=3D"ad= ditions"
id=3D"org.apache.ibatis.abator.ui.actions.RunAbatorAction">= ;

<selection=20 class=3D"org.eclipse.core.resources.IFile=20 = "
name=3D"abatorConfig.xml"/>

</action>


>= ;=20 -----Original Message-----
> From: Bruyn Bill
> Sent: = Thursday,=20 February 02, 2006 1:41 PM
> To: '=20 user-java@ibatis.apache.org'
> Subject: RE: [Abator] = Unable to=20 generate artifacts
>
>
> Yeah, their plugin does = add a few=20 items to the context
> menu...  I don't know how = that's=20 handled internally, but now
> I can file a bug report and = find=20 out.  I'll post what I find,
> if = anything.
>
>=20 Thanks, Jeff.  (BTW, nice job.)
>
>
>=20 Bill
>
> -----Original Message-----
> From: Jeff = Butler=20 [mailto: jeffgbutler@gmail.com]
> = Sent:=20 Thursday, February 02, 2006 12:23 PM
> To: user-java@ibatis.apache.org
>=20 Subject: Re: [Abator] Unable to generate artifacts =
>
>
>=20 That's odd.  The menu option should enable for any file=20 with
> xml as the extension, and with a root element = of
>=20 "abatorConfiguration".
>
> Question - does oXygen change = the=20 popup menu on an XML file
> significantly?  Abator = assumes=20 there is an insertion point on
> the popup menu called = "additions"=20 (which is an Eclipse
> convention).  If oXygen has=20 significantly altered the popup
> menu for XML files, or they = somehow=20 removed the "additions"
> insertion point, then that could = cause the=20 problem.  This
> does point the finger at them I'm = afraid,=20 but I can't think
> of any other reason for the trouble you're = having.
>
> Nevertheless, there should probably be more = ways to=20 run
> Abator than just through a pop-up menu.  I'll = try to=20 think of
> some for the next release.
>
> Jeff=20 Butler
>
>
> On 2/2/06, Bruyn Bill < = Bruynb@mcao.maricopa.gov>=20 wrote:
> I have the Abator (0.5.1) plugin for Eclipse = (3.1.2)
>=20 installed here, and have a little trouble with it when I = also
> have=20 my oXygen XML Editor
> (7.0.0) plugin installed/enabled.=20
>
> I can set up my file association okay, create my = config=20 with
> the File/New wizard and edit it with the Abator editor = (if=20 I
> want to), but my "Generate iBATIS Artifcats" menu option =
>=20 disappears.  When I disable
> the oXygen plugin, = everything=20 works as advertised, so I'm not
> sure this is an Abator=20 problem...  Still, I was hoping
> somebody might be = able to=20 explain what's going on?
>
>
> = TIA,
>
> Bill=20 Bruyn
>

------_=_NextPart_001_01C62BF4.0781AC19--