{
{
String relationshipGroupName = "relationship-labels";
GroupMarker relationshipGroup = new GroupMarker( relationshipGroupName );
mm.add( relationshipGroup );
ViewSettings viewSettings = graphView.getLabelProvider().getViewSettings();
// relationship types actions
mm.appendToGroup( relationshipGroupName,
new ShowRelationshipTypesAction( graphView, viewSettings.isShowRelationshipTypes() ) );
// relationship labels actions
mm.appendToGroup( relationshipGroupName,
new ShowRelationshipLabelAction( graphView, viewSettings.isShowRelationshipNames() ) );
mm.appendToGroup( relationshipGroupName,
new FilterRelationshipPropertiesAction( graphView, viewSettings.isFilterRelationshipProperties() ) );
// relationship properties actions
mm.appendToGroup( relationshipGroupName,
new ShowRelationshipPropertyKeysAction( graphView, viewSettings.isShowRelationshipPropertyKeys() ) );
// relationship id's actions
mm.appendToGroup( relationshipGroupName,
new ShowRelationshipIdsAction( graphView, viewSettings.isShowRelationshipIds() ) );
// separator
{
mm.add( SEPARATOR );
}
// relationship directions actions
mm.appendToGroup( relationshipGroupName,
new ShowRelationshipDirectionsAction( graphView, viewSettings.isShowArrows() ) );
// relationship colors actions
mm.appendToGroup( relationshipGroupName,
new ShowRelationshipColorsAction( graphView, viewSettings.isShowRelationshipColors() ) );
// separator
{
mm.add( SEPARATOR );
}
String nodeGroupName = "node-labels";
GroupMarker nodeGroup = new GroupMarker( nodeGroupName );
mm.add( nodeGroup );
// properties action
mm.appendToGroup( nodeGroupName, new ShowNodeLabelAction( graphView, viewSettings.isShowNodeNames() ) );
mm.appendToGroup( nodeGroupName,
new FilterNodePropertiesAction( graphView, viewSettings.isFilterNodeProperties() ) );
mm.appendToGroup( nodeGroupName,
new ShowNodePropertyKeysAction( graphView, viewSettings.isShowNodePropertyKeys() ) );
mm.appendToGroup( nodeGroupName, new ShowNodeIdsAction( graphView, viewSettings.isShowNodeIds() ) );
// separator
{
mm.add( SEPARATOR );
}
// node colors actions
mm.appendToGroup( nodeGroupName, new ShowNodeColorsAction( graphView, viewSettings.isShowNodeColors() ) );
// node icons actions
mm.appendToGroup( nodeGroupName, new ShowNodeIconsAction( graphView, viewSettings.isShowNodeIcons() ) );
}
}