Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 175e4f85025433e36126d36d9d721410f96481ce (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
61
62
63
64
65
66
67
68
/*****************************************************************************
 * Copyright (c) 2010 Atos Origin.
 *
 *    
 * 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:
 *  Emilien Perico (Atos Origin) emilien.perico@atosorigin.com - Initial API and implementation
 *
 *****************************************************************************/
package org.eclipse.papyrus.modelexplorer.preferences;

import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.papyrus.modelexplorer.Activator;
import org.eclipse.papyrus.preferences.pages.AbstractPapyrusNodePreferencePage;
import org.eclipse.swt.widgets.Composite;

public class NavigatorPreferencePage extends AbstractPapyrusNodePreferencePage {

	/**
	 * @generated
	 */
	@Override
	protected String getBundleId() {
		return Activator.PLUGIN_ID;
	}

	/**
	 * @generated
	 */
	public static void initDefaults(IPreferenceStore store) {

		// String elementName = "Model Explorer";
		// PreferenceConverter.setDefault(store,
		// PreferenceConstantHelper.getElementConstant(elementName,
		// PreferenceConstantHelper.COLOR_FILL), new
		// org.eclipse.swt.graphics.RGB(255, 255, 255));
		// PreferenceConverter.setDefault(store,
		// PreferenceConstantHelper.getElementConstant(elementName,
		// PreferenceConstantHelper.COLOR_LINE), new
		// org.eclipse.swt.graphics.RGB(0, 0, 0));
		//
		// // Set the default for the gradient
		// store.setDefault(PreferenceConstantHelper.getElementConstant(elementName,
		// PreferenceConstantHelper.GRADIENT_POLICY), false);
		// GradientPreferenceConverter gradientPreferenceConverter = new
		// GradientPreferenceConverter(new org.eclipse.swt.graphics.RGB(255,
		// 255, 255), new org.eclipse.swt.graphics.RGB(0, 0, 0), 0, 0);
		// store.setDefault(PreferenceConstantHelper.getElementConstant(elementName,
		// PreferenceConstantHelper.COLOR_GRADIENT),
		// gradientPreferenceConverter.getPreferenceValue());

	}

	@Override
	protected void createPageContents(Composite parent) {
		// super.createPageContents(parent);

		// show popup dialog
		TransformCommandShowPopupDialogGroup groupComposite = new TransformCommandShowPopupDialogGroup(
				parent, getTitle(), this);
		addAbstractGroup(groupComposite);
	}

}

Back to the top