Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

modified the form model and editor

changed textinputfield attributes
width = Short, Normal, Long, Full Line (default Normal)
type = Single Line, Multiple Lines (default Single Line)
max characters = none, int (default none)

added form attributes:
reviewBeforePublication = true/false (default is true)
promptForMultipleSubmissions = true/false (default is false)
  • Loading branch information...
commit 538af7d8b55d412efab6f85dfa09c68d70e79400 1 parent 860f4f4
@gregjan gregjan authored
Showing with 2,027 additions and 1,085 deletions.
  1. +261 −261 crosswalk-gmf.diagram/src/crosswalk/diagram/navigator/CrosswalkNavigatorContentProvider.java
  2. +67 −67 crosswalk-gmf.diagram/src/crosswalk/diagram/navigator/CrosswalkNavigatorLabelProvider.java
  3. +15 −4 crosswalk-gmf.edit/plugin.properties
  4. +0 −23 crosswalk-gmf.edit/src/crosswalk/provider/CrosswalkItemProviderAdapterFactory.java
  5. +48 −0 crosswalk-gmf.edit/src/crosswalk/provider/FormItemProvider.java
  6. +0 −5 crosswalk-gmf.edit/src/crosswalk/provider/MetadataBlockItemProvider.java
  7. +0 −147 crosswalk-gmf.edit/src/crosswalk/provider/MultiLineTextInputFieldItemProvider.java
  8. +24 −24 crosswalk-gmf.edit/src/crosswalk/provider/TextInputFieldItemProvider.java
  9. +22 −13 crosswalk-gmf/model/crosswalk.ecore
  10. +15 −6 crosswalk-gmf/model/crosswalk.genmodel
  11. +0 −9 crosswalk-gmf/src/crosswalk/CrosswalkFactory.java
  12. +123 −119 crosswalk-gmf/src/crosswalk/CrosswalkPackage.java
  13. +266 −0 crosswalk-gmf/src/crosswalk/FieldSize.java
  14. +266 −0 crosswalk-gmf/src/crosswalk/FieldWidth.java
  15. +56 −0 crosswalk-gmf/src/crosswalk/Form.java
  16. +0 −54 crosswalk-gmf/src/crosswalk/MultiLineTextInputField.java
  17. +71 −39 crosswalk-gmf/src/crosswalk/TextInputField.java
  18. +212 −0 crosswalk-gmf/src/crosswalk/TextInputType.java
  19. +47 −8 crosswalk-gmf/src/crosswalk/impl/CrosswalkFactoryImpl.java
  20. +60 −28 crosswalk-gmf/src/crosswalk/impl/CrosswalkPackageImpl.java
  21. +108 −0 crosswalk-gmf/src/crosswalk/impl/FormImpl.java
  22. +0 −164 crosswalk-gmf/src/crosswalk/impl/MultiLineTextInputFieldImpl.java
  23. +108 −71 crosswalk-gmf/src/crosswalk/impl/TextInputFieldImpl.java
  24. +0 −18 crosswalk-gmf/src/crosswalk/util/CrosswalkAdapterFactory.java
  25. +0 −24 crosswalk-gmf/src/crosswalk/util/CrosswalkSwitch.java
  26. +1 −1  forms/src/main/java/cdr/forms/SwordDepositHandler.java
  27. +257 −0 index.html
