diff options
Diffstat (limited to 'extraplugins/robotml/org.eclipse.papyrus.robotml.diagram.componentdef/src-gen/org/eclipse/papyrus/robotml/diagram/componentdef/preferences/PackagePreferencePage.java')
-rw-r--r-- | extraplugins/robotml/org.eclipse.papyrus.robotml.diagram.componentdef/src-gen/org/eclipse/papyrus/robotml/diagram/componentdef/preferences/PackagePreferencePage.java | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/extraplugins/robotml/org.eclipse.papyrus.robotml.diagram.componentdef/src-gen/org/eclipse/papyrus/robotml/diagram/componentdef/preferences/PackagePreferencePage.java b/extraplugins/robotml/org.eclipse.papyrus.robotml.diagram.componentdef/src-gen/org/eclipse/papyrus/robotml/diagram/componentdef/preferences/PackagePreferencePage.java deleted file mode 100644 index cf7a560c739..00000000000 --- a/extraplugins/robotml/org.eclipse.papyrus.robotml.diagram.componentdef/src-gen/org/eclipse/papyrus/robotml/diagram/componentdef/preferences/PackagePreferencePage.java +++ /dev/null @@ -1,53 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2013 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: - * Saadia Dhouib (CEA LIST) saadia.dhouib@cea.fr - Initial API and implementation - *****************************************************************************/ -package org.eclipse.papyrus.robotml.diagram.componentdef.preferences; - -import org.eclipse.jface.preference.IPreferenceStore; -import org.eclipse.papyrus.infra.gmfdiag.common.preferences.PreferencesConstantsHelper; -import org.eclipse.papyrus.robotml.diagram.componentdef.edit.part.ComponentdefDiagramEditPart; - -public class PackagePreferencePage extends ComponentdefDiagramNodePreferencePage { - - public static String prefKey = ComponentdefDiagramEditPart.DIAGRAM_ID + "_Package"; - - /** - * the list of the compartments for this node - */ - public static final String compartments[] = { "PackageableElementCompartment" }; - - public PackagePreferencePage() { - super(); - setPreferenceKey(ComponentdefDiagramEditPart.DIAGRAM_ID + "_Package"); //$NON-NLS-1$ - } - - public static void initDefaults(IPreferenceStore store) { - store.setDefault(PreferencesConstantsHelper.getElementConstant(prefKey, PreferencesConstantsHelper.WIDTH), 200); - store.setDefault(PreferencesConstantsHelper.getElementConstant(prefKey, PreferencesConstantsHelper.HEIGHT), 100); - // set the true value for the compartment visibility - for(String name : compartments) { - String preferenceName = PreferencesConstantsHelper.getCompartmentElementConstant(prefKey, name, PreferencesConstantsHelper.COMPARTMENT_VISIBILITY); - store.setDefault(preferenceName, true); - } - } - - /** - * - * @see org.eclipse.papyrus.preferences.pages.AbstractPapyrusNodePreferencePage#initializeCompartmentsList() - * - */ - @Override - protected void initializeCompartmentsList() { - for(String name : compartments) { - this.compartmentsList.add(name); - } - } -} |