documentation

Java Swing: A list of all UIDefaults properties

戏子无情 提交于 2019-12-01 06:51:04
Question: Where can I get a list of all UIDefaults properties that exist in Swing? I know of the possibility to write a small snippet of code that just extracts and displays them but I would like to know whether the list I get that way is really complete. When I do so, I get 636 properties for the Metal L&F, 613 for Windows L&F and 550 for the Motif one. Another source on the net puts a list of 795 entries although it has some incorrect additional entries. But perhaps even the metal l&f does not set all it actually could. I have difficulties to believe there really doesn't exist an official

Can I suppress variable expansion in Sphinx documentation?

两盒软妹~` 提交于 2019-12-01 06:44:20
In my code I have X_DEFAULT = ['a', 'long', 'list', 'of', 'values', 'that', 'is', 'really', 'ugly', 'to', 'see', 'over', 'and', 'over', 'again', 'every', 'time', 'it', 'is', 'referred', 'to', 'in', 'the', 'documentation'] and later def some_function(..., x=X_DEFAULT, ...): so that in my Sphinx documentation, using (e.g., using .. autofunction:: , etc.) I get the entire long and unwieldy value of X_DEFAULT expanded in the signature for some_function : some_function ( ..., x=['a', 'long', 'list', 'of', 'values', 'that', 'is', 'really', 'ugly', 'to', 'see', 'over', 'and', 'over', 'again', 'every'

Unable to exclude directories from PHPDocumentor

佐手、 提交于 2019-12-01 05:56:06
I'm trying to run PHPDocumentor on my WAMPServer setup. It runs fine, but I'd like to exclude certain directories, such as \sqlbuddy\ which don't contain my own code. Ironically, PHPDocumentor appears to be ignoring my --ignore switch. I've tried several ways of expressing the same thing, but with the same result. Below is the command I'm running it with: php.exe "C:\Users\username\Documents\PhpDocumentor\phpdoc" -t "C:\Program Files\wamp\www\docs" -o HTML:default:default -d "C:\Program Files\wamp\www" --ignore sqlbuddy\ --ignore docs\ Many thanks. Which version of phpDocumentor are you using?

How to be able to extract comments from inside a function in doxygen?

旧巷老猫 提交于 2019-12-01 05:42:52
I'm interested to know if it is possible to have some comments in a function (c, c++, java) in a way that doxygen could put them in the generated html file. for example: function(...) { do_1(); /** * Call do_2 function for doing specific stuff. */ do_2(); } Aaron Saarela No, doxygen does not support comments blocks inside function bodies. From the manual: Doxygen allows you to put your documentation blocks practically anywhere (the exception is inside the body of a function or inside a normal C style comment block). Section: Doxygen documenting the code mouviciel I don't know for C but I do it

Make svcutil pick up documentation from C# files?

天涯浪子 提交于 2019-12-01 05:40:12
问题 Folks, I'm creating a new WCF Service and started with my Service interface. Looks something like: public interface ISomethingService { /// <summary> /// some description /// </summary> /// <version>2.13.0</version> /// <copyright>2009 by myself</copyright> /// <author>Marc Scheuner</author> /// <param name="request">The request object</param> [OperationContract] SomethingResponse GetList(SomethingRequest request); } Now, I also created some data contracts in another file describing the

How to decorate Objective C methods with documentation?

只愿长相守 提交于 2019-12-01 05:23:22
When I'm typing up a Cocoa object and calling a selector on that object, I sometimes can see 'documentation' or 'help' information about that method. For instance, as I type [NSArray alloc] , I see two help hints. One for NSArray , and one for alloc . Both of these appear in the popup autocomplete suggestions listbox as I type the code. How do I produce similar method/class decorated help hints which will appear when I type? I want to see my comments as I type my custom class name and custom methods. How can I do this? For instance, C# provides this feature through XML documentation which can

Why is CPython not using `sphinx.autodoc` for the standard library? [closed]

怎甘沉沦 提交于 2019-12-01 05:17:20
I am developing a python library and I am using sphinx.autodoc to generate the documentation as I think that this is a good way to don`t repeat yourself and to have documentation and code in agreement. In a comment to Emit reStructuredText from sphinx autodoc? I learned that "The CPython docs build process doesn't have autodoc enabled (by deliberate choice)". I am wondering why CPython is not using it and what are the disadvantages of using sphinx.autodoc ? It's mostly a matter of history, but also a question of personal (and project) preference. These days, you can get quite usable docs by

Can I suppress variable expansion in Sphinx documentation?

老子叫甜甜 提交于 2019-12-01 05:13:10
问题 In my code I have X_DEFAULT = ['a', 'long', 'list', 'of', 'values', 'that', 'is', 'really', 'ugly', 'to', 'see', 'over', 'and', 'over', 'again', 'every', 'time', 'it', 'is', 'referred', 'to', 'in', 'the', 'documentation'] and later def some_function(..., x=X_DEFAULT, ...): so that in my Sphinx documentation, using (e.g., using .. autofunction:: , etc.) I get the entire long and unwieldy value of X_DEFAULT expanded in the signature for some_function : some_function ( ..., x=['a', 'long', 'list

How to build javadoc from sources within a .jar file?

╄→尐↘猪︶ㄣ 提交于 2019-12-01 04:25:24
I have to build Javadoc from myCode.jar that contains both sources and class files. Can I do it without extracting the jar? According to http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/javadoc.html#classpath I should be able to do so this way: C:\>javadoc -d docs -classpath myCode.jar net\kem\jmx\CacheManagerMBean.java However, I get the following error: javadoc: error - File not found: "net\kem\jmx\CacheManagerMBean.java" [search path for source files: [myCode.jar]] [search path for class files: [C:\Program Files\Java\jdk1.5.0_17\jre\lib\rt.jar, C:\Program Files\Java\jdk1.5.0_17\jre\lib

How can I make Python/Sphinx document object attributes only declared in __init__?

元气小坏坏 提交于 2019-12-01 03:48:34
I have Python classes with object attributes which are only declared as part of running the constructor, like so: class Foo(object): def __init__(self, base): self.basepath = base temp = [] for run in os.listdir(self.basepath): if self.foo(run): temp.append(run) self.availableruns = tuple(sorted(temp)) If I now use either help(Foo) or attempt to document Foo in Sphinx, the self.basepath and self.availableruns attributes are not shown. That's a problem for users of our API. I've tried searching for a standard way to ensure that these "dynamically declared" attributes can be found (and