Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Support annotations directly on delegates #10

Closed
rodionmoiseev opened this issue Nov 23, 2012 · 0 comments
Closed

Support annotations directly on delegates #10

rodionmoiseev opened this issue Nov 23, 2012 · 0 comments
Assignees
Milestone

Comments

@rodionmoiseev
Copy link
Owner

Consider the following use case:

interface Window{
  @En("Dialog title")
  Dialog dialog();
}

interface Dialog{
  @En("OK")
  String ok();
}

Currently, in order to get dialog title, one has to create an explicit Dialog.title() method, where as, it would be nice to be able to use the delegating method itself for holding the title. Thus, one would call System.out.println(window.dialog()) and that would print "Dialog title".

@ghost ghost assigned rodionmoiseev Nov 23, 2012
rodionmoiseev pushed a commit that referenced this issue Dec 26, 2012
* Support for direct annotations on delegates (issue #10)
* Tool for extracting all translations from all c10n enabled interfaces (issue #12)
* API changes to `C10N` (issue #13)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant