Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 00e4071935ac36d9caad0c2d6f13f0ec967f0bf5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/*
 * Copyright (c) 2011, 2012, 2015 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.gmf.appearance;

import org.eclipse.emf.cdo.dawn.ui.stylizer.DawnDefaultElementStylizer;

import org.eclipse.gef.EditPart;

/**
 * An EditPartStylizer can influence the visual representation of the models state. Dawn knows three states - default,
 * conflicted and locked. By implementing an own DawnStylizer you can influence the appearance of the three states for
 * your EditPart and it's related models. New stylizer can be registered to Dawn using the
 * <b>org.eclipse.emf.cdo.dawn.editpartstylizers</b> extension point.
 *
 * @author Martin Fluegge
 * @since 2.0
 */
public abstract class DawnEditPartStylizer extends DawnDefaultElementStylizer
{
  /**
   * @since 2.0
   */
  public abstract void setDefault(EditPart editPart);

  /**
   * @since 2.0
   */
  public abstract void setConflicted(EditPart editPart, int type);

  /**
   * @since 2.0
   */
  public abstract void setLocked(EditPart editPart, int type);

  @Override
  public void setDefault(Object element)
  {
    setDefault((EditPart)element);
  }

  @Override
  public void setConflicted(Object element, int type)
  {
    setConflicted((EditPart)element, type);
  }

  @Override
  public void setLocked(Object element, int type)
  {
    setLocked((EditPart)element, type);
  }
}

Back to the top