/******************************************************************************* * Copyright (c) 2000, 2013 IBM Corporation and others. * 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: * IBM Corporation - initial API and implementation *******************************************************************************/ package org.eclipse.jdt.ui.text; /** * Color keys used for syntax highlighting Java * code and Javadoc compliant comments. * A IColorManager is responsible for mapping * concrete colors to these keys. *

* This interface declares static final fields only; it is not intended to be * implemented. *

* * @see org.eclipse.jdt.ui.text.IColorManager * @see org.eclipse.jdt.ui.text.IColorManagerExtension * * @noimplement This interface is not intended to be implemented by clients. * @noextend This interface is not intended to be extended by clients. */ public interface IJavaColorConstants { /** * Note: This constant is for internal use only. Clients should not use this constant. * The prefix all color constants start with * (value "java_"). */ String PREFIX= "java_"; //$NON-NLS-1$ /** The color key for multi-line comments in Java code * (value "java_multi_line_comment"). */ String JAVA_MULTI_LINE_COMMENT= "java_multi_line_comment"; //$NON-NLS-1$ /** The color key for single-line comments in Java code * (value "java_single_line_comment"). */ String JAVA_SINGLE_LINE_COMMENT= "java_single_line_comment"; //$NON-NLS-1$ /** The color key for Java keywords in Java code * (value "java_keyword"). */ String JAVA_KEYWORD= "java_keyword"; //$NON-NLS-1$ /** The color key for string and character literals in Java code * (value "java_string"). */ String JAVA_STRING= "java_string"; //$NON-NLS-1$ /** The color key for method names in Java code * (value "java_method_name"). * * @since 3.0 * @deprecated replaced as of 3.1 by an equivalent semantic highlighting, see {@link org.eclipse.jdt.internal.ui.javaeditor.SemanticHighlightings#METHOD} */ String JAVA_METHOD_NAME= "java_method_name"; //$NON-NLS-1$ /** The color key for keyword 'return' in Java code * (value "java_keyword_return"). * * @since 3.0 */ String JAVA_KEYWORD_RETURN= "java_keyword_return"; //$NON-NLS-1$ /** The color key for operators in Java code * (value "java_operator"). * * @since 3.0 */ String JAVA_OPERATOR= "java_operator"; //$NON-NLS-1$ /** The color key for brackets in Java code * (value "java_bracket"). * * @since 3.3 */ String JAVA_BRACKET= "java_bracket"; //$NON-NLS-1$ /** * The color key for everything in Java code for which no other color is specified * (value "java_default"). */ String JAVA_DEFAULT= "java_default"; //$NON-NLS-1$ /** * The color key for the Java built-in types such as int and char in Java code * (value "java_type"). * * @deprecated no longer used, replaced by JAVA_KEYWORD */ String JAVA_TYPE= "java_type"; //$NON-NLS-1$ /** * The color key for annotations * (value "java_annotation"). * * @since 3.1 * @deprecated replaced as of 3.2 by an equivalent semantic highlighting, see {@link org.eclipse.jdt.internal.ui.javaeditor.SemanticHighlightings#ANNOTATION} */ String JAVA_ANNOTATION= "java_annotation"; //$NON-NLS-1$ /** * The color key for task tags in java comments * (value "java_comment_task_tag"). * * @since 2.1 */ String TASK_TAG= "java_comment_task_tag"; //$NON-NLS-1$ /** * The color key for JavaDoc keywords (@foo) in JavaDoc comments * (value "java_doc_keyword"). */ String JAVADOC_KEYWORD= "java_doc_keyword"; //$NON-NLS-1$ /** * The color key for HTML tags (<foo>) in JavaDoc comments * (value "java_doc_tag"). */ String JAVADOC_TAG= "java_doc_tag"; //$NON-NLS-1$ /** * The color key for JavaDoc links ({foo}) in JavaDoc comments * (value "java_doc_link"). */ String JAVADOC_LINK= "java_doc_link"; //$NON-NLS-1$ /** * The color key for everything in JavaDoc comments for which no other color is specified * (value "java_doc_default"). */ String JAVADOC_DEFAULT= "java_doc_default"; //$NON-NLS-1$ //---------- Properties File Editor ---------- /** * The color key for keys in a properties file * (value "pf_coloring_key"). * * @since 3.1 */ String PROPERTIES_FILE_COLORING_KEY= "pf_coloring_key"; //$NON-NLS-1$ /** * The color key for comments in a properties file * (value "pf_coloring_comment"). * * @since 3.1 */ String PROPERTIES_FILE_COLORING_COMMENT= "pf_coloring_comment"; //$NON-NLS-1$ /** * The color key for values in a properties file * (value "pf_coloring_value"). * * @since 3.1 */ String PROPERTIES_FILE_COLORING_VALUE= "pf_coloring_value"; //$NON-NLS-1$ /** * The color key for assignment in a properties file. * (value "pf_coloring_assignment"). * * @since 3.1 */ String PROPERTIES_FILE_COLORING_ASSIGNMENT= "pf_coloring_assignment"; //$NON-NLS-1$ /** * The color key for arguments in values in a properties file. * (value "pf_coloring_argument"). * * @since 3.1 */ String PROPERTIES_FILE_COLORING_ARGUMENT= "pf_coloring_argument"; //$NON-NLS-1$ }