| Summary: | [Xtend] Support for visibility | ||
|---|---|---|---|
| Product: | [Modeling] TMF | Reporter: | Sven Efftinge <sven.efftinge> |
| Component: | Xtext | Assignee: | Jan Koehnlein <jan> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | jan, mail, stefan.ocke, tmf.xtext-inbox |
| Version: | 2.0.0 | Flags: | sven.efftinge:
indigo+
|
| Target Milestone: | SR2 | ||
| Hardware: | PC | ||
| OS: | Mac OS X - Carbon (unsup.) | ||
| Whiteboard: | |||
|
Description
Sven Efftinge
Preliminary scheduled for 2.0RC1 postponed to SR1 *** Bug 354392 has been marked as a duplicate of this bug. *** We should also have visibility for fields. First shot pushed. - As opposed to Java, there is no package private (default) visibility. - Top level classes in Java can only be public or package private, so they don't have a visibility in Xtend (generated JavaClass is public) - XtendFields are private by default. Syntax is public extension String field - Non-dispatch XtendFunctions are public by default. - Dispatch functions are by default protected. The synthetic dispatcher is usually public by default, except for the case when all dispatch cases have the same non-public visibility. The dispatcher has the same visibility then. - For functions, the visibility is specified between def/override and the optional dispatch, e.g. override private dispatch foo() Still missing: - Icons for labels - Docs - Some validation Added icons and validation rules, as well as tests. Updated docs. Closing all bugs that were set to RESOLVED before Neon.0 Closing all bugs that were set to RESOLVED before Neon.0 |