Results 1 to 3 of 3

Thread: Patch for slice2java 3.2.1 - output comments in generated Java code

  1. #1
    pslh is offline Registered User
    Name: Paul Henshaw
    Organization: TVBLOB
    Project: TV 3.0
    Join Date
    Sep 2008
    Location
    Italy
    Posts
    1

    Patch for slice2java 3.2.1 - output comments in generated Java code

    Hello,

    I have modified slice2java so as to output JavaDoc comments in the generated Java sources by copying comments from the associated .ice files.

    This allows IDE's such as Eclipse to display comments in mouse roll overs and documentation directly in the Java editor.

    I modified Main.cpp to preprocess with comments enabled.
    Gen.cpp outputs the comments.

    The enclosed zip file contains my modified sources, the original sources and the differences between then (created using diff).

    The modified version of slice2java works for me on Debian Etch.

    We are using version Ice 3.2.1 rather than the latest
    release since we need Java2 support: many of our target platforms do not support Java 5.

    Hope this helps,
    Paul
    Attached Files Attached Files

  2. #2
    joshmoore is offline Registered User
    Name: Josh Moore
    Organization: Glencoe Software, Inc.
    Project: OMERO, http://trac.openmicroscopy.org.uk/omero
    Join Date
    Feb 2007
    Location
    Germany
    Posts
    115
    This seems like a good idea. Something similar for python would also be useful for when working from the command line.

  3. #3
    matthew's Avatar
    matthew is offline ZeroC Staff
    Name: Matthew Newhook
    Organization: ZeroC, Inc.
    Project: Internet Communications Engine
    Join Date
    Feb 2003
    Location
    NL, Canada
    Posts
    1,458
    Thanks for the patch. We'll consider integrating this in a future release!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 6
    Last Post: 07-12-2009, 01:44 PM
  2. Replies: 3
    Last Post: 03-02-2009, 02:28 AM
  3. Replies: 0
    Last Post: 12-09-2008, 05:28 AM
  4. Java 5.0 code generation for slice2java
    By vsonnathi in forum Comments
    Replies: 2
    Last Post: 11-17-2005, 01:58 PM
  5. assert() in slice2java generated code?
    By SteveWampler in forum Help Center
    Replies: 2
    Last Post: 04-13-2004, 01:38 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •