Hi, You are right. The SCA Composite Designer can't construct a good diagram with this kind of composite file. It's necessary to parse the class calculator.AddServiceImpl to discover that it implements a Service defined by the interface calculator.AddService. I agree that it's a relatively strong limitation, but, as I said before, we work on this issue and I hope that we will be able soon to provide a Designer for this.
I'm looking forward to your listing of issues ;) Thanks Dan. Stephane Drapeau Obeo On Thu, Nov 13, 2008 at 23:09, Dan Becker <[EMAIL PROTECTED]> wrote: > Hello Stéphane, > > Thanks for replying and glad to see such a great response time. > > Let me continue this discussion on [EMAIL PROTECTED], but I will cross > post to [email protected] to let everyone know to move the discussion > there. > > Let me also preface this by saying, I have not read the SCA tools manuals > or built this composite top down, I just tried reading in a Tuscany > composite file (Ganymede, Tuscany 1.3.2, recent SCA tools plugin), so I > might be not following the directions. I view the composite file below in an > Eclipse project, I select "Initialize SCA Composite Diagram file", and the > diagram comes in an editor pane. > > The 2 components are laid out one on top of the other. There is no service > graphic on the AddServiceComponent. There is no wire from the Calculator > reference to the Add service. > > > <?xml version="1.0"?> > <composite xmlns="http://www.osoa.org/xmlns/sca/1.0" > xmlns:sample="http://sample" > name="Calculator"> > > <component name="CalculatorServiceComponent"> > <implementation.java class="calculator.CalculatorServiceImpl"/> > > <reference name="addService" target="AddServiceComponent"/> > </component> > > <component name="AddServiceComponent"> > <implementation.java class="calculator.AddServiceImpl"/> > </component> > </composite> > > > Let me know if my file is wrong or I have misused the tool. > > -- > Thanks, Dan Becker > > Stéphane Drapeau wrote: > >> I'm the lead of SCA Tools. >> >> What are your layout problems? >> >> If you have problems or ideas to enhance SCA Tools, don't hesitate. You >> can >> share your experience on eclipse.stp.sca-tools and submit bugs in the >> Eclipse bugzilla. >> >> I cross post this post to stp-dev, it can be interesting too for STP. >> >> Best regards, >> >> Stephane Drapeau >> Obeo >> >> [0]: http://www.scorware.org/projects/en >> >> >> On Thu, Nov 13, 2008 at 20:28, Dan Becker <[EMAIL PROTECTED]> wrote: >> >> Hi Doug, >>> >>> Dhaval Chauhan and I recently installed this tool and have started >>> looking >>> at using it with the Tuscany samples. I joined the usenet group for >>> eclipse.stp.sca-tools, and I hope to post any Tuscany-related questions >>> or >>> issues there. >>> >>> My initial use of the tool sounds a little similar to you. I imported the >>> sample-calculator composite and found some layout problems and also some >>> problems with going from the graphics into the composite. I intend to do >>> a >>> more formal listing of the issues. >>> >>> Doug Tidwell wrote: >>> >>> Somebody with the spare time (heh) should take a look at the SCA Tools >>>> from the SOA Tools Project (http://www.eclipse.org/stp/sca/index.php). >>>> The tool has some layout problems, etc., but it does render a .composite >>>> file as a visual diagram. The tool uses libraries from Apache Batik to >>>> export the diagram as a PNG, JPEG, SVG, GIF or BMP.; right-click on the >>>> diagram, then choose File-->Save as Image File... and then choose your >>>> image >>>> format and file name. >>>> On my "List of projects I would love to hack around on if I had a paid >>>> sabbatical" is taking that code and creating a command-line tool to do >>>> the >>>> layout, build the diagram, then export it to a graphic. At one point >>>> doing >>>> that with an XSLT stylesheet was on the list, but it seems like the SCA >>>> tools have done most of the heavy lifting required. >>>> Loading the .composite files into the SCA tools and saving the diagram >>>> might be easier than using PaintShop or Inkscape or something like that. >>>> >>>> From: >>>> "Simon Laws" <[EMAIL PROTECTED]> >>>> To: >>>> [email protected], [EMAIL PROTECTED] >>>> Date: >>>> 11/12/2008 07:01 AM >>>> Subject: >>>> Open Office SCA diagrams was - Re: [DISCUSS] Tuscany 2.0 themes? >>>> >>>> Personally I get frustrated when I read or make Tuscany demos or >>>> presentations and the simple composites must be created with PaintShop >>>> or >>>> some non-tech tool. >>>> >>>> This may not be quite what you had in mind but a while back someone >>>> created an SCA diagram stencil for Visio [1], lots of people wont have >>>> Visio >>>> so maybe we should create a similar template for OpenOffice Draw and >>>> make >>>> that available on the Tuscany website so anyone can use it to create >>>> good >>>> looking pictures. (Disclaimer, i know little about OpenOffice Draw but >>>> googling it it does seem to have a stencil facility) >>>> ...ant >>>> >>>> [1] >>>> >>>> http://soastation.blogspot.com/2007/10/sca-diagram-stencil-for-visio.html >>>> >>>> My starting point is here ( >>>> http://svn.apache.org/repos/asf/tuscany/sandbox/slaws/scatemplate.odg). >>>> Nothing clever though, just cut and paste drawing from this point. >>>> haven't >>>> worked out how to make these 1st class symbols. >>>> I did work out how to add different line ends and create custom formats >>>> but that didn't stretch to whole symbols. Maybe someone else knows how. >>>> >>>