View
522 crosswalk-gmf.diagram/src/crosswalk/diagram/navigator/CrosswalkNavigatorContentProvider.java
@@ -254,129 +254,108 @@ public void init(ICommonContentExtensionSite aConfig) {
private Object[] getViewChildren(View view, Object parentElement) {
switch (CrosswalkVisualIDRegistry.getVisualID(view)) {
- case DelimitedFileEditPart.VISUAL_ID: {
- LinkedList<CrosswalkAbstractNavigatorItem> result = new LinkedList<CrosswalkAbstractNavigatorItem>();
- Node sv = (Node) view;
- Collection<View> connectedViews;
- connectedViews = getChildrenByType(Collections.singleton(sv),
- CrosswalkVisualIDRegistry.getType(DelimitedFileDataFieldCompartmentEditPart.VISUAL_ID));
- connectedViews = getChildrenByType(connectedViews,
- CrosswalkVisualIDRegistry.getType(TabbedDataFieldEditPart.VISUAL_ID));
- result.addAll(createNavigatorItems(connectedViews, parentElement, false));
- return result.toArray();
- }
-
- case DictionaryEditPart.VISUAL_ID: {
+ case TextEditPart.VISUAL_ID: {
LinkedList<CrosswalkAbstractNavigatorItem> result = new LinkedList<CrosswalkAbstractNavigatorItem>();
Node sv = (Node) view;
+ CrosswalkNavigatorGroup incominglinks = new CrosswalkNavigatorGroup(
+ Messages.NavigatorGroupName_Text_3005_incominglinks,
+ "icons/incomingLinksNavigatorGroup.gif", parentElement); //$NON-NLS-1$
Collection<View> connectedViews;
- connectedViews = getChildrenByType(Collections.singleton(sv),
- CrosswalkVisualIDRegistry.getType(DictionaryModelBoxCompartmentEditPart.VISUAL_ID));
- connectedViews = getChildrenByType(connectedViews,
- CrosswalkVisualIDRegistry.getType(MetadataBlockEditPart.VISUAL_ID));
- result.addAll(createNavigatorItems(connectedViews, parentElement, false));
- return result.toArray();
- }
-
- case EditingContainerEditPart.VISUAL_ID: {
- LinkedList<CrosswalkAbstractNavigatorItem> result = new LinkedList<CrosswalkAbstractNavigatorItem>();
- Diagram sv = (Diagram) view;
- CrosswalkNavigatorGroup links = new CrosswalkNavigatorGroup(
- Messages.NavigatorGroupName_EditingContainer_1000_links,
- "icons/linksNavigatorGroup.gif", parentElement); //$NON-NLS-1$
- Collection<View> connectedViews;
- connectedViews = getChildrenByType(Collections.singleton(sv),
- CrosswalkVisualIDRegistry.getType(CrossWalkEditPart.VISUAL_ID));
- result.addAll(createNavigatorItems(connectedViews, parentElement, false));
- connectedViews = getChildrenByType(Collections.singleton(sv),
- CrosswalkVisualIDRegistry.getType(DictionaryEditPart.VISUAL_ID));
- result.addAll(createNavigatorItems(connectedViews, parentElement, false));
- connectedViews = getChildrenByType(Collections.singleton(sv),
- CrosswalkVisualIDRegistry.getType(FormEditPart.VISUAL_ID));
- result.addAll(createNavigatorItems(connectedViews, parentElement, false));
- connectedViews = getDiagramLinksByType(Collections.singleton(sv),
+ connectedViews = getIncomingLinksByType(Collections.singleton(sv),
CrosswalkVisualIDRegistry.getType(InputOutputEditPart.VISUAL_ID));
- links.addChildren(createNavigatorItems(connectedViews, links, false));
- if (!links.isEmpty()) {
- result.add(links);
+ incominglinks.addChildren(createNavigatorItems(connectedViews, incominglinks, true));
+ if (!incominglinks.isEmpty()) {
+ result.add(incominglinks);
}
return result.toArray();
}
- case MappedElementEditPart.VISUAL_ID: {
+ case MappedElement2EditPart.VISUAL_ID: {
LinkedList<CrosswalkAbstractNavigatorItem> result = new LinkedList<CrosswalkAbstractNavigatorItem>();
Node sv = (Node) view;
Collection<View> connectedViews;
connectedViews = getChildrenByType(Collections.singleton(sv),
- CrosswalkVisualIDRegistry.getType(MappedElementChildElementsCompartmentEditPart.VISUAL_ID));
+ CrosswalkVisualIDRegistry.getType(MappedElementChildElementsCompartment2EditPart.VISUAL_ID));
connectedViews = getChildrenByType(connectedViews,
CrosswalkVisualIDRegistry.getType(MappedElement2EditPart.VISUAL_ID));
result.addAll(createNavigatorItems(connectedViews, parentElement, false));
connectedViews = getChildrenByType(Collections.singleton(sv),
- CrosswalkVisualIDRegistry.getType(MappedElementChildElementsCompartmentEditPart.VISUAL_ID));
+ CrosswalkVisualIDRegistry.getType(MappedElementChildElementsCompartment2EditPart.VISUAL_ID));
connectedViews = getChildrenByType(connectedViews,
CrosswalkVisualIDRegistry.getType(MappedAttributeEditPart.VISUAL_ID));
result.addAll(createNavigatorItems(connectedViews, parentElement, false));
return result.toArray();
}
- case MetadataBlock3EditPart.VISUAL_ID: {
+ case InputOutputEditPart.VISUAL_ID: {
LinkedList<CrosswalkAbstractNavigatorItem> result = new LinkedList<CrosswalkAbstractNavigatorItem>();
- Node sv = (Node) view;
+ Edge sv = (Edge) view;
+ CrosswalkNavigatorGroup target = new CrosswalkNavigatorGroup(
+ Messages.NavigatorGroupName_InputOutput_4001_target,
+ "icons/linkTargetNavigatorGroup.gif", parentElement); //$NON-NLS-1$
+ CrosswalkNavigatorGroup source = new CrosswalkNavigatorGroup(
+ Messages.NavigatorGroupName_InputOutput_4001_source,
+ "icons/linkSourceNavigatorGroup.gif", parentElement); //$NON-NLS-1$
Collection<View> connectedViews;
- connectedViews = getChildrenByType(Collections.singleton(sv),
- CrosswalkVisualIDRegistry.getType(MetadataBlockMetadataBlockMappingCompartment3EditPart.VISUAL_ID));
- connectedViews = getChildrenByType(connectedViews,
+ connectedViews = getLinksTargetByType(Collections.singleton(sv),
+ CrosswalkVisualIDRegistry.getType(TabbedDataFieldEditPart.VISUAL_ID));
+ target.addChildren(createNavigatorItems(connectedViews, target, true));
+ connectedViews = getLinksTargetByType(Collections.singleton(sv),
CrosswalkVisualIDRegistry.getType(DateRecognizerEditPart.VISUAL_ID));
- result.addAll(createNavigatorItems(connectedViews, parentElement, false));
- connectedViews = getChildrenByType(Collections.singleton(sv),
- CrosswalkVisualIDRegistry.getType(MetadataBlockMetadataBlockMappingCompartment3EditPart.VISUAL_ID));
- connectedViews = getChildrenByType(connectedViews,
+ target.addChildren(createNavigatorItems(connectedViews, target, true));
+ connectedViews = getLinksTargetByType(Collections.singleton(sv),
CrosswalkVisualIDRegistry.getType(TextEditPart.VISUAL_ID));
- result.addAll(createNavigatorItems(connectedViews, parentElement, false));
- connectedViews = getChildrenByType(Collections.singleton(sv),
- CrosswalkVisualIDRegistry.getType(MetadataBlockMetadataBlockMappingCompartment3EditPart.VISUAL_ID));
- connectedViews = getChildrenByType(connectedViews,
+ target.addChildren(createNavigatorItems(connectedViews, target, true));
+ connectedViews = getLinksTargetByType(Collections.singleton(sv),
CrosswalkVisualIDRegistry.getType(TrimWhitespaceEditPart.VISUAL_ID));
- result.addAll(createNavigatorItems(connectedViews, parentElement, false));
- connectedViews = getChildrenByType(Collections.singleton(sv),
- CrosswalkVisualIDRegistry.getType(MetadataBlockMetadataBlockMappingCompartment3EditPart.VISUAL_ID));
- connectedViews = getChildrenByType(connectedViews,
- CrosswalkVisualIDRegistry.getType(MappedElementEditPart.VISUAL_ID));
- result.addAll(createNavigatorItems(connectedViews, parentElement, false));
- connectedViews = getChildrenByType(Collections.singleton(sv),
- CrosswalkVisualIDRegistry
- .getType(MetadataBlockMetadataBlockInputFieldsCompartment3EditPart.VISUAL_ID));
- connectedViews = getChildrenByType(connectedViews,
+ target.addChildren(createNavigatorItems(connectedViews, target, true));
+ connectedViews = getLinksTargetByType(Collections.singleton(sv),
CrosswalkVisualIDRegistry.getType(TextInputFieldEditPart.VISUAL_ID));
- result.addAll(createNavigatorItems(connectedViews, parentElement, false));
- connectedViews = getChildrenByType(Collections.singleton(sv),
- CrosswalkVisualIDRegistry.getType(MetadataBlockMetadataBlockMappingCompartment3EditPart.VISUAL_ID));
- connectedViews = getChildrenByType(connectedViews,
+ target.addChildren(createNavigatorItems(connectedViews, target, true));
+ connectedViews = getLinksTargetByType(Collections.singleton(sv),
CrosswalkVisualIDRegistry.getType(CurrentDateEditPart.VISUAL_ID));
- result.addAll(createNavigatorItems(connectedViews, parentElement, false));
- connectedViews = getChildrenByType(Collections.singleton(sv),
- CrosswalkVisualIDRegistry.getType(MetadataBlockMetadataBlockMappingCompartment3EditPart.VISUAL_ID));
- connectedViews = getChildrenByType(connectedViews,
+ target.addChildren(createNavigatorItems(connectedViews, target, true));
+ connectedViews = getLinksTargetByType(Collections.singleton(sv),
CrosswalkVisualIDRegistry.getType(CurrentUsernameEditPart.VISUAL_ID));
- result.addAll(createNavigatorItems(connectedViews, parentElement, false));
- connectedViews = getChildrenByType(Collections.singleton(sv),
- CrosswalkVisualIDRegistry
- .getType(MetadataBlockMetadataBlockInputFieldsCompartment3EditPart.VISUAL_ID));
- connectedViews = getChildrenByType(connectedViews,
+ target.addChildren(createNavigatorItems(connectedViews, target, true));
+ connectedViews = getLinksTargetByType(Collections.singleton(sv),
CrosswalkVisualIDRegistry.getType(DateInputFieldEditPart.VISUAL_ID));
- result.addAll(createNavigatorItems(connectedViews, parentElement, false));
+ target.addChildren(createNavigatorItems(connectedViews, target, true));
+ connectedViews = getLinksSourceByType(Collections.singleton(sv),
+ CrosswalkVisualIDRegistry.getType(OriginalNameRecordMatcherEditPart.VISUAL_ID));
+ source.addChildren(createNavigatorItems(connectedViews, source, true));
+ connectedViews = getLinksSourceByType(Collections.singleton(sv),
+ CrosswalkVisualIDRegistry.getType(DateRecognizerEditPart.VISUAL_ID));
+ source.addChildren(createNavigatorItems(connectedViews, source, true));
+ connectedViews = getLinksSourceByType(Collections.singleton(sv),
+ CrosswalkVisualIDRegistry.getType(TrimWhitespaceEditPart.VISUAL_ID));
+ source.addChildren(createNavigatorItems(connectedViews, source, true));
+ connectedViews = getLinksSourceByType(Collections.singleton(sv),
+ CrosswalkVisualIDRegistry.getType(MappedAttributeEditPart.VISUAL_ID));
+ source.addChildren(createNavigatorItems(connectedViews, source, true));
+ connectedViews = getLinksSourceByType(Collections.singleton(sv),
+ CrosswalkVisualIDRegistry.getType(TextInputFieldEditPart.VISUAL_ID));
+ source.addChildren(createNavigatorItems(connectedViews, source, true));
+ connectedViews = getLinksSourceByType(Collections.singleton(sv),
+ CrosswalkVisualIDRegistry.getType(DateInputFieldEditPart.VISUAL_ID));
+ source.addChildren(createNavigatorItems(connectedViews, source, true));
+ if (!target.isEmpty()) {
+ result.add(target);
+ }
+ if (!source.isEmpty()) {
+ result.add(source);
+ }
return result.toArray();
}
- case DateRecognizerEditPart.VISUAL_ID: {
+ case TrimWhitespaceEditPart.VISUAL_ID: {
LinkedList<CrosswalkAbstractNavigatorItem> result = new LinkedList<CrosswalkAbstractNavigatorItem>();
Node sv = (Node) view;
CrosswalkNavigatorGroup incominglinks = new CrosswalkNavigatorGroup(
- Messages.NavigatorGroupName_DateRecognizer_3004_incominglinks,
+ Messages.NavigatorGroupName_TrimWhitespace_3006_incominglinks,
"icons/incomingLinksNavigatorGroup.gif", parentElement); //$NON-NLS-1$
CrosswalkNavigatorGroup outgoinglinks = new CrosswalkNavigatorGroup(
- Messages.NavigatorGroupName_DateRecognizer_3004_outgoinglinks,
+ Messages.NavigatorGroupName_TrimWhitespace_3006_outgoinglinks,
"icons/outgoingLinksNavigatorGroup.gif", parentElement); //$NON-NLS-1$
Collection<View> connectedViews;
connectedViews = getIncomingLinksByType(Collections.singleton(sv),
@@ -419,28 +398,78 @@ public void init(ICommonContentExtensionSite aConfig) {
return result.toArray();
}
- case TrimWhitespaceEditPart.VISUAL_ID: {
+ case TabbedDataFieldEditPart.VISUAL_ID: {
LinkedList<CrosswalkAbstractNavigatorItem> result = new LinkedList<CrosswalkAbstractNavigatorItem>();
Node sv = (Node) view;
CrosswalkNavigatorGroup incominglinks = new CrosswalkNavigatorGroup(
- Messages.NavigatorGroupName_TrimWhitespace_3006_incominglinks,
+ Messages.NavigatorGroupName_TabbedDataField_3002_incominglinks,
"icons/incomingLinksNavigatorGroup.gif", parentElement); //$NON-NLS-1$
- CrosswalkNavigatorGroup outgoinglinks = new CrosswalkNavigatorGroup(
- Messages.NavigatorGroupName_TrimWhitespace_3006_outgoinglinks,
- "icons/outgoingLinksNavigatorGroup.gif", parentElement); //$NON-NLS-1$
Collection<View> connectedViews;
connectedViews = getIncomingLinksByType(Collections.singleton(sv),
CrosswalkVisualIDRegistry.getType(InputOutputEditPart.VISUAL_ID));
incominglinks.addChildren(createNavigatorItems(connectedViews, incominglinks, true));
- connectedViews = getOutgoingLinksByType(Collections.singleton(sv),
- CrosswalkVisualIDRegistry.getType(InputOutputEditPart.VISUAL_ID));
- outgoinglinks.addChildren(createNavigatorItems(connectedViews, outgoinglinks, true));
if (!incominglinks.isEmpty()) {
result.add(incominglinks);
}
- if (!outgoinglinks.isEmpty()) {
- result.add(outgoinglinks);
- }
+ return result.toArray();
+ }
+
+ case DelimitedFileEditPart.VISUAL_ID: {
+ LinkedList<CrosswalkAbstractNavigatorItem> result = new LinkedList<CrosswalkAbstractNavigatorItem>();
+ Node sv = (Node) view;
+ Collection<View> connectedViews;
+ connectedViews = getChildrenByType(Collections.singleton(sv),
+ CrosswalkVisualIDRegistry.getType(DelimitedFileDataFieldCompartmentEditPart.VISUAL_ID));
+ connectedViews = getChildrenByType(connectedViews,
+ CrosswalkVisualIDRegistry.getType(TabbedDataFieldEditPart.VISUAL_ID));
+ result.addAll(createNavigatorItems(connectedViews, parentElement, false));
+ return result.toArray();
+ }
+
+ case MetadataBlockEditPart.VISUAL_ID: {
+ LinkedList<CrosswalkAbstractNavigatorItem> result = new LinkedList<CrosswalkAbstractNavigatorItem>();
+ Node sv = (Node) view;
+ Collection<View> connectedViews;
+ connectedViews = getChildrenByType(Collections.singleton(sv),
+ CrosswalkVisualIDRegistry.getType(MetadataBlockMetadataBlockMappingCompartmentEditPart.VISUAL_ID));
+ connectedViews = getChildrenByType(connectedViews,
+ CrosswalkVisualIDRegistry.getType(DateRecognizerEditPart.VISUAL_ID));
+ result.addAll(createNavigatorItems(connectedViews, parentElement, false));
+ connectedViews = getChildrenByType(Collections.singleton(sv),
+ CrosswalkVisualIDRegistry.getType(MetadataBlockMetadataBlockMappingCompartmentEditPart.VISUAL_ID));
+ connectedViews = getChildrenByType(connectedViews,
+ CrosswalkVisualIDRegistry.getType(TextEditPart.VISUAL_ID));
+ result.addAll(createNavigatorItems(connectedViews, parentElement, false));
+ connectedViews = getChildrenByType(Collections.singleton(sv),
+ CrosswalkVisualIDRegistry.getType(MetadataBlockMetadataBlockMappingCompartmentEditPart.VISUAL_ID));
+ connectedViews = getChildrenByType(connectedViews,
+ CrosswalkVisualIDRegistry.getType(TrimWhitespaceEditPart.VISUAL_ID));
+ result.addAll(createNavigatorItems(connectedViews, parentElement, false));
+ connectedViews = getChildrenByType(Collections.singleton(sv),
+ CrosswalkVisualIDRegistry.getType(MetadataBlockMetadataBlockMappingCompartmentEditPart.VISUAL_ID));
+ connectedViews = getChildrenByType(connectedViews,
+ CrosswalkVisualIDRegistry.getType(MappedElementEditPart.VISUAL_ID));
+ result.addAll(createNavigatorItems(connectedViews, parentElement, false));
+ connectedViews = getChildrenByType(Collections.singleton(sv),
+ CrosswalkVisualIDRegistry.getType(MetadataBlockMetadataBlockInputFieldsCompartmentEditPart.VISUAL_ID));
+ connectedViews = getChildrenByType(connectedViews,
+ CrosswalkVisualIDRegistry.getType(TextInputFieldEditPart.VISUAL_ID));
+ result.addAll(createNavigatorItems(connectedViews, parentElement, false));
+ connectedViews = getChildrenByType(Collections.singleton(sv),
+ CrosswalkVisualIDRegistry.getType(MetadataBlockMetadataBlockMappingCompartmentEditPart.VISUAL_ID));
+ connectedViews = getChildrenByType(connectedViews,
+ CrosswalkVisualIDRegistry.getType(CurrentDateEditPart.VISUAL_ID));
+ result.addAll(createNavigatorItems(connectedViews, parentElement, false));
+ connectedViews = getChildrenByType(Collections.singleton(sv),
+ CrosswalkVisualIDRegistry.getType(MetadataBlockMetadataBlockMappingCompartmentEditPart.VISUAL_ID));
+ connectedViews = getChildrenByType(connectedViews,
+ CrosswalkVisualIDRegistry.getType(CurrentUsernameEditPart.VISUAL_ID));
+ result.addAll(createNavigatorItems(connectedViews, parentElement, false));
+ connectedViews = getChildrenByType(Collections.singleton(sv),
+ CrosswalkVisualIDRegistry.getType(MetadataBlockMetadataBlockInputFieldsCompartmentEditPart.VISUAL_ID));
+ connectedViews = getChildrenByType(connectedViews,
+ CrosswalkVisualIDRegistry.getType(DateInputFieldEditPart.VISUAL_ID));
+ result.addAll(createNavigatorItems(connectedViews, parentElement, false));
return result.toArray();
}
@@ -492,261 +521,199 @@ public void init(ICommonContentExtensionSite aConfig) {
return result.toArray();
}
- case CurrentDateEditPart.VISUAL_ID: {
+ case DictionaryEditPart.VISUAL_ID: {
LinkedList<CrosswalkAbstractNavigatorItem> result = new LinkedList<CrosswalkAbstractNavigatorItem>();
Node sv = (Node) view;
- CrosswalkNavigatorGroup incominglinks = new CrosswalkNavigatorGroup(
- Messages.NavigatorGroupName_CurrentDate_3021_incominglinks,
- "icons/incomingLinksNavigatorGroup.gif", parentElement); //$NON-NLS-1$
Collection<View> connectedViews;
- connectedViews = getIncomingLinksByType(Collections.singleton(sv),
+ connectedViews = getChildrenByType(Collections.singleton(sv),
+ CrosswalkVisualIDRegistry.getType(DictionaryModelBoxCompartmentEditPart.VISUAL_ID));
+ connectedViews = getChildrenByType(connectedViews,
+ CrosswalkVisualIDRegistry.getType(MetadataBlockEditPart.VISUAL_ID));
+ result.addAll(createNavigatorItems(connectedViews, parentElement, false));
+ return result.toArray();
+ }
+
+ case OriginalNameRecordMatcherEditPart.VISUAL_ID: {
+ LinkedList<CrosswalkAbstractNavigatorItem> result = new LinkedList<CrosswalkAbstractNavigatorItem>();
+ Node sv = (Node) view;
+ CrosswalkNavigatorGroup outgoinglinks = new CrosswalkNavigatorGroup(
+ Messages.NavigatorGroupName_OriginalNameRecordMatcher_3003_outgoinglinks,
+ "icons/outgoingLinksNavigatorGroup.gif", parentElement); //$NON-NLS-1$
+ Collection<View> connectedViews;
+ connectedViews = getOutgoingLinksByType(Collections.singleton(sv),
CrosswalkVisualIDRegistry.getType(InputOutputEditPart.VISUAL_ID));
- incominglinks.addChildren(createNavigatorItems(connectedViews, incominglinks, true));
- if (!incominglinks.isEmpty()) {
- result.add(incominglinks);
+ outgoinglinks.addChildren(createNavigatorItems(connectedViews, outgoinglinks, true));
+ if (!outgoinglinks.isEmpty()) {
+ result.add(outgoinglinks);
}
return result.toArray();
}
- case InputOutputEditPart.VISUAL_ID: {
+ case EditingContainerEditPart.VISUAL_ID: {
LinkedList<CrosswalkAbstractNavigatorItem> result = new LinkedList<CrosswalkAbstractNavigatorItem>();
- Edge sv = (Edge) view;
- CrosswalkNavigatorGroup target = new CrosswalkNavigatorGroup(
- Messages.NavigatorGroupName_InputOutput_4001_target,
- "icons/linkTargetNavigatorGroup.gif", parentElement); //$NON-NLS-1$
- CrosswalkNavigatorGroup source = new CrosswalkNavigatorGroup(
- Messages.NavigatorGroupName_InputOutput_4001_source,
- "icons/linkSourceNavigatorGroup.gif", parentElement); //$NON-NLS-1$
+ Diagram sv = (Diagram) view;
+ CrosswalkNavigatorGroup links = new CrosswalkNavigatorGroup(
+ Messages.NavigatorGroupName_EditingContainer_1000_links,
+ "icons/linksNavigatorGroup.gif", parentElement); //$NON-NLS-1$
Collection<View> connectedViews;
- connectedViews = getLinksTargetByType(Collections.singleton(sv),
- CrosswalkVisualIDRegistry.getType(TabbedDataFieldEditPart.VISUAL_ID));
- target.addChildren(createNavigatorItems(connectedViews, target, true));
- connectedViews = getLinksTargetByType(Collections.singleton(sv),
- CrosswalkVisualIDRegistry.getType(DateRecognizerEditPart.VISUAL_ID));
- target.addChildren(createNavigatorItems(connectedViews, target, true));
- connectedViews = getLinksTargetByType(Collections.singleton(sv),
- CrosswalkVisualIDRegistry.getType(TextEditPart.VISUAL_ID));
- target.addChildren(createNavigatorItems(connectedViews, target, true));
- connectedViews = getLinksTargetByType(Collections.singleton(sv),
- CrosswalkVisualIDRegistry.getType(TrimWhitespaceEditPart.VISUAL_ID));
- target.addChildren(createNavigatorItems(connectedViews, target, true));
- connectedViews = getLinksTargetByType(Collections.singleton(sv),
- CrosswalkVisualIDRegistry.getType(TextInputFieldEditPart.VISUAL_ID));
- target.addChildren(createNavigatorItems(connectedViews, target, true));
- connectedViews = getLinksTargetByType(Collections.singleton(sv),
- CrosswalkVisualIDRegistry.getType(CurrentDateEditPart.VISUAL_ID));
- target.addChildren(createNavigatorItems(connectedViews, target, true));
- connectedViews = getLinksTargetByType(Collections.singleton(sv),
- CrosswalkVisualIDRegistry.getType(CurrentUsernameEditPart.VISUAL_ID));
- target.addChildren(createNavigatorItems(connectedViews, target, true));
- connectedViews = getLinksTargetByType(Collections.singleton(sv),
- CrosswalkVisualIDRegistry.getType(DateInputFieldEditPart.VISUAL_ID));
- target.addChildren(createNavigatorItems(connectedViews, target, true));
- connectedViews = getLinksSourceByType(Collections.singleton(sv),
- CrosswalkVisualIDRegistry.getType(OriginalNameRecordMatcherEditPart.VISUAL_ID));
- source.addChildren(createNavigatorItems(connectedViews, source, true));
- connectedViews = getLinksSourceByType(Collections.singleton(sv),
- CrosswalkVisualIDRegistry.getType(DateRecognizerEditPart.VISUAL_ID));
- source.addChildren(createNavigatorItems(connectedViews, source, true));
- connectedViews = getLinksSourceByType(Collections.singleton(sv),
- CrosswalkVisualIDRegistry.getType(TrimWhitespaceEditPart.VISUAL_ID));
- source.addChildren(createNavigatorItems(connectedViews, source, true));
- connectedViews = getLinksSourceByType(Collections.singleton(sv),
- CrosswalkVisualIDRegistry.getType(MappedAttributeEditPart.VISUAL_ID));
- source.addChildren(createNavigatorItems(connectedViews, source, true));
- connectedViews = getLinksSourceByType(Collections.singleton(sv),
- CrosswalkVisualIDRegistry.getType(TextInputFieldEditPart.VISUAL_ID));
- source.addChildren(createNavigatorItems(connectedViews, source, true));
- connectedViews = getLinksSourceByType(Collections.singleton(sv),
- CrosswalkVisualIDRegistry.getType(DateInputFieldEditPart.VISUAL_ID));
- source.addChildren(createNavigatorItems(connectedViews, source, true));
- if (!target.isEmpty()) {
- result.add(target);
+ connectedViews = getChildrenByType(Collections.singleton(sv),
+ CrosswalkVisualIDRegistry.getType(CrossWalkEditPart.VISUAL_ID));
+ result.addAll(createNavigatorItems(connectedViews, parentElement, false));
+ connectedViews = getChildrenByType(Collections.singleton(sv),
+ CrosswalkVisualIDRegistry.getType(DictionaryEditPart.VISUAL_ID));
+ result.addAll(createNavigatorItems(connectedViews, parentElement, false));
+ connectedViews = getChildrenByType(Collections.singleton(sv),
+ CrosswalkVisualIDRegistry.getType(FormEditPart.VISUAL_ID));
+ result.addAll(createNavigatorItems(connectedViews, parentElement, false));
+ connectedViews = getDiagramLinksByType(Collections.singleton(sv),
+ CrosswalkVisualIDRegistry.getType(InputOutputEditPart.VISUAL_ID));
+ links.addChildren(createNavigatorItems(connectedViews, links, false));
+ if (!links.isEmpty()) {
+ result.add(links);
}
- if (!source.isEmpty()) {
- result.add(source);
+ return result.toArray();
+ }
+
+ case MappedAttributeEditPart.VISUAL_ID: {
+ LinkedList<CrosswalkAbstractNavigatorItem> result = new LinkedList<CrosswalkAbstractNavigatorItem>();
+ Node sv = (Node) view;
+ CrosswalkNavigatorGroup outgoinglinks = new CrosswalkNavigatorGroup(
+ Messages.NavigatorGroupName_MappedAttribute_3009_outgoinglinks,
+ "icons/outgoingLinksNavigatorGroup.gif", parentElement); //$NON-NLS-1$
+ Collection<View> connectedViews;
+ connectedViews = getOutgoingLinksByType(Collections.singleton(sv),
+ CrosswalkVisualIDRegistry.getType(InputOutputEditPart.VISUAL_ID));
+ outgoinglinks.addChildren(createNavigatorItems(connectedViews, outgoinglinks, true));
+ if (!outgoinglinks.isEmpty()) {
+ result.add(outgoinglinks);
}
return result.toArray();
}
- case CurrentUsernameEditPart.VISUAL_ID: {
+ case DateRecognizerEditPart.VISUAL_ID: {
LinkedList<CrosswalkAbstractNavigatorItem> result = new LinkedList<CrosswalkAbstractNavigatorItem>();
Node sv = (Node) view;
CrosswalkNavigatorGroup incominglinks = new CrosswalkNavigatorGroup(
- Messages.NavigatorGroupName_CurrentUsername_3022_incominglinks,
+ Messages.NavigatorGroupName_DateRecognizer_3004_incominglinks,
"icons/incomingLinksNavigatorGroup.gif", parentElement); //$NON-NLS-1$
+ CrosswalkNavigatorGroup outgoinglinks = new CrosswalkNavigatorGroup(
+ Messages.NavigatorGroupName_DateRecognizer_3004_outgoinglinks,
+ "icons/outgoingLinksNavigatorGroup.gif", parentElement); //$NON-NLS-1$
Collection<View> connectedViews;
connectedViews = getIncomingLinksByType(Collections.singleton(sv),
CrosswalkVisualIDRegistry.getType(InputOutputEditPart.VISUAL_ID));
incominglinks.addChildren(createNavigatorItems(connectedViews, incominglinks, true));
+ connectedViews = getOutgoingLinksByType(Collections.singleton(sv),
+ CrosswalkVisualIDRegistry.getType(InputOutputEditPart.VISUAL_ID));
+ outgoinglinks.addChildren(createNavigatorItems(connectedViews, outgoinglinks, true));
if (!incominglinks.isEmpty()) {
result.add(incominglinks);
}
+ if (!outgoinglinks.isEmpty()) {
+ result.add(outgoinglinks);
+ }
return result.toArray();
}
- case MetadataBlock2EditPart.VISUAL_ID: {
+ case MetadataBlock3EditPart.VISUAL_ID: {
LinkedList<CrosswalkAbstractNavigatorItem> result = new LinkedList<CrosswalkAbstractNavigatorItem>();
Node sv = (Node) view;
Collection<View> connectedViews;
connectedViews = getChildrenByType(Collections.singleton(sv),
- CrosswalkVisualIDRegistry.getType(MetadataBlockMetadataBlockMappingCompartment2EditPart.VISUAL_ID));
+ CrosswalkVisualIDRegistry.getType(MetadataBlockMetadataBlockMappingCompartment3EditPart.VISUAL_ID));
connectedViews = getChildrenByType(connectedViews,
CrosswalkVisualIDRegistry.getType(DateRecognizerEditPart.VISUAL_ID));
result.addAll(createNavigatorItems(connectedViews, parentElement, false));
connectedViews = getChildrenByType(Collections.singleton(sv),
- CrosswalkVisualIDRegistry.getType(MetadataBlockMetadataBlockMappingCompartment2EditPart.VISUAL_ID));
+ CrosswalkVisualIDRegistry.getType(MetadataBlockMetadataBlockMappingCompartment3EditPart.VISUAL_ID));
connectedViews = getChildrenByType(connectedViews,
CrosswalkVisualIDRegistry.getType(TextEditPart.VISUAL_ID));
result.addAll(createNavigatorItems(connectedViews, parentElement, false));
connectedViews = getChildrenByType(Collections.singleton(sv),
- CrosswalkVisualIDRegistry.getType(MetadataBlockMetadataBlockMappingCompartment2EditPart.VISUAL_ID));
+ CrosswalkVisualIDRegistry.getType(MetadataBlockMetadataBlockMappingCompartment3EditPart.VISUAL_ID));
connectedViews = getChildrenByType(connectedViews,
CrosswalkVisualIDRegistry.getType(TrimWhitespaceEditPart.VISUAL_ID));
result.addAll(createNavigatorItems(connectedViews, parentElement, false));
connectedViews = getChildrenByType(Collections.singleton(sv),
- CrosswalkVisualIDRegistry.getType(MetadataBlockMetadataBlockMappingCompartment2EditPart.VISUAL_ID));
+ CrosswalkVisualIDRegistry.getType(MetadataBlockMetadataBlockMappingCompartment3EditPart.VISUAL_ID));
connectedViews = getChildrenByType(connectedViews,
CrosswalkVisualIDRegistry.getType(MappedElementEditPart.VISUAL_ID));
result.addAll(createNavigatorItems(connectedViews, parentElement, false));
connectedViews = getChildrenByType(Collections.singleton(sv),
CrosswalkVisualIDRegistry
- .getType(MetadataBlockMetadataBlockInputFieldsCompartment2EditPart.VISUAL_ID));
+ .getType(MetadataBlockMetadataBlockInputFieldsCompartment3EditPart.VISUAL_ID));
connectedViews = getChildrenByType(connectedViews,
CrosswalkVisualIDRegistry.getType(TextInputFieldEditPart.VISUAL_ID));
result.addAll(createNavigatorItems(connectedViews, parentElement, false));
connectedViews = getChildrenByType(Collections.singleton(sv),
- CrosswalkVisualIDRegistry.getType(MetadataBlockMetadataBlockMappingCompartment2EditPart.VISUAL_ID));
+ CrosswalkVisualIDRegistry.getType(MetadataBlockMetadataBlockMappingCompartment3EditPart.VISUAL_ID));
connectedViews = getChildrenByType(connectedViews,
CrosswalkVisualIDRegistry.getType(CurrentDateEditPart.VISUAL_ID));
result.addAll(createNavigatorItems(connectedViews, parentElement, false));
connectedViews = getChildrenByType(Collections.singleton(sv),
- CrosswalkVisualIDRegistry.getType(MetadataBlockMetadataBlockMappingCompartment2EditPart.VISUAL_ID));
+ CrosswalkVisualIDRegistry.getType(MetadataBlockMetadataBlockMappingCompartment3EditPart.VISUAL_ID));
connectedViews = getChildrenByType(connectedViews,
CrosswalkVisualIDRegistry.getType(CurrentUsernameEditPart.VISUAL_ID));
result.addAll(createNavigatorItems(connectedViews, parentElement, false));
connectedViews = getChildrenByType(Collections.singleton(sv),
CrosswalkVisualIDRegistry
- .getType(MetadataBlockMetadataBlockInputFieldsCompartment2EditPart.VISUAL_ID));
+ .getType(MetadataBlockMetadataBlockInputFieldsCompartment3EditPart.VISUAL_ID));
connectedViews = getChildrenByType(connectedViews,
CrosswalkVisualIDRegistry.getType(DateInputFieldEditPart.VISUAL_ID));
result.addAll(createNavigatorItems(connectedViews, parentElement, false));
return result.toArray();
}
- case FormEditPart.VISUAL_ID: {
+ case CurrentUsernameEditPart.VISUAL_ID: {
LinkedList<CrosswalkAbstractNavigatorItem> result = new LinkedList<CrosswalkAbstractNavigatorItem>();
Node sv = (Node) view;
+ CrosswalkNavigatorGroup incominglinks = new CrosswalkNavigatorGroup(
+ Messages.NavigatorGroupName_CurrentUsername_3022_incominglinks,
+ "icons/incomingLinksNavigatorGroup.gif", parentElement); //$NON-NLS-1$
Collection<View> connectedViews;
- connectedViews = getChildrenByType(Collections.singleton(sv),
- CrosswalkVisualIDRegistry.getType(FormModelBoxCompartmentEditPart.VISUAL_ID));
- connectedViews = getChildrenByType(connectedViews,
- CrosswalkVisualIDRegistry.getType(MetadataBlock3EditPart.VISUAL_ID));
- result.addAll(createNavigatorItems(connectedViews, parentElement, false));
- connectedViews = getChildrenByType(Collections.singleton(sv),
- CrosswalkVisualIDRegistry.getType(FormModelBoxCompartmentEditPart.VISUAL_ID));
- connectedViews = getChildrenByType(connectedViews,
- CrosswalkVisualIDRegistry.getType(ParagraphEditPart.VISUAL_ID));
- result.addAll(createNavigatorItems(connectedViews, parentElement, false));
+ connectedViews = getIncomingLinksByType(Collections.singleton(sv),
+ CrosswalkVisualIDRegistry.getType(InputOutputEditPart.VISUAL_ID));
+ incominglinks.addChildren(createNavigatorItems(connectedViews, incominglinks, true));
+ if (!incominglinks.isEmpty()) {
+ result.add(incominglinks);
+ }
return result.toArray();
}
- case MetadataBlockEditPart.VISUAL_ID: {
+ case FormEditPart.VISUAL_ID: {
LinkedList<CrosswalkAbstractNavigatorItem> result = new LinkedList<CrosswalkAbstractNavigatorItem>();
Node sv = (Node) view;
Collection<View> connectedViews;
connectedViews = getChildrenByType(Collections.singleton(sv),
- CrosswalkVisualIDRegistry.getType(MetadataBlockMetadataBlockMappingCompartmentEditPart.VISUAL_ID));
- connectedViews = getChildrenByType(connectedViews,
- CrosswalkVisualIDRegistry.getType(DateRecognizerEditPart.VISUAL_ID));
- result.addAll(createNavigatorItems(connectedViews, parentElement, false));
- connectedViews = getChildrenByType(Collections.singleton(sv),
- CrosswalkVisualIDRegistry.getType(MetadataBlockMetadataBlockMappingCompartmentEditPart.VISUAL_ID));
- connectedViews = getChildrenByType(connectedViews,
- CrosswalkVisualIDRegistry.getType(TextEditPart.VISUAL_ID));
- result.addAll(createNavigatorItems(connectedViews, parentElement, false));
- connectedViews = getChildrenByType(Collections.singleton(sv),
- CrosswalkVisualIDRegistry.getType(MetadataBlockMetadataBlockMappingCompartmentEditPart.VISUAL_ID));
- connectedViews = getChildrenByType(connectedViews,
- CrosswalkVisualIDRegistry.getType(TrimWhitespaceEditPart.VISUAL_ID));
- result.addAll(createNavigatorItems(connectedViews, parentElement, false));
- connectedViews = getChildrenByType(Collections.singleton(sv),
- CrosswalkVisualIDRegistry.getType(MetadataBlockMetadataBlockMappingCompartmentEditPart.VISUAL_ID));
- connectedViews = getChildrenByType(connectedViews,
- CrosswalkVisualIDRegistry.getType(MappedElementEditPart.VISUAL_ID));
- result.addAll(createNavigatorItems(connectedViews, parentElement, false));
- connectedViews = getChildrenByType(Collections.singleton(sv),
- CrosswalkVisualIDRegistry.getType(MetadataBlockMetadataBlockInputFieldsCompartmentEditPart.VISUAL_ID));
- connectedViews = getChildrenByType(connectedViews,
- CrosswalkVisualIDRegistry.getType(TextInputFieldEditPart.VISUAL_ID));
- result.addAll(createNavigatorItems(connectedViews, parentElement, false));
- connectedViews = getChildrenByType(Collections.singleton(sv),
- CrosswalkVisualIDRegistry.getType(MetadataBlockMetadataBlockMappingCompartmentEditPart.VISUAL_ID));
- connectedViews = getChildrenByType(connectedViews,
- CrosswalkVisualIDRegistry.getType(CurrentDateEditPart.VISUAL_ID));
- result.addAll(createNavigatorItems(connectedViews, parentElement, false));
- connectedViews = getChildrenByType(Collections.singleton(sv),
- CrosswalkVisualIDRegistry.getType(MetadataBlockMetadataBlockMappingCompartmentEditPart.VISUAL_ID));
+ CrosswalkVisualIDRegistry.getType(FormModelBoxCompartmentEditPart.VISUAL_ID));
connectedViews = getChildrenByType(connectedViews,
- CrosswalkVisualIDRegistry.getType(CurrentUsernameEditPart.VISUAL_ID));
+ CrosswalkVisualIDRegistry.getType(MetadataBlock3EditPart.VISUAL_ID));
result.addAll(createNavigatorItems(connectedViews, parentElement, false));
connectedViews = getChildrenByType(Collections.singleton(sv),
- CrosswalkVisualIDRegistry.getType(MetadataBlockMetadataBlockInputFieldsCompartmentEditPart.VISUAL_ID));
+ CrosswalkVisualIDRegistry.getType(FormModelBoxCompartmentEditPart.VISUAL_ID));
connectedViews = getChildrenByType(connectedViews,
- CrosswalkVisualIDRegistry.getType(DateInputFieldEditPart.VISUAL_ID));
+ CrosswalkVisualIDRegistry.getType(ParagraphEditPart.VISUAL_ID));
result.addAll(createNavigatorItems(connectedViews, parentElement, false));
return result.toArray();
}
- case MappedAttributeEditPart.VISUAL_ID: {
- LinkedList<CrosswalkAbstractNavigatorItem> result = new LinkedList<CrosswalkAbstractNavigatorItem>();
- Node sv = (Node) view;
- CrosswalkNavigatorGroup outgoinglinks = new CrosswalkNavigatorGroup(
- Messages.NavigatorGroupName_MappedAttribute_3009_outgoinglinks,
- "icons/outgoingLinksNavigatorGroup.gif", parentElement); //$NON-NLS-1$
- Collection<View> connectedViews;
- connectedViews = getOutgoingLinksByType(Collections.singleton(sv),
- CrosswalkVisualIDRegistry.getType(InputOutputEditPart.VISUAL_ID));
- outgoinglinks.addChildren(createNavigatorItems(connectedViews, outgoinglinks, true));
- if (!outgoinglinks.isEmpty()) {
- result.add(outgoinglinks);
- }
- return result.toArray();
- }
-
- case MappedElement2EditPart.VISUAL_ID: {
+ case MappedElementEditPart.VISUAL_ID: {
LinkedList<CrosswalkAbstractNavigatorItem> result = new LinkedList<CrosswalkAbstractNavigatorItem>();
Node sv = (Node) view;
Collection<View> connectedViews;
connectedViews = getChildrenByType(Collections.singleton(sv),
- CrosswalkVisualIDRegistry.getType(MappedElementChildElementsCompartment2EditPart.VISUAL_ID));
+ CrosswalkVisualIDRegistry.getType(MappedElementChildElementsCompartmentEditPart.VISUAL_ID));
connectedViews = getChildrenByType(connectedViews,
CrosswalkVisualIDRegistry.getType(MappedElement2EditPart.VISUAL_ID));
result.addAll(createNavigatorItems(connectedViews, parentElement, false));
connectedViews = getChildrenByType(Collections.singleton(sv),
- CrosswalkVisualIDRegistry.getType(MappedElementChildElementsCompartment2EditPart.VISUAL_ID));
+ CrosswalkVisualIDRegistry.getType(MappedElementChildElementsCompartmentEditPart.VISUAL_ID));
connectedViews = getChildrenByType(connectedViews,
CrosswalkVisualIDRegistry.getType(MappedAttributeEditPart.VISUAL_ID));
result.addAll(createNavigatorItems(connectedViews, parentElement, false));
return result.toArray();
}
- case TextEditPart.VISUAL_ID: {
- LinkedList<CrosswalkAbstractNavigatorItem> result = new LinkedList<CrosswalkAbstractNavigatorItem>();
- Node sv = (Node) view;
- CrosswalkNavigatorGroup incominglinks = new CrosswalkNavigatorGroup(
- Messages.NavigatorGroupName_Text_3005_incominglinks,
- "icons/incomingLinksNavigatorGroup.gif", parentElement); //$NON-NLS-1$
- Collection<View> connectedViews;
- connectedViews = getIncomingLinksByType(Collections.singleton(sv),
- CrosswalkVisualIDRegistry.getType(InputOutputEditPart.VISUAL_ID));
- incominglinks.addChildren(createNavigatorItems(connectedViews, incominglinks, true));
- if (!incominglinks.isEmpty()) {
- result.add(incominglinks);
- }
- return result.toArray();
- }
-
case DateInputFieldEditPart.VISUAL_ID: {
LinkedList<CrosswalkAbstractNavigatorItem> result = new LinkedList<CrosswalkAbstractNavigatorItem>();
Node sv = (Node) view;
@@ -772,27 +739,60 @@ public void init(ICommonContentExtensionSite aConfig) {
return result.toArray();
}
- case OriginalNameRecordMatcherEditPart.VISUAL_ID: {
+ case MetadataBlock2EditPart.VISUAL_ID: {
LinkedList<CrosswalkAbstractNavigatorItem> result = new LinkedList<CrosswalkAbstractNavigatorItem>();
Node sv = (Node) view;
- CrosswalkNavigatorGroup outgoinglinks = new CrosswalkNavigatorGroup(
- Messages.NavigatorGroupName_OriginalNameRecordMatcher_3003_outgoinglinks,
- "icons/outgoingLinksNavigatorGroup.gif", parentElement); //$NON-NLS-1$
Collection<View> connectedViews;
- connectedViews = getOutgoingLinksByType(Collections.singleton(sv),
- CrosswalkVisualIDRegistry.getType(InputOutputEditPart.VISUAL_ID));
- outgoinglinks.addChildren(createNavigatorItems(connectedViews, outgoinglinks, true));
- if (!outgoinglinks.isEmpty()) {
- result.add(outgoinglinks);
- }
+ connectedViews = getChildrenByType(Collections.singleton(sv),
+ CrosswalkVisualIDRegistry.getType(MetadataBlockMetadataBlockMappingCompartment2EditPart.VISUAL_ID));
+ connectedViews = getChildrenByType(connectedViews,
+ CrosswalkVisualIDRegistry.getType(DateRecognizerEditPart.VISUAL_ID));
+ result.addAll(createNavigatorItems(connectedViews, parentElement, false));
+ connectedViews = getChildrenByType(Collections.singleton(sv),
+ CrosswalkVisualIDRegistry.getType(MetadataBlockMetadataBlockMappingCompartment2EditPart.VISUAL_ID));
+ connectedViews = getChildrenByType(connectedViews,
+ CrosswalkVisualIDRegistry.getType(TextEditPart.VISUAL_ID));
+ result.addAll(createNavigatorItems(connectedViews, parentElement, false));
+ connectedViews = getChildrenByType(Collections.singleton(sv),
+ CrosswalkVisualIDRegistry.getType(MetadataBlockMetadataBlockMappingCompartment2EditPart.VISUAL_ID));
+ connectedViews = getChildrenByType(connectedViews,
+ CrosswalkVisualIDRegistry.getType(TrimWhitespaceEditPart.VISUAL_ID));
+ result.addAll(createNavigatorItems(connectedViews, parentElement, false));
+ connectedViews = getChildrenByType(Collections.singleton(sv),
+ CrosswalkVisualIDRegistry.getType(MetadataBlockMetadataBlockMappingCompartment2EditPart.VISUAL_ID));
+ connectedViews = getChildrenByType(connectedViews,
+ CrosswalkVisualIDRegistry.getType(MappedElementEditPart.VISUAL_ID));
+ result.addAll(createNavigatorItems(connectedViews, parentElement, false));
+ connectedViews = getChildrenByType(Collections.singleton(sv),
+ CrosswalkVisualIDRegistry
+ .getType(MetadataBlockMetadataBlockInputFieldsCompartment2EditPart.VISUAL_ID));
+ connectedViews = getChildrenByType(connectedViews,
+ CrosswalkVisualIDRegistry.getType(TextInputFieldEditPart.VISUAL_ID));
+ result.addAll(createNavigatorItems(connectedViews, parentElement, false));
+ connectedViews = getChildrenByType(Collections.singleton(sv),
+ CrosswalkVisualIDRegistry.getType(MetadataBlockMetadataBlockMappingCompartment2EditPart.VISUAL_ID));
+ connectedViews = getChildrenByType(connectedViews,
+ CrosswalkVisualIDRegistry.getType(CurrentDateEditPart.VISUAL_ID));
+ result.addAll(createNavigatorItems(connectedViews, parentElement, false));
+ connectedViews = getChildrenByType(Collections.singleton(sv),
+ CrosswalkVisualIDRegistry.getType(MetadataBlockMetadataBlockMappingCompartment2EditPart.VISUAL_ID));
+ connectedViews = getChildrenByType(connectedViews,
+ CrosswalkVisualIDRegistry.getType(CurrentUsernameEditPart.VISUAL_ID));
+ result.addAll(createNavigatorItems(connectedViews, parentElement, false));
+ connectedViews = getChildrenByType(Collections.singleton(sv),
+ CrosswalkVisualIDRegistry
+ .getType(MetadataBlockMetadataBlockInputFieldsCompartment2EditPart.VISUAL_ID));
+ connectedViews = getChildrenByType(connectedViews,
+ CrosswalkVisualIDRegistry.getType(DateInputFieldEditPart.VISUAL_ID));
+ result.addAll(createNavigatorItems(connectedViews, parentElement, false));
return result.toArray();
}
- case TabbedDataFieldEditPart.VISUAL_ID: {
+ case CurrentDateEditPart.VISUAL_ID: {
LinkedList<CrosswalkAbstractNavigatorItem> result = new LinkedList<CrosswalkAbstractNavigatorItem>();
Node sv = (Node) view;
CrosswalkNavigatorGroup incominglinks = new CrosswalkNavigatorGroup(
- Messages.NavigatorGroupName_TabbedDataField_3002_incominglinks,
+ Messages.NavigatorGroupName_CurrentDate_3021_incominglinks,
"icons/incomingLinksNavigatorGroup.gif", parentElement); //$NON-NLS-1$
Collection<View> connectedViews;
connectedViews = getIncomingLinksByType(Collections.singleton(sv),
View
134 crosswalk-gmf.diagram/src/crosswalk/diagram/navigator/CrosswalkNavigatorLabelProvider.java
@@ -132,71 +132,71 @@ public Image getImage(Object element) {
*/
public Image getImage(View view) {
switch (CrosswalkVisualIDRegistry.getVisualID(view)) {
+ case TextEditPart.VISUAL_ID:
+ return getImage("Navigator?Node?http://lib.unc.edu/schemas/crosswalk?Text", CrosswalkElementTypes.Text_3005); //$NON-NLS-1$
+ case MappedElement2EditPart.VISUAL_ID:
+ return getImage(
+ "Navigator?Node?http://lib.unc.edu/schemas/crosswalk?MappedElement", CrosswalkElementTypes.MappedElement_3008); //$NON-NLS-1$
+ case InputOutputEditPart.VISUAL_ID:
+ return getImage(
+ "Navigator?Link?http://lib.unc.edu/schemas/crosswalk?Input?Output", CrosswalkElementTypes.InputOutput_4001); //$NON-NLS-1$
+ case TrimWhitespaceEditPart.VISUAL_ID:
+ return getImage(
+ "Navigator?Node?http://lib.unc.edu/schemas/crosswalk?TrimWhitespace", CrosswalkElementTypes.TrimWhitespace_3006); //$NON-NLS-1$
+ case TextInputFieldEditPart.VISUAL_ID:
+ return getImage(
+ "Navigator?Node?http://lib.unc.edu/schemas/crosswalk?TextInputField", CrosswalkElementTypes.TextInputField_3023); //$NON-NLS-1$
+ case TabbedDataFieldEditPart.VISUAL_ID:
+ return getImage(
+ "Navigator?Node?http://lib.unc.edu/schemas/crosswalk?TabbedDataField", CrosswalkElementTypes.TabbedDataField_3002); //$NON-NLS-1$
case DelimitedFileEditPart.VISUAL_ID:
return getImage(
"Navigator?Node?http://lib.unc.edu/schemas/crosswalk?DelimitedFile", CrosswalkElementTypes.DelimitedFile_3001); //$NON-NLS-1$
+ case MetadataBlockEditPart.VISUAL_ID:
+ return getImage(
+ "Navigator?Node?http://lib.unc.edu/schemas/crosswalk?MetadataBlock", CrosswalkElementTypes.MetadataBlock_3010); //$NON-NLS-1$
+ case CrossWalkEditPart.VISUAL_ID:
+ return getImage(
+ "Navigator?TopLevelNode?http://lib.unc.edu/schemas/crosswalk?CrossWalk", CrosswalkElementTypes.CrossWalk_2001); //$NON-NLS-1$
case DictionaryEditPart.VISUAL_ID:
return getImage(
"Navigator?TopLevelNode?http://lib.unc.edu/schemas/crosswalk?Dictionary", CrosswalkElementTypes.Dictionary_2002); //$NON-NLS-1$
- case ParagraphEditPart.VISUAL_ID:
+ case OriginalNameRecordMatcherEditPart.VISUAL_ID:
return getImage(
- "Navigator?Node?http://lib.unc.edu/schemas/crosswalk?Paragraph", CrosswalkElementTypes.Paragraph_3020); //$NON-NLS-1$
+ "Navigator?Node?http://lib.unc.edu/schemas/crosswalk?OriginalNameRecordMatcher", CrosswalkElementTypes.OriginalNameRecordMatcher_3003); //$NON-NLS-1$
case EditingContainerEditPart.VISUAL_ID:
return getImage(
"Navigator?Diagram?http://lib.unc.edu/schemas/crosswalk?EditingContainer", CrosswalkElementTypes.EditingContainer_1000); //$NON-NLS-1$
- case MappedElementEditPart.VISUAL_ID:
- return getImage(
- "Navigator?Node?http://lib.unc.edu/schemas/crosswalk?MappedElement", CrosswalkElementTypes.MappedElement_3007); //$NON-NLS-1$
- case MetadataBlock3EditPart.VISUAL_ID:
+ case MappedAttributeEditPart.VISUAL_ID:
return getImage(
- "Navigator?Node?http://lib.unc.edu/schemas/crosswalk?MetadataBlock", CrosswalkElementTypes.MetadataBlock_3019); //$NON-NLS-1$
+ "Navigator?Node?http://lib.unc.edu/schemas/crosswalk?MappedAttribute", CrosswalkElementTypes.MappedAttribute_3009); //$NON-NLS-1$
case DateRecognizerEditPart.VISUAL_ID:
return getImage(
"Navigator?Node?http://lib.unc.edu/schemas/crosswalk?DateRecognizer", CrosswalkElementTypes.DateRecognizer_3004); //$NON-NLS-1$
- case TextInputFieldEditPart.VISUAL_ID:
- return getImage(
- "Navigator?Node?http://lib.unc.edu/schemas/crosswalk?TextInputField", CrosswalkElementTypes.TextInputField_3023); //$NON-NLS-1$
- case TrimWhitespaceEditPart.VISUAL_ID:
- return getImage(
- "Navigator?Node?http://lib.unc.edu/schemas/crosswalk?TrimWhitespace", CrosswalkElementTypes.TrimWhitespace_3006); //$NON-NLS-1$
- case CrossWalkEditPart.VISUAL_ID:
- return getImage(
- "Navigator?TopLevelNode?http://lib.unc.edu/schemas/crosswalk?CrossWalk", CrosswalkElementTypes.CrossWalk_2001); //$NON-NLS-1$
- case CurrentDateEditPart.VISUAL_ID:
- return getImage(
- "Navigator?Node?http://lib.unc.edu/schemas/crosswalk?CurrentDate", CrosswalkElementTypes.CurrentDate_3021); //$NON-NLS-1$
- case InputOutputEditPart.VISUAL_ID:
+ case MetadataBlock3EditPart.VISUAL_ID:
return getImage(
- "Navigator?Link?http://lib.unc.edu/schemas/crosswalk?Input?Output", CrosswalkElementTypes.InputOutput_4001); //$NON-NLS-1$
+ "Navigator?Node?http://lib.unc.edu/schemas/crosswalk?MetadataBlock", CrosswalkElementTypes.MetadataBlock_3019); //$NON-NLS-1$
case CurrentUsernameEditPart.VISUAL_ID:
return getImage(
"Navigator?Node?http://lib.unc.edu/schemas/crosswalk?CurrentUsername", CrosswalkElementTypes.CurrentUsername_3022); //$NON-NLS-1$
- case MetadataBlock2EditPart.VISUAL_ID:
- return getImage(
- "Navigator?Node?http://lib.unc.edu/schemas/crosswalk?MetadataBlock", CrosswalkElementTypes.MetadataBlock_3018); //$NON-NLS-1$
case FormEditPart.VISUAL_ID:
return getImage(
"Navigator?TopLevelNode?http://lib.unc.edu/schemas/crosswalk?Form", CrosswalkElementTypes.Form_2003); //$NON-NLS-1$
- case MetadataBlockEditPart.VISUAL_ID:
- return getImage(
- "Navigator?Node?http://lib.unc.edu/schemas/crosswalk?MetadataBlock", CrosswalkElementTypes.MetadataBlock_3010); //$NON-NLS-1$
- case MappedAttributeEditPart.VISUAL_ID:
+ case ParagraphEditPart.VISUAL_ID:
return getImage(
- "Navigator?Node?http://lib.unc.edu/schemas/crosswalk?MappedAttribute", CrosswalkElementTypes.MappedAttribute_3009); //$NON-NLS-1$
- case MappedElement2EditPart.VISUAL_ID:
+ "Navigator?Node?http://lib.unc.edu/schemas/crosswalk?Paragraph", CrosswalkElementTypes.Paragraph_3020); //$NON-NLS-1$
+ case MappedElementEditPart.VISUAL_ID:
return getImage(
- "Navigator?Node?http://lib.unc.edu/schemas/crosswalk?MappedElement", CrosswalkElementTypes.MappedElement_3008); //$NON-NLS-1$
- case TextEditPart.VISUAL_ID:
- return getImage("Navigator?Node?http://lib.unc.edu/schemas/crosswalk?Text", CrosswalkElementTypes.Text_3005); //$NON-NLS-1$
+ "Navigator?Node?http://lib.unc.edu/schemas/crosswalk?MappedElement", CrosswalkElementTypes.MappedElement_3007); //$NON-NLS-1$
case DateInputFieldEditPart.VISUAL_ID:
return getImage(
"Navigator?Node?http://lib.unc.edu/schemas/crosswalk?DateInputField", CrosswalkElementTypes.DateInputField_3024); //$NON-NLS-1$
- case OriginalNameRecordMatcherEditPart.VISUAL_ID:
+ case MetadataBlock2EditPart.VISUAL_ID:
return getImage(
- "Navigator?Node?http://lib.unc.edu/schemas/crosswalk?OriginalNameRecordMatcher", CrosswalkElementTypes.OriginalNameRecordMatcher_3003); //$NON-NLS-1$
- case TabbedDataFieldEditPart.VISUAL_ID:
+ "Navigator?Node?http://lib.unc.edu/schemas/crosswalk?MetadataBlock", CrosswalkElementTypes.MetadataBlock_3018); //$NON-NLS-1$
+ case CurrentDateEditPart.VISUAL_ID:
return getImage(
- "Navigator?Node?http://lib.unc.edu/schemas/crosswalk?TabbedDataField", CrosswalkElementTypes.TabbedDataField_3002); //$NON-NLS-1$
+ "Navigator?Node?http://lib.unc.edu/schemas/crosswalk?CurrentDate", CrosswalkElementTypes.CurrentDate_3021); //$NON-NLS-1$
}
return getImage("Navigator?UnknownElement", null); //$NON-NLS-1$
}
@@ -248,50 +248,50 @@ public String getText(View view) {
return getUnresolvedDomainElementProxyText(view);
}
switch (CrosswalkVisualIDRegistry.getVisualID(view)) {
+ case TextEditPart.VISUAL_ID:
+ return getText_3005Text(view);
+ case MappedElement2EditPart.VISUAL_ID:
+ return getMappedElement_3008Text(view);
+ case InputOutputEditPart.VISUAL_ID:
+ return getInputOutput_4001Text(view);
+ case TrimWhitespaceEditPart.VISUAL_ID:
+ return getTrimWhitespace_3006Text(view);
+ case TextInputFieldEditPart.VISUAL_ID:
+ return getTextInputField_3023Text(view);
+ case TabbedDataFieldEditPart.VISUAL_ID:
+ return getTabbedDataField_3002Text(view);
case DelimitedFileEditPart.VISUAL_ID:
return getDelimitedFile_3001Text(view);
+ case MetadataBlockEditPart.VISUAL_ID:
+ return getMetadataBlock_3010Text(view);
+ case CrossWalkEditPart.VISUAL_ID:
+ return getCrossWalk_2001Text(view);
case DictionaryEditPart.VISUAL_ID:
return getDictionary_2002Text(view);
- case ParagraphEditPart.VISUAL_ID:
- return getParagraph_3020Text(view);
+ case OriginalNameRecordMatcherEditPart.VISUAL_ID:
+ return getOriginalNameRecordMatcher_3003Text(view);
case EditingContainerEditPart.VISUAL_ID:
return getEditingContainer_1000Text(view);
- case MappedElementEditPart.VISUAL_ID:
- return getMappedElement_3007Text(view);
- case MetadataBlock3EditPart.VISUAL_ID:
- return getMetadataBlock_3019Text(view);
+ case MappedAttributeEditPart.VISUAL_ID:
+ return getMappedAttribute_3009Text(view);
case DateRecognizerEditPart.VISUAL_ID:
return getDateRecognizer_3004Text(view);
- case TextInputFieldEditPart.VISUAL_ID:
- return getTextInputField_3023Text(view);
- case TrimWhitespaceEditPart.VISUAL_ID:
- return getTrimWhitespace_3006Text(view);
- case CrossWalkEditPart.VISUAL_ID:
- return getCrossWalk_2001Text(view);
- case CurrentDateEditPart.VISUAL_ID:
- return getCurrentDate_3021Text(view);
- case InputOutputEditPart.VISUAL_ID:
- return getInputOutput_4001Text(view);
+ case MetadataBlock3EditPart.VISUAL_ID:
+ return getMetadataBlock_3019Text(view);
case CurrentUsernameEditPart.VISUAL_ID:
return getCurrentUsername_3022Text(view);
- case MetadataBlock2EditPart.VISUAL_ID:
- return getMetadataBlock_3018Text(view);
case FormEditPart.VISUAL_ID:
return getForm_2003Text(view);
- case MetadataBlockEditPart.VISUAL_ID:
- return getMetadataBlock_3010Text(view);
- case MappedAttributeEditPart.VISUAL_ID:
- return getMappedAttribute_3009Text(view);
- case MappedElement2EditPart.VISUAL_ID:
- return getMappedElement_3008Text(view);
- case TextEditPart.VISUAL_ID:
- return getText_3005Text(view);
+ case ParagraphEditPart.VISUAL_ID:
+ return getParagraph_3020Text(view);
+ case MappedElementEditPart.VISUAL_ID:
+ return getMappedElement_3007Text(view);
case DateInputFieldEditPart.VISUAL_ID:
return getDateInputField_3024Text(view);
- case OriginalNameRecordMatcherEditPart.VISUAL_ID:
- return getOriginalNameRecordMatcher_3003Text(view);
- case TabbedDataFieldEditPart.VISUAL_ID:
- return getTabbedDataField_3002Text(view);
+ case MetadataBlock2EditPart.VISUAL_ID:
+ return getMetadataBlock_3018Text(view);
+ case CurrentDateEditPart.VISUAL_ID:
+ return getCurrentDate_3021Text(view);
}
return getUnknownElementText(view);
}
View
19 crosswalk-gmf.edit/plugin.properties
@@ -164,16 +164,12 @@ _UI_Form_emailDepositNoticeTo_feature = Email Deposit Notice To
_UI_Form_depositContainerId_feature = Deposit Container Id
_UI_TextInputField_type = Text Input Field
_UI_OutputElement_exception_feature = Exception
-_UI_TextInputField_preferredSize_feature = Preferred Size
-_UI_TextInputField_maxSize_feature = Max Size
_UI_MappingContainer_exceptions_feature = Exceptions
_UI_DateInputField_type = Date Input Field
_UI_Form_authorizedGroups_feature = Authorized Groups
-_UI_MultiLineTextInputField_type = Multi Line Text Input Field
_UI_MetadataBlock_maxRepeat_feature = Max Repeat
_UI_TextInputField_vocabularyURL_feature = Vocabulary URL
_UI_TextInputField_allowFreeText_feature = Allow Free Text
-_UI_MultiLineTextInputField_maxSize_feature = Max Size
_UI_DateInputField_datePrecision_feature = Date Precision
_UI_DatePrecision_year_literal = year
_UI_DatePrecision_month_literal = month
@@ -183,3 +179,18 @@ _UI_DatePrecision_minute_literal = minute
_UI_DatePrecision_second_literal = second
_UI_TextInputField_validValues_feature = Valid Values
_UI_TextInputField_rows_feature = Rows
+_UI_Form_reviewBeforePublication_feature = Review Before Publication
+_UI_FieldSize_Short_literal = Short
+_UI_FieldSize_Normal_literal = Normal
+_UI_FieldSize_Long_literal = Long
+_UI_FieldSize_FullLine_literal = Full Line
+_UI_Form_promptForMultipleSubmissions_feature = Prompt For Multiple Submissions
+_UI_TextInputField_width_feature = Width
+_UI_TextInputField_maxCharacters_feature = Max Characters
+_UI_TextInputField_type_feature = Type
+_UI_FieldWidth_Short_literal = Short
+_UI_FieldWidth_Normal_literal = Normal
+_UI_FieldWidth_Long_literal = Long
+_UI_FieldWidth_FullLine_literal = Full Line
+_UI_TextInputType_SingleLine_literal = Single Line
+_UI_TextInputType_MultipleLines_literal = Multiple Lines
View
23 crosswalk-gmf.edit/src/crosswalk/provider/CrosswalkItemProviderAdapterFactory.java
@@ -552,29 +552,6 @@ public Adapter createDateInputFieldAdapter() {
}
/**
- * This keeps track of the one adapter used for all {@link crosswalk.MultiLineTextInputField} instances.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected MultiLineTextInputFieldItemProvider multiLineTextInputFieldItemProvider;
-
- /**
- * This creates an adapter for a {@link crosswalk.MultiLineTextInputField}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Adapter createMultiLineTextInputFieldAdapter() {
- if (multiLineTextInputFieldItemProvider == null) {
- multiLineTextInputFieldItemProvider = new MultiLineTextInputFieldItemProvider(this);
- }
-
- return multiLineTextInputFieldItemProvider;
- }
-
- /**
* This returns the root adapter factory that contains this factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
View
48 crosswalk-gmf.edit/src/crosswalk/provider/FormItemProvider.java
@@ -72,6 +72,8 @@ public FormItemProvider(AdapterFactory adapterFactory) {
addEmailDepositNoticeToPropertyDescriptor(object);
addDepositContainerIdPropertyDescriptor(object);
addAuthorizedGroupsPropertyDescriptor(object);
+ addReviewBeforePublicationPropertyDescriptor(object);
+ addPromptForMultipleSubmissionsPropertyDescriptor(object);
}
return itemPropertyDescriptors;
}
@@ -187,6 +189,50 @@ protected void addAuthorizedGroupsPropertyDescriptor(Object object) {
}
/**
+ * This adds a property descriptor for the Review Before Publication feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addReviewBeforePublicationPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_Form_reviewBeforePublication_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Form_reviewBeforePublication_feature", "_UI_Form_type"),
+ CrosswalkPackage.Literals.FORM__REVIEW_BEFORE_PUBLICATION,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Prompt For Multiple Submissions feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addPromptForMultipleSubmissionsPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_Form_promptForMultipleSubmissions_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Form_promptForMultipleSubmissions_feature", "_UI_Form_type"),
+ CrosswalkPackage.Literals.FORM__PROMPT_FOR_MULTIPLE_SUBMISSIONS,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
* This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
* {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
* {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
@@ -259,6 +305,8 @@ public void notifyChanged(Notification notification) {
case CrosswalkPackage.FORM__EMAIL_DEPOSIT_NOTICE_TO:
case CrosswalkPackage.FORM__DEPOSIT_CONTAINER_ID:
case CrosswalkPackage.FORM__AUTHORIZED_GROUPS:
+ case CrosswalkPackage.FORM__REVIEW_BEFORE_PUBLICATION:
+ case CrosswalkPackage.FORM__PROMPT_FOR_MULTIPLE_SUBMISSIONS:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
return;
case CrosswalkPackage.FORM__ELEMENTS:
View
5 crosswalk-gmf.edit/src/crosswalk/provider/MetadataBlockItemProvider.java
@@ -320,11 +320,6 @@ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors
(createChildParameter
(CrosswalkPackage.Literals.METADATA_BLOCK__PORTS,
CrosswalkFactory.eINSTANCE.createDateInputField()));
-
- newChildDescriptors.add
- (createChildParameter
- (CrosswalkPackage.Literals.METADATA_BLOCK__PORTS,
- CrosswalkFactory.eINSTANCE.createMultiLineTextInputField()));
}
/**
View
147 crosswalk-gmf.edit/src/crosswalk/provider/MultiLineTextInputFieldItemProvider.java
@@ -1,147 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package crosswalk.provider;
-
-
-import crosswalk.CrosswalkPackage;
-import crosswalk.MultiLineTextInputField;
-
-import java.util.Collection;
-import java.util.List;
-
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.emf.common.notify.Notification;
-
-import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
-import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
-import org.eclipse.emf.edit.provider.IItemLabelProvider;
-import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
-import org.eclipse.emf.edit.provider.IItemPropertySource;
-import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
-import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
-import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
-import org.eclipse.emf.edit.provider.ViewerNotification;
-
-/**
- * This is the item provider adapter for a {@link crosswalk.MultiLineTextInputField} object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
-public class MultiLineTextInputFieldItemProvider
- extends InputFieldItemProvider
- implements
- IEditingDomainItemProvider,
- IStructuredItemContentProvider,
- ITreeItemContentProvider,
- IItemLabelProvider,
- IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public MultiLineTextInputFieldItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- addMaxSizePropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Max Size feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void addMaxSizePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_MultiLineTextInputField_maxSize_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_MultiLineTextInputField_maxSize_feature", "_UI_MultiLineTextInputField_type"),
- CrosswalkPackage.Literals.MULTI_LINE_TEXT_INPUT_FIELD__MAX_SIZE,
- true,
- false,
- false,
- ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE,
- null,
- null));
- }
-
- /**
- * This returns MultiLineTextInputField.gif.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object, getResourceLocator().getImage("full/obj16/MultiLineTextInputField"));
- }
-
- /**
- * This returns the label text for the adapted class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((MultiLineTextInputField)object).getLabel();
- return label == null || label.length() == 0 ?
- getString("_UI_MultiLineTextInputField_type") :
- getString("_UI_MultiLineTextInputField_type") + " " + label;
- }
-
- /**
- * This handles model notifications by calling {@link #updateChildren} to update any cached
- * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void notifyChanged(Notification notification) {
- updateChildren(notification);
-
- switch (notification.getFeatureID(MultiLineTextInputField.class)) {
- case CrosswalkPackage.MULTI_LINE_TEXT_INPUT_FIELD__MAX_SIZE:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
- return;
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
- * that can be created under this object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
- }
-
-}
View
48 crosswalk-gmf.edit/src/crosswalk/provider/TextInputFieldItemProvider.java
@@ -61,56 +61,56 @@ public TextInputFieldItemProvider(AdapterFactory adapterFactory) {
if (itemPropertyDescriptors == null) {
super.getPropertyDescriptors(object);
- addPreferredSizePropertyDescriptor(object);
- addMaxSizePropertyDescriptor(object);
+ addWidthPropertyDescriptor(object);
+ addMaxCharactersPropertyDescriptor(object);
addVocabularyURLPropertyDescriptor(object);
addAllowFreeTextPropertyDescriptor(object);
addValidValuesPropertyDescriptor(object);
- addRowsPropertyDescriptor(object);
+ addTypePropertyDescriptor(object);
}
return itemPropertyDescriptors;
}
/**
- * This adds a property descriptor for the Preferred Size feature.
+ * This adds a property descriptor for the Width feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
- protected void addPreferredSizePropertyDescriptor(Object object) {
+ protected void addWidthPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
- getString("_UI_TextInputField_preferredSize_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_TextInputField_preferredSize_feature", "_UI_TextInputField_type"),
- CrosswalkPackage.Literals.TEXT_INPUT_FIELD__PREFERRED_SIZE,
+ getString("_UI_TextInputField_width_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_TextInputField_width_feature", "_UI_TextInputField_type"),
+ CrosswalkPackage.Literals.TEXT_INPUT_FIELD__WIDTH,
true,
false,
false,
- ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
null,
null));
}
/**
- * This adds a property descriptor for the Max Size feature.
+ * This adds a property descriptor for the Max Characters feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
- protected void addMaxSizePropertyDescriptor(Object object) {
+ protected void addMaxCharactersPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
- getString("_UI_TextInputField_maxSize_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_TextInputField_maxSize_feature", "_UI_TextInputField_type"),
- CrosswalkPackage.Literals.TEXT_INPUT_FIELD__MAX_SIZE,
+ getString("_UI_TextInputField_maxCharacters_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_TextInputField_maxCharacters_feature", "_UI_TextInputField_type"),
+ CrosswalkPackage.Literals.TEXT_INPUT_FIELD__MAX_CHARACTERS,
true,
false,
false,
- ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
null,
null));
}
@@ -182,23 +182,23 @@ protected void addValidValuesPropertyDescriptor(Object object) {
}
/**
- * This adds a property descriptor for the Rows feature.
+ * This adds a property descriptor for the Type feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
- protected void addRowsPropertyDescriptor(Object object) {
+ protected void addTypePropertyDescriptor(Object object) {
itemPropertyDescriptors.add
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
- getString("_UI_TextInputField_rows_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_TextInputField_rows_feature", "_UI_TextInputField_type"),
- CrosswalkPackage.Literals.TEXT_INPUT_FIELD__ROWS,
+ getString("_UI_TextInputField_type_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_TextInputField_type_feature", "_UI_TextInputField_type"),
+ CrosswalkPackage.Literals.TEXT_INPUT_FIELD__TYPE,
true,
false,
false,
- ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
null,
null));
}
@@ -240,12 +240,12 @@ public void notifyChanged(Notification notification) {
updateChildren(notification);
switch (notification.getFeatureID(TextInputField.class)) {
- case CrosswalkPackage.TEXT_INPUT_FIELD__PREFERRED_SIZE:
- case CrosswalkPackage.TEXT_INPUT_FIELD__MAX_SIZE:
+ case CrosswalkPackage.TEXT_INPUT_FIELD__WIDTH:
+ case CrosswalkPackage.TEXT_INPUT_FIELD__MAX_CHARACTERS:
case CrosswalkPackage.TEXT_INPUT_FIELD__VOCABULARY_URL:
case CrosswalkPackage.TEXT_INPUT_FIELD__ALLOW_FREE_TEXT:
case CrosswalkPackage.TEXT_INPUT_FIELD__VALID_VALUES:
- case CrosswalkPackage.TEXT_INPUT_FIELD__ROWS:
+ case CrosswalkPackage.TEXT_INPUT_FIELD__TYPE:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
return;
}
View
35 crosswalk-gmf/model/crosswalk.ecore
@@ -162,18 +162,18 @@
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="TextInputField">
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="preferredSize" lowerBound="1"
- eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt" defaultValueLiteral="40"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="maxSize" lowerBound="1"
- eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt" defaultValueLiteral="256"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="width" lowerBound="1" eType="#//FieldWidth"
+ defaultValueLiteral="Normal"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="maxCharacters" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EIntegerObject"
+ unsettable="true"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="vocabularyURL" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"
unsettable="true"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="allowFreeText" lowerBound="1"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean" defaultValueLiteral="true"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="validValues" upperBound="-1"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="rows" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"
- defaultValueLiteral="1"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="type" lowerBound="1" eType="#//TextInputType"
+ defaultValueLiteral="SingleLine"/>
<eGenericSuperTypes eClassifier="#//InputField">
<eTypeArguments eClassifier="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eGenericSuperTypes>
@@ -209,6 +209,12 @@
<eStructuralFeatures xsi:type="ecore:EAttribute" name="depositContainerId" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="authorizedGroups" upperBound="-1"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString" defaultValueLiteral="public"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="reviewBeforePublication"
+ lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"
+ defaultValueLiteral="true"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="promptForMultipleSubmissions"
+ lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"
+ defaultValueLiteral="false"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="FormElement" abstract="true" interface="true"/>
<eClassifiers xsi:type="ecore:EDataType" name="URI" instanceClassName="java.net.URI"/>
@@ -225,13 +231,6 @@
<eTypeArguments eClassifier="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDate"/>
</eGenericSuperTypes>
</eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="MultiLineTextInputField">
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="maxSize" lowerBound="1"
- eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt" defaultValueLiteral="2048"/>
- <eGenericSuperTypes eClassifier="#//InputField">
- <eTypeArguments eClassifier="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </eGenericSuperTypes>
- </eClassifiers>
<eClassifiers xsi:type="ecore:EEnum" name="DatePrecision">
<eLiterals name="year"/>
<eLiterals name="month" value="1"/>
@@ -240,4 +239,14 @@
<eLiterals name="minute" value="4"/>
<eLiterals name="second" value="5"/>
</eClassifiers>
+ <eClassifiers xsi:type="ecore:EEnum" name="FieldWidth">
+ <eLiterals name="Short"/>
+ <eLiterals name="Normal" value="1"/>
+ <eLiterals name="Long" value="2"/>
+ <eLiterals name="FullLine" value="3"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EEnum" name="TextInputType">
+ <eLiterals name="SingleLine"/>
+ <eLiterals name="MultipleLines" value="1"/>
+ </eClassifiers>
</ecore:EPackage>
View
21 crosswalk-gmf/model/crosswalk.genmodel
@@ -14,6 +14,16 @@
<genEnumLiterals ecoreEnumLiteral="crosswalk.ecore#//DatePrecision/minute"/>
<genEnumLiterals ecoreEnumLiteral="crosswalk.ecore#//DatePrecision/second"/>
</genEnums>
+ <genEnums typeSafeEnumCompatible="false" ecoreEnum="crosswalk.ecore#//FieldWidth">
+ <genEnumLiterals ecoreEnumLiteral="crosswalk.ecore#//FieldWidth/Short"/>
+ <genEnumLiterals ecoreEnumLiteral="crosswalk.ecore#//FieldWidth/Normal"/>
+ <genEnumLiterals ecoreEnumLiteral="crosswalk.ecore#//FieldWidth/Long"/>
+ <genEnumLiterals ecoreEnumLiteral="crosswalk.ecore#//FieldWidth/FullLine"/>
+ </genEnums>
+ <genEnums typeSafeEnumCompatible="false" ecoreEnum="crosswalk.ecore#//TextInputType">
+ <genEnumLiterals ecoreEnumLiteral="crosswalk.ecore#//TextInputType/SingleLine"/>
+ <genEnumLiterals ecoreEnumLiteral="crosswalk.ecore#//TextInputType/MultipleLines"/>
+ </genEnums>
<genDataTypes ecoreDataType="crosswalk.ecore#//DataException"/>
<genDataTypes ecoreDataType="crosswalk.ecore#//RecordMatches"/>
<genDataTypes ecoreDataType="crosswalk.ecore#//RecordOutOfRangeException"/>
@@ -135,12 +145,12 @@
<genFeatures property="None" createChild="false" ecoreFeature="ecore:EAttribute crosswalk.ecore#//InputField/enteredValue"/>
</genClasses>
<genClasses ecoreClass="crosswalk.ecore#//TextInputField">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute crosswalk.ecore#//TextInputField/preferredSize"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute crosswalk.ecore#//TextInputField/maxSize"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute crosswalk.ecore#//TextInputField/width"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute crosswalk.ecore#//TextInputField/maxCharacters"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute crosswalk.ecore#//TextInputField/vocabularyURL"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute crosswalk.ecore#//TextInputField/allowFreeText"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute crosswalk.ecore#//TextInputField/validValues"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute crosswalk.ecore#//TextInputField/rows"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute crosswalk.ecore#//TextInputField/type"/>
</genClasses>
<genClasses image="false" ecoreClass="crosswalk.ecore#//ContextProvider">
<genFeatures property="None" notify="false" createChild="false" propertySortChoices="true"
@@ -163,6 +173,8 @@
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute crosswalk.ecore#//Form/emailDepositNoticeTo"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute crosswalk.ecore#//Form/depositContainerId"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute crosswalk.ecore#//Form/authorizedGroups"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute crosswalk.ecore#//Form/reviewBeforePublication"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute crosswalk.ecore#//Form/promptForMultipleSubmissions"/>
</genClasses>
<genClasses image="false" ecoreClass="crosswalk.ecore#//FormElement"/>
<genClasses ecoreClass="crosswalk.ecore#//Paragraph">
@@ -172,8 +184,5 @@
<genClasses ecoreClass="crosswalk.ecore#//DateInputField">
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute crosswalk.ecore#//DateInputField/datePrecision"/>
</genClasses>
- <genClasses ecoreClass="crosswalk.ecore#//MultiLineTextInputField">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute crosswalk.ecore#//MultiLineTextInputField/maxSize"/>
- </genClasses>
</genPackages>
</genmodel:GenModel>
View
9 crosswalk-gmf/src/crosswalk/CrosswalkFactory.java
@@ -224,15 +224,6 @@
DateInputField createDateInputField();
/**
- * Returns a new object of class '<em>Multi Line Text Input Field</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>Multi Line Text Input Field</em>'.
- * @generated
- */
- MultiLineTextInputField createMultiLineTextInputField();
-
- /**
* Returns the package supported by this factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
View
242 crosswalk-gmf/src/crosswalk/CrosswalkPackage.java
@@ -1288,22 +1288,22 @@
int TEXT_INPUT_FIELD__ENTERED_VALUE = INPUT_FIELD__ENTERED_VALUE;
/**
- * The feature id for the '<em><b>Preferred Size</b></em>' attribute.
+ * The feature id for the '<em><b>Width</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- int TEXT_INPUT_FIELD__PREFERRED_SIZE = INPUT_FIELD_FEATURE_COUNT + 0;
+ int TEXT_INPUT_FIELD__WIDTH = INPUT_FIELD_FEATURE_COUNT + 0;
/**
- * The feature id for the '<em><b>Max Size</b></em>' attribute.
+ * The feature id for the '<em><b>Max Characters</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- int TEXT_INPUT_FIELD__MAX_SIZE = INPUT_FIELD_FEATURE_COUNT + 1;
+ int TEXT_INPUT_FIELD__MAX_CHARACTERS = INPUT_FIELD_FEATURE_COUNT + 1;
/**
* The feature id for the '<em><b>Vocabulary URL</b></em>' attribute.
@@ -1333,13 +1333,13 @@
int TEXT_INPUT_FIELD__VALID_VALUES = INPUT_FIELD_FEATURE_COUNT + 4;
/**
- * The feature id for the '<em><b>Rows</b></em>' attribute.
+ * The feature id for the '<em><b>Type</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- int TEXT_INPUT_FIELD__ROWS = INPUT_FIELD_FEATURE_COUNT + 5;
+ int TEXT_INPUT_FIELD__TYPE = INPUT_FIELD_FEATURE_COUNT + 5;
/**
* The number of structural features of the '<em>Text Input Field</em>' class.
@@ -1544,13 +1544,31 @@
int FORM__AUTHORIZED_GROUPS = EDITABLE_FEATURE_COUNT + 7;
/**
+ * The feature id for the '<em><b>Review Before Publication</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int FORM__REVIEW_BEFORE_PUBLICATION = EDITABLE_FEATURE_COUNT + 8;
+
+ /**
+ * The feature id for the '<em><b>Prompt For Multiple Submissions</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int FORM__PROMPT_FOR_MULTIPLE_SUBMISSIONS = EDITABLE_FEATURE_COUNT + 9;
+
+ /**
* The number of structural features of the '<em>Form</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- int FORM_FEATURE_COUNT = EDITABLE_FEATURE_COUNT + 8;
+ int FORM_FEATURE_COUNT = EDITABLE_FEATURE_COUNT + 10;
/**
* The meta object id for the '{@link crosswalk.FormElement <em>Form Element</em>}' class.
@@ -1682,87 +1700,34 @@
int DATE_INPUT_FIELD_FEATURE_COUNT = INPUT_FIELD_FEATURE_COUNT + 1;
/**
- * The meta object id for the '{@link crosswalk.impl.MultiLineTextInputFieldImpl <em>Multi Line Text Input Field</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see crosswalk.impl.MultiLineTextInputFieldImpl
- * @see crosswalk.impl.CrosswalkPackageImpl#getMultiLineTextInputField()
- * @generated
- */
- int MULTI_LINE_TEXT_INPUT_FIELD = 32;
-
- /**
- * The feature id for the '<em><b>Output</b></em>' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int MULTI_LINE_TEXT_INPUT_FIELD__OUTPUT = INPUT_FIELD__OUTPUT;
-
- /**
- * The feature id for the '<em><b>Label</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int MULTI_LINE_TEXT_INPUT_FIELD__LABEL = INPUT_FIELD__LABEL;
-
- /**
- * The feature id for the '<em><b>Usage</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int MULTI_LINE_TEXT_INPUT_FIELD__USAGE = INPUT_FIELD__USAGE;
-
- /**
- * The feature id for the '<em><b>Required</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int MULTI_LINE_TEXT_INPUT_FIELD__REQUIRED = INPUT_FIELD__REQUIRED;
-
- /**
- * The feature id for the '<em><b>Entered Value</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int MULTI_LINE_TEXT_INPUT_FIELD__ENTERED_VALUE = INPUT_FIELD__ENTERED_VALUE;
-
- /**
- * The feature id for the '<em><b>Max Size</b></em>' attribute.
+ * The meta object id for the '{@link crosswalk.DatePrecision <em>Date Precision</em>}' enum.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ * @see crosswalk.DatePrecision
+ * @see crosswalk.impl.CrosswalkPackageImpl#getDatePrecision()
* @generated
- * @ordered
*/
- int MULTI_LINE_TEXT_INPUT_FIELD__MAX_SIZE = INPUT_FIELD_FEATURE_COUNT + 0;
+ int DATE_PRECISION = 32;
/**
- * The number of structural features of the '<em>Multi Line Text Input Field</em>' class.
+ * The meta object id for the '{@link crosswalk.FieldWidth <em>Field Width</em>}' enum.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ * @see crosswalk.FieldWidth
+ * @see crosswalk.impl.CrosswalkPackageImpl#getFieldWidth()
* @generated
- * @ordered
*/
- int MULTI_LINE_TEXT_INPUT_FIELD_FEATURE_COUNT = INPUT_FIELD_FEATURE_COUNT + 1;
+ int FIELD_WIDTH = 33;
/**
- * The meta object id for the '{@link crosswalk.DatePrecision <em>Date Precision</em>}' enum.
+ * The meta object id for the '{@link crosswalk.TextInputType <em>Text Input Type</em>}' enum.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see crosswalk.DatePrecision
- * @see crosswalk.impl.CrosswalkPackageImpl#getDatePrecision()
+ * @see crosswalk.TextInputType
+ * @see crosswalk.impl.CrosswalkPackageImpl#getTextInputType()
* @generated
*/
- int DATE_PRECISION = 33;
+ int TEXT_INPUT_TYPE = 34;
/**
* The meta object id for the '<em>Data Exception</em>' data type.
@@ -1772,7 +1737,7 @@
* @see crosswalk.impl.CrosswalkPackageImpl#getDataException()
* @generated
*/
- int DATA_EXCEPTION = 34;
+ int DATA_EXCEPTION = 35;
/**
* The meta object id for the '<em>Record Matches</em>' data type.
@@ -1782,7 +1747,7 @@
* @see crosswalk.impl.CrosswalkPackageImpl#getRecordMatches()
* @generated
*/
- int RECORD_MATCHES = 35;
+ int RECORD_MATCHES = 36;
/**
* The meta object id for the '<em>Record Out Of Range Exception</em>' data type.
@@ -1792,7 +1757,7 @@
* @see crosswalk.impl.CrosswalkPackageImpl#getRecordOutOfRangeException()
* @generated
*/
- int RECORD_OUT_OF_RANGE_EXCEPTION = 36;
+ int RECORD_OUT_OF_RANGE_EXCEPTION = 37;
/**
* The meta object id for the '<em>URI</em>' data type.
@@ -1802,7 +1767,7 @@
* @see crosswalk.impl.CrosswalkPackageImpl#getURI()
* @generated
*/
- int URI = 37;
+ int URI = 38;
/**
* The meta object id for the '<em>Exception</em>' data type.
@@ -1812,7 +1777,7 @@
* @see crosswalk.impl.CrosswalkPackageImpl#getException()
* @generated
*/
- int EXCEPTION = 38;
+ int EXCEPTION = 39;
/**
* The meta object id for the '<em>Clazz</em>' data type.
@@ -1822,7 +1787,7 @@
* @see crosswalk.impl.CrosswalkPackageImpl#getClazz()
* @generated
*/
- int CLAZZ = 39;
+ int CLAZZ = 40;
/**
* Returns the meta object for class '{@link crosswalk.TabbedDataField <em>Tabbed Data Field</em>}'.
@@ -2527,26 +2492,26 @@
EClass getTextInputField();
/**
- * Returns the meta object for the attribute '{@link crosswalk.TextInputField#getPreferredSize <em>Preferred Size</em>}'.
+ * Returns the meta object for the attribute '{@link crosswalk.TextInputField#getWidth <em>Width</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Preferred Size</em>'.
- * @see crosswalk.TextInputField#getPreferredSize()
+ * @return the meta object for the attribute '<em>Width</em>'.
+ * @see crosswalk.TextInputField#getWidth()
* @see #getTextInputField()
* @generated
*/
- EAttribute getTextInputField_PreferredSize();
+ EAttribute getTextInputField_Width();
/**
- * Returns the meta object for the attribute '{@link crosswalk.TextInputField#getMaxSize <em>Max Size</em>}'.
+ * Returns the meta object for the attribute '{@link crosswalk.TextInputField#getMaxCharacters <em>Max Characters</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Max Size</em>'.
- * @see crosswalk.TextInputField#getMaxSize()
+ * @return the meta object for the attribute '<em>Max Characters</em>'.
+ * @see crosswalk.TextInputField#getMaxCharacters()
* @see #getTextInputField()
* @generated
*/
- EAttribute getTextInputField_MaxSize();
+ EAttribute getTextInputField_MaxCharacters();
/**
* Returns the meta object for the attribute '{@link crosswalk.TextInputField#getVocabularyURL <em>Vocabulary URL</em>}'.
@@ -2582,15 +2547,15 @@
EAttribute getTextInputField_ValidValues();
/**
- * Returns the meta object for the attribute '{@link crosswalk.TextInputField#getRows <em>Rows</em>}'.
+ * Returns the meta object for the attribute '{@link crosswalk.TextInputField#getType <em>Type</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Rows</em>'.
- * @see crosswalk.TextInputField#getRows()
+ * @return the meta object for the attribute '<em>Type</em>'.
+ * @see crosswalk.TextInputField#getType()
* @see #getTextInputField()
* @generated
*/
- EAttribute getTextInputField_Rows();
+ EAttribute getTextInputField_Type();
/**
* Returns the meta object for class '{@link crosswalk.ContextProvider <em>Context Provider</em>}'.
@@ -2775,6 +2740,28 @@
EAttribute getForm_AuthorizedGroups();
/**
+ * Returns the meta object for the attribute '{@link crosswalk.Form#isReviewBeforePublication <em>Review Before Publication</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Review Before Publication</em>'.
+ * @see crosswalk.Form#isReviewBeforePublication()
+ * @see #getForm()
+ * @generated
+ */
+ EAttribute getForm_ReviewBeforePublication();
+
+ /**
+ * Returns the meta object for the attribute '{@link crosswalk.Form#isPromptForMultipleSubmissions <em>Prompt For Multiple Submissions</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Prompt For Multiple Submissions</em>'.
+ * @see crosswalk.Form#isPromptForMultipleSubmissions()
+ * @see #getForm()
+ * @generated
+ */
+ EAttribute getForm_PromptForMultipleSubmissions();
+
+ /**
* Returns the meta object for class '{@link crosswalk.FormElement <em>Form Element</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -2838,35 +2825,34 @@
EAttribute getDateInputField_DatePrecision();
/**
- * Returns the meta object for class '{@link crosswalk.MultiLineTextInputField <em>Multi Line Text Input Field</em>}'.
+ * Returns the meta object for enum '{@link crosswalk.DatePrecision <em>Date Precision</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @return the meta object for class '<em>Multi Line Text Input Field</em>'.
- * @see crosswalk.MultiLineTextInputField
+ * @return the meta object for enum '<em>Date Precision</em>'.
+ * @see crosswalk.DatePrecision
* @generated
*/
- EClass getMultiLineTextInputField();
+ EEnum getDatePrecision();
/**
- * Returns the meta object for the attribute '{@link crosswalk.MultiLineTextInputField#getMaxSize <em>Max Size</em>}'.
+ * Returns the meta object for enum '{@link crosswalk.FieldWidth <em>Field Width</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Max Size</em>'.
- * @see crosswalk.MultiLineTextInputField#getMaxSize()
- * @see #getMultiLineTextInputField()
+ * @return the meta object for enum '<em>Field Width</em>'.
+ * @see crosswalk.FieldWidth
* @generated
*/
- EAttribute getMultiLineTextInputField_MaxSize();
+ EEnum getFieldWidth();
/**
- * Returns the meta object for enum '{@link crosswalk.DatePrecision <em>Date Precision</em>}'.
+ * Returns the meta object for enum '{@link crosswalk.TextInputType <em>Text Input Type</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @return the meta object for enum '<em>Date Precision</em>'.
- * @see crosswalk.DatePrecision
+ * @return the meta object for enum '<em>Text Input Type</em>'.
+ * @see crosswalk.TextInputType
* @generated
*/
- EEnum getDatePrecision();
+ EEnum getTextInputType();
/**
* Returns the meta object for data type '{@link crosswalk.DataException <em>Data Exception</em>}'.
@@ -3533,20 +3519,20 @@
EClass TEXT_INPUT_FIELD = eINSTANCE.getTextInputField();
/**
- * The meta object literal for the '<em><b>Preferred Size</b></em>' attribute feature.
+ * The meta object literal for the '<em><b>Width</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
- EAttribute TEXT_INPUT_FIELD__PREFERRED_SIZE = eINSTANCE.getTextInputField_PreferredSize();
+ EAttribute TEXT_INPUT_FIELD__WIDTH = eINSTANCE.getTextInputField_Width();
/**
- * The meta object literal for the '<em><b>Max Size</b></em>' attribute feature.
+ * The meta object literal for the '<em><b>Max Characters</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
- EAttribute TEXT_INPUT_FIELD__MAX_SIZE = eINSTANCE.getTextInputField_MaxSize();
+ EAttribute TEXT_INPUT_FIELD__MAX_CHARACTERS = eINSTANCE.getTextInputField_MaxCharacters();
/**
* The meta object literal for the '<em><b>Vocabulary URL</b></em>' attribute feature.
@@ -3573,12 +3559,12 @@
EAttribute TEXT_INPUT_FIELD__VALID_VALUES = eINSTANCE.getTextInputField_ValidValues();
/**
- * The meta object literal for the '<em><b>Rows</b></em>' attribute feature.
+ * The meta object literal for the '<em><b>Type</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
- EAttribute TEXT_INPUT_FIELD__ROWS = eINSTANCE.getTextInputField_Rows();
+ EAttribute TEXT_INPUT_FIELD__TYPE = eINSTANCE.getTextInputField_Type();
/**
* The meta object literal for the '{@link crosswalk.impl.ContextProviderImpl <em>Context Provider</em>}' class.
@@ -3727,6 +3713,22 @@
EAttribute FORM__AUTHORIZED_GROUPS = eINSTANCE.getForm_AuthorizedGroups();
/**
+ * The meta object literal for the '<em><b>Review Before Publication</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute FORM__REVIEW_BEFORE_PUBLICATION = eINSTANCE.getForm_ReviewBeforePublication();
+
+ /**
+ * The meta object literal for the '<em><b>Prompt For Multiple Submissions</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute FORM__PROMPT_FOR_MULTIPLE_SUBMISSIONS = eINSTANCE.getForm_PromptForMultipleSubmissions();
+
+ /**
* The meta object literal for the '{@link crosswalk.FormElement <em>Form Element</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -3781,32 +3783,34 @@
EAttribute DATE_INPUT_FIELD__DATE_PRECISION = eINSTANCE.getDateInputField_DatePrecision();
/**
- * The meta object literal for the '{@link crosswalk.impl.MultiLineTextInputFieldImpl <em>Multi Line Text Input Field</em>}' class.
+ * The meta object literal for the '{@link crosswalk.DatePrecision <em>Date Precision</em>}' enum.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see crosswalk.impl.MultiLineTextInputFieldImpl
- * @see crosswalk.impl.CrosswalkPackageImpl#getMultiLineTextInputField()
+ * @see crosswalk.DatePrecision
+ * @see crosswalk.impl.CrosswalkPackageImpl#getDatePrecision()
* @generated
*/
- EClass MULTI_LINE_TEXT_INPUT_FIELD = eINSTANCE.getMultiLineTextInputField();
+ EEnum DATE_PRECISION = eINSTANCE.getDatePrecision();
/**
- * The meta object literal for the '<em><b>Max Size</b></em>' attribute feature.
+ * The meta object literal for the '{@link crosswalk.FieldWidth <em>Field Width</em>}' enum.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ * @see crosswalk.FieldWidth
+ * @see crosswalk.impl.CrosswalkPackageImpl#getFieldWidth()
* @generated
*/
- EAttribute MULTI_LINE_TEXT_INPUT_FIELD__MAX_SIZE = eINSTANCE.getMultiLineTextInputField_MaxSize();
+ EEnum FIELD_WIDTH = eINSTANCE.getFieldWidth();
/**
- * The meta object literal for the '{@link crosswalk.DatePrecision <em>Date Precision</em>}' enum.
+ * The meta object literal for the '{@link crosswalk.TextInputType <em>Text Input Type</em>}' enum.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see crosswalk.DatePrecision
- * @see crosswalk.impl.CrosswalkPackageImpl#getDatePrecision()
+ * @see crosswalk.TextInputType
+ * @see crosswalk.impl.CrosswalkPackageImpl#getTextInputType()
* @generated
*/
- EEnum DATE_PRECISION = eINSTANCE.getDatePrecision();
+ EEnum TEXT_INPUT_TYPE = eINSTANCE.getTextInputType();
/**
* The meta object literal for the '<em>Data Exception</em>' data type.
View
266 crosswalk-gmf/src/crosswalk/FieldSize.java
@@ -0,0 +1,266 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package crosswalk;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.emf.common.util.Enumerator;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the literals of the enumeration '<em><b>Field Size</b></em>',
+ * and utility methods for working with them.
+ * <!-- end-user-doc -->
+ * @see crosswalk.CrosswalkPackage#getFieldSize()
+ * @model
+ * @generated
+ */
+public enum FieldSize implements Enumerator {
+ /**
+ * The '<em><b>Short</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #SHORT_VALUE
+ * @generated
+ * @ordered
+ */
+ SHORT(0, "Short", "Short"),
+
+ /**
+ * The '<em><b>Normal</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #NORMAL_VALUE
+ * @generated
+ * @ordered
+ */
+ NORMAL(1, "Normal", "Normal"),
+
+ /**
+ * The '<em><b>Long</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #LONG_VALUE
+ * @generated
+ * @ordered
+ */
+ LONG(2, "Long", "Long"),
+
+ /**
+ * The '<em><b>Full Line</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #FULL_LINE_VALUE
+ * @generated
+ * @ordered
+ */
+ FULL_LINE(3, "FullLine", "FullLine");
+
+ /**
+ * The '<em><b>Short</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>Short</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #SHORT
+ * @model name="Short"
+ * @generated
+ * @ordered
+ */
+ public static final int SHORT_VALUE = 0;
+
+ /**
+ * The '<em><b>Normal</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>Normal</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #NORMAL
+ * @model name="Normal"
+ * @generated
+ * @ordered
+ */
+ public static final int NORMAL_VALUE = 1;
+
+ /**
+ * The '<em><b>Long</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>Long</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #LONG
+ * @model name="Long"
+ * @generated
+ * @ordered
+ */
+ public static final int LONG_VALUE = 2;
+
+ /**
+ * The '<em><b>Full Line</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>Full Line</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #FULL_LINE
+ * @model name="FullLine"
+ * @generated
+ * @ordered