當前位置: 首頁>>代碼示例>>Java>>正文


Java PreferenceConverter.getColor方法代碼示例

本文整理匯總了Java中org.eclipse.jface.preference.PreferenceConverter.getColor方法的典型用法代碼示例。如果您正苦於以下問題:Java PreferenceConverter.getColor方法的具體用法?Java PreferenceConverter.getColor怎麽用?Java PreferenceConverter.getColor使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在org.eclipse.jface.preference.PreferenceConverter的用法示例。


在下文中一共展示了PreferenceConverter.getColor方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: getStaticTokenStyle

import org.eclipse.jface.preference.PreferenceConverter; //導入方法依賴的package包/類
public de.darwinspl.preferences.resource.dwprofile.IDwprofileTokenStyle getStaticTokenStyle() {
	String tokenName = currentToken.getName();
	String enableKey = de.darwinspl.preferences.resource.dwprofile.ui.DwprofileSyntaxColoringHelper.getPreferenceKey(languageId, tokenName, de.darwinspl.preferences.resource.dwprofile.ui.DwprofileSyntaxColoringHelper.StyleProperty.ENABLE);
	if (store == null) {
		return null;
	}
	
	boolean enabled = store.getBoolean(enableKey);
	if (!enabled) {
		return null;
	}
	
	String colorKey = de.darwinspl.preferences.resource.dwprofile.ui.DwprofileSyntaxColoringHelper.getPreferenceKey(languageId, tokenName, de.darwinspl.preferences.resource.dwprofile.ui.DwprofileSyntaxColoringHelper.StyleProperty.COLOR);
	RGB foregroundRGB = PreferenceConverter.getColor(store, colorKey);
	RGB backgroundRGB = null;
	boolean bold = store.getBoolean(de.darwinspl.preferences.resource.dwprofile.ui.DwprofileSyntaxColoringHelper.getPreferenceKey(languageId, tokenName, de.darwinspl.preferences.resource.dwprofile.ui.DwprofileSyntaxColoringHelper.StyleProperty.BOLD));
	boolean italic = store.getBoolean(de.darwinspl.preferences.resource.dwprofile.ui.DwprofileSyntaxColoringHelper.getPreferenceKey(languageId, tokenName, de.darwinspl.preferences.resource.dwprofile.ui.DwprofileSyntaxColoringHelper.StyleProperty.ITALIC));
	boolean strikethrough = store.getBoolean(de.darwinspl.preferences.resource.dwprofile.ui.DwprofileSyntaxColoringHelper.getPreferenceKey(languageId, tokenName, de.darwinspl.preferences.resource.dwprofile.ui.DwprofileSyntaxColoringHelper.StyleProperty.STRIKETHROUGH));
	boolean underline = store.getBoolean(de.darwinspl.preferences.resource.dwprofile.ui.DwprofileSyntaxColoringHelper.getPreferenceKey(languageId, tokenName, de.darwinspl.preferences.resource.dwprofile.ui.DwprofileSyntaxColoringHelper.StyleProperty.UNDERLINE));
	return new de.darwinspl.preferences.resource.dwprofile.mopp.DwprofileTokenStyle(convertToIntArray(foregroundRGB), convertToIntArray(backgroundRGB), bold, italic, strikethrough, underline);
}
 
開發者ID:DarwinSPL,項目名稱:DarwinSPL,代碼行數:22,代碼來源:DwprofileTokenScanner.java

示例2: handleMatchingBracketsSelection

import org.eclipse.jface.preference.PreferenceConverter; //導入方法依賴的package包/類
/**
 * Initialize and handle the values of this preference page.
 */
private void handleMatchingBracketsSelection() {
	// not for the case of none existing language
	enableCheckbox.setSelection(getPreferenceStore().getBoolean(de.darwinspl.preferences.resource.dwprofile.ui.DwprofilePreferenceConstants.EDITOR_MATCHING_BRACKETS_CHECKBOX));
	enableClosingInside.setSelection(false);
	matchingBracketsColorButton.setEnabled(getPreferenceStore().getBoolean(		de.darwinspl.preferences.resource.dwprofile.ui.DwprofilePreferenceConstants.EDITOR_MATCHING_BRACKETS_CHECKBOX));
	RGB rgb = PreferenceConverter.getColor(getPreferenceStore(), BRACKETS_COLOR);
	matchingBracketsColorEditor.setColorValue(rgb);
	removeBracketButton.setEnabled(false);
	
	initializeLanguage();
	bracketsTmp.deserialize(getPreferenceStore().getString(language + de.darwinspl.preferences.resource.dwprofile.ui.DwprofilePreferenceConstants.EDITOR_BRACKETS_SUFFIX));
	String[] brackets = bracketsTmp.getBracketArray();
	if (brackets != null) {
		bracketsList.setItems(brackets);
	}
}
 
開發者ID:DarwinSPL,項目名稱:DarwinSPL,代碼行數:20,代碼來源:DwprofileBracketPreferencePage.java

示例3: handleMatchingBracketsSelection

import org.eclipse.jface.preference.PreferenceConverter; //導入方法依賴的package包/類
/**
 * Initialize and handle the values of this preference page.
 */
private void handleMatchingBracketsSelection() {
	// not for the case of none existing language
	enableCheckbox.setSelection(getPreferenceStore().getBoolean(eu.hyvar.feature.expression.resource.hyexpression.ui.HyexpressionPreferenceConstants.EDITOR_MATCHING_BRACKETS_CHECKBOX));
	enableClosingInside.setSelection(false);
	matchingBracketsColorButton.setEnabled(getPreferenceStore().getBoolean(		eu.hyvar.feature.expression.resource.hyexpression.ui.HyexpressionPreferenceConstants.EDITOR_MATCHING_BRACKETS_CHECKBOX));
	RGB rgb = PreferenceConverter.getColor(getPreferenceStore(), BRACKETS_COLOR);
	matchingBracketsColorEditor.setColorValue(rgb);
	removeBracketButton.setEnabled(false);
	
	initializeLanguage();
	bracketsTmp.deserialize(getPreferenceStore().getString(language + eu.hyvar.feature.expression.resource.hyexpression.ui.HyexpressionPreferenceConstants.EDITOR_BRACKETS_SUFFIX));
	String[] brackets = bracketsTmp.getBracketArray();
	if (brackets != null) {
		bracketsList.setItems(brackets);
	}
}
 
開發者ID:DarwinSPL,項目名稱:DarwinSPL,代碼行數:20,代碼來源:HyexpressionBracketPreferencePage.java

示例4: getStaticTokenStyle

import org.eclipse.jface.preference.PreferenceConverter; //導入方法依賴的package包/類
public eu.hyvar.context.contextValidity.resource.hyvalidityformula.IHyvalidityformulaTokenStyle getStaticTokenStyle() {
	String tokenName = currentToken.getName();
	String enableKey = eu.hyvar.context.contextValidity.resource.hyvalidityformula.ui.HyvalidityformulaSyntaxColoringHelper.getPreferenceKey(languageId, tokenName, eu.hyvar.context.contextValidity.resource.hyvalidityformula.ui.HyvalidityformulaSyntaxColoringHelper.StyleProperty.ENABLE);
	if (store == null) {
		return null;
	}
	
	boolean enabled = store.getBoolean(enableKey);
	if (!enabled) {
		return null;
	}
	
	String colorKey = eu.hyvar.context.contextValidity.resource.hyvalidityformula.ui.HyvalidityformulaSyntaxColoringHelper.getPreferenceKey(languageId, tokenName, eu.hyvar.context.contextValidity.resource.hyvalidityformula.ui.HyvalidityformulaSyntaxColoringHelper.StyleProperty.COLOR);
	RGB foregroundRGB = PreferenceConverter.getColor(store, colorKey);
	RGB backgroundRGB = null;
	boolean bold = store.getBoolean(eu.hyvar.context.contextValidity.resource.hyvalidityformula.ui.HyvalidityformulaSyntaxColoringHelper.getPreferenceKey(languageId, tokenName, eu.hyvar.context.contextValidity.resource.hyvalidityformula.ui.HyvalidityformulaSyntaxColoringHelper.StyleProperty.BOLD));
	boolean italic = store.getBoolean(eu.hyvar.context.contextValidity.resource.hyvalidityformula.ui.HyvalidityformulaSyntaxColoringHelper.getPreferenceKey(languageId, tokenName, eu.hyvar.context.contextValidity.resource.hyvalidityformula.ui.HyvalidityformulaSyntaxColoringHelper.StyleProperty.ITALIC));
	boolean strikethrough = store.getBoolean(eu.hyvar.context.contextValidity.resource.hyvalidityformula.ui.HyvalidityformulaSyntaxColoringHelper.getPreferenceKey(languageId, tokenName, eu.hyvar.context.contextValidity.resource.hyvalidityformula.ui.HyvalidityformulaSyntaxColoringHelper.StyleProperty.STRIKETHROUGH));
	boolean underline = store.getBoolean(eu.hyvar.context.contextValidity.resource.hyvalidityformula.ui.HyvalidityformulaSyntaxColoringHelper.getPreferenceKey(languageId, tokenName, eu.hyvar.context.contextValidity.resource.hyvalidityformula.ui.HyvalidityformulaSyntaxColoringHelper.StyleProperty.UNDERLINE));
	return new eu.hyvar.context.contextValidity.resource.hyvalidityformula.mopp.HyvalidityformulaTokenStyle(convertToIntArray(foregroundRGB), convertToIntArray(backgroundRGB), bold, italic, strikethrough, underline);
}
 
開發者ID:DarwinSPL,項目名稱:DarwinSPL,代碼行數:22,代碼來源:HyvalidityformulaTokenScanner.java

示例5: handleMatchingBracketsSelection

import org.eclipse.jface.preference.PreferenceConverter; //導入方法依賴的package包/類
/**
 * Initialize and handle the values of this preference page.
 */
private void handleMatchingBracketsSelection() {
	// not for the case of none existing language
	enableCheckbox.setSelection(getPreferenceStore().getBoolean(eu.hyvar.context.contextValidity.resource.hyvalidityformula.ui.HyvalidityformulaPreferenceConstants.EDITOR_MATCHING_BRACKETS_CHECKBOX));
	enableClosingInside.setSelection(false);
	matchingBracketsColorButton.setEnabled(getPreferenceStore().getBoolean(		eu.hyvar.context.contextValidity.resource.hyvalidityformula.ui.HyvalidityformulaPreferenceConstants.EDITOR_MATCHING_BRACKETS_CHECKBOX));
	RGB rgb = PreferenceConverter.getColor(getPreferenceStore(), BRACKETS_COLOR);
	matchingBracketsColorEditor.setColorValue(rgb);
	removeBracketButton.setEnabled(false);
	
	initializeLanguage();
	bracketsTmp.deserialize(getPreferenceStore().getString(language + eu.hyvar.context.contextValidity.resource.hyvalidityformula.ui.HyvalidityformulaPreferenceConstants.EDITOR_BRACKETS_SUFFIX));
	String[] brackets = bracketsTmp.getBracketArray();
	if (brackets != null) {
		bracketsList.setItems(brackets);
	}
}
 
開發者ID:DarwinSPL,項目名稱:DarwinSPL,代碼行數:20,代碼來源:HyvalidityformulaBracketPreferencePage.java

示例6: getStaticTokenStyle

import org.eclipse.jface.preference.PreferenceConverter; //導入方法依賴的package包/類
public eu.hyvar.dataValues.resource.hydatavalue.IHydatavalueTokenStyle getStaticTokenStyle() {
	String tokenName = currentToken.getName();
	String enableKey = eu.hyvar.dataValues.resource.hydatavalue.ui.HydatavalueSyntaxColoringHelper.getPreferenceKey(languageId, tokenName, eu.hyvar.dataValues.resource.hydatavalue.ui.HydatavalueSyntaxColoringHelper.StyleProperty.ENABLE);
	if (store == null) {
		return null;
	}
	
	boolean enabled = store.getBoolean(enableKey);
	if (!enabled) {
		return null;
	}
	
	String colorKey = eu.hyvar.dataValues.resource.hydatavalue.ui.HydatavalueSyntaxColoringHelper.getPreferenceKey(languageId, tokenName, eu.hyvar.dataValues.resource.hydatavalue.ui.HydatavalueSyntaxColoringHelper.StyleProperty.COLOR);
	RGB foregroundRGB = PreferenceConverter.getColor(store, colorKey);
	RGB backgroundRGB = null;
	boolean bold = store.getBoolean(eu.hyvar.dataValues.resource.hydatavalue.ui.HydatavalueSyntaxColoringHelper.getPreferenceKey(languageId, tokenName, eu.hyvar.dataValues.resource.hydatavalue.ui.HydatavalueSyntaxColoringHelper.StyleProperty.BOLD));
	boolean italic = store.getBoolean(eu.hyvar.dataValues.resource.hydatavalue.ui.HydatavalueSyntaxColoringHelper.getPreferenceKey(languageId, tokenName, eu.hyvar.dataValues.resource.hydatavalue.ui.HydatavalueSyntaxColoringHelper.StyleProperty.ITALIC));
	boolean strikethrough = store.getBoolean(eu.hyvar.dataValues.resource.hydatavalue.ui.HydatavalueSyntaxColoringHelper.getPreferenceKey(languageId, tokenName, eu.hyvar.dataValues.resource.hydatavalue.ui.HydatavalueSyntaxColoringHelper.StyleProperty.STRIKETHROUGH));
	boolean underline = store.getBoolean(eu.hyvar.dataValues.resource.hydatavalue.ui.HydatavalueSyntaxColoringHelper.getPreferenceKey(languageId, tokenName, eu.hyvar.dataValues.resource.hydatavalue.ui.HydatavalueSyntaxColoringHelper.StyleProperty.UNDERLINE));
	return new eu.hyvar.dataValues.resource.hydatavalue.mopp.HydatavalueTokenStyle(convertToIntArray(foregroundRGB), convertToIntArray(backgroundRGB), bold, italic, strikethrough, underline);
}
 
開發者ID:DarwinSPL,項目名稱:DarwinSPL,代碼行數:22,代碼來源:HydatavalueTokenScanner.java

示例7: handleMatchingBracketsSelection

import org.eclipse.jface.preference.PreferenceConverter; //導入方法依賴的package包/類
/**
 * Initialize and handle the values of this preference page.
 */
private void handleMatchingBracketsSelection() {
	// not for the case of none existing language
	enableCheckbox.setSelection(getPreferenceStore().getBoolean(eu.hyvar.mspl.manifest.resource.hymanifest.ui.HymanifestPreferenceConstants.EDITOR_MATCHING_BRACKETS_CHECKBOX));
	enableClosingInside.setSelection(false);
	matchingBracketsColorButton.setEnabled(getPreferenceStore().getBoolean(		eu.hyvar.mspl.manifest.resource.hymanifest.ui.HymanifestPreferenceConstants.EDITOR_MATCHING_BRACKETS_CHECKBOX));
	RGB rgb = PreferenceConverter.getColor(getPreferenceStore(), BRACKETS_COLOR);
	matchingBracketsColorEditor.setColorValue(rgb);
	removeBracketButton.setEnabled(false);
	
	initializeLanguage();
	bracketsTmp.deserialize(getPreferenceStore().getString(language + eu.hyvar.mspl.manifest.resource.hymanifest.ui.HymanifestPreferenceConstants.EDITOR_BRACKETS_SUFFIX));
	String[] brackets = bracketsTmp.getBracketArray();
	if (brackets != null) {
		bracketsList.setItems(brackets);
	}
}
 
開發者ID:DarwinSPL,項目名稱:DarwinSPL,代碼行數:20,代碼來源:HymanifestBracketPreferencePage.java

示例8: handleMatchingBracketsSelection

import org.eclipse.jface.preference.PreferenceConverter; //導入方法依賴的package包/類
/**
 * Initialize and handle the values of this preference page.
 */
private void handleMatchingBracketsSelection() {
	// not for the case of none existing language
	enableCheckbox.setSelection(getPreferenceStore().getBoolean(eu.hyvar.feature.mapping.resource.hymapping.ui.HymappingPreferenceConstants.EDITOR_MATCHING_BRACKETS_CHECKBOX));
	enableClosingInside.setSelection(false);
	matchingBracketsColorButton.setEnabled(getPreferenceStore().getBoolean(		eu.hyvar.feature.mapping.resource.hymapping.ui.HymappingPreferenceConstants.EDITOR_MATCHING_BRACKETS_CHECKBOX));
	RGB rgb = PreferenceConverter.getColor(getPreferenceStore(), BRACKETS_COLOR);
	matchingBracketsColorEditor.setColorValue(rgb);
	removeBracketButton.setEnabled(false);
	
	initializeLanguage();
	bracketsTmp.deserialize(getPreferenceStore().getString(language + eu.hyvar.feature.mapping.resource.hymapping.ui.HymappingPreferenceConstants.EDITOR_BRACKETS_SUFFIX));
	String[] brackets = bracketsTmp.getBracketArray();
	if (brackets != null) {
		bracketsList.setItems(brackets);
	}
}
 
開發者ID:DarwinSPL,項目名稱:DarwinSPL,代碼行數:20,代碼來源:HymappingBracketPreferencePage.java

示例9: handleMatchingBracketsSelection

import org.eclipse.jface.preference.PreferenceConverter; //導入方法依賴的package包/類
/**
 * Initialize and handle the values of this preference page.
 */
private void handleMatchingBracketsSelection() {
	// not for the case of none existing language
	enableCheckbox.setSelection(getPreferenceStore().getBoolean(eu.hyvar.feature.constraint.resource.hyconstraints.ui.HyconstraintsPreferenceConstants.EDITOR_MATCHING_BRACKETS_CHECKBOX));
	enableClosingInside.setSelection(false);
	matchingBracketsColorButton.setEnabled(getPreferenceStore().getBoolean(		eu.hyvar.feature.constraint.resource.hyconstraints.ui.HyconstraintsPreferenceConstants.EDITOR_MATCHING_BRACKETS_CHECKBOX));
	RGB rgb = PreferenceConverter.getColor(getPreferenceStore(), BRACKETS_COLOR);
	matchingBracketsColorEditor.setColorValue(rgb);
	removeBracketButton.setEnabled(false);
	
	initializeLanguage();
	bracketsTmp.deserialize(getPreferenceStore().getString(language + eu.hyvar.feature.constraint.resource.hyconstraints.ui.HyconstraintsPreferenceConstants.EDITOR_BRACKETS_SUFFIX));
	String[] brackets = bracketsTmp.getBracketArray();
	if (brackets != null) {
		bracketsList.setItems(brackets);
	}
}
 
開發者ID:DarwinSPL,項目名稱:DarwinSPL,代碼行數:20,代碼來源:HyconstraintsBracketPreferencePage.java

示例10: getStaticTokenStyle

import org.eclipse.jface.preference.PreferenceConverter; //導入方法依賴的package包/類
public eu.hyvar.mspl.manifest.resource.hymanifest.IHymanifestTokenStyle getStaticTokenStyle() {
	String tokenName = currentToken.getName();
	String enableKey = eu.hyvar.mspl.manifest.resource.hymanifest.ui.HymanifestSyntaxColoringHelper.getPreferenceKey(languageId, tokenName, eu.hyvar.mspl.manifest.resource.hymanifest.ui.HymanifestSyntaxColoringHelper.StyleProperty.ENABLE);
	if (store == null) {
		return null;
	}
	
	boolean enabled = store.getBoolean(enableKey);
	if (!enabled) {
		return null;
	}
	
	String colorKey = eu.hyvar.mspl.manifest.resource.hymanifest.ui.HymanifestSyntaxColoringHelper.getPreferenceKey(languageId, tokenName, eu.hyvar.mspl.manifest.resource.hymanifest.ui.HymanifestSyntaxColoringHelper.StyleProperty.COLOR);
	RGB foregroundRGB = PreferenceConverter.getColor(store, colorKey);
	RGB backgroundRGB = null;
	boolean bold = store.getBoolean(eu.hyvar.mspl.manifest.resource.hymanifest.ui.HymanifestSyntaxColoringHelper.getPreferenceKey(languageId, tokenName, eu.hyvar.mspl.manifest.resource.hymanifest.ui.HymanifestSyntaxColoringHelper.StyleProperty.BOLD));
	boolean italic = store.getBoolean(eu.hyvar.mspl.manifest.resource.hymanifest.ui.HymanifestSyntaxColoringHelper.getPreferenceKey(languageId, tokenName, eu.hyvar.mspl.manifest.resource.hymanifest.ui.HymanifestSyntaxColoringHelper.StyleProperty.ITALIC));
	boolean strikethrough = store.getBoolean(eu.hyvar.mspl.manifest.resource.hymanifest.ui.HymanifestSyntaxColoringHelper.getPreferenceKey(languageId, tokenName, eu.hyvar.mspl.manifest.resource.hymanifest.ui.HymanifestSyntaxColoringHelper.StyleProperty.STRIKETHROUGH));
	boolean underline = store.getBoolean(eu.hyvar.mspl.manifest.resource.hymanifest.ui.HymanifestSyntaxColoringHelper.getPreferenceKey(languageId, tokenName, eu.hyvar.mspl.manifest.resource.hymanifest.ui.HymanifestSyntaxColoringHelper.StyleProperty.UNDERLINE));
	return new eu.hyvar.mspl.manifest.resource.hymanifest.mopp.HymanifestTokenStyle(convertToIntArray(foregroundRGB), convertToIntArray(backgroundRGB), bold, italic, strikethrough, underline);
}
 
開發者ID:DarwinSPL,項目名稱:DarwinSPL,代碼行數:22,代碼來源:HymanifestTokenScanner.java

示例11: actionDimMap

import org.eclipse.jface.preference.PreferenceConverter; //導入方法依賴的package包/類
public void actionDimMap(final int dimLevel) {

		// check if the dim level/color was changed
		if (_mapDimLevel != dimLevel) {

			_mapDimLevel = dimLevel;

			/*
			 * dim color is stored in the pref store and not in the memento
			 */
			final RGB dimColor = PreferenceConverter.getColor(
					_prefStore,
					ITourbookPreferences.MAP_LAYOUT_MAP_DIMM_COLOR);

			_map.dimMap(dimLevel, dimColor);
		}
	}
 
開發者ID:wolfgang-ch,項目名稱:mytourbook,代碼行數:18,代碼來源:Map2View.java

示例12: initializeFromPreferences

import org.eclipse.jface.preference.PreferenceConverter; //導入方法依賴的package包/類
@Override
protected void initializeFromPreferences(View view) {
	super.initializeFromPreferences(view);
	IPreferenceStore store = (IPreferenceStore) getPreferencesHint()
			.getPreferenceStore();
	if (store == null) {
		return;
	}

	// Create region default styles
	ShapeStyle style = (ShapeStyle) view
			.getStyle(NotationPackage.Literals.SHAPE_STYLE);
	RGB fillRGB = PreferenceConverter.getColor(store,
			StatechartPreferenceConstants.PREF_REGION_BACKGROUND);
	style.setFillColor(FigureUtilities.RGBToInteger(fillRGB));
	RGB lineRGB = PreferenceConverter.getColor(store,
			StatechartPreferenceConstants.PREF_REGION_LINE);
	style.setLineColor(FigureUtilities.RGBToInteger(lineRGB));
}
 
開發者ID:Yakindu,項目名稱:statecharts,代碼行數:20,代碼來源:RegionViewFactory.java

示例13: updatePreferences

import org.eclipse.jface.preference.PreferenceConverter; //導入方法依賴的package包/類
protected void updatePreferences() {
	IPreferenceStore store = SimulationActivator.getDefault().getPreferenceStore();
	// read out the new colors
	RGB foregroundColor = PreferenceConverter.getColor(store, STATE_FOREGROUND_HIGHLIGHTING_COLOR);
	RGB backgroundColor = PreferenceConverter.getColor(store, STATE_BACKGROUND_HIGHLIGHTING_COLOR);
	RGB vertexForegroundColor = PreferenceConverter.getColor(store, VERTEX_FOREGROUND_TRANSIENT_COLOR);
	RGB vertexBackgroundColor = PreferenceConverter.getColor(store, VERTEX_BACKGROUND_TRANSIENT_COLOR);
	RGB transitionColor = PreferenceConverter.getColor(store, TRANSITION_HIGHLIGHTING_COLOR);

	// Set the new colors
	STATE_HIGHLIGHT_PARAMS.foregroundFadingColor = new Color(Display.getDefault(), foregroundColor);
	STATE_HIGHLIGHT_PARAMS.backgroundFadingColor = new Color(Display.getDefault(), backgroundColor);
	SUSPENDED_PARAMS.backgroundFadingColor = STATE_HIGHLIGHT_PARAMS.backgroundFadingColor;
	SUSPENDED_PARAMS.foregroundFadingColor = green;
	VERTEX_TRANSIENT_PARAMS.foregroundFadingColor = new Color(Display.getDefault(), vertexForegroundColor);
	VERTEX_TRANSIENT_PARAMS.backgroundFadingColor = new Color(Display.getDefault(), vertexBackgroundColor);
	TRANSITION_PARAMS.foregroundFadingColor = new Color(Display.getDefault(), transitionColor);
}
 
開發者ID:Yakindu,項目名稱:statecharts,代碼行數:19,代碼來源:AbstractDynamicNotationHandler.java

示例14: selectMapProviderInTheMap

import org.eclipse.jface.preference.PreferenceConverter; //導入方法依賴的package包/類
private void selectMapProviderInTheMap(final MP mp) {

		// check if a new map provider is selected
		if (_selectedMP != null && _selectedMP == mp) {
			return;
		}

		_selectedMP = mp;

		final Map map = _mapView.getMap();

		map.setMapProvider(mp);

		// reset overlays must be done after the new map provider is set
//		map.resetOverlays();

		// set map dim level
		final IPreferenceStore store = TourbookPlugin.getDefault().getPreferenceStore();
		final RGB dimColor = PreferenceConverter.getColor(store, ITourbookPreferences.MAP_LAYOUT_MAP_DIMM_COLOR);
		map.setDimLevel(_mapView.getMapDimLevel(), dimColor);

		// update tooltip, show selected map provider
		setToolTipText(mp.getName());
	}
 
開發者ID:wolfgang-ch,項目名稱:mytourbook,代碼行數:25,代碼來源:ActionSelectMapProvider.java

示例15: getTourPainterSettings

import org.eclipse.jface.preference.PreferenceConverter; //導入方法依賴的package包/類
private static void getTourPainterSettings() {

		final String drawSymbol = _prefStore.getString(ITourbookPreferences.MAP_LAYOUT_PLOT_TYPE);

		_prefIsDrawLine = drawSymbol.equals(PrefPageMap2Appearance.PLOT_TYPE_LINE);
		_prefIsDrawSquare = drawSymbol.equals(PrefPageMap2Appearance.PLOT_TYPE_SQUARE);

		_prefLineWidth = _prefStore.getInt(ITourbookPreferences.MAP_LAYOUT_SYMBOL_WIDTH);
		_prefIsWithBorder = _prefStore.getBoolean(ITourbookPreferences.MAP_LAYOUT_PAINT_WITH_BORDER);

		_prefBorderRGB = PreferenceConverter.getColor(_prefStore, ITourbookPreferences.MAP_LAYOUT_BORDER_COLOR);
		_prefBorderType = _prefStore.getInt(ITourbookPreferences.MAP_LAYOUT_BORDER_TYPE);
		_prefBorderWidth = _prefStore.getInt(ITourbookPreferences.MAP_LAYOUT_BORDER_WIDTH);

		final int prefBorderDimmValue = _prefStore.getInt(ITourbookPreferences.MAP_LAYOUT_BORDER_DIMM_VALUE);
		_borderBrightness = (float) (1.0 - prefBorderDimmValue / 100.0);
	}
 
開發者ID:wolfgang-ch,項目名稱:mytourbook,代碼行數:18,代碼來源:TourMapPainter.java


注:本文中的org.eclipse.jface.preference.PreferenceConverter.getColor方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。