| Summary: | EPP packages need styling | ||
|---|---|---|---|
| Product: | [Technology] EPP | Reporter: | John Arthorne <john.arthorne> |
| Component: | java-package | Assignee: | Project Inbox <epp.packager-inbox> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | akurtakov, emoffatt, gheorghe, mknauer, pwebster, remy.suen, steffen.pingel |
| Version: | unspecified | ||
| Target Milestone: | 1.4.0 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
John Arthorne
Bogdan, they can just refer to the platform CSS can't they? (In reply to comment #1) > Bogdan, they can just refer to the platform CSS can't they? Yes, that would be my preferred way: Using the platform CSS as a default for all packages and *if* a package maintainer wants to change that give him/her the freedom to do this. Remy and I also noticed that going to General > Appearance preference page doesn't work, presumably because there are not styles available. Eric, what about an XMI file. Is it ok for the EPP packages to inherit the default XMI file or should they have their own? (In reply to comment #3) > Eric, what about an XMI file. Is it ok for the EPP packages to inherit the > default XMI file or should they have their own? The default one can be used as-is. I ran a diff and they are essentially identical. Markus, all you need is the following two additional properties in the product: <property name="cssTheme" value="org.eclipse.e4.ui.css.theme.e4_default"> </property> <property name="applicationCSSResources" value="platform:/plugin org.eclipse.platform/images/"> </property> I just tested this with Eric and Bogdan and it looks much better. We'll also enter a bug to understand why it isn't coming up with a more reasonable default by itself if the product doesn't specify one (maybe we're attempting to emulatate the classic look by default, but the result isn't pretty). Entered bug 355010 against platform to investigate better default behaviour when products don't specify any theme. (In reply to comment #5) > Markus, all you need is the following two additional properties in the product: > > <property name="cssTheme" value="org.eclipse.e4.ui.css.theme.e4_default"> > </property> > <property name="applicationCSSResources" value="platform:/plugin > org.eclipse.platform/images/"> > </property> Thanks, I added the properties to all packages and we'll see what happens in the next build. What about this property? I found it in the sdk product and it looks like another important one: <property name="applicationXMI" value="org.eclipse.platform/LegacyIDE.e4xmi"> </property> (And where can I find a reference of all those properties? Eclipse Help?) (In reply to comment #7) > <property > name="applicationXMI" > value="org.eclipse.platform/LegacyIDE.e4xmi"> > </property> You don't need that, but Platform team is still trying to figure out why ;) You get a default application model when this property is missing, but we're not sure if it is identical to the "legacy IDE" model shown above. We couldn't see any behaviour problems in the EPP packages due to missing model definition, although perhaps some will surface. We'll let you know if you need more. > (And where can I find a reference of all those properties? Eclipse Help?) There is no formal documentation of these properties as far as I know. I have entered bug 355085 for this. > There is no formal documentation of these properties as far as I know. I have > entered bug 355085 for this. There is actually pretty good coverage of this topic in Lars Vogel's Eclipse 4 tutorial: http://www.vogella.de/articles/EclipseE4/article.html#firste4_extensioin I don't think I was clear in comment 3 what I was doing/diffing things from/to. (In reply to comment #8) > (In reply to comment #7) > > <property > > name="applicationXMI" > > value="org.eclipse.platform/LegacyIDE.e4xmi"> > > </property> > > You don't need that, but Platform team is still trying to figure out why ;) We include one in our org.eclipse.ui.workbench which we fallback to if we don't find the org.eclipse.platform bundle. > You > get a default application model when this property is missing, but we're not > sure if it is identical to the "legacy IDE" model shown above. The diff shows one insignificant difference for a value which will change at runtime. (In reply to comment #8) > You don't need that, but Platform team is still trying to figure out why ;) You > get a default application model when this property is missing, but we're not > sure if it is identical to the "legacy IDE" model shown above. We couldn't see > any behaviour problems in the EPP packages due to missing model definition, > although perhaps some will surface. We'll let you know if you need more. > We added a fallback copy of LegacyIDE.e4xmi to org.eclipse.ui.workbench. If we get no property at all, we use that. It was to solve the bug where a standard RCP app (like the generated Mail app) wouldn't run on 4.1 (because the product didn't specify a model). IIRC we're passing it in as a system property from org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Display, WorkbenchAdvisor) PW (In reply to comment #10) > The diff shows one insignificant difference for a value which will change at > runtime. In theory we would keep them the same, there's no reason for them to be different. PW No one spent time on it for almost a decade. Time to close it. |