Example #1
0
 public void run() {
   try {
     isStructureKnown = doBuild(info, progressMonitor, newElements, underlyingResource);
   } catch (ModelException e) {
     DLTKCore.error(e.toString(), e);
   }
 }
Example #2
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();
 }