| Summary: | [ui] Introduce Property/Preference Pages | ||
|---|---|---|---|
| Product: | [Modeling] OCL | Reporter: | Ed Willink <ed> |
| Component: | Core | Assignee: | OCL Inbox <mdt-ocl-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | 3.2.0 | ||
| Target Milestone: | M6 | ||
| Hardware: | PC | ||
| OS: | Windows Vista | ||
| Whiteboard: | |||
|
Description
Ed Willink
branch bug/360354 has an implementation with Workspace and project-specific pages for all options except: - class-valued options - needs an Object browser FieldEditor Use of Workspace options as the defaults when an OSGI PreferenceService is available. Still to do: a FieldEditor for class-valued options foldable sections like the JDT compiler options use of project-specific options as the defaults ?? How can the IProject be discovered from an EvaluationEnvironment, BasicEnvironment ?? A new setProject API is possible but wouldn't be in use by OCL-based tools. For an EvaluationEnvironment, the IProject containing the context object might be a plausible guess. For a BasicEnvironment the contextProperty/Class/... may be plausible. So I suggest a new setProject API for applications that are prepared to specify it, and a fallback to the project of the context otherwise. The workspace defaults are determined by the built-in defaults so the only compatibility hazard I see is when a spurious project that specifies project-specific preferences manages to confuse another OCL activity, but that spurious project must be new functionality, so it's not a legacy usage. An updated contribution is available in the bug/363639 branch. On master for M6. CLOSED after a year in the RESOLVED state. |