Formatting code according to Javadoc standards

Hi,
I have a set of java code. I am looking for some 3rd party tool or IDE which can format my code according to java doc standards (e.g. generating method header comments, parameters, return etc.). I am trying that i dont have to go to each file and manually do it.
Any suggestions.!!
Thanx
Akhil

I know one very good and free tool -> http://jrefactory.sourceforge.net/
I've recently added support for Kawa IDE and I will add support for Prosyst's mBuilder soon.

Similar Messages

  • Display formatted code in html output

    Howdy,
    I'm looking for preferably a JSTL tag (library) that is capable of transforming a code fragment into neatly formatted code, with syntax highlighting, tab preservation, line numbers, stuff like that. I'm sure they should be out there somewhere, it's just that I can't find them anywhere using Google, or I'm just using the wrong terms :/.
    So, if anyone happens to know about a code formatting tool for JSP / JSTL pages, I'd be much obliged.

    Here are some new keywords to Google on: 'java highlighter', 'java source highlighter', 'java2html', 'java2xml', etcetera.

  • 2.1 RC1 breaks svn headlines during formatting code

    Hi,
    after i'm using CTRL+F7 for formatting code, alls svn headlines are broken.
    For example,
    -- $HeadURL: http://icisvnt.server.XXX.local/repos/i3s/trunk/i3skm/Model/src/main/sql/i3skm/10a_i3skm_mig_paket_revisionen_sync.pks$
    will be formatted to
    -- $HeadURL: http://icisvnt.server.XXX.local/repos/i3s/trunk/i3skm/
    -- Model/src/main/sql/i3skm/10a_i3skm_mig_paket_revisionen_sync.pks$
    The expected behavior (like in in jdev 11.1.1.2) would be to leave all svn headlines untouched.
    Thanks in advance

    Hi Skunde,
    The formatter does not understand svn in a comment - it just assumes the comment can be cut to the set number of characters as requested.
    (It does not do this by default, as max line width is 999 by default)
    Two workarounds:
    1/tools->preferences->databases->sqlformatter->oracle formatting->edit->line breaks->Max Line Width
    set this to 999 (side effect - your code may go past the right of the screen i.e. over 80 characters)
    2/Note that you can now format a selection not just the whole code so you could leave out the svn banner when formatting the rest.
    Also as you have done you could remove the line feed manually.
    --Turloch
    Edited by: Turloch O'Tierney on Dec 7, 2009 3:56 AM

  • Formatting code and output with Courier font

    Hi,
    I have several problem in inserting code and output for SQL and PL/SQL.
    I.e.:
    If I insert the code below formatting usin Syntax highlight as SQL:
    SELECT empno, sal
      FROM emp
    WHERE sal > ALL (2000, 3000, 4000);
    Is there a way to have Courier as font to retain the correct indentation?
    Another problem. Suppose that I run the query below:
    SELECT *
      FROM emp
    WHERE deptno = 10;
    and I want to paste the output as Courier:
    If I copy and paste the output from SQL Plus:
    EMPNO ENAME 
    JOB         
    MGR HIREDATE    
    SAL  
    COMM
    DEPTNO
    7782 CLARK 
    MANAGER    
    7839 09-JUN-81  
    2450               
    10
    7839 KING  
    PRESIDENT       
    17-NOV-81  
    5000               
    10
    7934 MILLER
    CLERK      
    7782 23-JAN-82  
    1300               
    10
    It is pasted as a table. Even changing the font is not helping to have a good formatted code (note the header not aligned with data columns).
    I can use HTML code to paste it. I.e.:
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO
          7782 CLARK      MANAGER         7839 09-JUN-81       2450                    10
          7839 KING       PRESIDENT            17-NOV-81       5000                    10
          7934 MILLER     CLERK           7782 23-JAN-82       1300                    10
    But it is taking quite a lot to paste the code.
    Any suggestion?
    Regards.
    Al
    Message was edited by: AlbertoFaenza

    BluShadow wrote:
    Well, I hope they get around to using fixed space fonts on the Syntax Highlighting options, as I quite like the fact it creates line numbers for the code, as that will be useful when discussing issues.
    I agree Blu. The line number is useful. If they only can use a fixed space font would be perfect.
    I also have the problem that randomly my output is pasted as a HTML table and still could not understand why it happens.
    This one i.e.:
    EMPNO ENAME
    JOB        
    MGR HIREDATE   
    SAL 
    COMM
    DEPTNO
    7369 SMITH
    CLERK     
    7902 17-DEC-80  
    800              
    20
    7566 JONES
    MANAGER   
    7839 02-APR-81 
    2975              
    20
    7788 SCOTT
    ANALYST   
    7566 19-APR-87 
    3000              
    20
    7876 ADAMS
    CLERK     
    7788 23-MAY-87 
    1100              
    20
    7902 FORD 
    ANALYST   
    7566 03-DEC-81 
    3000              
    20
    I notice that just adding a blank line as first line solve the issue.Regards.
    Al

  • ORA-01810: format code appears twice ORA-02063: preceding line from PULSARL

    Hi ,
    I am running this query
    select distinct to_char(a.USAGEDATE, 'dd/mm/yyyy hh:mm'),round((a.avgifoutoctets * a.numberofrows / (a.avgdeltatime * a.numberofrows) * 8 / 1000 ), 2)as avginoctetrate from vware.vhourlyrtgusageextract a ,vware.rtginterface b where a.id = b.ID and a.id = 125555 and a.USAGEDATE >= TO_CHAR(TO_DATE('2011-05-22 11:40:47', 'yyyy-MM-dd HH:mm:ss')) and a.USAGEDATE < TO_CHAR(TO_DATE('2011-05-29 11:40:47', 'yyyy-MM-dd HH:mm:ss')) and a.IFDESCRIPTION = 'Serial1/0' order by 1
    I am getting this exception
    ORA-01810: format code appears twice ORA-02063: preceding line from PULSARL
    Could anybody please tell me what is the issue ??

    Hi,
    The issue is:
    SQL> select TO_DATE ( '2011-05-29 11:40:47', 'yyyy-MM-dd HH:mm:ss') from dual;
    select TO_DATE ( '2011-05-29 11:40:47', 'yyyy-MM-dd HH:mm:ss') from dual
    ERROR at line 1:
    ORA-01810: format code appears twiceYou are using MM twice. MM means two digit months. You probably mean MI for minutes for the last one:
    SQL> select TO_DATE ( '2011-05-29 11:40:47', 'yyyy-MM-dd HH:mi:ss') from dual;
    TO_DATE(
    11-05-29
    SQL>Note that you have same mistake in your to_char as well, only this does not fail.
    The ORA-02063 just tells you that the error came from a different server, PULSARL, which means you must be selecting across a database link.
    Btw, what does this mean:
             AND a.usagedate >=
                   TO_CHAR (TO_DATE ( '2011-05-22 11:40:47', 'yyyy-MM-dd HH:mm:ss'))Why are you converting a string into DATE and then back into string? - What data type is usagedate?
    Regards
    Peter

  • Forms 6i format code - code formatter

    Hi,
    Is there any code fomatter pluggin for forms 6i??? Or anything else in order to format code in forms 6i???
    Regards,
    Santiago

    surprisingly, I use toad formatter. you have to copy and paste from forms builder to toad, format and copy paste back it does a real good job. only two hickups, as toad formatter is plain sql, a chunk of pl/sql has to have a begin and end around it. toad won't format without a big/end. IT also does not like the word mode used in :system.mode
    So you have to comment out that line of code for the formatter to run.

  • ORA-01820: format code cannot appear in date input format

    I don't understand why I am getting the error below. That should be valid, no?
    TIA for any insight.
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.7.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.7.0 - Production
    SQL>
    SQL> select to_date('2004 01 3','yyyy mm w') from dual;
    select to_date('2004 01 3','yyyy mm w') from dual
    ERROR at line 1:
    ORA-01820: format code cannot appear in date input format
    SQL>
    SQL> select to_char(sysdate,'yyyy mm w') from dual;
    TO_CHAR(S
    2008 08 1

    LC,
    ORA-01820:     format code cannot appear in date input format
    Cause:     A date specification contained an invalid format code. Only the following may be specified when entering a date: year, month, day, hours, minutes, seconds, Julian day, A.M./P.M. and B.C./A.D.
    Action:     Remove the invalid format code from the date specification.
    Looking at the cause,you can't use a format code like W in the date format for converting a text to date. To_date doesn't accept it.
    Aman....

  • Format code cannot appear in date input format - IW related

    Hi,
    please explain what I'm doing wrong:
    SQL>  select to_char(sysdate, 'YYYY-IW') from  dual;
    TO_CHAR
    2010-48
    SQL>  select to_date('2010-22', 'YYYY-IW') from  dual;
    select to_date('2010-22', 'YYYY-IW') from  dual
    ERROR at line 1:
    ORA-01820: format code cannot appear in date input formatOracle 9.2 .
    Regards.
    Greg

    FIrst of all you should stay with the date format. Instead of converting it into a string you could TRUNCATE it to the first day of the Iso-Wekk.
    And to enable index usage you just have to put a certain range on your queries.
    example
    select *
    from t
    where col_date  >= trunc(sysdate, 'IW')  ;if col_date can hold values that are greater than syste. Or if you use another date value to compare than sysdate. Then you need to compare with a range. Just like this
    select *
    from t
    where col_date  >= trunc(sysdate, 'IW') 
    and col_date  < trunc(sysdate, 'IW')+7 ;If you want to input a certain WEEK and get all entries from that week you can start with the first day of the iso-Year and add the number of weeks to it.
    example using iso-Week 40
    select *
    from t
    where col_date  >= trunc(sysdate, 'IYYY')  + 7 * 40
    and col_date  < trunc(sysdate, 'IYYY')+7 * (40 +  1);However calendar arithmetic is complex. We have to be careful for special cases. For example the beginning of the ISO-Year 2011 is the 3rd Jan 2011. So if we run this logic on the first or second of January *2011* we would get the calendar week 40 from *2010*. This is probably not what you want.
    To take this into account we must make sure that we are using the proper year. There are several possibilities how to do it. In this case I choose to use the normal TRUNC to get the first day of the normal year (1.1.2011) then add a week and truncate again.
    example
    select *
    from t
    where col_date  >= trunc(trunc(sysdate,'YYYY)+7, 'IYYY')  + 7 * 40
    and col_date  < trunc(trunc(sysdate,'YYYY)+7, 'IYYY')+7 * (40 +  1);Edited by: Sven W. on Dec 3, 2010 8:52 AM

  • Format code Adobe Flash CC 2014 Broken

    I just upgraded from Adobe Flash CS6 to Adobe Flash CC 2014 and I noticed that Adobe changed how the "Format Code" command formats a Greensock code line (arrays). Does anyone have a workaround or solution?
    The way CS6 formated a line of Greensock code (my preferred way):
    TweenLite.to(mc, 1.5, {x:100, y:200, rotation: 360, ease:Expo.easeInOut, delay:1});
    How it formats now in CC 2014:
    TweenLite.to(mc, 1.5,
        x: 100,
        y: 200,
        rotation: 360,
        ease: Expo.easeInOut,
        delay: 1

    Usually the easiest fix for something that CC does differently is to revert to using the version that you are comfortable with... CS6 in this case.  Personally, I manage all the formatting of my code and don't rely on any built-in tool for it.  Built-in coding stuff in my opinion is always a mess - as evidenced by any html page ever produced by MS Word.
    I am not sure why you mention arrays since the formating only appears to have affected the Object that is defined as one of the tween's arguments.  The way it is formatted makes it easier to read the properties of the Object. I wouldn't say it is broken, it is just done the way someone who writes the program decided they like it to be shown.

  • Catch HTTP code 401 and prevent standard login dialog

    Hello,
    in my FLEX application I load some data from a Java servlet. I use URLRequest and URLLoader to load the data. The servlet requires basic authentication. I use a custom login dialog to get the users credentials. Everything works fine except when the user provides wrong credentials. Then the servlet returns HTTP code 401 and FLEX automatically shows a standard login dialog. I'd like to show a custom dialog instead. However I have not found a way to catch the 401 code and prevent the standard dialog from showing. Is there a solution for this?
    My code:
    var encoder: Base64Encoder = new Base64Encoder();
    encoder.encode(context.userId + ":" + context.password);
    var credHeader: URLRequestHeader = new URLRequestHeader(
         "Authorization", "Basic " + encoder.toString());
    var loader: URLLoader = new URLLoader();
    var request: URLRequest = new URLRequest("http://.../userinfo");
    request.method = URLRequestMethod.GET;
    request.requestHeaders.push(credHeader);
    loader.load(request);
    Thanks,
    Florian

    Sure,
    this is my custom login dialog:
    and this is the default login dialog:
    The application runs on Adobe AIR version 2.6.

  • Time format code

    hi
    how do i set the time format code to give milliseconds? if i use %s i get seconds, %M i get minutes etc.
    thanks
    Attachments:
    time format cade.vi ‏8 KB

    What I meant to say was the %u was the general format and you replace with a number. Do not use < or > in your format string. %3u is what you want to use.Message Edited by Dennis Knutson on 03-08-2005 10:45 AM

  • Can anyone advise on this error: "Timeline", Error: "invalid format", Code: "14", Note: "Unknown

    Hello,
    Attempting to author a basic Blu-ray disc.  Everything appears to be ok when I run the build check to make sure that the disc will write out correctly.  When I start to build and burn the disc, Encore begins to import the video asset, and then quits with the following error message:
    Blu-ray Object: "<Timeline> Untitled Timeline", Error: "invalid format", Code: "14", Note: "Unknown exception"
    Does anyone have any thoughts regarding this error?  In the project timeline, everything plays ok - picture and sound.  I am importing a MPEG-2 file that came out of Compressor as an .m2v file.  Not sure if this could be the cause of the invalid format.  If so, odd that it imports into the project and simulates ok.
    Thanks,
    Mtbakerstu

    Thanks Stan.
    The project originates in Final Cut Pro, so it is easier for me to export out directly from FCP than to make an intermediate file to go into Premiere Pro.  Also, going directly makes it more fool proof in terms of potential downstream issues with the MPEG encode.
    That said, do you have a file format recommendation if I were to export a master file out of FCP, and then import into PP ?
    Regarding if I want the M2V to work, do you know what setting might be causing the error... presuming that's the issue.  Does it make sense that I would be able to see the video file workin in Encore, but when I try to then "build" it fails?
    Thanks again, feedback most appreciated!
    Mtbakerstu

  • Blu-ray Object: "Sept-Nov_2008", Error: "invalid format", Code: "14", Note: "ERROR: This stream does

    I am trying to transcode a self contained FCP quicktime movie file and I get the message - Blu-ray Object: "Sept-Nov_2008", Error: "invalid format", Code: "14",
    Note: "ERROR: This stream doesn't include Picture timing SEI, Unit Offset = 785835706". I am going to use quicktime pro 7 to import  a quicktime movie instead of FCP self contained file into encore. But if anybody has any suggestions, please let me know. I have read about wrong field orders but I am using a custom preset with the field order set to upper (odd) - since I am using a Apple ProRes 422 (proxy) for the FCP sequence.

    This thread might be helpful:
    http://adobe.hosted.jivesoftware.com/message/3460426
    -Ramesh

  • Communication b/n iviews --- Can we get the code for SAP's standard iviews?

    hi All,
    I have a requirement where I have to pass the user input data obtained in a standard iview(provided by sap) to a custom built iview and process it from there.
    If I have to use the EPCF's client data bag for this purpose, I must be able to edit the code which produces the standard iview(provided by sap) which I think is not possible, as we cannot get the code for the standard iviews provided by sap.
    Have anybody come across this kind of issue? If so, can you help me in solving this issue? Is there any workaround for this?
    Any input in this regard will be of great help to me and will be suitably rewarded.
    Thanks & best regds,
    Alagammai.

    hi George,
    Tnx a lot.
    But I have already tried importing par files into NWDS. I am not able to see any source code(like jsp or java)which can be edited. I am able to see only class files.
    Does that mean that the class files are to be decompiled, edited, compiled and then uploaded to the portal?
    best regds,
    alagammai.

  • Custom format code changes to general

    A chart made in Excel 2013 and published on a Sharepoint 2013 changes format
    of data labels. Format of data labels in Excel 2013 chart has a Custom format
    code (#.##0.;-#.##0.;;)  When published on a Sharepoint 2013 Custom format
    changes to General. But Numeric Format in a chart remains Numeric when published.<o:p></o:p>
    Do not have such problem when chart is published on a Sharepoint 2010.
    <o:p></o:p>

    Ron, are you using the latest version? I am using many different colors on my Entities just fine.
    I have previously seen individual entities that would not accept any color I tried to set them to - just as you explain it.
    / Marc de Oliveira

Maybe you are looking for