コード例 #1
0
ファイル: VjoSourceModule.java プロジェクト: sleetish/vjet
 public void run() {
   try {
     isStructureKnown = doBuild(info, progressMonitor, newElements, underlyingResource);
   } catch (ModelException e) {
     DLTKCore.error(e.toString(), e);
   }
 }
コード例 #2
0
ファイル: Model.java プロジェクト: eclipse/vjet.dltk
 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();
 }