NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Maven project : see source and javadoc libs

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users
View previous topic :: View next topic  
Author Message
Herv
Posted via mailing list.





PostPosted: Tue May 04, 2010 7:09 am    Post subject: Maven project : see source and javadoc libs Reply with quote

Hi,

I have a maven project in my netbeans 6.8.

On a library (swingx-1.6), on its little logo in project tree, I can see the
very little picture thing which state a javadoc and source presents.

If I clic right on this very little thing, I can see a menu with "View
Javadoc", and if I clic left on that I see the javadoc in my navigator OK.

Nothing to see the sources from this clic right menu.

But in the editor window, if I want to see a source (AutoCompleteDecorator for
instance), if I press CTRL and clic left to see the source as usual, nothing
append.

But in this editor window, if I do ALT F1 to see the javadoc, netbeans says :
"Cannot perform show javadoc here".

How is it possible to see source and javadoc for maven libs ?

Thanks.
Back to top
Milos Kleint
Posted via mailing list.





PostPosted: Tue May 04, 2010 7:13 am    Post subject: Maven project : see source and javadoc libs Reply with quote

please verify in the local maven repository that the source and javadoc jars are present and have the usual format. maybe the uploaded files are corrupt or have different layout.

Milos

2010/5/4 Hervé Agnoux <address-removed ([email]address-removed[/email])>
Quote:
Hi,

I have a maven project in my netbeans 6.8.

On a library (swingx-1.6), on its little logo in project tree, I can see the
very little picture thing which state a javadoc and source presents.

If I clic right on this very little thing, I can see a menu with "View
Javadoc", and if I clic left on that I see the javadoc in my navigator OK.

Nothing to see the sources from this clic right menu.

But in the editor window, if I want to see a source (AutoCompleteDecorator for
instance), if I press CTRL and clic left to see the source as usual, nothing
append.

But in this editor window, if I do ALT F1 to see the javadoc, netbeans says :
"Cannot perform show javadoc here".

How is it possible to see source and javadoc for maven libs ?

Thanks.
Back to top
Hervve
Posted via mailing list.





PostPosted: Tue May 04, 2010 7:22 am    Post subject: Maven project : see source and javadoc libs Reply with quote

Hi,

I have a maven project in my netbeans 6.8.

On a library (swingx-1.6), on its little logo in project tree, I can see the
very little picture thing which state a javadoc and source presents.

If I clic right on this very little thing, I can see a menu with "View
Javadoc", and if I clic left on that I see the javadoc in my navigator OK.

Nothing to see the sources from this clic right menu.

But in the editor window, if I want to see a source (AutoCompleteDecorator for
instance), if I press CTRL and clic left to see the source as usual, nothing
append.

But in this editor window, if I do ALT F1 to see the javadoc, netbeans says :
"Cannot perform show javadoc here".

How is it possible to see source and javadoc for maven libs ?

Thanks.
Back to top
Hervve
Posted via mailing list.





PostPosted: Tue May 04, 2010 7:29 am    Post subject: Maven project : see source and javadoc libs Reply with quote

Le mardi 4 mai 2010, Milos Kleint a
Back to top
Milos Kleint
Posted via mailing list.





PostPosted: Tue May 04, 2010 7:45 am    Post subject: Maven project : see source and javadoc libs Reply with quote

the content of these files looks good for me locally. file an issue please (with steps to reproduce).

Milos

On Tue, May 4, 2010 at 9:28 AM, Hervve <address-removed ([email]address-removed[/email])> wrote:
Quote:
Le mardi 4 mai 2010, Milos Kleint a écrit :
Quote:
please verify in the local maven repository that the source and javadoc
 jars are present and have the usual format. maybe the uploaded files are
 corrupt or have different layout.



Yes there are :

~/ ls .m2/repository/org/swinglabs/swingx/1.6/
swingx-1.6.jar       swingx-1.6-javadoc.jar       swingx-1.6.pom
swingx-1.6-sources.jar
swingx-1.6.jar.sha1  swingx-1.6-javadoc.jar.sha1  swingx-1.6.pom.sha1
swingx-1.6-sources.jar.sha1

(sorry for the double post)
Back to top
Dafe Simonek
Posted via mailing list.





PostPosted: Tue May 04, 2010 8:03 am    Post subject: Maven project : see source and javadoc libs Reply with quote

I just checked with nb 6.9 beta and SwingX-1.6 and all works for me.
Herve, do you see small "package" icon under javadoc icon? Also tooltip
should say something about sources being accessible.

Dafe

