Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: caa0bf17050eab246ef56367c1b190404cd84226 (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
/*****************************************************************************
 * 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
 *  Mickael ADAM (ALL4TEC) mickael.adam@all4tec.net - add search fiel preference page. Rename class name.
 *
 *****************************************************************************/
package org.eclipse.papyrus.views.modelexplorer.preferences;

import org.eclipse.papyrus.infra.ui.preferences.AbstractPapyrusPreferencePage;
import org.eclipse.papyrus.views.modelexplorer.Activator;
import org.eclipse.swt.widgets.Composite;

/**
 * Preference page for model explorer.
 */
public class ModelExplorerPreferencePage extends AbstractPapyrusPreferencePage {

	/**
	 * {@inheritDoc}
	 * 
	 * @see org.eclipse.papyrus.infra.ui.preferences.AbstractPapyrusPreferencePage#getBundleId()
	 */
	@Override
	protected String getBundleId() {
		return Activator.PLUGIN_ID;
	}

	/**
	 * {@inheritDoc}
	 * 
	 * @see org.eclipse.papyrus.infra.ui.preferences.AbstractPapyrusPreferencePage#createPageContents(org.eclipse.swt.widgets.Composite)
	 */
	@Override
	protected void createPageContents(final Composite parent) {
		// Add filter field preferences
		FilterFieldPreferencesGroup searchGroup = new FilterFieldPreferencesGroup(
				parent, getTitle(), this);
		addPreferenceGroup(searchGroup);

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

}

Back to the top