diff options
author | Lars Vogel | 2018-03-23 10:16:52 +0000 |
---|---|---|
committer | Lucas Bullen | 2018-03-23 13:28:34 +0000 |
commit | 92372200c3f5d6f98c19f4c5e1a018630e6af11f (patch) | |
tree | 3f6f0231f089795c1c0992f017e38f84aa208623 | |
parent | ed027f9acc0cef163cc657f86dfea45f558d9a0a (diff) | |
download | eclipse.platform.ui-92372200c3f5d6f98c19f4c5e1a018630e6af11f.tar.gz eclipse.platform.ui-92372200c3f5d6f98c19f4c5e1a018630e6af11f.tar.xz eclipse.platform.ui-92372200c3f5d6f98c19f4c5e1a018630e6af11f.zip |
Bug 532811 - Remove unsupported platform from Theme label provider from
Bug 527806
Change-Id: I1afd4f0ca318d6e94af6c9c218edb28caf9daab1
Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
-rw-r--r-- | bundles/org.eclipse.e4.ui.css.swt.theme/src/org/eclipse/e4/ui/css/swt/internal/theme/ThemeEngine.java | 26 |
1 files changed, 7 insertions, 19 deletions
diff --git a/bundles/org.eclipse.e4.ui.css.swt.theme/src/org/eclipse/e4/ui/css/swt/internal/theme/ThemeEngine.java b/bundles/org.eclipse.e4.ui.css.swt.theme/src/org/eclipse/e4/ui/css/swt/internal/theme/ThemeEngine.java index a3dfe6a357a..adba150eeed 100644 --- a/bundles/org.eclipse.e4.ui.css.swt.theme/src/org/eclipse/e4/ui/css/swt/internal/theme/ThemeEngine.java +++ b/bundles/org.eclipse.e4.ui.css.swt.theme/src/org/eclipse/e4/ui/css/swt/internal/theme/ThemeEngine.java @@ -107,7 +107,7 @@ public class ThemeEngine implements IThemeEngine { //Check for old css files File oldModDir= new File( - System.getProperty("user.home") + File.separator + ".e4css" + File.separator); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ + System.getProperty("user.home") + File.separator + ".e4css" + File.separator); //$NON-NLS-1$ //$NON-NLS-2$ if (oldModDir.exists()) { File done = new File(oldModDir, ".processed"); if (!done.exists()) { @@ -145,8 +145,7 @@ public class ThemeEngine implements IThemeEngine { version =""; } String originalCSSFile; - String basestylesheeturi = originalCSSFile = ce - .getAttribute("basestylesheeturi"); + String basestylesheeturi = originalCSSFile = ce.getAttribute("basestylesheeturi"); if (!basestylesheeturi.startsWith("platform:/plugin/")) { basestylesheeturi = "platform:/plugin/" + ce.getContributor().getName() + "/" @@ -165,9 +164,7 @@ public class ThemeEngine implements IThemeEngine { themesToVarients.get(themeBaseId).add(themeId); label = getVarientThemeLabel(label, os, ws); } - registerTheme( - themeId, label, basestylesheeturi, - version); + registerTheme(themeId, label, basestylesheeturi, version); //check for modified files if (modifiedFiles != null) { @@ -260,12 +257,8 @@ public class ThemeEngine implements IThemeEngine { if (os != null && !os.equals(currentOS)) { String osName; switch (os) { - case Platform.OS_AIX: osName="AIX";break; - case Platform.OS_HPUX: osName="HP/UX";break; case Platform.OS_LINUX: osName="Linux";break; case Platform.OS_MACOSX: osName="Mac OS X";break; - case Platform.OS_QNX: osName="QNX";break; - case Platform.OS_SOLARIS: osName="Solaris";break; case Platform.OS_WIN32: osName="Windows";break; default: osName=os;break; } @@ -277,8 +270,6 @@ public class ThemeEngine implements IThemeEngine { case Platform.WS_CARBON: wsName="Carbon";break; case Platform.WS_COCOA: wsName="Cocoa";break; case Platform.WS_GTK: wsName="GTK";break; - case Platform.WS_MOTIF: wsName="Motif";break; - case Platform.WS_PHOTON: wsName="Photon";break; case Platform.WS_WPF: wsName="WPF";break; default: wsName=ws;break; } @@ -291,8 +282,8 @@ public class ThemeEngine implements IThemeEngine { } @Override - public synchronized ITheme registerTheme(String id, String label, - String basestylesheetURI) throws IllegalArgumentException { + public synchronized ITheme registerTheme(String id, String label, String basestylesheetURI) + throws IllegalArgumentException { return registerTheme(id, label, basestylesheetURI, ""); } @@ -528,8 +519,7 @@ public class ThemeEngine implements IThemeEngine { return null; } BundleContext context = bundle.getBundleContext(); - ServiceReference<EventAdmin> eventAdminRef = context - .getServiceReference(EventAdmin.class); + ServiceReference<EventAdmin> eventAdminRef = context.getServiceReference(EventAdmin.class); return context.getService(eventAdminRef); } @@ -553,9 +543,7 @@ public class ThemeEngine implements IThemeEngine { } private IEclipsePreferences getPreferences() { - return InstanceScope.INSTANCE.getNode( - FrameworkUtil.getBundle( - ThemeEngine.class).getSymbolicName()); + return InstanceScope.INSTANCE.getNode(FrameworkUtil.getBundle(ThemeEngine.class).getSymbolicName()); } void copyFile(String from, String to) throws IOException { |