----- Original Message -----
Sent: Thursday, February 20, 2003 2:51
PM
Subject: RE: (ROSE) REPOSTING: Default
implementation for methods during code generation
You
might be working too hard. In fact, based upon the fact you are using
Eclipse 2.0.2, I think that you are :-)
The
next release of XDE is scheduled to support Eclipse directly, in addition
to WSAD. A much easier way for you to work, rather than create a bunch
of Rose scripts, is to move from Rose to XDE and to use XDE's patterns and
code templates engine to accomplish what you wish to do. This is a much
more flexible and customizable approach than writing Rose
script.
Just
a thought.
********************************************************
R a t i o n a
l
the software
development company(tm)
Todd Dunnavant
Technical Lead, IBM End User
Programs
Office Phone #: (281) 431-8751
Fax Phone
#: (281) 431-8791
E-mail
address: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
Rational's Mission: "To ensure the success
of Customers who
depend on software
development and
deployment."
********************************************************
Hi Todd,
Can't see what this has to do with the IDE I'm
using.
Using Rose scripting, I'd like to create a
new class, a method for that class and tell Rose what the implementation of
the method will be. For instance:
Set newClass =
theCat.AddClass("MyNewClass")
Set newOperation =
newClass.AddOperation ("myNewOperation", "OpType")
Set newParameter =
newOperation.AddParameter("theParameter, "ParType", "",
1)
newOperation.Exceptions =
"Exception"
what I want is something like:
newOperation.SetImplementation(<my method code>)
or
newOperation.defaultBody = <my
method code>
so, at the time Rose generates code, it can do
the following;
class MyNewClass
{
OpType
myNewOperation(ParType theParameter) throws Exception
{
<my method code>
}
}
--------
BTW, I'm using Eclipse 2.0.2
Best,
Ricardo.
----- Original Message -----
Sent: Thursday, February 20, 2003
2:23 PM
Subject: RE: (ROSE) REPOSTING:
Default implementation for methods during code generation
Ricardo,
Which IDE are you using?
********************************************************
R a t i o n a
l
the software
development company(tm)
Todd Dunnavant
Technical Lead, IBM End
User Programs
Office Phone #: (281) 431-8751
Fax Phone
#: (281) 431-8791
E-mail
address: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
Rational's Mission: "To ensure the
success of Customers who
depend
on software development and
deployment."
********************************************************
Anyone from Rational in this list could say whether this is
possible or not?
I saw something about defaultBody property but did not get what I
wanted...
Thanks
Ricardo.
----- Original Message -----
Sent: Friday, January 17, 2003
5:36 PM
Subject: (ROSE) Default
implementation for methods during code generation
E-mail Premium BOL
Antiv�rus, anti-spam e at� 100 MB de espa�o.
Assine j�!
http://email.bol.com.br
Hi,
I'm using Rose scripting to create a
bunch of classes. Most of these classes methods have a standard
implementation. I'd like to somehow say Rose which implementation is
this so it can generated complete Java source code. Just wondering if
there is any property of Operation object that is used as the default
implementation for that operation during code
generation...
Any help would be
appreciated.
PS.: using Rose 2002.05
[]s,
Ricardo.