Subclassing standard doclet in version 1.4

I have a modified version of the standard doclet from 1.3.1. I'm trying to transfer the functionality from this doclet to a subclass of the 1.4.1 standard doclet. My modified Standard.java contains the following method:
public static ConfigurationExcluderDoclet configuration() {
if (HtmlDocWriter.configuration == null) {
HtmlDocWriter.configuration = new ConfigurationExcluderDoclet();
return (ConfigurationExcluderDoclet)(HtmlDocWriter.configuration);
This won't work in 1.4.1 as the variable "configuration" in HtmlWriter has been modified to protected access only. Is there a workaround for this so that I can still pass my configuration instance?
Thanks,
Linda Howard

Hi Linda,
Just delete the code below and replace with "return new ConfigurationExcluderDoclet();". There is absolutely no need to initialize HtmlDocWriter.configuration in your configuration() method. This field is now initialized in the constructor, as it should be. If you need to access the configuration in your doclet, use Standard.configuration, not HtmlDocWriter.configuration. Your doclet should inherit the configuration from class Standard.
-Jamie Ho

Similar Messages

  • Extending standard doclet by subclassing: impossible?

    Hi,
    I'd like to extend the standard html doclet so that a class diagram appears just below the class name in every doc file.
    I want to do that for an open source project, so I have to do it in a way that allows the redistribution of the doclet.
    As far as I understand the licence, I can do that only by subclassing (because using the standard doclet source would prevent redistribution, right?).
    Problem is, the standard doclet in 1.5.0 has been designed so that it's almost impossible to extend by subclassing, because many classes have private constructors.
    I just need to add a link after the html generated by ClassBuilder.buildClassHeader(), but I cannot subclass HTMLDoclet because I would incur in the check AbstractDoclet.isValidDoclet(), and there's no way to change the HTMLDoclet configuration neither.
    In the FAQ (http://java.sun.com/j2se/javadoc/faq/index.html#sourcedoclet) you suggest that the preferred way to extend the standard doclet is by subclassing, but in my opinion you made every step to make it impossible in practice.
    Is there any way to achieve my goal, besides rewriting the whole doclet? (which would be not practical, it's an open source project and I'm working in my spare time).

    I don't share your vision of open sourceI would love to share your vision too. But the economics reality defies it! All we could do about that is just to understand the truth and to adapt to it (like engineers understand the physics and make the aircraft fly -- the thing seemingly to be impossible).
    If you really want to implement your new ideas, you won't be able to do it in your spare time... you will need huge a lot of resources for doing that. But who will pay you? A guy with money would never give you a cent without looking at his own benefits... Be sure!
    I'd simply buy yDocI know those guys quite enough... and that's exactly an example of a very much closed up company. We, on the contrary to them, are just looking forward for any integrations with the outside world !
    But anyway, thank you for your offer :-) Well. If you are able to program the generation of the diagrams like yDoc does, DocFlex/Javadoc will be free for you! We just don't have time to do that ourselves. We could provide you a partner license. There's an DocFlex Open API (not published yet, but it's coming just soon). You can create you integration that generates those diagrams and insert them into the generated docs using your templates (all you would need is just to adapt the existing ones!), and then use/redistribute the whole thing together with the freeware DocFlex/Doclet engine as you like, in the open-source form or not. Everything you would have developed by yourself is yours!
    Regards,
    Leonid Rudy
    http://www.docflex.com

  • 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

  • Standard or International version of JRE?

    Hello!
    Is there any way of identifying whehther I'm using the standard or International version of JRE?
    I know this question has been asked before but no one has answered has far as I can see.
    Regards Calle

    Thanks, I thought about doing something like that to force an exception, I think it might be abit crude.
    Nowbody out there that know of any other way to do this?
    I'm making an applet that use an encoding that doesn't exits in the standard version, I would like to tell the user that they have to install the java plugin with international support.
    / Calle

  • Mac or standard or upgrade version?

    Hi,
    I am looking at buying Adobe photoshop and premiere elements software, but I'm confused by the term standard or upgrade version.
    I have a mac so should I just buy the mac version?
    Thanks for any help.
    Spud47

    Hi, Thanks for the answer. I understand that upgrade usually means changes to already purchased software, and is therfore less expensive.
    However the Adobe Photoshop and Premiere Elements upgrade is more expensive than the other versions so I thought there may be more features/tools or whatever?
    I'll go for the Mac version.
    Thanks again.
    Spud47

  • Standard controllers versus version 4 behavior

    Set up my controller for the evb3 as indicated in the logic manual.. Worked great. Then set up a different scene on my controller to control the evp88, once again according to the manual, did not work. Then in song settings under midi I switched from standard controllers to version 4 behavior...Evp88 started responding perfectly! Unfortunately, evb3 with the previous controllers scene settings no longer lined up..Why is it like this? Do I have to switch this song setting in the middle of a live performance to be able to control these two instruments...Thanks, mike Peters

    Hey Justin, thanks alot for answering. I couldn't control the evp88 according to the manual using the new behavior. Switched to version 4 and they lined up perfectly. Then my evB3 was completely messed up.. I took your advice and went back to current behavior....found the controllers for the evp88 by trial and mainly error...all works now...Thanks again. Hey do you know if you can send patch changes to logic instruments other than just the next or previous intrument key command...mike peters.

  • Documentation of Doclet Spec and Standard Doclet

    I'm trying to modify the standard doclet to incorporate some web-based material appropriate for a project I'm working on. I successfully created a taglet to process the new tag I wanted to introduce and went on to make this taglet a part of a doclet. As I'm trying to work through the next steps, I'm unable to find much documentation around the doclet spec and the standard doclet. For example (and this is just one example - it's not the specific problem I'm trying to solve), the documentation of the setRawCommentText method doesn't indicate anything about how to use the method.
    Does anyone know of anywhere that there's better documentation of the doclet standard and the standard doclet itself?

    I know that there isn't anything more other than the source code, but I did a lot of work on a doclet several years ago and I didn't have any trouble with the documentation. Don't ask me anything about it now!

  • Where can i download CS 6 Design Standard Traditional Chinese version?

    Hi,
    Can anyone advise me where can I download CS 6 Design Standard Traditional Chinese Version?
    Thanks
    David

    David if you choose the download option at the time of purchase the installation files will be available under your account at http://www.adobe.com/.  You can find additional details at Find a download link on Adobe.com.

  • Modifying the standard doclet

    Hi,
    I have a requirement of adding a link in the header section of javadocs, that necessitates a modification to the standard doclet.
    The problem is elementary - how do I get started? I could not locate the com.sun.tools.doclets package in the jsdk 1.4.1_02. Even after decompressing the source files in the jsdk, the directory structure i get does not have "tools". Is this package downloadable separately? If yes, please guide me to the location.
    Then once, when I am through making the changes, where do I place the modified class files?
    Any help will be great for me.
    Thanks and regards
    Manu

    Hi Jamie,
    Thank you for your reply: I found the site and downloaded the file:
    j2sdk-1_4_0-src-scsl.zip
    But I could not find the doclet classes in them... Perhaps I am not looking at the correct place?
    I also downloaded another set of source files, j2sdk-sec-1_4_1-src-scsl.zip, and also expanded the source files zip, src.zip, that is bundled with the JSDK. These also did not have the doclet classes.
    It seems a simple problem and I am surprised how difficult I am finding it to locate the files! :-)
    Regards,
    Manu

  • Adobe Standard XI full version costs 299$ and subscription to same version is only 13$/month = 156$. Do I get the same product? Is it in both cases installed on my computer and ready to use even if I'm not logged on internet?

    Adobe Standard XI full version costs 299$ and subscription to same version is only 13$/month = 156$. Do I get the same product? Is it in both cases installed on my computer and ready to use even if I'm not logged on internet?

    They are the same product.
    The "full" is a traditional perpetual license. Install - register - activate - use.
    Does not "call home" to validated that is a paid for install (the one time activation takes care of that).
    Internet? Connectivity is needed in order to download and install updates.
    (& Yes, you do want those)
    The "subscription" license will require periodic internet connectivity. If I recall correctly all "subscription" applications must call home once a month.
    That is how the application "knows" it is being paid for and is legit.
    While within the call home periodicity connectivity is not required for usage of the application.
    As with a "full" license you'll need connectivity to download/install application updates
    Be well...

  • Adobe Acrobat 9 Standard download/trial version

    Hello,
    I am looking for a download for Adobe Acrobat 9 STANDARD. I have a valid key, but no CD. I've been to http://prodesigntools.com/all-adobe-cs5-direct-download-links.html but that is all PROFESSIONAL versions.
    Is there anywhere on the Internet where I can download a trial version of Adobe Acrobat 9 STANDARD?
    Thank you!

    Hello Romsinha,
    Thank you for your reply. Unfortunately, I have tried that already. The chat support says to go to the forums. Here is a screenshot of the options I have when attempting to contact support: http://i.imgur.com/Tg7uiHP.jpg. In the chat, it asks you to select the product you need help with. Since I need assistance with version 9, I select Acrobat X & Lower versions. Once that is selected, 4a states that Acrobat 10(or is it X? not very consistent) requires a Support Contract. Then in parenthesis, 4a states "Support for Acrobat 8 and lower versions is available only on the user to user forums...".
    I called Adobe phone support and confirmed that my serial number is valid, but stated that support via phone for Acrobat 9 is not available and directed me to the forums. Now I'm on the forums and I'm directed to contact chat support. So I go to chat and it says to go to the forums for help. Where do I have to go just to download a trial of Acrobat 9 standard so I can put in my valid serial number?
    If the imgur link does not work. Here is the text of the chat window:
    4. Please select the product you need help with: *
    Select One
    Adobe Reader X / Adobe Flash Player
    Acrobat X & Lower versions
    Acrobat XI
    [email protected]
    Adobe Digital Editions
    Acrobat X Installation Issues
    4a. Support for Acrobat 10 requires a valid Support Contract. Do you wish to buy a support contract? (Support for Acrobat 8 and lower versions is available only on the user to user forums & online self support) *
    Yes
    No
    Adobe offers paid phone support for a US$39 fee per incident* as well as other customized support options. To purchase support, call 800-833-6687 and follow the prompt for "installing." To avoid waiting on hold, request a callback from the first available agent. You can also schedule a callback for a more convenient time.
      Please close the chat window and call on the above number to buy your Support Contract.
    Please visit http://www.adobe.com/support/ and choose your product for its online Help and Support Center. We also have User to User forums available at http://forums.adobe.com/index.jspa for any additional queries which are periodically monitored by Adobe personnel as well as the user community.
      Please close the chat window and visit the Support Portal / User to User forums.
    4a. Support for Adobe Flash Player / Adobe Reader requires a valid Support Contract. Do you wish to buy a support contract? *
    Yes
    No
    Adobe offers paid phone support for a US$39 fee per incident* as well as other customized support options. To purchase support, call 800-833-6687 and follow the prompt for "installing." To avoid waiting on hold, request a callback from the first available agent. You can also schedule a callback for a more convenient time.
      Please close the chat window and call on the above number to buy your Support Contract.
    Please visit http://www.adobe.com/support/ and choose your product for its online Help and Support Center. We also have User to User forums available at http://forums.adobe.com/index.jspa for any additional queries which are periodically monitored by Adobe personnel as well as the user community.
      Please close the chat window and visit the Support Portal / User to User forums.
    5. Please enter your complete mailing address with zip / postal code and phone number separated by a comma.
    Example: 12345, XYZ Lane, San Jose, CA 95110, 123-456-7890

  • Standard or Pro Versions?

    As instructed I went to the following link to re-download Adobe Acrobat 9 Standard http://helpx.adobe.com/acrobat/kb/acrobat-8-9-product-downloads.html However there is no choice or option here to ba able to choose Standard or Pro so I downloaded the package anyway assuming it would select at install. However the install is for Pro only and of course my Standard serial will not work? Where can I get the Standard version from?

    if you follow all 7 steps, you can download a trial via one of the links on this page using a browser that accepts cookies: http://prodesigntools.com/adobe-acrobat-x-10-pro-reader-suite-direct-download-links-ddl.ht ml
    and activate with your serial number.
    if you have a download problem (eg, you see an error page or you are offered an incorrect version), you probably didn't follow all 7 steps.  typically, failure to meticulously follow steps 1,2 and/or 3 is the problem, but your browser must also allow cookies so that (a restrictive browser setting) is another potential source of problems.

  • Standard and Pro versions compatible with Windows 7

    Hello
    I am looking for a list of Adobe Acrobat Standard and Adobe Acrobat Pro that are compatible with Windows 7. We are upgrading over 1000 computers to Windows 7 and we have many different versions of Adobe Acrobat writer Stndard and Pro.
    Thanks

    There are also issues with 32 vs 64-bit systems. The latter requires updating your version in general. Generally the initial releases have not worked in the 54-bit environment. There are many driver issues with 64-bit systems and probably should look carefully if 64-bits are needed. The 64-bit system is useful if you are computationally focused, but may not be much of an advantage in standard office environments. Just be careful. If you are installing OFFICE 2010, then you need AAX for PDF Maker compatibility -- prior versions of Acrobat only allow printing from the OFFICE 2010 suite. Some folks have been successful with AA8 on 32-bit Win7 (I have only seen 1 post that would suggest success with 64-bit Win7). Prior versions of Acrobat can be made to work on 32-bit Win7 systems, but require work arounds (i.e., the AcroTray tool that automates the conversion to PDF process fails in Win7). The 64-bit system will probably fail for most of the earlier versions in such cases.
    Realize that you may have to deal with Win8 shortly that has it's own issues.

  • Standard or Enterprise Version

    I am putting together a proposal at work to start using
    ColdFusion and I want to confirm that the Standard Edition will
    suffice. I know the company will not want to purchase the
    Enterprise Edition and I don't think that it is needed but want to
    make sure.
    We are going to have one apache server for the Website and
    have one W2K3 server for ColdFusion. The Apache server will send
    ColdFusion requests to the ColdFusion server. (Makes sense. :-) )
    Is there any reason we would need the Enterprise Edition?
    Thank you for any input.
    Bob

    The standard version works for us well here (at a bank). We
    had enterprise back under v4.5 but dropped down to standard when we
    upgraded to MX.
    The one thing I predict we'll eventually miss (maybe) is the
    Gateway technology. And we've got a ways to go yet before anyone
    here starts talking seriously about clustering, as well.

  • ADOBE Standard X PC Version to MAC

    Just a general question?
    A few months ago I purchased a copy of Adobe Standard X for PC, unfortunately a few weeks later the PC crashed.  I have recently purchased a MAC instead, but realized I cannot install the file on the MAC.  My questions is as follows:  Can I purchase the Pro upgrade and install the upgrade onto the MAC or to i have to purchase a full version of Adobe X pro?

    Do this in two distinct steps, making sure that each step is working properly before you move on to the next step.
    Move to Lightroom 4 on the Mac; download the 30-day trial of Lightroom 4.4 for the Mac, install it, and then move everything to the Mac. http://members.lightroomqueen.com/index.php?/Knowledgebase/Article/View/1165/187/how-do-i- move-my-catalog-photos-and-other-lightroom-files-to-a-new-computer
    Once that is working properly, upgrade to Lightroom 5.2

Maybe you are looking for