blob: 50fa0e189d7987bdc34683baab0cec23422bde92 [file] [log] [blame]
/*****************************************************************************
* Copyright (c) 2011 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:
*
* CEA LIST - Initial API and implementation
*
*****************************************************************************/
package org.eclipse.papyrus.sysml.diagram.common.dialogs;
import org.eclipse.papyrus.sysml.diagram.common.messages.Messages;
import org.eclipse.papyrus.sysml.portandflows.PortandflowsPackage;
import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
import org.eclipse.papyrus.uml.service.types.element.UMLElementTypes;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.uml2.uml.NamedElement;
import org.eclipse.uml2.uml.UMLPackage;
/**
* Dialog for initialization of non atomic FlowPort type (the type is a FlowSpecification either selected or created).
*/
public class CreateOrSelectNonAtomicFlowPortTypeDialog extends CreateOrSelectTypeDialog {
/** Constructor */
public CreateOrSelectNonAtomicFlowPortTypeDialog(Shell shell, NamedElement owner) {
super(shell, owner, SysMLElementTypes.FLOW_SPECIFICATION, UMLPackage.eINSTANCE.getTypedElement_Type(), PortandflowsPackage.eINSTANCE.getFlowSpecification(), UMLElementTypes.PACKAGE, UMLPackage.eINSTANCE.getPackage_PackagedElement(), null);
}
/**
* {@inheritDoc}
*/
@Override
protected String getDialogTitle() {
return Messages.CreateOrSelectNonAtomicFlowPortTypeDialog_DialogTitle;
}
/**
* {@inheritDoc}
*/
@Override
protected String getSelectionSectionTitle() {
return Messages.CreateOrSelectNonAtomicFlowPortTypeDialog_SelectionSectionTitle;
}
/**
* {@inheritDoc}
*/
@Override
protected String getSelectionSectionRadioLabel() {
return Messages.CreateOrSelectNonAtomicFlowPortTypeDialog_SelectionSectionRadioLabel;
}
/**
* {@inheritDoc}
*/
@Override
protected String getCreationSectionTitle() {
return Messages.CreateOrSelectNonAtomicFlowPortTypeDialog_CreationSectionTitle;
}
/**
* {@inheritDoc}
*/
@Override
protected String getCreationSectionRadioLabel() {
return Messages.CreateOrSelectNonAtomicFlowPortTypeDialog_CreationSectionRadioLabel;
}
/**
* {@inheritDoc}
*/
@Override
protected String getNewTypeNameLabel() {
return Messages.CreateOrSelectNonAtomicFlowPortTypeDialog_NewTypeNameLabel;
}
/**
* {@inheritDoc}
*/
@Override
protected String getNewTypeContainerNameLabel() {
return Messages.CreateOrSelectNonAtomicFlowPortTypeDialog_NewTypeContainerNameLabel;
}
/**
* {@inheritDoc}
*/
@Override
protected String getNewTypeContainerDialogTitle() {
return Messages.CreateOrSelectNonAtomicFlowPortTypeDialog_SelectNewTypeContainerDialogTitle;
}
/**
* {@inheritDoc}
*/
@Override
protected String getNewTypeContainerDialogMessage() {
return Messages.CreateOrSelectNonAtomicFlowPortTypeDialog_SelectNewTypeContainerDialogMessage;
}
/**
* {@inheritDoc}
*/
@Override
protected String getTypeDialogTitle() {
return Messages.CreateOrSelectNonAtomicFlowPortTypeDialog_SelectTypeDialogTitle;
}
/**
* {@inheritDoc}
*/
@Override
protected String getTypeDialogMessage() {
return Messages.CreateOrSelectNonAtomicFlowPortTypeDialog_SelectTypeDialogMessage;
}
}