Skip to content
Snippets Groups Projects
Commit 88274f06 authored by Alexander Diewald's avatar Alexander Diewald
Browse files

Merge branch 'master' of https://git.fortiss.org/af3/kernel.git into 3369-fixMissingIds_no_command

parents 51b5a44b e64688b5
No related branches found
No related tags found
1 merge request!23369 fix missing ids no command
Showing
with 163 additions and 34 deletions
AnnotationLabelProvider.java ddebfc2bf2c8306884eb748c2c649ff0fe9c3d21 GREEN AnnotationLabelProvider.java ddebfc2bf2c8306884eb748c2c649ff0fe9c3d21 GREEN
CheckBoxLabelProvider.java 44d1e8394703802f14041a058eae89a70501792c GREEN CheckBoxLabelProvider.java 83f7216dfc05400c5b96aeba8c1add6a02f0eac5 GREEN
ElementCommentLabelProvider.java 76aa6e9b930ce5680607852fd776172942c89ce5 GREEN ElementCommentLabelProvider.java 76aa6e9b930ce5680607852fd776172942c89ce5 GREEN
ElementLabelProviderBase.java f33502f73033ebdf30316df627e8a9c87e7d1b28 GREEN ElementLabelProviderBase.java f33502f73033ebdf30316df627e8a9c87e7d1b28 GREEN
ElementNameLabelProvider.java 897296ac8318b6dfdea9c50fc73aaeea23c2fffa GREEN ElementNameLabelProvider.java 897296ac8318b6dfdea9c50fc73aaeea23c2fffa GREEN
......
...@@ -14,6 +14,8 @@ ...@@ -14,6 +14,8 @@
*******************************************************************************/ *******************************************************************************/
package org.fortiss.tooling.base.ui.annotation.labelprovider; package org.fortiss.tooling.base.ui.annotation.labelprovider;
import static org.fortiss.tooling.base.utils.SystemUtils.isMacOSXPlatform;
import org.eclipse.jface.viewers.ColumnLabelProvider; import org.eclipse.jface.viewers.ColumnLabelProvider;
import org.eclipse.jface.viewers.EditingSupport; import org.eclipse.jface.viewers.EditingSupport;
import org.eclipse.jface.viewers.TableViewer; import org.eclipse.jface.viewers.TableViewer;
...@@ -46,6 +48,12 @@ public class CheckBoxLabelProvider extends AnnotationLabelProvider { ...@@ -46,6 +48,12 @@ public class CheckBoxLabelProvider extends AnnotationLabelProvider {
/** {@inheritDoc} */ /** {@inheritDoc} */
@Override @Override
public String getText(Object element) { public String getText(Object element) {
// See #2443
if(isMacOSXPlatform() && element instanceof AnnotationEntry &&
((AnnotationEntry)element).canEdit(clazz)) {
return isChecked(element) ? "[X]" : "[ ]";
}
return null; return null;
} }
......
...@@ -3,6 +3,7 @@ ActionUtils.java f16dd179005f48c747d2c9cf250b05e7225495cf GREEN ...@@ -3,6 +3,7 @@ ActionUtils.java f16dd179005f48c747d2c9cf250b05e7225495cf GREEN
ConstraintsBaseUIUtils.java 50c26b90a6ebe6c7f7861092dac5ebc1f3fc0ce3 GREEN ConstraintsBaseUIUtils.java 50c26b90a6ebe6c7f7861092dac5ebc1f3fc0ce3 GREEN
DragAndDropBaseUtils.java 4308b2151a7075adeb4f7e7246859d421150415b GREEN DragAndDropBaseUtils.java 4308b2151a7075adeb4f7e7246859d421150415b GREEN
EllipseLayoutUIUtils.java 271e287f1e5befb03a9d115a98e22453056521e0 GREEN EllipseLayoutUIUtils.java 271e287f1e5befb03a9d115a98e22453056521e0 GREEN
FontUtils.java a167a05bdaa8da9853705cc5134f30f6d81bc9f2 GREEN
GCStateManager.java 983973a92376b5c757c1253b32e33d0666ccdf7b GREEN GCStateManager.java 983973a92376b5c757c1253b32e33d0666ccdf7b GREEN
LayoutDataUIUtils.java 8034bbb9f595092f56807525abcbf23fd5d01428 GREEN LayoutDataUIUtils.java 8034bbb9f595092f56807525abcbf23fd5d01428 GREEN
PropertiesViewUtils.java d345b4501c4092228edf1c98e0189317d53aaf22 GREEN PropertiesViewUtils.java d345b4501c4092228edf1c98e0189317d53aaf22 GREEN
......
...@@ -13,7 +13,11 @@ ...@@ -13,7 +13,11 @@
| See the License for the specific language governing permissions and | | See the License for the specific language governing permissions and |
| limitations under the License. | | limitations under the License. |
+--------------------------------------------------------------------------*/ +--------------------------------------------------------------------------*/
package org.fortiss.tooling.spiderchart.util; package org.fortiss.tooling.base.ui.utils;
import static org.fortiss.tooling.base.utils.SystemUtils.isLinuxPlatform;
import static org.fortiss.tooling.base.utils.SystemUtils.isMacOSXPlatform;
import static org.fortiss.tooling.base.utils.SystemUtils.isWindowsPlatform;
import org.eclipse.swt.SWT; import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Font; import org.eclipse.swt.graphics.Font;
...@@ -38,9 +42,25 @@ public class FontUtils { ...@@ -38,9 +42,25 @@ public class FontUtils {
public static FontData VERDANA_16PT = new FontData("Verdana", 16, SWT.NORMAL); public static FontData VERDANA_16PT = new FontData("Verdana", 16, SWT.NORMAL);
/** Verdana 14pt font. */ /** Verdana 14pt font. */
public static FontData VERDANA_18PT = new FontData("Verdana", 18, SWT.NORMAL); public static FontData VERDANA_18PT = new FontData("Verdana", 18, SWT.NORMAL);
/** "Code" 11pt font. */
public static FontData CODEFONT_11PT = createCodeFontData(11);
/** Creates a {@link Font} from the given {@link FontData}, which MUST be disposed after use. */ /** Creates a {@link Font} from the given {@link FontData}, which MUST be disposed after use. */
public static Font createFont(FontData fontData) { public static Font createFont(FontData fontData) {
return new Font(Display.getCurrent(), fontData); return new Font(Display.getCurrent(), fontData);
} }
/** Returns the {@link FontData} used to represent code (OS specific). */
private static FontData createCodeFontData(int height) {
String font = "Courier";
if(isMacOSXPlatform()) {
font = "Monaco";
} else if(isWindowsPlatform()) {
font = "Consolas";
} else if(isLinuxPlatform()) {
font = "Monospace";
}
return new FontData(font, height, SWT.NORMAL);
}
} }
AbstractIntegerSpinnerEditingSupport.java 7391e5b0d8e10baf5ab2c7f9543ed732a23bbd9d GREEN AbstractIntegerSpinnerEditingSupport.java 7391e5b0d8e10baf5ab2c7f9543ed732a23bbd9d GREEN
CheckBoxEditingSupport.java 173a63ee86dc396946ddb625a41d48ffad23982f GREEN CheckBoxEditingSupport.java 173a63ee86dc396946ddb625a41d48ffad23982f GREEN
CheckBoxLabelProvider.java f810475dbf986b1f33e5b2b13657e52ca0cfd27e GREEN CheckBoxLabelProvider.java 4eb2a54a17225da5a0f4f3a4212cde0c23d50d11 GREEN
IconNameLabelProvider.java f1700e0c8a86dfe6b10945ce84c2ac935ceab8e7 GREEN IconNameLabelProvider.java f1700e0c8a86dfe6b10945ce84c2ac935ceab8e7 GREEN
...@@ -17,6 +17,7 @@ package org.fortiss.tooling.base.ui.viewers; ...@@ -17,6 +17,7 @@ package org.fortiss.tooling.base.ui.viewers;
import static org.eclipse.core.runtime.Platform.getBundle; import static org.eclipse.core.runtime.Platform.getBundle;
import static org.eclipse.jface.resource.JFaceResources.getImageRegistry; import static org.eclipse.jface.resource.JFaceResources.getImageRegistry;
import static org.fortiss.tooling.base.utils.SystemUtils.isMacOSXPlatform;
import org.eclipse.jface.resource.ImageRegistry; import org.eclipse.jface.resource.ImageRegistry;
import org.eclipse.jface.resource.JFaceResources; import org.eclipse.jface.resource.JFaceResources;
...@@ -118,6 +119,10 @@ public abstract class CheckBoxLabelProvider extends ColumnLabelProvider { ...@@ -118,6 +119,10 @@ public abstract class CheckBoxLabelProvider extends ColumnLabelProvider {
* @return {@link Image} representing the checkbox. * @return {@link Image} representing the checkbox.
*/ */
public static Image getImage(boolean checked, boolean enabled) { public static Image getImage(boolean checked, boolean enabled) {
// See #2443
if(isMacOSXPlatform()) {
return null;
}
ImageRegistry imgReg = getImageRegistry(); ImageRegistry imgReg = getImageRegistry();
if(imgReg.getDescriptor(CHECKED_KEY) == null) { if(imgReg.getDescriptor(CHECKED_KEY) == null) {
imgReg.put(UNCHECKED_KEY, makeShot(false, true)); imgReg.put(UNCHECKED_KEY, makeShot(false, true));
...@@ -142,6 +147,10 @@ public abstract class CheckBoxLabelProvider extends ColumnLabelProvider { ...@@ -142,6 +147,10 @@ public abstract class CheckBoxLabelProvider extends ColumnLabelProvider {
/** {@inheritDoc} */ /** {@inheritDoc} */
@Override @Override
public String getText(Object element) { public String getText(Object element) {
// See #2443
if(isMacOSXPlatform() && isEnabled(element)) {
return isChecked(element) ? "[X]" : "[ ]";
}
return null; return null;
} }
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
modelDirectory="/org.fortiss.tooling.base/generated-src" editDirectory="/org.fortiss.tooling.base.edit/generated-src" modelDirectory="/org.fortiss.tooling.base/generated-src" editDirectory="/org.fortiss.tooling.base.edit/generated-src"
editorDirectory="/org.fortiss.tooling.base.editor/generated-src" modelPluginID="org.fortiss.tooling.base" editorDirectory="/org.fortiss.tooling.base.editor/generated-src" modelPluginID="org.fortiss.tooling.base"
modelName="Base" importerID="org.eclipse.emf.importer.ecore" containmentProxies="true" modelName="Base" importerID="org.eclipse.emf.importer.ecore" containmentProxies="true"
complianceLevel="6.0" copyrightFields="false" usedGenPackages="platform:/resource/org.fortiss.tooling.kernel/model/kernel.genmodel#//model"> complianceLevel="8.0" copyrightFields="false" usedGenPackages="platform:/resource/org.fortiss.tooling.kernel/model/kernel.genmodel#//model">
<foreignModel>base.ecore</foreignModel> <foreignModel>base.ecore</foreignModel>
<genPackages prefix="Base" basePackage="org.fortiss.tooling.base" disposableProviderFactory="true" <genPackages prefix="Base" basePackage="org.fortiss.tooling.base" disposableProviderFactory="true"
ecorePackage="base.ecore#/"> ecorePackage="base.ecore#/">
......
...@@ -13,6 +13,6 @@ PointUtils.java b21c92cc8e80ece9d87ede8a750f4de314379743 GREEN ...@@ -13,6 +13,6 @@ PointUtils.java b21c92cc8e80ece9d87ede8a750f4de314379743 GREEN
PointsUtils.java bad69811c59004948929f6a57edd5a79c0bf8643 GREEN PointsUtils.java bad69811c59004948929f6a57edd5a79c0bf8643 GREEN
RectangleLayoutUtils.java cdd61d162761da7f3e1d3512264135b9b0d564ff GREEN RectangleLayoutUtils.java cdd61d162761da7f3e1d3512264135b9b0d564ff GREEN
SnapToGridUtils.java 413785d7a8655db31a129b6f821e1d5f859aa726 GREEN SnapToGridUtils.java 413785d7a8655db31a129b6f821e1d5f859aa726 GREEN
SystemUtils.java b36590c6934413cd2408de1321af5254dc263e11 GREEN SystemUtils.java f7893a7db34a994534608bcbd7f214a701c5cf55 GREEN
VisualizationModelElementFactory.java 18e67450ee4cf4a03dc88a10becb0fb6ce4c1bad GREEN VisualizationModelElementFactory.java 18e67450ee4cf4a03dc88a10becb0fb6ce4c1bad GREEN
ZoomUtils.java a339613fde18281bed3b55b529a053d348545bc7 GREEN ZoomUtils.java a339613fde18281bed3b55b529a053d348545bc7 GREEN
...@@ -15,16 +15,82 @@ ...@@ -15,16 +15,82 @@
+--------------------------------------------------------------------------*/ +--------------------------------------------------------------------------*/
package org.fortiss.tooling.base.utils; package org.fortiss.tooling.base.utils;
import static java.io.File.separator;
import static java.lang.System.getProperty;
import static java.util.UUID.randomUUID;
/** /**
* Utility functions that deal with the underlying system. * Utility functions that deal with the underlying system.
* *
* @author ratiu * @author ratiu, barner
*/ */
public class SystemUtils { public class SystemUtils {
/** Returns true if we are in a Windows system. */ /** Cache for {@link #isWindowsPlatform()}. */
public static boolean isWindowsOperatingSystem() { private static Boolean isWindowsPlatform = null;
return System.getProperty("os.name").startsWith("Windows");
/** Cache for {@link #isLinuxPlatform()}. */
private static Boolean isLinuxPlatform = null;
/** Cache for {@link #isMacOSXPlatform()}. */
private static Boolean isMacOSXPlatform = null;
/** Cache for {@link #isVm64BitArch()}. */
private static Boolean isVm64BitArch;
/** Cache for {@link #isOs64BitArch()}. */
private static Boolean isOs64BitArch;
/** Predicate if the current platform is Windows. */
public static boolean isWindowsPlatform() {
if(isWindowsPlatform != null) {
return isWindowsPlatform;
}
String osName = System.getProperty("os.name");
isWindowsPlatform = osName != null && osName.contains("Windows");
return isWindowsPlatform;
}
/** Predicate if the current platform is Linux. */
public static boolean isLinuxPlatform() {
if(isLinuxPlatform != null) {
return isLinuxPlatform;
}
String osName = System.getProperty("os.name");
isLinuxPlatform = osName != null && osName.contains("Linux");
return isLinuxPlatform;
}
/** Predicate if the current platform is Mac OS X. */
public static boolean isMacOSXPlatform() {
if(isMacOSXPlatform != null) {
return isMacOSXPlatform;
}
String osName = System.getProperty("os.name");
isMacOSXPlatform = osName != null && osName.contains("Mac OS X");
return isMacOSXPlatform;
}
/** Predicate if the current <b>Java VM</b> architecture is 64 bit. */
public static boolean isVm64BitArch() {
if(isVm64BitArch != null) {
return isVm64BitArch;
}
String osArch = System.getProperty("os.arch");
isVm64BitArch = osArch != null && osArch.contains("64");
return isVm64BitArch;
}
/** Predicate if the current <b>OS</b> architecture is 64 bit. */
public static boolean isOs64BitArch() {
if(isOs64BitArch != null) {
return isOs64BitArch;
}
String progFilesX86 = System.getenv("ProgramFiles(x86)");
isOs64BitArch = isWindowsPlatform() ? progFilesX86 != null : isVm64BitArch();
return isOs64BitArch;
} }
/** /**
...@@ -32,7 +98,7 @@ public class SystemUtils { ...@@ -32,7 +98,7 @@ public class SystemUtils {
* interpreted, then an empty string is returned. * interpreted, then an empty string is returned.
*/ */
public static String interpretProcessExitValues(int exitValue) { public static String interpretProcessExitValues(int exitValue) {
if(!isWindowsOperatingSystem()) { if(!isWindowsPlatform()) {
switch(exitValue) { switch(exitValue) {
case 126: case 126:
return "Command not found"; return "Command not found";
...@@ -42,4 +108,33 @@ public class SystemUtils { ...@@ -42,4 +108,33 @@ public class SystemUtils {
} }
return ""; return "";
} }
/** Returns the path to the system's temporary directory. */
public static String getSystemTempDirPath() {
return getTempDirPath(false, null);
}
/**
* Returns the path to a directory in the system's temporary directory that follows the pattern<br>
* {@code <SYS_TEMP_DIR>[/UNIQUE_DIR][/SUB_DIR]}
*
* @param unique
* Flag if a unique sub-directory should be appended to the path of the system's
* temporary directory.
* @param subdir
* Sub-directory within system's temporary directory (may be {@code null}).
* @return Path to a directory in the system's temporary directory.
*/
public static String getTempDirPath(boolean unique, String subdir) {
String tmpDir = getProperty("java.io.tmpdir");
if(unique) {
tmpDir += separator + randomUUID();
}
if(subdir != null) {
tmpDir += separator + subdir;
}
return tmpDir;
}
} }
ToolingGraphicsGLUIActivator.java 86df10a01835d65709fb655622a1feb2b1a44948 GREEN ToolingGraphicsGLUIActivator.java 1775f5ee6932438fb7fe6cf15279a7595fdedb53 GREEN
...@@ -17,6 +17,7 @@ package org.fortiss.tooling.graphicsGL.ui; ...@@ -17,6 +17,7 @@ package org.fortiss.tooling.graphicsGL.ui;
import static java.lang.System.mapLibraryName; import static java.lang.System.mapLibraryName;
import static org.eclipse.core.runtime.FileLocator.toFileURL; import static org.eclipse.core.runtime.FileLocator.toFileURL;
import static org.fortiss.tooling.base.utils.SystemUtils.isOs64BitArch;
import org.eclipse.jface.resource.ImageDescriptor; import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.ui.plugin.AbstractUIPlugin; import org.eclipse.ui.plugin.AbstractUIPlugin;
...@@ -46,12 +47,7 @@ public class ToolingGraphicsGLUIActivator extends AbstractUIPlugin { ...@@ -46,12 +47,7 @@ public class ToolingGraphicsGLUIActivator extends AbstractUIPlugin {
System.out.println(" Preloading native LWJGL libraries."); System.out.println(" Preloading native LWJGL libraries.");
boolean is64bit; boolean is64bit = isOs64BitArch();
if(System.getProperty("os.name").contains("Windows")) {
is64bit = (System.getenv("ProgramFiles(x86)") != null);
} else {
is64bit = (System.getProperty("os.arch").indexOf("64") != -1);
}
// preload JEMALLOC // preload JEMALLOC
String jemallocLibPath = loadPluginLocalLibrary(getBundle(), "jemalloc", is64bit); String jemallocLibPath = loadPluginLocalLibrary(getBundle(), "jemalloc", is64bit);
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" copyrightText="(c) 2017 fortiss GmbH. GENERATED CODE: Do not edit, see Ecore metamodel instead!" xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" copyrightText="(c) 2017 fortiss GmbH. GENERATED CODE: Do not edit, see Ecore metamodel instead!"
modelDirectory="/org.fortiss.tooling.graphicsGL/generated-src" editorDirectory="/org.fortiss.tooling.graphicsGL.editor/src" modelDirectory="/org.fortiss.tooling.graphicsGL/generated-src" editorDirectory="/org.fortiss.tooling.graphicsGL.editor/src"
modelPluginID="org.fortiss.tooling.graphicsGL" modelName="Model" modelPluginClass="" modelPluginID="org.fortiss.tooling.graphicsGL" modelName="Model" modelPluginClass=""
importerID="org.eclipse.emf.importer.ecore" containmentProxies="true" complianceLevel="6.0" importerID="org.eclipse.emf.importer.ecore" containmentProxies="true" complianceLevel="8.0"
copyrightFields="false" editorPluginID="org.fortiss.tooling.graphicsGL.editor" copyrightFields="false" editorPluginID="org.fortiss.tooling.graphicsGL.editor"
usedGenPackages="platform:/resource/org.fortiss.tooling.kernel/model/kernel.genmodel#//model"> usedGenPackages="platform:/resource/org.fortiss.tooling.kernel/model/kernel.genmodel#//model">
<foreignModel>graphics3D.ecore</foreignModel> <foreignModel>graphics3D.ecore</foreignModel>
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
modelName="Model" modelPluginClass="" editPluginClass="org.fortiss.tooling.kernel.model.provider.ModelEditPlugin" modelName="Model" modelPluginClass="" editPluginClass="org.fortiss.tooling.kernel.model.provider.ModelEditPlugin"
editorPluginClass="org.fortiss.tooling.kernel.model.presentation.ModelEditorPlugin" editorPluginClass="org.fortiss.tooling.kernel.model.presentation.ModelEditorPlugin"
testsDirectory="/org.fortiss.tooling.kernel.tests/test-src" importerID="org.eclipse.emf.importer.ecore" testsDirectory="/org.fortiss.tooling.kernel.tests/test-src" importerID="org.eclipse.emf.importer.ecore"
containmentProxies="true" complianceLevel="6.0" copyrightFields="false"> containmentProxies="true" complianceLevel="8.0" copyrightFields="false">
<foreignModel>kernel.ecore</foreignModel> <foreignModel>kernel.ecore</foreignModel>
<genPackages prefix="FortissToolingKernel" basePackage="org.fortiss.tooling.kernel" <genPackages prefix="FortissToolingKernel" basePackage="org.fortiss.tooling.kernel"
disposableProviderFactory="true" ecorePackage="kernel.ecore#/"> disposableProviderFactory="true" ecorePackage="kernel.ecore#/">
......
...@@ -3,6 +3,6 @@ ChartStyle.java b2c76a10141ebe9a083d5456bd9e5ef61f472500 GREEN ...@@ -3,6 +3,6 @@ ChartStyle.java b2c76a10141ebe9a083d5456bd9e5ef61f472500 GREEN
ColorStyleBase.java b8e824b55490b30507b8d38acf10bc61daf1fa00 GREEN ColorStyleBase.java b8e824b55490b30507b8d38acf10bc61daf1fa00 GREEN
DataSeriesStyle.java a7bda5ba4e12133ea20edda627e41560b3679641 GREEN DataSeriesStyle.java a7bda5ba4e12133ea20edda627e41560b3679641 GREEN
FillStyle.java 36e54f1ecb31836a7c7a821ddf0432264349bd83 GREEN FillStyle.java 36e54f1ecb31836a7c7a821ddf0432264349bd83 GREEN
FontStyle.java b180fc768372ae374f17034cbb91fe3891fd569f GREEN FontStyle.java 012dfcddfd85159ba6045141df0762289fb70d6f GREEN
LegendStyle.java 39a10d789aeac41114b8b43e7e6790543cb2f618 GREEN LegendStyle.java 39a10d789aeac41114b8b43e7e6790543cb2f618 GREEN
LineStyle.java bc3df608b46c9d2fa367cf75465961389ab4491f GREEN LineStyle.java bc3df608b46c9d2fa367cf75465961389ab4491f GREEN
...@@ -15,12 +15,12 @@ ...@@ -15,12 +15,12 @@
+--------------------------------------------------------------------------*/ +--------------------------------------------------------------------------*/
package org.fortiss.tooling.spiderchart.style; package org.fortiss.tooling.spiderchart.style;
import static org.fortiss.tooling.spiderchart.util.FontUtils.VERDANA_10PT; import static org.fortiss.tooling.base.ui.utils.FontUtils.VERDANA_10PT;
import static org.fortiss.tooling.spiderchart.util.FontUtils.VERDANA_12PT; import static org.fortiss.tooling.base.ui.utils.FontUtils.VERDANA_12PT;
import static org.fortiss.tooling.spiderchart.util.FontUtils.VERDANA_14PT; import static org.fortiss.tooling.base.ui.utils.FontUtils.VERDANA_14PT;
import static org.fortiss.tooling.spiderchart.util.FontUtils.VERDANA_16PT; import static org.fortiss.tooling.base.ui.utils.FontUtils.VERDANA_16PT;
import static org.fortiss.tooling.spiderchart.util.FontUtils.VERDANA_18PT; import static org.fortiss.tooling.base.ui.utils.FontUtils.VERDANA_18PT;
import static org.fortiss.tooling.spiderchart.util.FontUtils.VERDANA_8PT; import static org.fortiss.tooling.base.ui.utils.FontUtils.VERDANA_8PT;
import static org.fortiss.tooling.spiderchart.util.RGBColorUtils.BLACK; import static org.fortiss.tooling.spiderchart.util.RGBColorUtils.BLACK;
import org.eclipse.swt.graphics.FontData; import org.eclipse.swt.graphics.FontData;
......
AxisUtils.java 22f9dae3ee0b9bb4daef19977f2d327dc4b10f8f GREEN AxisUtils.java 22f9dae3ee0b9bb4daef19977f2d327dc4b10f8f GREEN
FontUtils.java 759aeeea8de17e5d555ecd81592b9897dd36bc37 GREEN
RGBColorUtils.java 2fc319ab0bc3d898f7c68db324cded3ddcd45f70 GREEN RGBColorUtils.java 2fc319ab0bc3d898f7c68db324cded3ddcd45f70 GREEN
...@@ -15,12 +15,12 @@ ...@@ -15,12 +15,12 @@
+--------------------------------------------------------------------------*/ +--------------------------------------------------------------------------*/
package test.org.fortiss.tooling.spiderchart; package test.org.fortiss.tooling.spiderchart;
import static org.fortiss.tooling.base.ui.utils.FontUtils.VERDANA_14PT;
import static org.fortiss.tooling.spiderchart.style.FontStyle.BLACK_VERDANA_10PT; import static org.fortiss.tooling.spiderchart.style.FontStyle.BLACK_VERDANA_10PT;
import static org.fortiss.tooling.spiderchart.style.FontStyle.BLACK_VERDANA_12PT; import static org.fortiss.tooling.spiderchart.style.FontStyle.BLACK_VERDANA_12PT;
import static org.fortiss.tooling.spiderchart.style.FontStyle.BLACK_VERDANA_14PT; import static org.fortiss.tooling.spiderchart.style.FontStyle.BLACK_VERDANA_14PT;
import static org.fortiss.tooling.spiderchart.style.FontStyle.BLACK_VERDANA_8PT; import static org.fortiss.tooling.spiderchart.style.FontStyle.BLACK_VERDANA_8PT;
import static org.fortiss.tooling.spiderchart.style.LineStyle.SOLID_BLACK_1PT; import static org.fortiss.tooling.spiderchart.style.LineStyle.SOLID_BLACK_1PT;
import static org.fortiss.tooling.spiderchart.util.FontUtils.VERDANA_14PT;
import static org.fortiss.tooling.spiderchart.util.RGBColorUtils.BLUE; import static org.fortiss.tooling.spiderchart.util.RGBColorUtils.BLUE;
import static org.fortiss.tooling.spiderchart.util.RGBColorUtils.DARK_GRAY; import static org.fortiss.tooling.spiderchart.util.RGBColorUtils.DARK_GRAY;
import static org.fortiss.tooling.spiderchart.util.RGBColorUtils.LIGHT_GRAY; import static org.fortiss.tooling.spiderchart.util.RGBColorUtils.LIGHT_GRAY;
...@@ -193,10 +193,11 @@ public final class SpiderChartExample { // NO_UCD ...@@ -193,10 +193,11 @@ public final class SpiderChartExample { // NO_UCD
} }
/** {@link Comparator} implementation for {@link Screen}s . */ /** {@link Comparator} implementation for {@link Screen}s . */
private static Comparator<Screen> screenComparator = new Comparator<SpiderChartExample.Screen>() { private static Comparator<Screen> screenComparator =
@Override new Comparator<SpiderChartExample.Screen>() {
public int compare(Screen o1, Screen o2) { @Override
return o1.width - o2.width; public int compare(Screen o1, Screen o2) {
} return o1.width - o2.width;
}; }
};
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment