I have the same problem. I can´t write any code in my
operations.
Using rose scripts i make the class definitions, with
parameters, operations, exceptions, etc, but i can´t write
code. The property code of operation is read only.
Sent: Thursday, February 20, 2003 2:36
PM
Subject: Re: (ROSE) REPOSTING: Default
implementation for methods during code generation
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.