blob: 738a2cda6b88a0ce51e3cf7f419fa07befdc5994 (
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
|
/*****************************************************************************
* Copyright (c) 2014 CEA LIST & other.
*
* 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:
* Benoit Maggi (CEA LIST) benoit.maggi@cea.fr - Bug 445097
*****************************************************************************/
package org.eclipse.papyrus.example.diagram.simplediagram;
import org.eclipse.gmf.runtime.diagram.core.preferences.PreferencesHint;
import org.eclipse.papyrus.example.diagram.simplediagram.edit.parts.ModelEditPart;
import org.eclipse.papyrus.infra.gmfdiag.common.AbstractPapyrusGmfCreateDiagramCommandHandler;
public class CreateDiagramCommand extends AbstractPapyrusGmfCreateDiagramCommandHandler {
private static final String EXAMPLE_SIMPLE_DIAGRAM = "ExampleSimpleDiagram"; //$NON-NLS-1$
@Override
protected String getDefaultDiagramName() {
return EXAMPLE_SIMPLE_DIAGRAM;
}
/**
* {@inheritDoc}
*/
@Override
protected String getDiagramNotationID() {
return ModelEditPart.MODEL_ID;
}
/**
* {@inheritDoc}
*/
@Override
protected PreferencesHint getPreferenceHint() {
return org.eclipse.papyrus.example.diagram.simplediagram.part.UMLDiagramEditorPlugin.DIAGRAM_PREFERENCES_HINT;
}
}
|