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

    String key = DeploymentDiagramEditPart.MODEL_ID + "_Node";
    store.setDefault(
        PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.WIDTH), 150);
    store.setDefault(
        PreferenceConstantHelper.getElementConstant(key, PreferenceConstantHelper.HEIGHT), 150);

    for (String name : compartments) {
      String preferenceName =
          PreferenceConstantHelper.getCompartmentElementConstant(
              key, name, PreferenceConstantHelper.COMPARTMENT_VISIBILITY);
      store.setDefault(preferenceName, true);
    }

    // org.eclipse.jface.preference.PreferenceConverter.setDefault(store,
    // org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_FILL), new org.eclipse.swt.graphics.RGB(255, 255, 255));
    // org.eclipse.jface.preference.PreferenceConverter.setDefault(store,
    // org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_LINE), new org.eclipse.swt.graphics.RGB(0, 0, 0));

    // Set the default for the gradient
    // store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.GRADIENT_POLICY),false);
    // org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter gradientPreferenceConverter
    // = new  org.eclipse.papyrus.preferences.utils.GradientPreferenceConverter(
    //		new org.eclipse.swt.graphics.RGB(255, 255, 255),
    //		new org.eclipse.swt.graphics.RGB(0, 0, 0), 0, 0);
    // store.setDefault(org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.getElementConstant(elementName, org.eclipse.papyrus.preferences.utils.PreferenceConstantHelper.COLOR_GRADIENT), gradientPreferenceConverter.getPreferenceValue());

  }
  /**
   * Initialize defaults using a specified {@link IPreferenceStore}
   *
   * @param store the preference store.
   */
  public static void initDefaults(IPreferenceStore store) {
    // Start of user code custom default initializations
    // End of user code

    for (String labelName : labelDefaultVisibilityMap.keySet()) {
      String showLabelKey =
          PreferenceConstantHelper.getCompartmentElementConstant(
              prefKey, labelName, PreferenceConstantHelper.LABEL_VISIBILITY);
      store.setDefault(showLabelKey, labelDefaultVisibilityMap.get(labelName));
    }
  }