Examples of ColorThemeSetting


Examples of com.github.eclipsecolortheme.ColorThemeSetting

        // put preferences according to mappings
        IPreferenceStore store = Activator.getDefault().getPreferenceStore();
        if (store.getBoolean("forceDefaultBG")) {
            defaultBackground = theme.get("background");
        } else {
            defaultBackground = new ColorThemeSetting();
        }
        for (String pluginKey : mappings.keySet()) {
            ColorThemeMapping mapping = (overrideMappings != null && overrideMappings.containsKey(pluginKey)) ?
                    overrideMappings.get(pluginKey) : mappings.get(pluginKey);
            ColorThemeSetting setting = theme.get(mapping.getThemeKey());
            if (setting != null) {
                mapping.putPreferences(preferences, setting);
            }
        }
    }
View Full Code Here

Examples of com.github.eclipsecolortheme.ColorThemeSetting

    }

    @Test
    public void putPreferences() {
        MockEclipsePreferences preferences = new MockEclipsePreferences();
        ColorThemeSetting setting = new ColorThemeSetting("#336699");
        mapping.putPreferences(preferences, setting);
        assertThat(preferences.get("org.eclipse.php.ui.color", null), is("51,102,153"));
    }
View Full Code Here

Examples of com.github.eclipsecolortheme.ColorThemeSetting

    }

    @Test
    public void removePreferences() {
        MockEclipsePreferences preferences = new MockEclipsePreferences();
        mapping.putPreferences(preferences, new ColorThemeSetting("#336699"));
        mapping.removePreferences(preferences);
        assertThat(preferences.get("org.eclipse.php.ui.color", null), nullValue());
    }
View Full Code Here

Examples of com.github.eclipsecolortheme.ColorThemeSetting

public class ColorThemeSettingTest {
    private ColorThemeSetting setting;

    @Before
    public void setUp() {
        setting = new ColorThemeSetting("#00FFAA");
    }
View Full Code Here

Examples of com.github.eclipsecolortheme.ColorThemeSetting

    @Before
    public void setUp() {
        mapping = new ColorThemeSemanticHighlightingMapping("something", "foreground");
        mockPreferences = new MockEclipsePreferences();
        setting = new ColorThemeSetting("#336699");
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.