blob: 0edcc1a6912b35d9f81c7db087a39c9a6ab7e8fb (
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
|
/*****************************************************************************
* Copyright (c) 2012, 2014 CEA LIST 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:
* Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
* Christian W. Damus (CEA) - bug 417409
*
*****************************************************************************/
package org.eclipse.papyrus.views.properties.modelelement;
import org.eclipse.papyrus.views.properties.contexts.DataContextElement;
public class PreferencesModelElementFactory extends AbstractModelElementFactory<PreferencesModelElement> {
@Override
protected PreferencesModelElement doCreateFromSource(Object sourceElement, DataContextElement context) {
return new PreferencesModelElement(context);
}
@Override
protected void updateModelElement(PreferencesModelElement modelElement, Object newSourceElement) {
//The is nothing to update. We use the DataContextElement to retrieve the proper PreferenceStore, and it shouldn't have changed.
//We don't care about the current selection
}
}
|