Skip to content

Commit

Permalink
Add the implementation of NameSpaces
Browse files Browse the repository at this point in the history
  • Loading branch information
ipa-nhg committed Jan 22, 2024
1 parent 942840f commit c341e5e
Show file tree
Hide file tree
Showing 38 changed files with 9,109 additions and 8,362 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
super.getPropertyDescriptors(object);

addNamePropertyDescriptor(object);
addNamespacePropertyDescriptor(object);
addFromPropertyDescriptor(object);
}
return itemPropertyDescriptors;
Expand Down Expand Up @@ -77,6 +78,28 @@ protected void addNamePropertyDescriptor(Object object) {
}

/**
* This adds a property descriptor for the Namespace feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected void addNamespacePropertyDescriptor(Object object) {
itemPropertyDescriptors.add
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_RosNode_namespace_feature"),
getString("_UI_PropertyDescriptor_description", "_UI_RosNode_namespace_feature", "_UI_RosNode_type"),
RossystemPackage.Literals.ROS_NODE__NAMESPACE,
true,
false,
false,
ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
null,
null));
}

/**
* This adds a property descriptor for the From feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
Expand Down Expand Up @@ -168,6 +191,7 @@ public void notifyChanged(Notification notification) {

switch (notification.getFeatureID(RosNode.class)) {
case RossystemPackage.ROS_NODE__NAME:
case RossystemPackage.ROS_NODE__NAMESPACE:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
return;
case RossystemPackage.ROS_NODE__ROSINTERFACES:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* generated by Xtext 2.30.0
* generated by Xtext 2.33.0
*/
package de.fraunhofer.ipa.rossystem.ide;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* generated by Xtext 2.30.0
* generated by Xtext 2.33.0
*/
package de.fraunhofer.ipa.rossystem.ide.contentassist.antlr;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* generated by Xtext 2.30.0
* generated by Xtext 2.33.0
*/
package de.fraunhofer.ipa.rossystem.ide.contentassist.antlr;

Expand Down Expand Up @@ -60,6 +60,7 @@ private static void init(ImmutableMap.Builder<AbstractElement, String> builder,
builder.put(grammarAccess.getRosNodeAccess().getGroup(), "rule__RosNode__Group__0");
builder.put(grammarAccess.getRosNodeAccess().getGroup_6(), "rule__RosNode__Group_6__0");
builder.put(grammarAccess.getRosNodeAccess().getGroup_7(), "rule__RosNode__Group_7__0");
builder.put(grammarAccess.getRosNodeAccess().getGroup_8(), "rule__RosNode__Group_8__0");
builder.put(grammarAccess.getRosInterfaceAccess().getGroup(), "rule__RosInterface__Group__0");
builder.put(grammarAccess.getRosPublisherReferenceAccess().getGroup(), "rule__RosPublisherReference__Group__0");
builder.put(grammarAccess.getRosSubscriberReferenceAccess().getGroup(), "rule__RosSubscriberReference__Group__0");
Expand Down Expand Up @@ -160,8 +161,9 @@ private static void init(ImmutableMap.Builder<AbstractElement, String> builder,
builder.put(grammarAccess.getProcessAccess().getThreadsAssignment_5_1(), "rule__Process__ThreadsAssignment_5_1");
builder.put(grammarAccess.getRosNodeAccess().getNameAssignment_1(), "rule__RosNode__NameAssignment_1");
builder.put(grammarAccess.getRosNodeAccess().getFromAssignment_5(), "rule__RosNode__FromAssignment_5");
builder.put(grammarAccess.getRosNodeAccess().getRosinterfacesAssignment_6_2(), "rule__RosNode__RosinterfacesAssignment_6_2");
builder.put(grammarAccess.getRosNodeAccess().getRosparametersAssignment_7_2(), "rule__RosNode__RosparametersAssignment_7_2");
builder.put(grammarAccess.getRosNodeAccess().getNamespaceAssignment_6_1(), "rule__RosNode__NamespaceAssignment_6_1");
builder.put(grammarAccess.getRosNodeAccess().getRosinterfacesAssignment_7_2(), "rule__RosNode__RosinterfacesAssignment_7_2");
builder.put(grammarAccess.getRosNodeAccess().getRosparametersAssignment_8_2(), "rule__RosNode__RosparametersAssignment_8_2");
builder.put(grammarAccess.getRosInterfaceAccess().getNameAssignment_1(), "rule__RosInterface__NameAssignment_1");
builder.put(grammarAccess.getRosInterfaceAccess().getReferenceAssignment_3(), "rule__RosInterface__ReferenceAssignment_3");
builder.put(grammarAccess.getRosPublisherReferenceAccess().getFromAssignment_2(), "rule__RosPublisherReference__FromAssignment_2");
Expand Down
Loading

0 comments on commit c341e5e

Please sign in to comment.