Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

java: URI for links to java classes potentially without source #31

Closed
hallvard opened this issue Apr 18, 2017 · 7 comments
Closed

java: URI for links to java classes potentially without source #31

hallvard opened this issue Apr 18, 2017 · 7 comments

Comments

@hallvard
Copy link
Owner

The platform scheme can be used to link to classes within eclipse, but only if you know the path. A java scheme could be used to link to any java class, and using org.eclipse.jdt.internal.debug.ui.actions.OpenTypeAction to find the path.

@hallvard
Copy link
Owner Author

Supported syntax: java:/[#]. Couldn't use java: without /, since the PlantUML library didn't recognize it as a proper link.

@hallvard
Copy link
Owner Author

Defined extension point to avoid dependency to jdt in generic link handling code.

@arnaudroques
Copy link
Collaborator

Do you wish that the PlantUML library supports syntax [[java:linkWithoutStartingSlash]] ?

@hallvard
Copy link
Owner Author

Yes, it would be nice if the library supported the more generic URI syntax, which allows java:linkWithoutStartingSlash!

@arnaudroques
Copy link
Collaborator

I'm getting confused because the following example is working for us:

@startuml
class Car {
  Some field [[[java:link1]]]
  Some method() [[[java:link2]]]
}
class Car [[java:link3]]
@enduml

Could you give a non-working example ? Thanks!

@hallvard
Copy link
Owner Author

class Links [[java:java.lang.String]] didn't work, but class Links [[java:/java.lang.String]] did.

@hallvard
Copy link
Owner Author

hallvard commented Apr 18, 2017

My mistake, some other code choked when the URI didn't have a path and stopped the java link without slash from working. So now the / is optional.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants