| /******************************************************************************* |
| * Copyright (c) 2006, 2013 Oracle. All rights reserved. |
| * This program and the accompanying materials are made available under the |
| * terms of the Eclipse Public License 2.0, which accompanies this distribution |
| * and is available at https://www.eclipse.org/legal/epl-2.0/. |
| * |
| * Contributors: |
| * Oracle - initial API and implementation |
| ******************************************************************************/ |
| package org.eclipse.jpt.jpa.ui.internal.details; |
| |
| import org.eclipse.jpt.jpa.core.MappingKeys; |
| import org.eclipse.jpt.jpa.ui.details.JptJpaUiDetailsMessages; |
| import org.eclipse.jpt.jpa.ui.details.MappingUiDefinition; |
| |
| public class OneToManyMappingUiDefinition |
| extends AbstractOneToManyMappingUiDefinition |
| { |
| // singleton |
| private static final OneToManyMappingUiDefinition INSTANCE = |
| new OneToManyMappingUiDefinition(); |
| |
| |
| /** |
| * Return the singleton. |
| */ |
| public static MappingUiDefinition instance() { |
| return INSTANCE; |
| } |
| |
| |
| /** |
| * Ensure single instance. |
| */ |
| private OneToManyMappingUiDefinition() { |
| super(); |
| } |
| |
| public String getKey() { |
| return MappingKeys.ONE_TO_MANY_ATTRIBUTE_MAPPING_KEY; |
| } |
| |
| public String getLabel() { |
| return JptJpaUiDetailsMessages.ONE_TO_MANY_MAPPING_UI_PROVIDER_LABEL; |
| } |
| |
| public String getLinkLabel() { |
| return JptJpaUiDetailsMessages.ONE_TO_MANY_MAPPING_UI_PROVIDER_LINK_LABEL; |
| } |
| } |