X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.event%2Fsrc%2Forg%2Fsimantics%2Fevent%2Fview%2FConstants.java;fp=bundles%2Forg.simantics.event%2Fsrc%2Forg%2Fsimantics%2Fevent%2Fview%2FConstants.java;h=8849794475523d318434a81813a79618c2401233;hp=20e37ca7fabc43a0076d67b092250f68e777fe24;hb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;hpb=24e2b34260f219f0d1644ca7a138894980e25b14 diff --git a/bundles/org.simantics.event/src/org/simantics/event/view/Constants.java b/bundles/org.simantics.event/src/org/simantics/event/view/Constants.java index 20e37ca7f..884979447 100644 --- a/bundles/org.simantics.event/src/org/simantics/event/view/Constants.java +++ b/bundles/org.simantics.event/src/org/simantics/event/view/Constants.java @@ -1,107 +1,107 @@ -/******************************************************************************* - * Copyright (c) 2007, 2011 Association for Decentralized Information Management - * in Industry THTH ry. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * VTT Technical Research Centre of Finland - initial API and implementation - *******************************************************************************/ -package org.simantics.event.view; - -import org.eclipse.jface.resource.ColorDescriptor; -import org.eclipse.swt.graphics.RGB; -import org.simantics.event.ontology.EventResource; - -/** - * @author Tuukka Lehtonen - */ -public class Constants { - - public static final int EVENT_SEVERITY_STEP = 100; - - public static final int EVENT_SEVERITY_INFO = 600; - public static final int EVENT_SEVERITY_WARNING = 700; - public static final int EVENT_SEVERITY_ERROR = 1000; - public static final int EVENT_SEVERITY_FATAL = 1200; - - public static final ColorDescriptor RETURN_EVENT_FG = ColorDescriptor.createFrom(new RGB(160, 160, 160)); - //public static final ColorDescriptor MILESTONE_BG = ColorDescriptor.createFrom(new RGB(240, 240, 240)); - //public static final ColorDescriptor BASELINE_BG = ColorDescriptor.createFrom(new RGB(200, 200, 200)); - - // Available columns in the events view - - public static final String COLUMN_TIMESTAMP = "timestamp"; - - /** - * A hidden data meant for time-wise sorting of events. - */ - public static final String COLUMN_TIMESTAMP_NUMERIC = "timestampNumeric"; - - public static final String COLUMN_EVENT_INDEX = "index"; - - /** - * Thin column, normally empty. If an event is selected as a milestone then - * this column will show a black milestone diamond icon with numbering. If - * it is also the baseline, the diamond will be gray. - */ - public static final String COLUMN_MILESTONE = "milestone"; - - /** - * Shows an icon and text describing the event type. - */ - public static final String COLUMN_EVENT_TYPE = "eventType"; - - /** - * Only shows an icon describing whether the state described by the event - * has been returned or not. Also interpretable as the "completion" of an - * event. - * - * Events expected to return are marked with an X and returned events with a - * check mark. - * - * @see EventResource#Returns - * @see EventResource#ReturnedBy - * @see EventResource#NoReturn - */ - public static final String COLUMN_RETURNED = "returned"; - - /** - * Tag describing the event. - */ - public static final String COLUMN_TAG_NAME = "tag"; - - /** - * Message contained by the event. - */ - public static final String COLUMN_MESSAGE = "message"; - - /** - * Message contained by the event. - */ - public static final String COLUMN_RETURN_TIME = "returnTime"; - - public static final String COLUMN_RETURN_TIME_NUMERIC = "returnTimeNumeric"; - - /** - * Name of the event source. - */ - public static final String COLUMN_SOURCE_NAME = "sourceName"; - - public static final String[] COLUMN_KEYS = { - COLUMN_EVENT_INDEX, - COLUMN_TIMESTAMP, - COLUMN_TIMESTAMP_NUMERIC, - COLUMN_MILESTONE, - COLUMN_EVENT_TYPE, - COLUMN_RETURNED, - COLUMN_TAG_NAME, - COLUMN_MESSAGE, - COLUMN_RETURN_TIME, - COLUMN_RETURN_TIME_NUMERIC, - COLUMN_SOURCE_NAME - }; - -} +/******************************************************************************* + * Copyright (c) 2007, 2011 Association for Decentralized Information Management + * in Industry THTH ry. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * VTT Technical Research Centre of Finland - initial API and implementation + *******************************************************************************/ +package org.simantics.event.view; + +import org.eclipse.jface.resource.ColorDescriptor; +import org.eclipse.swt.graphics.RGB; +import org.simantics.event.ontology.EventResource; + +/** + * @author Tuukka Lehtonen + */ +public class Constants { + + public static final int EVENT_SEVERITY_STEP = 100; + + public static final int EVENT_SEVERITY_INFO = 600; + public static final int EVENT_SEVERITY_WARNING = 700; + public static final int EVENT_SEVERITY_ERROR = 1000; + public static final int EVENT_SEVERITY_FATAL = 1200; + + public static final ColorDescriptor RETURN_EVENT_FG = ColorDescriptor.createFrom(new RGB(160, 160, 160)); + //public static final ColorDescriptor MILESTONE_BG = ColorDescriptor.createFrom(new RGB(240, 240, 240)); + //public static final ColorDescriptor BASELINE_BG = ColorDescriptor.createFrom(new RGB(200, 200, 200)); + + // Available columns in the events view + + public static final String COLUMN_TIMESTAMP = "timestamp"; + + /** + * A hidden data meant for time-wise sorting of events. + */ + public static final String COLUMN_TIMESTAMP_NUMERIC = "timestampNumeric"; + + public static final String COLUMN_EVENT_INDEX = "index"; + + /** + * Thin column, normally empty. If an event is selected as a milestone then + * this column will show a black milestone diamond icon with numbering. If + * it is also the baseline, the diamond will be gray. + */ + public static final String COLUMN_MILESTONE = "milestone"; + + /** + * Shows an icon and text describing the event type. + */ + public static final String COLUMN_EVENT_TYPE = "eventType"; + + /** + * Only shows an icon describing whether the state described by the event + * has been returned or not. Also interpretable as the "completion" of an + * event. + * + * Events expected to return are marked with an X and returned events with a + * check mark. + * + * @see EventResource#Returns + * @see EventResource#ReturnedBy + * @see EventResource#NoReturn + */ + public static final String COLUMN_RETURNED = "returned"; + + /** + * Tag describing the event. + */ + public static final String COLUMN_TAG_NAME = "tag"; + + /** + * Message contained by the event. + */ + public static final String COLUMN_MESSAGE = "message"; + + /** + * Message contained by the event. + */ + public static final String COLUMN_RETURN_TIME = "returnTime"; + + public static final String COLUMN_RETURN_TIME_NUMERIC = "returnTimeNumeric"; + + /** + * Name of the event source. + */ + public static final String COLUMN_SOURCE_NAME = "sourceName"; + + public static final String[] COLUMN_KEYS = { + COLUMN_EVENT_INDEX, + COLUMN_TIMESTAMP, + COLUMN_TIMESTAMP_NUMERIC, + COLUMN_MILESTONE, + COLUMN_EVENT_TYPE, + COLUMN_RETURNED, + COLUMN_TAG_NAME, + COLUMN_MESSAGE, + COLUMN_RETURN_TIME, + COLUMN_RETURN_TIME_NUMERIC, + COLUMN_SOURCE_NAME + }; + +}