blob: 05ce8b71d875366faf8941c7ae1dd6c227638ed6 (
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
|
/*****************************************************************************
* Copyright (c) 2011 CEA LIST.
*
* 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:
* Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
*****************************************************************************/
package org.eclipse.papyrus.customization.factory;
import org.eclipse.papyrus.customization.messages.Messages;
import org.eclipse.papyrus.customization.model.customization.CustomizableElement;
import org.eclipse.papyrus.customization.model.customization.FileBasedCustomizableElement;
import org.eclipse.papyrus.customization.plugin.PluginEditor;
public class EnvironmentExtensionFactory extends FileBasedExtensionFactory {
public EnvironmentExtensionFactory() {
super(Messages.EnvironmentExtensionFactory_PropertyViewEnvironment, "org.eclipse.papyrus.properties.Environment", "environmentModel", "environment", true); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
}
@Override
public void addElement(CustomizableElement element, PluginEditor editor) {
super.addElement(element, editor);
editor.getManifestEditor().addDependency("org.eclipse.papyrus.properties"); //$NON-NLS-1$
}
@Override
protected String getTargetPath(FileBasedCustomizableElement element) {
return "/environment/" + getFileName(element); //$NON-NLS-1$
}
}
|