diff options
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.dawn/src/org/eclipse/emf/cdo/dawn/appearance/DawnElementStylizer.java')
-rw-r--r-- | plugins/org.eclipse.emf.cdo.dawn/src/org/eclipse/emf/cdo/dawn/appearance/DawnElementStylizer.java | 94 |
1 files changed, 47 insertions, 47 deletions
diff --git a/plugins/org.eclipse.emf.cdo.dawn/src/org/eclipse/emf/cdo/dawn/appearance/DawnElementStylizer.java b/plugins/org.eclipse.emf.cdo.dawn/src/org/eclipse/emf/cdo/dawn/appearance/DawnElementStylizer.java index 9ed9cc518a..e344a6e966 100644 --- a/plugins/org.eclipse.emf.cdo.dawn/src/org/eclipse/emf/cdo/dawn/appearance/DawnElementStylizer.java +++ b/plugins/org.eclipse.emf.cdo.dawn/src/org/eclipse/emf/cdo/dawn/appearance/DawnElementStylizer.java @@ -1,47 +1,47 @@ -/*
- * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) 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:
- * Martin Fluegge - initial API and implementation
- */
-package org.eclipse.emf.cdo.dawn.appearance;
-
-import org.eclipse.emf.cdo.dawn.spi.DawnState;
-
-import org.eclipse.swt.graphics.Color;
-import org.eclipse.swt.graphics.Image;
-
-/**
- * This interface is used do influence the appearance of an UI element by a certain state. Implementations allow to
- * change the appearance for the adapted types of editors.
- *
- * @author Martin Fluegge
- * @since 2.0
- */
-public interface DawnElementStylizer
-{
- public void setDefault(Object element);
-
- public void setConflicted(Object element, int type);
-
- public void setLocked(Object element, int type);
-
- /**
- * Returns the image that represents the state for the given object.
- */
- public Image getImage(Object element, DawnState state);
-
- /**
- * Returns the foreground color that represents the state for the given object.
- */
- public Color getForegroundColor(Object element, DawnState state);
-
- /**
- * Returns the background color that represents the state for the given object.
- */
- public Color getBackgroundColor(Object element, DawnState state);
-}
+/* + * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) 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: + * Martin Fluegge - initial API and implementation + */ +package org.eclipse.emf.cdo.dawn.appearance; + +import org.eclipse.emf.cdo.dawn.spi.DawnState; + +import org.eclipse.swt.graphics.Color; +import org.eclipse.swt.graphics.Image; + +/** + * This interface is used do influence the appearance of an UI element by a certain state. Implementations allow to + * change the appearance for the adapted types of editors. + * + * @author Martin Fluegge + * @since 2.0 + */ +public interface DawnElementStylizer +{ + public void setDefault(Object element); + + public void setConflicted(Object element, int type); + + public void setLocked(Object element, int type); + + /** + * Returns the image that represents the state for the given object. + */ + public Image getImage(Object element, DawnState state); + + /** + * Returns the foreground color that represents the state for the given object. + */ + public Color getForegroundColor(Object element, DawnState state); + + /** + * Returns the background color that represents the state for the given object. + */ + public Color getBackgroundColor(Object element, DawnState state); +} |