/**
  * This returns the label text for the adapted class.
  * <!-- begin-user-doc
  * -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 @Override
 public String getText(Object object) {
   NodeStyle nodeStyle = (NodeStyle) object;
   return getString("_UI_NodeStyle_type")
       + " "
       + nodeStyle.getLabelSize(); // $NON-NLS-1$ //$NON-NLS-2$
 }
예제 #2
0
 /**
  * Returns the specified forbidden sides for the current DNode. This feature makes sense for
  * border nodes only.
  *
  * @return the list of forbidden {@link Side}
  */
 public List<Side> getForbiddenSide() {
   NodeStyle nodeStyle = node.getOwnedStyle();
   StyleDescription styleDescription = nodeStyle.getDescription();
   if (styleDescription instanceof NodeStyleDescription) {
     return ((NodeStyleDescription) styleDescription).getForbiddenSides();
   }
   return Collections.emptyList();
 }