How to maintain standard doclet's Javadoc options in custom doclet?

I'm having some difficulties with a custom doclet. I've simply subclassed some of the standard doclet classes to do some custom html output (basically wrapping the output in the headers/footers/navigation of our department intranet). I want to use the standard doclet's configuration and a few of the standard doclet's Javadoc options (-nonavbar and -stylesheetfile, for example). I did not subclass ConfigurationStandard.java because I had no changes that I wanted to make to it. I'm not adding any new tags or command line options, but shouldn't I be able to use the standard doclet's command line options since I'm importing com.sun.tools.doclets.standard.*?

Does your main doclet class (which has the start(RootDoc method)) also contain the optionLength and validOptions method.
Check this url for more info http://java.sun.com/j2se/1.3/docs/tooldocs/javadoc/overview.html
If you are just supporitng the standard doclet optiosn then you can implement these methods in ur doclet and internally call the corresponding methods of the standard doclet to get things done.
public static int optionLength(String option) {
    return Standard.optionLength(option);
public static boolean validOptions(String options[][],  DocErrorReporter reporter) {
    return Standard.validOptions(options, reporter);
}Hope it helps

Similar Messages

  • How to maintain standard text as a mandatory field

    Hi ,
    please suggest me How can i maintain a STDTEXT as a mandatory field while creation a production order.
    while creating production order using CO01, in operation overview(F5) there is a column called STDTEXT.
    so i need to maintain the these field as  a mandatory pleas suggest me how can i do this.
    Regards,
    Sateesh C

    Dear
    You need to do the following :
    1.Create Stnadrad Text Key in CR09
    2.Assing this key in Work Centre in Defaultr Values in Standard Text Key filed
    3.In routing if you create operation with this Work Centre then it will automatically pop up in operation line -Standrad Text field
    4.If you create production Order in CO01 -then this this routing will be selected along with Operation details .Check operation oerview
    Hope this helps
    Regards
    JH

  • How to make use of pre-filter option in custom reports developed in SRSS(Fetch XML feature)

    Hi,
    I have created a report and have enabled the prefiltering option. But still when i select a particular record to run, it gives an error. Is there anything that needs to be changed in the xml query. Can someone please show me a detailed example of how to
    develop a report that uses prefilter option in order to make the report context sensitive. My objective is to create an invoice report that selects only one invoice record at a time.
    jigme_dhonyoe

    see if this helps
    http://www.njevity.com/blog/creating-dynamics-crm-2011-reports-sql-reporting-services-pre-filtering-and-default-filters
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • How to change standard SAP program SAPLFSKB to add custom fields...?

    Hi Gurus,
    I have to change the standard SAP program SAPLFSKB screen 100 to add custom fields...i looked into OSS notes and there is a note: 174413 that provides steps to add custom fields...but when i try to do this it doesnt let me do it...it says that request cannot be changed....do i have to use modification agent...if that is the case then how shud i proceed with this....so please provide me some inputs....
    your help will be appreciated...
    Any inputs for me....
    cheers:sam
    Message was edited by:
            Sam williams

    try going into edit->enhancement operations->create.  this will allow up to add your customized field.

  • How to maintain the function code added to a custom screen in IW31

    Hello gurus,
    Does anyone know how can I maintain the function code of the push button I have in my enhancement screen in IW31 (Service Order). 'Coz it says "Requested function 'my fcode' is not available". I tried it in VFBS but don't know the screen sequence or what's the right data to put. Please help me with this. Thanks.
    Regards,
    AyemSheera

    Hi, you need add Your Function Code into the Tables T185x (x like T, F...). Call Transaction SM30 (SM31), put the Table name T185 into Table name and select the Button 'Maintain' or Customizing. The Transaction will navigate you to right position in Customizing. Next, you need to find in the Table's T185x Line with the Program Name SAPLCOIH. Then add your code into the Table's. At next, You have to maintain Your function Code in the PAI module of your Custom screen in the TA IW31.
    Sincerely Yours,
    Lubomir.

  • How to maintain two credit limits for the same customer.

    We have two lines of business for the same company code. One customer is trading in two lines of business.
    We want to maintain two credit limits for same customer. How is this possible.

    Hi,
    Credit Limits are assigned to customer master in a credit control area, so a customer can have different credit limits for the different credit control areas.
    (Please note that Credit Control Areas are normally assigned to company codes or sales area.)
    But if you are having only one credit control area, then only one credit limit can apply.
    However you can use the user exits to put any check you want for the customer. There are various user exits available for it like LVKMPTZZ,LVKMPFZ1,LVKMPFZ2 and LVKMPFZ3 in transaction SMOD
    Regards,
    Gaurav

  • How to add standard text in PO and how it is maintained ?

    How to add standard text (paragraph) in PO and how it is maintained ?

    Hi
    Please go through this document.which has a step by step
    Working with Frequently Used Texts
    Use
    You can copy texts from various sources to create PO texts:
    Standard texts
    Certain standard texts are supplied with the system and can be assigned to a purchasing document in Customizing.
    The content of some standard texts is predefined by your system administrator.
    You can also create standard texts yourself and copy them into purchasing documents.
    Master records
    Database fields
    Activities
    Creating Standard Texts
    You can create your own standard texts via Tools ® SAPscript ® Standard text.
    Inserting Standard Texts
    You can insert your standard text on the long text screen via Insert ® Text ® Standard.
    For more information, refer to the Basis documentation under BC Word Processing with the SAPscript Editor:  Including Texts.
    You can display the print preview via Text ® Print ® Print preview.
    Inserting Texts from the Master Record
    There are three ways of linking texts from a master record with a purchasing document. The relevant settings are made for each text type in Customizing for Purchasing. The indicator in the status column shows the nature of the linkage.
    Option                                              Indicator in status column
    The text is copied:               
    It is then independent of the text                 None
    in the master record. Changes to
    the text in the material master record
    have no influence on the text in the document.
    The text is displayed only:
    It cannot be adopted.                                          N
    The text is offered for copying:
    It can be copied via Header or Item ® Texts ® Adopt text. (In requisitions: Goto ® Texts ® Adopt text.) Changes made in the master record will also be adopted in the document until such time as you copy the text.
    Inserting Texts from Database Fields
    You can include the content of a database field at any point in the text on the long text screen. A value specific to the relevant document is displayed in the printed document.
    Choose Insert ® Symbols ® Program symbols.
    Choose DDIC fields.
    Search for the relevant table/structure (in the case of PO items, this is EKPO) and then choose ENTER .
    Choose the relevant table field.
    Choose Text ® Print preview to see the print preview.
    Reward if useful
    Aasif

  • How to Maintain documentation (se38) using standard text (SO10)

    Hi,
    I have created standard text using SO10. Now I want to include the standard text in documentation (SE38) section of my ABAP program.
    I tried using /: INCLUDE 'YTEST' OBJECT TEXT ID ST LANGUAGE EN
    But the standard text is not showing up when I click the documentation icon in the selection screen.
    Can you please let me know how to maintain documentation for ABAP programs using Standard Texts.
    Thanks in advance.
    Sincerely,
    Vidya

    Hi Mahesh,
    In SO10, which format key has been used (AS, /*, /:, *.... to show up in documentation). when you used insert->text-> did you use 'expand immediately' check box. If expand immediately option is used, it won't serve our purpose.
    =
      (space)
    Example
    SO10 Yeurope_terms
    Inside Yeurope_terms
    Terms: For Europe
    /*           No Tax for Italy
    Waiting for your reply.
    Sincerely,
    Vidya

  • How to debug a custom doclet

    Hi,
    Can an incorrect taglet name cause javadoc generation to crash/ hang?
    We have a custon taglet with the name of @abc.comment
    However, someone added a period at the end of the name by mistake: @abc.comment.
    This caused the cruise control build to crash...
    Any clues on why this would have happened would be helpful. Also, how do you debug a custom doclet?
    Thanks in advance.
    BB

    Also, how do you debug a custom doclet?Well, the usual way: you use a debugger ;-)
    Since Javadoc features a programmatic interface, it's easy to write a simple main class.
    Here is my test entry class, just replace "your.doclet.name.here" with the actual name of your custom doclet.
    TestRun requires a filename as sole argument/cmd option, this filename should point to a standard Javadoc options file. To successfully use TestRun, the classes that make up your custom doclet and the JDK tools.jar should (probably) be in the classpath.
    * @(#) TestRun.java 1.00
    import java.io.BufferedReader;
    import java.io.FileReader;
    import java.io.IOException;
    import java.util.StringTokenizer;
    * <code>TestRun</code>
    * @author Thomas Behr 27.11.2003
    public class TestRun
        public static void main( final String[] args )
            if ( args.length != 1 || !(new java.io.File( args[0] )).isFile() )
                System.err.println( "usage: java TestRun <filename>" );
                return;
            com.sun.tools.javadoc.Main.execute( "javadoc",
                                                "your.doclet.name.here",
                                                processOptionsFile( args[0] ) );
        private static String[] processOptionsFile( final String filename )
            final String options = readOptionsFile( filename );
            final StringTokenizer tokens = new StringTokenizer( options );
            final String[] jargs = new String[tokens.countTokens()];
            for ( int i = 0; i < jargs.length; ++i )
                jargs[i] = tokens.nextToken();
            return jargs;
        private static String readOptionsFile( final String filename )
            final StringBuffer buffer = new StringBuffer();
            BufferedReader br = null;
            try
                br = new BufferedReader( new FileReader( filename ) );
                String line;
                while ( (line = br.readLine()) != null )
                    buffer.append( line ).append( "\n" );
            catch ( final IOException ioe )
                ioe.printStackTrace();
                buffer.setLength( 0 );
            finally
                if ( br != null )
                    try
                        br.close();
                    catch ( IOException ioe )
                        ioe.printStackTrace();
            return buffer.toString();
    }

  • Hi..how we enter standard text for smartform using include text

    hi
    guru
    ..how we enter standard text for smartform using include text..
    i know only using so10 we write text..
    in smartform it asking text-object
                                     text-id,
    so what values we should give to get text

    Hi,
       Do u want to print Standard Text or the Texts that are maintained at the Transaction level.
    If it is standard text , then u use text id as ST or if it is Texts that are maintained at the Transaction level then u have to go to that specific transaction and check for that text , then go to text editor ,in the goto menu u have header data where u get the Text id , text name.... , use them in ur smartform in the INCLUDE text.
    Further u have the option of text modules in smartforms which act as standard texts, so if u r going for creation of standard texts then its better to use text modules.
    Regards,
    Shafivullah Mohammad

  • JavaDoc export using own Doclet

    Hi,
    I'm working on a project build of several PlugIn-Projects. I want to generate a JavaDoc using my own Doclet. Within the doclet code I try to instantiate classes. When trying to instantiate these classes I always get NoClassDefFoundExceptions. These Exceptions refering to classes the "new ones" are inherited from. I put all classpath required in the "Doclet class path" field of the export wizard. Does somebody know how to fix this problem?
    Thanks
    H_Holli

    First, there is no NoClassDefFoundException. It's either NoClassDefFoundError or ClassNotFoundException.
    Second, if a NoClassDefFoundError is thrown in your custom doclet code, then the class for which the definition is not found is not in the relevant class- or doclet path.
    Before trying to get your doclet to work from within an IDE, test your doclet with command line JavaDoc. If this works, you will know that you misconfigured your IDE's doclet support. If this does not work, you need to fix your doclet or your doclet configuration.
    Anyways, you will have to ensure that all classes that need to be loaded by your doclet are in the doclet path. This includes all the super classes of your custom stuff, except for standard JDK and JDK tools classes. (JDK tools classes are those classes in the tools.jar which comes with the JDK. It contains the JavaDoc implementation and therefore is implictly available.)

  • How to count number of lines inside methods() using the Doclet API

    Wrote a custom doclet using the [Doclet API|http://java.sun.com/j2se/1.3/docs/tooldocs/javadoc/doclet/index.html ] .
    The purpose for the doclet is to load Java source files and create stubs (which are identical Java source files but do not contain any method implementation details).
    Instead, the method implementation details need to be replaced with blank lines...
    public class MyDoclet {
         private static String TAB = "\t";
         public static boolean start(RootDoc root) {
              ClassDoc[] classes = root.classes();
              // Parse through class or interface
              for (ClassDoc clazz : classes) {
                   Type superClass = clazz.superclassType();     
                   // Print Methods
                   MethodDoc[] methods = clazz.methods();
                   for (MethodDoc method : methods) {
                        Parameter[] parameters = method.parameters();
                        println();
                        if (!method.isPrivate()) {
                             print(TAB + method.modifiers() + " "
                                                    + method.returnType().simpleTypeName() + " " + method.name());
                             print("(");
                             for (int i=0; i < parameters.length; i++) {
                                  Parameter parameter = (Parameter) parameters;
                                  print(parameter.type().simpleTypeName() + " " + parameter.name());
                                  if (i != parameters.length - 1) {
                                       print(", ");
                             print(")");
                             println(" {");
                             println("\n");
                             println(TAB + "}");
              return true;
    As one can see, I am just creating the method and placing the opening and closing curly braces (along with a new \n line escape sequence, in between).
    Am not really that familiar with the Doclet API...
    Question(s):
    (1) What is the best way to figure out how many lines of code are inside each method and then use a for loop to insert the exact same number of blank lines inside the methods?
    (2) Is there a way to do it using the com.sun.javadoc.SourcePosition.line() method?
    Would really appreciate it if someone could help me because this is an important requirement (hence the 10 Duke Stars).
    Happy coding to all,
    Mike                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    This is not possible using the Doclet API, because JavaDoc does not store any information regarding implementation detail. Although MethodDoc#position will give you the line where the method is declared, there is no way to determine where the method body starts and ends.
    If you need that much information, maybe you would be better of using a tool such as Eclipse's Abstract Syntax Tree parser. AST will provide you with line numbers for each code expression, hence it is relatively easy to compute the first and last line in a method body.

  • How to Maintain the Pricing Condition Records in CRM

    Hi
    I am new to the CRM
    How to maintain the pricing condition records in crm for the particular condition type?
    as we do in SD(VK11)
    Thanks

    Hi Binu,
    First of all, you could maintain pricing conditions in the following places:
    1. In General Condition Maintenance (GCM)
    2. At the product maintenance level
    3. At the 'Price agreement' tab of Contracts
    4. As manual conditions during order processing at item level
    Now, if you want to maintain conditions using GCM, you first have to maintain a condition maintenance group in the customizing where in you can assign condition table and condition type for different counter values. I am assuming that you have done this activity successfully.
    When you run the transaction '/SAPCND/GCM', for application 'CRM', your condition maintenance group name and context 'GCM', you will be initially taken to a screen where in you'll have an item area which would be blank and then condition fields would be displayed in a tree on the left.
    Here, select the field 'Condition type' and click on icon 'Select records'. You would get a dialog prompting you to enter condition type. Here you can specifiy the condition type for which you want to maintain/view condition records.
    If no condition records are available, item area would be left blank. Here, you can choose a condition type using the standard F4 help. Depending on condition types that are assigned to condition maintenance group, different condition types would be displayed in the F4-help using which you can maintain condition records.
    Hope this helps.
    Regards,
    Pavithra
    **PS: Please reward points if this helps.

  • How to use standard Smart forms

    hi All,
    Pls give me the detail for smartform ie how to use standard smart forms and how to modify them in SAP 4.7EE
    Thanks,
    Nitin

    Hi,
    first u copy the standrad smartform to z and then modify it,
    SOME STANDARD SMARTFORMS
    SF_EXAMPLE_01,
    SF_EXAMPLE_02,
    SF_EXAMPLE_03,
    LB_BILL_INVOICE,
    ENETR SMARTFORMS TCODE
    PRESS F4 HERE U FIND ALL STANDARD SMARTFORMS
    OR
    U GO TO TRANSACTION CODE NACE
    SAMPLE PROGRAM FOR SMARTFORM,
    . Create a new smartforms
    Transaction code SMARTFORMS
    Create new smartforms call ZSMART
    2. Define looping process for internal table
              Pages and windows
          First Page -> Header Window (Cursor at First Page then click Edit -> Node -> Create)
          Here, you can specify your title and page numbering
          &SFSY-PAGE& (Page 1) of &SFSY-FORMPAGES(Z4.0)& (Total Page)
          Main windows -> TABLE -> DATA
          In the Loop section, tick Internal table and fill in
          ITAB1 (table in ABAP SMARTFORM calling function) INTO ITAB2
    3. Define table in smartforms
               Global settings :
               Form interface
               Variable name    Type assignment   Reference type
               ITAB1               TYPE                  Table Structure
               Global definitions
               Variable name    Type assignment   Reference type
               ITAB2               TYPE                  Table Structure
    4. To display the data in the form
        Make used of the Table Painter and declare the Line Type in Tabstrips Table
         e.g.  HD_GEN for printing header details,
                 IT_GEN  for printing data details.
         You have to specify the Line Type in your Text elements in the Tabstrips Output options.
          Tick the New Line and specify the Line Type for outputting the data.
          Declare your output fields in Text elements
          Tabstrips - Output Options
          For different fonts use this Style : IDWTCERTSTYLE
          For Quantity or Amout you can used this variable &GS_ITAB-AMOUNT(12.2)&
    5. Calling SMARTFORMS from your ABAP program
    REPORT ZSMARTFORM.
    Calling SMARTFORMS from your ABAP program.
    Collecting all the table data in your program, and pass once to SMARTFORMS
    SMARTFORMS
    Declare your table type in :-
    Global Settings -> Form Interface
    Global Definintions -> Global Data
    Main Window -> Table -> DATA
    Written by :  SAP Hints and Tips on Configuration and ABAP/4 Programming
                        http://sapr3.tripod.com
    TABLES: MKPF.
    DATA: FM_NAME TYPE RS38L_FNAM.
    DATA: BEGIN OF INT_MKPF OCCURS 0.
            INCLUDE STRUCTURE MKPF.
    DATA: END OF INT_MKPF.
    SELECT-OPTIONS S_MBLNR FOR MKPF-MBLNR MEMORY ID 001.
    SELECT * FROM MKPF WHERE MBLNR IN S_MBLNR.
       MOVE-CORRESPONDING MKPF TO INT_MKPF.
       APPEND INT_MKPF.
    ENDSELECT.
    At the end of your program.
    Passing data to SMARTFORMS
    call function 'SSF_FUNCTION_MODULE_NAME'
      exporting
        formname                 = 'ZSMARTFORM'
      VARIANT                  = ' '
      DIRECT_CALL              = ' '
      IMPORTING
        FM_NAME                  = FM_NAME
      EXCEPTIONS
        NO_FORM                  = 1
        NO_FUNCTION_MODULE       = 2
        OTHERS                   = 3.
    if sy-subrc <> 0.
       WRITE: / 'ERROR 1'.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    call function FM_NAME
    EXPORTING
      ARCHIVE_INDEX              =
      ARCHIVE_INDEX_TAB          =
      ARCHIVE_PARAMETERS         =
      CONTROL_PARAMETERS         =
      MAIL_APPL_OBJ              =
      MAIL_RECIPIENT             =
      MAIL_SENDER                =
      OUTPUT_OPTIONS             =
      USER_SETTINGS              = 'X'
    IMPORTING
      DOCUMENT_OUTPUT_INFO       =
      JOB_OUTPUT_INFO            =
      JOB_OUTPUT_OPTIONS         =
      TABLES
        GS_MKPF                    = INT_MKPF
      EXCEPTIONS
        FORMATTING_ERROR           = 1
        INTERNAL_ERROR             = 2
        SEND_ERROR                 = 3
        USER_CANCELED              = 4
        OTHERS                     = 5.
    if sy-subrc <> 0.
       MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    Thanks&Regards,
    Phani
    POINTS HELPFUL

  • How to maintain TFACS table (Factory calendar) into SAP BI

    Hi,
    I deal with a daily stock infocube and I would like to set a flag when the warehouse doesn't work (on holiday).
    to do this, I would like to use the factory calendar (TFACS), and I have 2 questions:
    1) How to maintain the TFACS table into SAP BI ?
    2) How to use the TFACS data into SAP BI ? In other words, How to convert the TFACS data values in date ?
    Thx.
    Radj.

    1.
    rsa1(source-systems) --> right-click on the source system you load from --> transfer global settings --> flag 'factory calendar' and 'rebuild' or 'update tables'
    2.
    use function module DATE_CONVERT_TO_FACTORYDATE.
    it returns workingday_indicator (initial if it's a worling day) that you can use as a flag, or it also returns the next working day.
    you can use this function module in the transformation in the field routine of the flag...i think this is the best option.
    M.

Maybe you are looking for

  • Photoshop getting stuck attempting to update when at 12%

    Last night I tried to update PhotoShop, and it got stuck at 12%. I cancelled the update, and now, hours later, it still tells me it's "finishing up." I'm locked out of all other updates. How do I fix this? (I'm a brand new Cloud user.)

  • External Drive with Time Machine Disappears

    I use time machine to backup my hard drive to a Book Studio External Hard Drive.  But after a day or two, the icon for the backup will disappear off the desktop and the system stops doing the automatic backcups. It is relatively easily bring it back

  • Don't get updates in shared calendar

    Hi all, Me and my wife are sharing a calendar in iCloud, we bth run iOS 5 and have an iMac where we add, edit and remove appointments. She receives an email notification when a new appointment is added, but I don't. I am the owner of the calendar, an

  • Reg Stock Transfer

    Dear All,   Here at client place stock transfer from company code to company code to be done. There are two company codes one is company code A & company code B. Raw materials procured by company code A and delivery address is given of company code B

  • Windows Mobile PDA WiFi and Palm Pre Plus Hotspot

    I can't get my PDA, which is running Windows Mobile 5, to connect securly with my Palm Pre Plus.  I can make the WiFi connection if the hotspot is set to open, but if the hotspot is set to wpa/wpa2 personal the connection doesn't happen.  Does anyone