Milos Kleint wrote:
Quote:
the content of these files looks good for me locally. file an issue
please (with steps to reproduce).

Milos

On Tue, May 4, 2010 at 9:28 AM, Hervve <address-removed
<mailto:address-removed>> wrote:

Le mardi 4 mai 2010, Milos Kleint a écrit :
Quote:
please verify in the local maven repository that the source and
javadoc
Quote:
jars are present and have the usual format. maybe the uploaded
files are
Quote:
corrupt or have different layout.


Yes there are :

~/ ls .m2/repository/org/swinglabs/swingx/1.6/
swingx-1.6.jar swingx-1.6-javadoc.jar swingx-1.6.pom
swingx-1.6-sources.jar
swingx-1.6.jar.sha1 swingx-1.6-javadoc.jar.sha1 swingx-1.6.pom.sha1
swingx-1.6-sources.jar.sha1

(sorry for the double post)

Back to top
Hervve
Posted via mailing list.





PostPosted: Tue May 04, 2010 10:00 am    Post subject: Maven project : see source and javadoc libs Reply with quote

Le mardi 4 mai 2010, Dafe Simonek a écrit :
Quote:
I just checked with nb 6.9 beta and SwingX-1.6 and all works for me.
Herve, do you see small "package" icon under javadoc icon? Also tooltip
should say something about sources being accessible.


I try nb 6.9 beta.

I see little icon, I see message tooltip which declare source and javadoc
available.

When I do ALT-F1, I see javadoc.

But there a strange thing with sources : it doesn't show me the good source ??

When I look at a method with CTRL CLIC, I see this source :

public static void decorate(JTextComponent textComponent,
AutoCompleteDocument document, AbstractAutoCompleteAdaptor adaptor) {
//compiled code
throw new RuntimeException("Compiled Code");
}

When I try with debugger or with a run, there's no runtime exception. And I'm
sure there is no overriding, because it's a static method.

When I look at exactly the same source in maven repo, I see planty of good
java code in this method?? What this strange RuntimeException("Compiled Code")
??

The "good" source is :

public static void decorate(JTextComponent textComponent,
AutoCompleteDocument document, final AbstractAutoCompleteAdaptor adaptor) {
// install the document on the text component
textComponent.setDocument(document);

//remove old focus listener
removeFocusListener(textComponent);
... etc.

Thanks.
Back to top
Dafe Simonek
Posted via mailing list.





PostPosted: Tue May 04, 2010 10:22 am    Post subject: Maven project : see source and javadoc libs Reply with quote

Hmm, that's the same with 6.9 beta, I'm getting "//compiled code" as
well after Ctrl+Click and I'm starring at it in disbelief Smile Please
file the issue, thanks.

Dafe

Hervve wrote:
Quote:
Le mardi 4 mai 2010, Dafe Simonek a écrit :

Quote:
I just checked with nb 6.9 beta and SwingX-1.6 and all works for me.
Herve, do you see small "package" icon under javadoc icon? Also tooltip
should say something about sources being accessible.



I try nb 6.9 beta.

I see little icon, I see message tooltip which declare source and javadoc
available.

When I do ALT-F1, I see javadoc.

But there a strange thing with sources : it doesn't show me the good source ??

When I look at a method with CTRL CLIC, I see this source :

public static void decorate(JTextComponent textComponent,
AutoCompleteDocument document, AbstractAutoCompleteAdaptor adaptor) {
//compiled code
throw new RuntimeException("Compiled Code");
}

When I try with debugger or with a run, there's no runtime exception. And I'm
sure there is no overriding, because it's a static method.

When I look at exactly the same source in maven repo, I see planty of good
java code in this method?? What this strange RuntimeException("Compiled Code")
??

The "good" source is :

public static void decorate(JTextComponent textComponent,
AutoCompleteDocument document, final AbstractAutoCompleteAdaptor adaptor) {
// install the document on the text component
textComponent.setDocument(document);

//remove old focus listener
removeFocusListener(textComponent);
... etc.

Thanks.

Back to top
Hervve
Posted via mailing list.





PostPosted: Tue May 04, 2010 11:58 am    Post subject: Maven project : see source and javadoc libs Reply with quote

Le mardi 4 mai 2010, Dafe Simonek a écrit :
Quote:
Hmm, that's the same with 6.9 beta, I'm getting "//compiled code" as
well after Ctrl+Click and I'm starring at it in disbelief Smile Please
file the issue, thanks.


Here it is : http://netbeans.org/bugzilla/show_bug.cgi?id=185427

Best regards.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo