Java Code Examples for org.eclipse.jface.resource.StringConverter#asString()
The following examples show how to use
org.eclipse.jface.resource.StringConverter#asString() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: NodeDisplayTableControl.java From depan with Apache License 2.0 | 5 votes |
private String getColorName(GraphNode node) { NodeDisplayProperty prop = getDisplayProperty(node); if (null == prop) { return null; } Color color = prop.getColor(); if (null == color) { return null; } String result = StringConverter.asString(Colors.rgbFromColor(color)); return "(" + result + ")"; }
Example 2
Source File: EdgeDisplayTableControl.java From depan with Apache License 2.0 | 5 votes |
private String getColorName(EdgeDisplayProperty prop) { if (null == prop) { return null; } Color color = prop.getColor(); if (null == color) { return null; } String result = StringConverter.asString(Colors.rgbFromColor(color)); return "(" + result + ")"; }
Example 3
Source File: RelationDisplayTableControl.java From depan with Apache License 2.0 | 5 votes |
private String getColorName(EdgeDisplayProperty prop) { if (null == prop) { return null; } Color color = prop.getColor(); if (null == color) { return null; } String result = StringConverter.asString(Colors.rgbFromColor(color)); return "(" + result + ")"; }
Example 4
Source File: ThemeManager.java From APICloud-Studio with GNU General Public License v3.0 | 4 votes |
private static String toString(RGB selection) { return StringConverter.asString(selection); }
Example 5
Source File: ColorPersistor.java From translationstudio8 with GNU General Public License v2.0 | 4 votes |
/** * Create a String representation of the SWT Color */ public static String asString(Color color) { return StringConverter.asString(color.getRGB()); }
Example 6
Source File: ColorPersistor.java From tmxeditor8 with GNU General Public License v2.0 | 4 votes |
/** * Create a String representation of the SWT Color */ public static String asString(Color color) { return StringConverter.asString(color.getRGB()); }
Example 7
Source File: ColorPreference.java From goclipse with Eclipse Public License 1.0 | 4 votes |
@Override protected String valueToString(RGB value) { return StringConverter.asString(value); }