Exemple #1
0
 public void printNode(CorePrinter output) {
   output.formatPrint("DLTK Model:" + getElementName()); // $NON-NLS-1$
   output.indent();
   try {
     IModelElement modelElements[] = this.getChildren();
     for (int i = 0; i < modelElements.length; ++i) {
       IModelElement element = modelElements[i];
       if (element instanceof ModelElement) {
         ((ModelElement) element).printNode(output);
       } else {
         output.print("Unknown element:" + element); // $NON-NLS-1$
       }
     }
   } catch (ModelException ex) {
     output.formatPrint(ex.getLocalizedMessage());
   }
   output.dedent();
 }
Exemple #2
0
 public void printNode(CorePrinter output) {
   output.formatPrint("DLTK Source field:" + getElementName()); // $NON-NLS-1$
 }