Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 235797 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/emf/codegen/ecore/genmodel/presentation/GenModelEditor.java (-2 lines)
Lines 510-516 Link Here
510
                   public void run()
510
                   public void run()
511
                   {
511
                   {
512
                     getSite().getPage().closeEditor(GenModelEditor.this, false);
512
                     getSite().getPage().closeEditor(GenModelEditor.this, false);
513
                     GenModelEditor.this.dispose();
514
                   }
513
                   }
515
                 });
514
                 });
516
            }
515
            }
Lines 565-571 Link Here
565
      if (handleDirtyConflict())
564
      if (handleDirtyConflict())
566
      {
565
      {
567
        getSite().getPage().closeEditor(GenModelEditor.this, false);
566
        getSite().getPage().closeEditor(GenModelEditor.this, false);
568
        GenModelEditor.this.dispose();
569
      }
567
      }
570
      else
568
      else
571
      {
569
      {
(-)src/org/eclipse/emf/mapping/ecore2xml/presentation/Ecore2XMLEditor.java (-2 lines)
Lines 562-568 Link Here
562
                   public void run()
562
                   public void run()
563
                   {
563
                   {
564
                     getSite().getPage().closeEditor(Ecore2XMLEditor.this, false);
564
                     getSite().getPage().closeEditor(Ecore2XMLEditor.this, false);
565
                     Ecore2XMLEditor.this.dispose();
566
                   }
565
                   }
567
                 });
566
                 });
568
            }
567
            }
Lines 613-619 Link Here
613
      if (handleDirtyConflict())
612
      if (handleDirtyConflict())
614
      {
613
      {
615
        getSite().getPage().closeEditor(Ecore2XMLEditor.this, false);
614
        getSite().getPage().closeEditor(Ecore2XMLEditor.this, false);
616
        Ecore2XMLEditor.this.dispose();
617
      }
615
      }
618
      else
616
      else
619
      {
617
      {
(-)src/org/eclipse/emf/ecore/sdo/presentation/SDOEditor.java (-2 lines)
Lines 530-536 Link Here
530
                   public void run()
530
                   public void run()
531
                   {
531
                   {
532
                     getSite().getPage().closeEditor(SDOEditor.this, false);
532
                     getSite().getPage().closeEditor(SDOEditor.this, false);
533
                     SDOEditor.this.dispose();
534
                   }
533
                   }
535
                 });
534
                 });
536
            }
535
            }
Lines 582-588 Link Here
582
      if (handleDirtyConflict())
581
      if (handleDirtyConflict())
583
      {
582
      {
584
        getSite().getPage().closeEditor(SDOEditor.this, false);
583
        getSite().getPage().closeEditor(SDOEditor.this, false);
585
        SDOEditor.this.dispose();
586
      }
584
      }
587
      else
585
      else
588
      {
586
      {
(-)src/org/eclipse/emf/java/presentation/JavaEditor.java (-2 lines)
Lines 540-546 Link Here
540
                   public void run()
540
                   public void run()
541
                   {
541
                   {
542
                     getSite().getPage().closeEditor(JavaEditor.this, false);
542
                     getSite().getPage().closeEditor(JavaEditor.this, false);
543
                     JavaEditor.this.dispose();
544
                   }
543
                   }
545
                 });
544
                 });
546
            }
545
            }
Lines 592-598 Link Here
592
      if (handleDirtyConflict())
591
      if (handleDirtyConflict())
593
      {
592
      {
594
        getSite().getPage().closeEditor(JavaEditor.this, false);
593
        getSite().getPage().closeEditor(JavaEditor.this, false);
595
        JavaEditor.this.dispose();
596
      }
594
      }
597
      else
595
      else
598
      {
596
      {
(-)src/org/eclipse/emf/examples/extlibrary/presentation/EXTLibraryEditor.java (-2 lines)
Lines 560-566 Link Here
560
                   public void run()
560
                   public void run()
561
                   {
561
                   {
562
                     getSite().getPage().closeEditor(EXTLibraryEditor.this, false);
562
                     getSite().getPage().closeEditor(EXTLibraryEditor.this, false);
563
                     EXTLibraryEditor.this.dispose();
564
                   }
563
                   }
565
                 });
564
                 });
566
            }
565
            }
Lines 611-617 Link Here
611
      if (handleDirtyConflict())
610
      if (handleDirtyConflict())
612
      {
611
      {
613
        getSite().getPage().closeEditor(EXTLibraryEditor.this, false);
612
        getSite().getPage().closeEditor(EXTLibraryEditor.this, false);
614
        EXTLibraryEditor.this.dispose();
615
      }
613
      }
616
      else
614
      else
617
      {
615
      {
(-)src/org/eclipse/emf/ecore/presentation/EcoreEditor.java (-2 lines)
Lines 546-552 Link Here
546
                   public void run()
546
                   public void run()
547
                   {
547
                   {
548
                     getSite().getPage().closeEditor(EcoreEditor.this, false);
548
                     getSite().getPage().closeEditor(EcoreEditor.this, false);
549
                     EcoreEditor.this.dispose();
550
                   }
549
                   }
551
                 });
550
                 });
552
            }
551
            }
Lines 599-605 Link Here
599
      if (handleDirtyConflict())
598
      if (handleDirtyConflict())
600
      {
599
      {
601
        getSite().getPage().closeEditor(EcoreEditor.this, false);
600
        getSite().getPage().closeEditor(EcoreEditor.this, false);
602
        EcoreEditor.this.dispose();
603
      }
601
      }
604
      else
602
      else
605
      {
603
      {
(-)templates/editor/Editor.javajet (-2 lines)
Lines 665-671 Link Here
665
									 public void run()
665
									 public void run()
666
									 {
666
									 {
667
										 getSite().getPage().closeEditor(<%=genPackage.getEditorClassName()%>.this, false);
667
										 getSite().getPage().closeEditor(<%=genPackage.getEditorClassName()%>.this, false);
668
										 <%=genPackage.getEditorClassName()%>.this.dispose();
669
									 }
668
									 }
670
								 });
669
								 });
671
						}
670
						}
Lines 719-725 Link Here
719
			if (handleDirtyConflict())
718
			if (handleDirtyConflict())
720
			{
719
			{
721
				getSite().getPage().closeEditor(<%=genPackage.getEditorClassName()%>.this, false);
720
				getSite().getPage().closeEditor(<%=genPackage.getEditorClassName()%>.this, false);
722
				<%=genPackage.getEditorClassName()%>.this.dispose();
723
			}
721
			}
724
			else
722
			else
725
			{
723
			{
(-)src/org/eclipse/emf/codegen/ecore/templates/editor/Editor.java (-398 / +392 lines)
Lines 106-340 Link Here
106
  protected final String TEXT_89 = "();" + NL + "" + NL + "\t\t\t\t\t\tpublic boolean visit(IResourceDelta delta)" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\tif (delta.getResource().getType() == IResource.FILE)" + NL + "\t\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\t\tif (delta.getKind() == IResourceDelta.REMOVED ||" + NL + "\t\t\t\t\t\t\t\t    delta.getKind() == IResourceDelta.CHANGED && delta.getFlags() != IResourceDelta.MARKERS)" + NL + "\t\t\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\t\t\tResource resource = resourceSet.getResource(URI.createURI(delta.getFullPath().toString()), false);" + NL + "\t\t\t\t\t\t\t\t\tif (resource != null)" + NL + "\t\t\t\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\t\t\t\tif (delta.getKind() == IResourceDelta.REMOVED)" + NL + "\t\t\t\t\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\t\t\t\t\tremovedResources.add(resource);" + NL + "\t\t\t\t\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\t\t\t\t\telse if (!savedResources.remove(resource))" + NL + "\t\t\t\t\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\t\t\t\t\tchangedResources.add(resource);" + NL + "\t\t\t\t\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\t\t}" + NL + "" + NL + "\t\t\t\t\t\t\treturn true;" + NL + "\t\t\t\t\t\t}" + NL + "" + NL + "\t\t\t\t\t\tpublic ";
106
  protected final String TEXT_89 = "();" + NL + "" + NL + "\t\t\t\t\t\tpublic boolean visit(IResourceDelta delta)" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\tif (delta.getResource().getType() == IResource.FILE)" + NL + "\t\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\t\tif (delta.getKind() == IResourceDelta.REMOVED ||" + NL + "\t\t\t\t\t\t\t\t    delta.getKind() == IResourceDelta.CHANGED && delta.getFlags() != IResourceDelta.MARKERS)" + NL + "\t\t\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\t\t\tResource resource = resourceSet.getResource(URI.createURI(delta.getFullPath().toString()), false);" + NL + "\t\t\t\t\t\t\t\t\tif (resource != null)" + NL + "\t\t\t\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\t\t\t\tif (delta.getKind() == IResourceDelta.REMOVED)" + NL + "\t\t\t\t\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\t\t\t\t\tremovedResources.add(resource);" + NL + "\t\t\t\t\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\t\t\t\t\telse if (!savedResources.remove(resource))" + NL + "\t\t\t\t\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\t\t\t\t\tchangedResources.add(resource);" + NL + "\t\t\t\t\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\t\t}" + NL + "" + NL + "\t\t\t\t\t\t\treturn true;" + NL + "\t\t\t\t\t\t}" + NL + "" + NL + "\t\t\t\t\t\tpublic ";
107
  protected final String TEXT_90 = " getChangedResources()" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\treturn changedResources;" + NL + "\t\t\t\t\t\t}" + NL + "" + NL + "\t\t\t\t\t\tpublic ";
107
  protected final String TEXT_90 = " getChangedResources()" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\treturn changedResources;" + NL + "\t\t\t\t\t\t}" + NL + "" + NL + "\t\t\t\t\t\tpublic ";
108
  protected final String TEXT_91 = " getRemovedResources()" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\treturn removedResources;" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}" + NL + "" + NL + "\t\t\t\t\tResourceDeltaVisitor visitor = new ResourceDeltaVisitor();" + NL + "\t\t\t\t\tdelta.accept(visitor);" + NL + "" + NL + "\t\t\t\t\tif (!visitor.getRemovedResources().isEmpty())" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tremovedResources.addAll(visitor.getRemovedResources());" + NL + "\t\t\t\t\t\tif (!isDirty())" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\tgetSite().getShell().getDisplay().asyncExec" + NL + "\t\t\t\t\t\t\t\t(new Runnable()" + NL + "\t\t\t\t\t\t\t\t {" + NL + "\t\t\t\t\t\t\t\t\t public void run()" + NL + "\t\t\t\t\t\t\t\t\t {" + NL + "\t\t\t\t\t\t\t\t\t\t getSite().getPage().closeEditor(";
108
  protected final String TEXT_91 = " getRemovedResources()" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\treturn removedResources;" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}" + NL + "" + NL + "\t\t\t\t\tResourceDeltaVisitor visitor = new ResourceDeltaVisitor();" + NL + "\t\t\t\t\tdelta.accept(visitor);" + NL + "" + NL + "\t\t\t\t\tif (!visitor.getRemovedResources().isEmpty())" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tremovedResources.addAll(visitor.getRemovedResources());" + NL + "\t\t\t\t\t\tif (!isDirty())" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\tgetSite().getShell().getDisplay().asyncExec" + NL + "\t\t\t\t\t\t\t\t(new Runnable()" + NL + "\t\t\t\t\t\t\t\t {" + NL + "\t\t\t\t\t\t\t\t\t public void run()" + NL + "\t\t\t\t\t\t\t\t\t {" + NL + "\t\t\t\t\t\t\t\t\t\t getSite().getPage().closeEditor(";
109
  protected final String TEXT_92 = ".this, false);" + NL + "\t\t\t\t\t\t\t\t\t\t ";
109
  protected final String TEXT_92 = ".this, false);" + NL + "\t\t\t\t\t\t\t\t\t }" + NL + "\t\t\t\t\t\t\t\t });" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}" + NL + "" + NL + "\t\t\t\t\tif (!visitor.getChangedResources().isEmpty())" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tchangedResources.addAll(visitor.getChangedResources());" + NL + "\t\t\t\t\t\tif (getSite().getPage().getActiveEditor() == ";
110
  protected final String TEXT_93 = ".this.dispose();" + NL + "\t\t\t\t\t\t\t\t\t }" + NL + "\t\t\t\t\t\t\t\t });" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}" + NL + "" + NL + "\t\t\t\t\tif (!visitor.getChangedResources().isEmpty())" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tchangedResources.addAll(visitor.getChangedResources());" + NL + "\t\t\t\t\t\tif (getSite().getPage().getActiveEditor() == ";
110
  protected final String TEXT_93 = ".this)" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\tgetSite().getShell().getDisplay().asyncExec" + NL + "\t\t\t\t\t\t\t\t(new Runnable()" + NL + "\t\t\t\t\t\t\t\t {" + NL + "\t\t\t\t\t\t\t\t\t public void run()" + NL + "\t\t\t\t\t\t\t\t\t {" + NL + "\t\t\t\t\t\t\t\t\t\t handleActivate();" + NL + "\t\t\t\t\t\t\t\t\t }" + NL + "\t\t\t\t\t\t\t\t });" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t\tcatch (CoreException exception)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\t";
111
  protected final String TEXT_94 = ".this)" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\tgetSite().getShell().getDisplay().asyncExec" + NL + "\t\t\t\t\t\t\t\t(new Runnable()" + NL + "\t\t\t\t\t\t\t\t {" + NL + "\t\t\t\t\t\t\t\t\t public void run()" + NL + "\t\t\t\t\t\t\t\t\t {" + NL + "\t\t\t\t\t\t\t\t\t\t handleActivate();" + NL + "\t\t\t\t\t\t\t\t\t }" + NL + "\t\t\t\t\t\t\t\t });" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t\tcatch (CoreException exception)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\t";
111
  protected final String TEXT_94 = ".INSTANCE.log(exception);" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t};";
112
  protected final String TEXT_95 = ".INSTANCE.log(exception);" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t};";
112
  protected final String TEXT_95 = NL + NL + "\t/**" + NL + "\t * Handles activation of the editor or it's associated views." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void handleActivate()" + NL + "\t{" + NL + "\t\t// Recompute the read only state." + NL + "\t\t//" + NL + "\t\tif (editingDomain.getResourceToReadOnlyMap() != null)" + NL + "\t\t{" + NL + "\t\t  editingDomain.getResourceToReadOnlyMap().clear();" + NL + "" + NL + "\t\t  // Refresh any actions that may become enabled or disabled." + NL + "\t\t  //" + NL + "\t\t  setSelection(getSelection());" + NL + "\t\t}" + NL + "" + NL + "\t\tif (!removedResources.isEmpty())" + NL + "\t\t{" + NL + "\t\t\tif (handleDirtyConflict())" + NL + "\t\t\t{" + NL + "\t\t\t\tgetSite().getPage().closeEditor(";
113
  protected final String TEXT_96 = NL + NL + "\t/**" + NL + "\t * Handles activation of the editor or it's associated views." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void handleActivate()" + NL + "\t{" + NL + "\t\t// Recompute the read only state." + NL + "\t\t//" + NL + "\t\tif (editingDomain.getResourceToReadOnlyMap() != null)" + NL + "\t\t{" + NL + "\t\t  editingDomain.getResourceToReadOnlyMap().clear();" + NL + "" + NL + "\t\t  // Refresh any actions that may become enabled or disabled." + NL + "\t\t  //" + NL + "\t\t  setSelection(getSelection());" + NL + "\t\t}" + NL + "" + NL + "\t\tif (!removedResources.isEmpty())" + NL + "\t\t{" + NL + "\t\t\tif (handleDirtyConflict())" + NL + "\t\t\t{" + NL + "\t\t\t\tgetSite().getPage().closeEditor(";
113
  protected final String TEXT_96 = ".this, false);" + NL + "\t\t\t}" + NL + "\t\t\telse" + NL + "\t\t\t{" + NL + "\t\t\t\tremovedResources.clear();" + NL + "\t\t\t\tchangedResources.clear();" + NL + "\t\t\t\tsavedResources.clear();" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t\telse if (!changedResources.isEmpty())" + NL + "\t\t{" + NL + "\t\t\tchangedResources.removeAll(savedResources);" + NL + "\t\t\thandleChangedResources();" + NL + "\t\t\tchangedResources.clear();" + NL + "\t\t\tsavedResources.clear();" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * Handles what to do with changed resources on activation." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void handleChangedResources()" + NL + "\t{" + NL + "\t\tif (!changedResources.isEmpty() && (!isDirty() || handleDirtyConflict()))" + NL + "\t\t{" + NL + "\t\t\tif (isDirty())" + NL + "\t\t\t{" + NL + "\t\t\t\tchangedResources.addAll(editingDomain.getResourceSet().getResources());" + NL + "\t\t\t}" + NL + "\t\t\teditingDomain.getCommandStack().flush();" + NL + "" + NL + "\t\t\tupdateProblemIndication = false;";
114
  protected final String TEXT_97 = ".this, false);" + NL + "\t\t\t\t";
114
  protected final String TEXT_97 = NL + "\t\t\tfor (Resource resource : changedResources)";
115
  protected final String TEXT_98 = ".this.dispose();" + NL + "\t\t\t}" + NL + "\t\t\telse" + NL + "\t\t\t{" + NL + "\t\t\t\tremovedResources.clear();" + NL + "\t\t\t\tchangedResources.clear();" + NL + "\t\t\t\tsavedResources.clear();" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t\telse if (!changedResources.isEmpty())" + NL + "\t\t{" + NL + "\t\t\tchangedResources.removeAll(savedResources);" + NL + "\t\t\thandleChangedResources();" + NL + "\t\t\tchangedResources.clear();" + NL + "\t\t\tsavedResources.clear();" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * Handles what to do with changed resources on activation." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void handleChangedResources()" + NL + "\t{" + NL + "\t\tif (!changedResources.isEmpty() && (!isDirty() || handleDirtyConflict()))" + NL + "\t\t{" + NL + "\t\t\tif (isDirty())" + NL + "\t\t\t{" + NL + "\t\t\t\tchangedResources.addAll(editingDomain.getResourceSet().getResources());" + NL + "\t\t\t}" + NL + "\t\t\teditingDomain.getCommandStack().flush();" + NL + "" + NL + "\t\t\tupdateProblemIndication = false;";
115
  protected final String TEXT_98 = NL + "\t\t\tfor (Iterator i = changedResources.iterator(); i.hasNext(); )";
116
  protected final String TEXT_99 = NL + "\t\t\tfor (Resource resource : changedResources)";
116
  protected final String TEXT_99 = NL + "\t\t\t{";
117
  protected final String TEXT_100 = NL + "\t\t\tfor (Iterator i = changedResources.iterator(); i.hasNext(); )";
117
  protected final String TEXT_100 = NL + "\t\t\t\tResource resource = (Resource)i.next();";
118
  protected final String TEXT_101 = NL + "\t\t\t{";
118
  protected final String TEXT_101 = NL + "\t\t\t\tif (resource.isLoaded())" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tresource.unload();" + NL + "\t\t\t\t\ttry" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tresource.load(Collections.EMPTY_MAP);" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tcatch (IOException exception)" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tif (!resourceToDiagnosticMap.containsKey(resource))" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\tresourceToDiagnosticMap.put(resource, analyzeResourceProblems(resource, exception));" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "" + NL + "\t\t\tif (AdapterFactoryEditingDomain.isStale(editorSelection))" + NL + "\t\t\t{" + NL + "\t\t\t\tsetSelection(StructuredSelection.EMPTY);" + NL + "\t\t\t}" + NL + "" + NL + "\t\t\tupdateProblemIndication = true;" + NL + "\t\t\tupdateProblemIndication();" + NL + "\t\t}" + NL + "\t}" + NL + "  " + NL + "\t/**" + NL + "\t * Updates the problems indication with the information described in the specified diagnostic." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void updateProblemIndication()" + NL + "\t{" + NL + "\t\tif (updateProblemIndication)" + NL + "\t\t{" + NL + "\t\t\tBasicDiagnostic diagnostic =" + NL + "\t\t\t\tnew BasicDiagnostic" + NL + "\t\t\t\t\t(Diagnostic.OK," + NL + "\t\t\t\t\t \"";
119
  protected final String TEXT_102 = NL + "\t\t\t\tResource resource = (Resource)i.next();";
119
  protected final String TEXT_102 = "\",";
120
  protected final String TEXT_103 = NL + "\t\t\t\tif (resource.isLoaded())" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tresource.unload();" + NL + "\t\t\t\t\ttry" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tresource.load(Collections.EMPTY_MAP);" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tcatch (IOException exception)" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tif (!resourceToDiagnosticMap.containsKey(resource))" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\tresourceToDiagnosticMap.put(resource, analyzeResourceProblems(resource, exception));" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "" + NL + "\t\t\tif (AdapterFactoryEditingDomain.isStale(editorSelection))" + NL + "\t\t\t{" + NL + "\t\t\t\tsetSelection(StructuredSelection.EMPTY);" + NL + "\t\t\t}" + NL + "" + NL + "\t\t\tupdateProblemIndication = true;" + NL + "\t\t\tupdateProblemIndication();" + NL + "\t\t}" + NL + "\t}" + NL + "  " + NL + "\t/**" + NL + "\t * Updates the problems indication with the information described in the specified diagnostic." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void updateProblemIndication()" + NL + "\t{" + NL + "\t\tif (updateProblemIndication)" + NL + "\t\t{" + NL + "\t\t\tBasicDiagnostic diagnostic =" + NL + "\t\t\t\tnew BasicDiagnostic" + NL + "\t\t\t\t\t(Diagnostic.OK," + NL + "\t\t\t\t\t \"";
120
  protected final String TEXT_103 = NL + "\t\t\t\t\t 0," + NL + "\t\t\t\t\t null," + NL + "\t\t\t\t\t new Object [] { editingDomain.getResourceSet() });";
121
  protected final String TEXT_104 = "\",";
121
  protected final String TEXT_104 = NL + "\t\t\tfor (Diagnostic childDiagnostic : resourceToDiagnosticMap.values())";
122
  protected final String TEXT_105 = NL + "\t\t\t\t\t 0," + NL + "\t\t\t\t\t null," + NL + "\t\t\t\t\t new Object [] { editingDomain.getResourceSet() });";
122
  protected final String TEXT_105 = NL + "\t\t\tfor (Iterator i = resourceToDiagnosticMap.values().iterator(); i.hasNext(); )";
123
  protected final String TEXT_106 = NL + "\t\t\tfor (Diagnostic childDiagnostic : resourceToDiagnosticMap.values())";
123
  protected final String TEXT_106 = NL + "\t\t\t{";
124
  protected final String TEXT_107 = NL + "\t\t\tfor (Iterator i = resourceToDiagnosticMap.values().iterator(); i.hasNext(); )";
124
  protected final String TEXT_107 = NL + "\t\t\t\tDiagnostic childDiagnostic = (Diagnostic)i.next();";
125
  protected final String TEXT_108 = NL + "\t\t\t{";
125
  protected final String TEXT_108 = NL + "\t\t\t\tif (childDiagnostic.getSeverity() != Diagnostic.OK)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tdiagnostic.add(childDiagnostic);" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "" + NL + "\t\t\tint lastEditorPage = getPageCount() - 1;" + NL + "\t\t\tif (lastEditorPage >= 0 && getEditor(lastEditorPage) instanceof ProblemEditorPart)" + NL + "\t\t\t{" + NL + "\t\t\t\t((ProblemEditorPart)getEditor(lastEditorPage)).setDiagnostic(diagnostic);" + NL + "\t\t\t\tif (diagnostic.getSeverity() != Diagnostic.OK)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tsetActivePage(lastEditorPage);" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t\telse if (diagnostic.getSeverity() != Diagnostic.OK)" + NL + "\t\t\t{" + NL + "\t\t\t\tProblemEditorPart problemEditorPart = new ProblemEditorPart();" + NL + "\t\t\t\tproblemEditorPart.setDiagnostic(diagnostic);";
126
  protected final String TEXT_109 = NL + "\t\t\t\tDiagnostic childDiagnostic = (Diagnostic)i.next();";
126
  protected final String TEXT_109 = NL + "\t\t\t\tproblemEditorPart.setMarkerHelper(markerHelper);";
127
  protected final String TEXT_110 = NL + "\t\t\t\tif (childDiagnostic.getSeverity() != Diagnostic.OK)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tdiagnostic.add(childDiagnostic);" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "" + NL + "\t\t\tint lastEditorPage = getPageCount() - 1;" + NL + "\t\t\tif (lastEditorPage >= 0 && getEditor(lastEditorPage) instanceof ProblemEditorPart)" + NL + "\t\t\t{" + NL + "\t\t\t\t((ProblemEditorPart)getEditor(lastEditorPage)).setDiagnostic(diagnostic);" + NL + "\t\t\t\tif (diagnostic.getSeverity() != Diagnostic.OK)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tsetActivePage(lastEditorPage);" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t\telse if (diagnostic.getSeverity() != Diagnostic.OK)" + NL + "\t\t\t{" + NL + "\t\t\t\tProblemEditorPart problemEditorPart = new ProblemEditorPart();" + NL + "\t\t\t\tproblemEditorPart.setDiagnostic(diagnostic);";
127
  protected final String TEXT_110 = NL + "\t\t\t\ttry" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\taddPage(++lastEditorPage, problemEditorPart, getEditorInput());" + NL + "\t\t\t\t\tsetPageText(lastEditorPage, problemEditorPart.getPartName());" + NL + "\t\t\t\t\tsetActivePage(lastEditorPage);" + NL + "\t\t\t\t\tshowTabs();" + NL + "\t\t\t\t}" + NL + "\t\t\t\tcatch (PartInitException exception)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\t";
128
  protected final String TEXT_111 = NL + "\t\t\t\tproblemEditorPart.setMarkerHelper(markerHelper);";
128
  protected final String TEXT_111 = ".INSTANCE.log(exception);" + NL + "\t\t\t\t}" + NL + "\t\t\t}";
129
  protected final String TEXT_112 = NL + "\t\t\t\ttry" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\taddPage(++lastEditorPage, problemEditorPart, getEditorInput());" + NL + "\t\t\t\t\tsetPageText(lastEditorPage, problemEditorPart.getPartName());" + NL + "\t\t\t\t\tsetActivePage(lastEditorPage);" + NL + "\t\t\t\t\tshowTabs();" + NL + "\t\t\t\t}" + NL + "\t\t\t\tcatch (PartInitException exception)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\t";
129
  protected final String TEXT_112 = NL + NL + "\t\t\tif (markerHelper.hasMarkers(editingDomain.getResourceSet()))" + NL + "\t\t\t{" + NL + "\t\t\t\tmarkerHelper.deleteMarkers(editingDomain.getResourceSet());" + NL + "\t\t\t\tif (diagnostic.getSeverity() != Diagnostic.OK)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\ttry" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tmarkerHelper.createMarkers(diagnostic);" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tcatch (CoreException exception)" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\t";
130
  protected final String TEXT_113 = ".INSTANCE.log(exception);" + NL + "\t\t\t\t}" + NL + "\t\t\t}";
130
  protected final String TEXT_113 = ".INSTANCE.log(exception);" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t}";
131
  protected final String TEXT_114 = NL + NL + "\t\t\tif (markerHelper.hasMarkers(editingDomain.getResourceSet()))" + NL + "\t\t\t{" + NL + "\t\t\t\tmarkerHelper.deleteMarkers(editingDomain.getResourceSet());" + NL + "\t\t\t\tif (diagnostic.getSeverity() != Diagnostic.OK)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\ttry" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tmarkerHelper.createMarkers(diagnostic);" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tcatch (CoreException exception)" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\t";
131
  protected final String TEXT_114 = NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * Shows a dialog that asks if conflicting changes should be discarded." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected boolean handleDirtyConflict()" + NL + "\t{" + NL + "\t\treturn" + NL + "\t\t\tMessageDialog.openQuestion" + NL + "\t\t\t\t(getSite().getShell()," + NL + "\t\t\t\t getString(\"_UI_FileConflict_label\"),";
132
  protected final String TEXT_115 = ".INSTANCE.log(exception);" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t}";
132
  protected final String TEXT_115 = NL + "\t\t\t\t getString(\"_WARN_FileConflict\"));";
133
  protected final String TEXT_116 = NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * Shows a dialog that asks if conflicting changes should be discarded." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected boolean handleDirtyConflict()" + NL + "\t{" + NL + "\t\treturn" + NL + "\t\t\tMessageDialog.openQuestion" + NL + "\t\t\t\t(getSite().getShell()," + NL + "\t\t\t\t getString(\"_UI_FileConflict_label\"),";
133
  protected final String TEXT_116 = NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This creates a model editor." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic ";
134
  protected final String TEXT_117 = NL + "\t\t\t\t getString(\"_WARN_FileConflict\"));";
134
  protected final String TEXT_117 = "()" + NL + "\t{" + NL + "\t\tsuper();" + NL + "\t\tinitializeEditingDomain();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This sets up the editing domain for the model editor." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void initializeEditingDomain()" + NL + "\t{" + NL + "\t\t// Create an adapter factory that yields item providers." + NL + "\t\t//" + NL + "\t\tadapterFactory = new ComposedAdapterFactory(ComposedAdapterFactory.Descriptor.Registry.INSTANCE);" + NL + "" + NL + "\t\tadapterFactory.addAdapterFactory(new ResourceItemProviderAdapterFactory());";
135
  protected final String TEXT_118 = NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This creates a model editor." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic ";
135
  protected final String TEXT_118 = NL + "\t\tadapterFactory.addAdapterFactory(new ";
136
  protected final String TEXT_119 = "()" + NL + "\t{" + NL + "\t\tsuper();" + NL + "\t\tinitializeEditingDomain();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This sets up the editing domain for the model editor." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void initializeEditingDomain()" + NL + "\t{" + NL + "\t\t// Create an adapter factory that yields item providers." + NL + "\t\t//" + NL + "\t\tadapterFactory = new ComposedAdapterFactory(ComposedAdapterFactory.Descriptor.Registry.INSTANCE);" + NL + "" + NL + "\t\tadapterFactory.addAdapterFactory(new ResourceItemProviderAdapterFactory());";
136
  protected final String TEXT_119 = "());";
137
  protected final String TEXT_120 = NL + "\t\tadapterFactory.addAdapterFactory(new ";
137
  protected final String TEXT_120 = NL + "\t\tadapterFactory.addAdapterFactory(new ";
138
  protected final String TEXT_121 = "());";
138
  protected final String TEXT_121 = "());";
139
  protected final String TEXT_122 = NL + "\t\tadapterFactory.addAdapterFactory(new ";
139
  protected final String TEXT_122 = NL + "\t\tadapterFactory.addAdapterFactory(new ReflectiveItemProviderAdapterFactory());" + NL + "" + NL + "\t\t// Create the command stack that will notify this editor as commands are executed." + NL + "\t\t//" + NL + "\t\tBasicCommandStack commandStack = new BasicCommandStack();" + NL + "" + NL + "\t\t// Add a listener to set the most recent command's affected objects to be the selection of the viewer with focus." + NL + "\t\t//" + NL + "\t\tcommandStack.addCommandStackListener" + NL + "\t\t\t(new CommandStackListener()" + NL + "\t\t\t {" + NL + "\t\t\t\t public void commandStackChanged(final EventObject event)" + NL + "\t\t\t\t {" + NL + "\t\t\t\t\t getContainer().getDisplay().asyncExec" + NL + "\t\t\t\t\t\t (new Runnable()" + NL + "\t\t\t\t\t\t  {" + NL + "\t\t\t\t\t\t\t  public void run()" + NL + "\t\t\t\t\t\t\t  {" + NL + "\t\t\t\t\t\t\t\t  firePropertyChange(IEditorPart.PROP_DIRTY);" + NL + "" + NL + "\t\t\t\t\t\t\t\t  // Try to select the affected objects." + NL + "\t\t\t\t\t\t\t\t  //" + NL + "\t\t\t\t\t\t\t\t  Command mostRecentCommand = ((CommandStack)event.getSource()).getMostRecentCommand();" + NL + "\t\t\t\t\t\t\t\t  if (mostRecentCommand != null)" + NL + "\t\t\t\t\t\t\t\t  {" + NL + "\t\t\t\t\t\t\t\t\t  setSelectionToViewer(mostRecentCommand.getAffectedObjects());" + NL + "\t\t\t\t\t\t\t\t  }" + NL + "\t\t\t\t\t\t\t\t  if (propertySheetPage != null && !propertySheetPage.getControl().isDisposed())" + NL + "\t\t\t\t\t\t\t\t  {" + NL + "\t\t\t\t\t\t\t\t\t  propertySheetPage.refresh();" + NL + "\t\t\t\t\t\t\t\t  }" + NL + "\t\t\t\t\t\t\t  }" + NL + "\t\t\t\t\t\t  });" + NL + "\t\t\t\t }" + NL + "\t\t\t });" + NL + "" + NL + "\t\t// Create the editing domain with a special command stack." + NL + "\t\t//" + NL + "\t\teditingDomain = new AdapterFactoryEditingDomain(adapterFactory, commandStack, new ";
140
  protected final String TEXT_123 = "());";
140
  protected final String TEXT_123 = "());" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This is here for the listener to be able to call it." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
141
  protected final String TEXT_124 = NL + "\t\tadapterFactory.addAdapterFactory(new ReflectiveItemProviderAdapterFactory());" + NL + "" + NL + "\t\t// Create the command stack that will notify this editor as commands are executed." + NL + "\t\t//" + NL + "\t\tBasicCommandStack commandStack = new BasicCommandStack();" + NL + "" + NL + "\t\t// Add a listener to set the most recent command's affected objects to be the selection of the viewer with focus." + NL + "\t\t//" + NL + "\t\tcommandStack.addCommandStackListener" + NL + "\t\t\t(new CommandStackListener()" + NL + "\t\t\t {" + NL + "\t\t\t\t public void commandStackChanged(final EventObject event)" + NL + "\t\t\t\t {" + NL + "\t\t\t\t\t getContainer().getDisplay().asyncExec" + NL + "\t\t\t\t\t\t (new Runnable()" + NL + "\t\t\t\t\t\t  {" + NL + "\t\t\t\t\t\t\t  public void run()" + NL + "\t\t\t\t\t\t\t  {" + NL + "\t\t\t\t\t\t\t\t  firePropertyChange(IEditorPart.PROP_DIRTY);" + NL + "" + NL + "\t\t\t\t\t\t\t\t  // Try to select the affected objects." + NL + "\t\t\t\t\t\t\t\t  //" + NL + "\t\t\t\t\t\t\t\t  Command mostRecentCommand = ((CommandStack)event.getSource()).getMostRecentCommand();" + NL + "\t\t\t\t\t\t\t\t  if (mostRecentCommand != null)" + NL + "\t\t\t\t\t\t\t\t  {" + NL + "\t\t\t\t\t\t\t\t\t  setSelectionToViewer(mostRecentCommand.getAffectedObjects());" + NL + "\t\t\t\t\t\t\t\t  }" + NL + "\t\t\t\t\t\t\t\t  if (propertySheetPage != null && !propertySheetPage.getControl().isDisposed())" + NL + "\t\t\t\t\t\t\t\t  {" + NL + "\t\t\t\t\t\t\t\t\t  propertySheetPage.refresh();" + NL + "\t\t\t\t\t\t\t\t  }" + NL + "\t\t\t\t\t\t\t  }" + NL + "\t\t\t\t\t\t  });" + NL + "\t\t\t\t }" + NL + "\t\t\t });" + NL + "" + NL + "\t\t// Create the editing domain with a special command stack." + NL + "\t\t//" + NL + "\t\teditingDomain = new AdapterFactoryEditingDomain(adapterFactory, commandStack, new ";
141
  protected final String TEXT_124 = NL + "\t\t\t@Override";
142
  protected final String TEXT_125 = "());" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This is here for the listener to be able to call it." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
142
  protected final String TEXT_125 = NL + "\tprotected void firePropertyChange(int action)" + NL + "\t{" + NL + "\t\tsuper.firePropertyChange(action);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This sets the selection into whichever viewer is active." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void setSelectionToViewer(";
143
  protected final String TEXT_126 = NL + "\t\t\t@Override";
143
  protected final String TEXT_126 = " collection)" + NL + "\t{" + NL + "\t\tfinal ";
144
  protected final String TEXT_127 = NL + "\tprotected void firePropertyChange(int action)" + NL + "\t{" + NL + "\t\tsuper.firePropertyChange(action);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This sets the selection into whichever viewer is active." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void setSelectionToViewer(";
144
  protected final String TEXT_127 = " theSelection = collection;" + NL + "\t\t// Make sure it's okay." + NL + "\t\t//" + NL + "\t\tif (theSelection != null && !theSelection.isEmpty())" + NL + "\t\t{" + NL + "\t\t\t// I don't know if this should be run this deferred" + NL + "\t\t\t// because we might have to give the editor a chance to process the viewer update events" + NL + "\t\t\t// and hence to update the views first." + NL + "\t\t\t//" + NL + "\t\t\t//" + NL + "\t\t\tRunnable runnable =" + NL + "\t\t\t\tnew Runnable()" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tpublic void run()" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\t// Try to select the items in the current content viewer of the editor." + NL + "\t\t\t\t\t\t//" + NL + "\t\t\t\t\t\tif (currentViewer != null)" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\tcurrentViewer.setSelection(new StructuredSelection(theSelection.toArray()), true);" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t};" + NL + "\t\t\trunnable.run();" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This returns the editing domain as required by the {@link IEditingDomainProvider} interface." + NL + "\t * This is important for implementing the static methods of {@link AdapterFactoryEditingDomain}" + NL + "\t * and for supporting {@link org.eclipse.emf.edit.ui.action.CommandAction}." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic EditingDomain getEditingDomain()" + NL + "\t{" + NL + "\t\treturn editingDomain;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic class ReverseAdapterFactoryContentProvider extends AdapterFactoryContentProvider" + NL + "\t{" + NL + "\t\t/**" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic ReverseAdapterFactoryContentProvider(AdapterFactory adapterFactory)" + NL + "\t\t{" + NL + "\t\t\tsuper(adapterFactory);" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */";
145
  protected final String TEXT_128 = " collection)" + NL + "\t{" + NL + "\t\tfinal ";
145
  protected final String TEXT_128 = NL + "\t\t@Override";
146
  protected final String TEXT_129 = " theSelection = collection;" + NL + "\t\t// Make sure it's okay." + NL + "\t\t//" + NL + "\t\tif (theSelection != null && !theSelection.isEmpty())" + NL + "\t\t{" + NL + "\t\t\t// I don't know if this should be run this deferred" + NL + "\t\t\t// because we might have to give the editor a chance to process the viewer update events" + NL + "\t\t\t// and hence to update the views first." + NL + "\t\t\t//" + NL + "\t\t\t//" + NL + "\t\t\tRunnable runnable =" + NL + "\t\t\t\tnew Runnable()" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tpublic void run()" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\t// Try to select the items in the current content viewer of the editor." + NL + "\t\t\t\t\t\t//" + NL + "\t\t\t\t\t\tif (currentViewer != null)" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\tcurrentViewer.setSelection(new StructuredSelection(theSelection.toArray()), true);" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t};" + NL + "\t\t\trunnable.run();" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This returns the editing domain as required by the {@link IEditingDomainProvider} interface." + NL + "\t * This is important for implementing the static methods of {@link AdapterFactoryEditingDomain}" + NL + "\t * and for supporting {@link org.eclipse.emf.edit.ui.action.CommandAction}." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic EditingDomain getEditingDomain()" + NL + "\t{" + NL + "\t\treturn editingDomain;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic class ReverseAdapterFactoryContentProvider extends AdapterFactoryContentProvider" + NL + "\t{" + NL + "\t\t/**" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic ReverseAdapterFactoryContentProvider(AdapterFactory adapterFactory)" + NL + "\t\t{" + NL + "\t\t\tsuper(adapterFactory);" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */";
146
  protected final String TEXT_129 = NL + "\t\tpublic Object [] getElements(Object object)" + NL + "\t\t{" + NL + "\t\t\tObject parent = super.getParent(object);" + NL + "\t\t\treturn (parent == null ? Collections.EMPTY_SET : Collections.singleton(parent)).toArray();" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */";
147
  protected final String TEXT_130 = NL + "\t\t@Override";
147
  protected final String TEXT_130 = NL + "\t\t@Override";
148
  protected final String TEXT_131 = NL + "\t\tpublic Object [] getElements(Object object)" + NL + "\t\t{" + NL + "\t\t\tObject parent = super.getParent(object);" + NL + "\t\t\treturn (parent == null ? Collections.EMPTY_SET : Collections.singleton(parent)).toArray();" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */";
148
  protected final String TEXT_131 = NL + "\t\tpublic Object [] getChildren(Object object)" + NL + "\t\t{" + NL + "\t\t\tObject parent = super.getParent(object);" + NL + "\t\t\treturn (parent == null ? Collections.EMPTY_SET : Collections.singleton(parent)).toArray();" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */";
149
  protected final String TEXT_132 = NL + "\t\t@Override";
149
  protected final String TEXT_132 = NL + "\t\t@Override";
150
  protected final String TEXT_133 = NL + "\t\tpublic Object [] getChildren(Object object)" + NL + "\t\t{" + NL + "\t\t\tObject parent = super.getParent(object);" + NL + "\t\t\treturn (parent == null ? Collections.EMPTY_SET : Collections.singleton(parent)).toArray();" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */";
150
  protected final String TEXT_133 = NL + "\t\tpublic boolean hasChildren(Object object)" + NL + "\t\t{" + NL + "\t\t\tObject parent = super.getParent(object);" + NL + "\t\t\treturn parent != null;" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */";
151
  protected final String TEXT_134 = NL + "\t\t@Override";
151
  protected final String TEXT_134 = NL + "\t\t@Override";
152
  protected final String TEXT_135 = NL + "\t\tpublic boolean hasChildren(Object object)" + NL + "\t\t{" + NL + "\t\t\tObject parent = super.getParent(object);" + NL + "\t\t\treturn parent != null;" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */";
152
  protected final String TEXT_135 = NL + "\t\tpublic Object getParent(Object object)" + NL + "\t\t{" + NL + "\t\t\treturn null;" + NL + "\t\t}" + NL + "\t}";
153
  protected final String TEXT_136 = NL + "\t\t@Override";
153
  protected final String TEXT_136 = NL + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void setCurrentViewerPane(ViewerPane viewerPane)" + NL + "\t{" + NL + "\t\tif (currentViewerPane != viewerPane)" + NL + "\t\t{" + NL + "\t\t\tif (currentViewerPane != null)" + NL + "\t\t\t{" + NL + "\t\t\t\tcurrentViewerPane.showFocus(false);" + NL + "\t\t\t}" + NL + "\t\t\tcurrentViewerPane = viewerPane;" + NL + "\t\t}" + NL + "\t\tsetCurrentViewer(currentViewerPane.getViewer());" + NL + "\t}";
154
  protected final String TEXT_137 = NL + "\t\tpublic Object getParent(Object object)" + NL + "\t\t{" + NL + "\t\t\treturn null;" + NL + "\t\t}" + NL + "\t}";
154
  protected final String TEXT_137 = NL + NL + "\t/**" + NL + "\t * This makes sure that one content viewer, either for the current page or the outline view, if it has focus," + NL + "\t * is the current one." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void setCurrentViewer(Viewer viewer)" + NL + "\t{" + NL + "\t\t// If it is changing..." + NL + "\t\t//" + NL + "\t\tif (currentViewer != viewer)" + NL + "\t\t{" + NL + "\t\t\tif (selectionChangedListener == null)" + NL + "\t\t\t{" + NL + "\t\t\t\t// Create the listener on demand." + NL + "\t\t\t\t//" + NL + "\t\t\t\tselectionChangedListener =" + NL + "\t\t\t\t\tnew ISelectionChangedListener()" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\t// This just notifies those things that are affected by the section." + NL + "\t\t\t\t\t\t//" + NL + "\t\t\t\t\t\tpublic void selectionChanged(SelectionChangedEvent selectionChangedEvent)" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\tsetSelection(selectionChangedEvent.getSelection());" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t};" + NL + "\t\t\t}" + NL + "" + NL + "\t\t\t// Stop listening to the old one." + NL + "\t\t\t//" + NL + "\t\t\tif (currentViewer != null)" + NL + "\t\t\t{" + NL + "\t\t\t\tcurrentViewer.removeSelectionChangedListener(selectionChangedListener);" + NL + "\t\t\t}" + NL + "" + NL + "\t\t\t// Start listening to the new one." + NL + "\t\t\t//" + NL + "\t\t\tif (viewer != null)" + NL + "\t\t\t{" + NL + "\t\t\t\tviewer.addSelectionChangedListener(selectionChangedListener);" + NL + "\t\t\t}" + NL + "" + NL + "\t\t\t// Remember it." + NL + "\t\t\t//" + NL + "\t\t\tcurrentViewer = viewer;" + NL + "" + NL + "\t\t\t// Set the editors selection based on the current viewer's selection." + NL + "\t\t\t//" + NL + "\t\t\tsetSelection(currentViewer == null ? StructuredSelection.EMPTY : currentViewer.getSelection());" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This returns the viewer as required by the {@link IViewerProvider} interface." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic Viewer getViewer()" + NL + "\t{" + NL + "\t\treturn currentViewer;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This creates a context menu for the viewer and adds a listener as well registering the menu for extension." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void createContextMenuFor(StructuredViewer viewer)" + NL + "\t{" + NL + "\t\tMenuManager contextMenu = new MenuManager(\"#PopUp\");";
155
  protected final String TEXT_138 = NL + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void setCurrentViewerPane(ViewerPane viewerPane)" + NL + "\t{" + NL + "\t\tif (currentViewerPane != viewerPane)" + NL + "\t\t{" + NL + "\t\t\tif (currentViewerPane != null)" + NL + "\t\t\t{" + NL + "\t\t\t\tcurrentViewerPane.showFocus(false);" + NL + "\t\t\t}" + NL + "\t\t\tcurrentViewerPane = viewerPane;" + NL + "\t\t}" + NL + "\t\tsetCurrentViewer(currentViewerPane.getViewer());" + NL + "\t}";
155
  protected final String TEXT_138 = NL + "\t\tcontextMenu.add(new Separator(\"additions\"));";
156
  protected final String TEXT_139 = NL + NL + "\t/**" + NL + "\t * This makes sure that one content viewer, either for the current page or the outline view, if it has focus," + NL + "\t * is the current one." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void setCurrentViewer(Viewer viewer)" + NL + "\t{" + NL + "\t\t// If it is changing..." + NL + "\t\t//" + NL + "\t\tif (currentViewer != viewer)" + NL + "\t\t{" + NL + "\t\t\tif (selectionChangedListener == null)" + NL + "\t\t\t{" + NL + "\t\t\t\t// Create the listener on demand." + NL + "\t\t\t\t//" + NL + "\t\t\t\tselectionChangedListener =" + NL + "\t\t\t\t\tnew ISelectionChangedListener()" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\t// This just notifies those things that are affected by the section." + NL + "\t\t\t\t\t\t//" + NL + "\t\t\t\t\t\tpublic void selectionChanged(SelectionChangedEvent selectionChangedEvent)" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\tsetSelection(selectionChangedEvent.getSelection());" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t};" + NL + "\t\t\t}" + NL + "" + NL + "\t\t\t// Stop listening to the old one." + NL + "\t\t\t//" + NL + "\t\t\tif (currentViewer != null)" + NL + "\t\t\t{" + NL + "\t\t\t\tcurrentViewer.removeSelectionChangedListener(selectionChangedListener);" + NL + "\t\t\t}" + NL + "" + NL + "\t\t\t// Start listening to the new one." + NL + "\t\t\t//" + NL + "\t\t\tif (viewer != null)" + NL + "\t\t\t{" + NL + "\t\t\t\tviewer.addSelectionChangedListener(selectionChangedListener);" + NL + "\t\t\t}" + NL + "" + NL + "\t\t\t// Remember it." + NL + "\t\t\t//" + NL + "\t\t\tcurrentViewer = viewer;" + NL + "" + NL + "\t\t\t// Set the editors selection based on the current viewer's selection." + NL + "\t\t\t//" + NL + "\t\t\tsetSelection(currentViewer == null ? StructuredSelection.EMPTY : currentViewer.getSelection());" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This returns the viewer as required by the {@link IViewerProvider} interface." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic Viewer getViewer()" + NL + "\t{" + NL + "\t\treturn currentViewer;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This creates a context menu for the viewer and adds a listener as well registering the menu for extension." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void createContextMenuFor(StructuredViewer viewer)" + NL + "\t{" + NL + "\t\tMenuManager contextMenu = new MenuManager(\"#PopUp\");";
156
  protected final String TEXT_139 = NL + "\t\tcontextMenu.setRemoveAllWhenShown(true);" + NL + "\t\tcontextMenu.addMenuListener(this);" + NL + "\t\tMenu menu= contextMenu.createContextMenu(viewer.getControl());" + NL + "\t\tviewer.getControl().setMenu(menu);" + NL + "\t\tgetSite().registerContextMenu(contextMenu, new UnwrappingSelectionProvider(viewer));" + NL + "" + NL + "\t\tint dndOperations = DND.DROP_COPY | DND.DROP_MOVE | DND.DROP_LINK;" + NL + "\t\tTransfer[] transfers = new Transfer[] { LocalTransfer.getInstance() };" + NL + "\t\tviewer.addDragSupport(dndOperations, transfers, new ViewerDragAdapter(viewer));" + NL + "\t\tviewer.addDropSupport(dndOperations, transfers, new EditingDomainViewerDropAdapter(editingDomain, viewer));" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This is the method called to load a resource into the editing domain's resource set based on the editor's input." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void createModel()" + NL + "\t{";
157
  protected final String TEXT_140 = NL + "\t\tcontextMenu.add(new Separator(\"additions\"));";
157
  protected final String TEXT_140 = NL + "\t\tURI resourceURI = EditUIUtil.getURI(getEditorInput());";
158
  protected final String TEXT_141 = NL + "\t\tcontextMenu.setRemoveAllWhenShown(true);" + NL + "\t\tcontextMenu.addMenuListener(this);" + NL + "\t\tMenu menu= contextMenu.createContextMenu(viewer.getControl());" + NL + "\t\tviewer.getControl().setMenu(menu);" + NL + "\t\tgetSite().registerContextMenu(contextMenu, new UnwrappingSelectionProvider(viewer));" + NL + "" + NL + "\t\tint dndOperations = DND.DROP_COPY | DND.DROP_MOVE | DND.DROP_LINK;" + NL + "\t\tTransfer[] transfers = new Transfer[] { LocalTransfer.getInstance() };" + NL + "\t\tviewer.addDragSupport(dndOperations, transfers, new ViewerDragAdapter(viewer));" + NL + "\t\tviewer.addDropSupport(dndOperations, transfers, new EditingDomainViewerDropAdapter(editingDomain, viewer));" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This is the method called to load a resource into the editing domain's resource set based on the editor's input." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void createModel()" + NL + "\t{";
158
  protected final String TEXT_141 = NL + "\t\tURI resourceURI = URI.createURI(getEditorInput().getName());";
159
  protected final String TEXT_142 = NL + "\t\tURI resourceURI = EditUIUtil.getURI(getEditorInput());";
159
  protected final String TEXT_142 = NL + "\t\t// Assumes that the input is a file object." + NL + "\t\t//" + NL + "\t\tIFileEditorInput modelFile = (IFileEditorInput)getEditorInput();" + NL + "\t\tURI resourceURI = URI.createPlatformResourceURI(modelFile.getFile().getFullPath().toString(), true);";
160
  protected final String TEXT_143 = NL + "\t\tURI resourceURI = URI.createURI(getEditorInput().getName());";
160
  protected final String TEXT_143 = NL + "\t\tException exception = null;" + NL + "\t\tResource resource = null;" + NL + "\t\ttry" + NL + "\t\t{" + NL + "\t\t\t// Load the resource through the editing domain." + NL + "\t\t\t//" + NL + "\t\t\tresource = editingDomain.getResourceSet().getResource(resourceURI, true);" + NL + "\t\t}" + NL + "\t\tcatch (Exception e)" + NL + "\t\t{" + NL + "\t\t\texception = e;" + NL + "\t\t\tresource = editingDomain.getResourceSet().getResource(resourceURI, false);" + NL + "\t\t}" + NL + "" + NL + "\t\tDiagnostic diagnostic = analyzeResourceProblems(resource, exception);" + NL + "\t\tif (diagnostic.getSeverity() != Diagnostic.OK)" + NL + "\t\t{" + NL + "\t\t\tresourceToDiagnosticMap.put(resource,  analyzeResourceProblems(resource, exception));" + NL + "\t\t}" + NL + "\t\teditingDomain.getResourceSet().eAdapters().add(problemIndicationAdapter);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * Returns a diagnostic describing the errors and warnings listed in the resource" + NL + "\t * and the specified exception (if any)." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic Diagnostic analyzeResourceProblems(Resource resource, Exception exception) " + NL + "\t{" + NL + "\t\tif (!resource.getErrors().isEmpty() || !resource.getWarnings().isEmpty())" + NL + "\t\t{" + NL + "\t\t\tBasicDiagnostic basicDiagnostic =" + NL + "\t\t\t\tnew BasicDiagnostic" + NL + "\t\t\t\t\t(Diagnostic.ERROR," + NL + "\t\t\t\t\t \"";
161
  protected final String TEXT_144 = NL + "\t\t// Assumes that the input is a file object." + NL + "\t\t//" + NL + "\t\tIFileEditorInput modelFile = (IFileEditorInput)getEditorInput();" + NL + "\t\tURI resourceURI = URI.createPlatformResourceURI(modelFile.getFile().getFullPath().toString(), true);";
161
  protected final String TEXT_144 = "\",";
162
  protected final String TEXT_145 = NL + "\t\tException exception = null;" + NL + "\t\tResource resource = null;" + NL + "\t\ttry" + NL + "\t\t{" + NL + "\t\t\t// Load the resource through the editing domain." + NL + "\t\t\t//" + NL + "\t\t\tresource = editingDomain.getResourceSet().getResource(resourceURI, true);" + NL + "\t\t}" + NL + "\t\tcatch (Exception e)" + NL + "\t\t{" + NL + "\t\t\texception = e;" + NL + "\t\t\tresource = editingDomain.getResourceSet().getResource(resourceURI, false);" + NL + "\t\t}" + NL + "" + NL + "\t\tDiagnostic diagnostic = analyzeResourceProblems(resource, exception);" + NL + "\t\tif (diagnostic.getSeverity() != Diagnostic.OK)" + NL + "\t\t{" + NL + "\t\t\tresourceToDiagnosticMap.put(resource,  analyzeResourceProblems(resource, exception));" + NL + "\t\t}" + NL + "\t\teditingDomain.getResourceSet().eAdapters().add(problemIndicationAdapter);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * Returns a diagnostic describing the errors and warnings listed in the resource" + NL + "\t * and the specified exception (if any)." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic Diagnostic analyzeResourceProblems(Resource resource, Exception exception) " + NL + "\t{" + NL + "\t\tif (!resource.getErrors().isEmpty() || !resource.getWarnings().isEmpty())" + NL + "\t\t{" + NL + "\t\t\tBasicDiagnostic basicDiagnostic =" + NL + "\t\t\t\tnew BasicDiagnostic" + NL + "\t\t\t\t\t(Diagnostic.ERROR," + NL + "\t\t\t\t\t \"";
162
  protected final String TEXT_145 = NL + "\t\t\t\t\t 0," + NL + "\t\t\t\t\t getString(\"_UI_CreateModelError_message\", resource.getURI()),";
163
  protected final String TEXT_146 = "\",";
163
  protected final String TEXT_146 = NL + "\t\t\t\t\t new Object [] { exception == null ? (Object)resource : exception });" + NL + "\t\t\tbasicDiagnostic.merge(EcoreUtil.computeDiagnostic(resource, true));" + NL + "\t\t\treturn basicDiagnostic;" + NL + "\t\t}" + NL + "\t\telse if (exception != null)" + NL + "\t\t{" + NL + "\t\t\treturn" + NL + "\t\t\t\tnew BasicDiagnostic" + NL + "\t\t\t\t\t(Diagnostic.ERROR," + NL + "\t\t\t\t\t \"";
164
  protected final String TEXT_147 = NL + "\t\t\t\t\t 0," + NL + "\t\t\t\t\t getString(\"_UI_CreateModelError_message\", resource.getURI()),";
164
  protected final String TEXT_147 = "\",";
165
  protected final String TEXT_148 = NL + "\t\t\t\t\t new Object [] { exception == null ? (Object)resource : exception });" + NL + "\t\t\tbasicDiagnostic.merge(EcoreUtil.computeDiagnostic(resource, true));" + NL + "\t\t\treturn basicDiagnostic;" + NL + "\t\t}" + NL + "\t\telse if (exception != null)" + NL + "\t\t{" + NL + "\t\t\treturn" + NL + "\t\t\t\tnew BasicDiagnostic" + NL + "\t\t\t\t\t(Diagnostic.ERROR," + NL + "\t\t\t\t\t \"";
165
  protected final String TEXT_148 = NL + "\t\t\t\t\t 0," + NL + "\t\t\t\t\t getString(\"_UI_CreateModelError_message\", resource.getURI()),";
166
  protected final String TEXT_149 = "\",";
166
  protected final String TEXT_149 = NL + "\t\t\t\t\t new Object[] { exception });" + NL + "\t\t}" + NL + "\t\telse" + NL + "\t\t{" + NL + "\t\t\treturn Diagnostic.OK_INSTANCE;" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This is the method used by the framework to install your own controls." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
167
  protected final String TEXT_150 = NL + "\t\t\t\t\t 0," + NL + "\t\t\t\t\t getString(\"_UI_CreateModelError_message\", resource.getURI()),";
167
  protected final String TEXT_150 = NL + "\t@Override";
168
  protected final String TEXT_151 = NL + "\t\t\t\t\t new Object[] { exception });" + NL + "\t\t}" + NL + "\t\telse" + NL + "\t\t{" + NL + "\t\t\treturn Diagnostic.OK_INSTANCE;" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This is the method used by the framework to install your own controls." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
168
  protected final String TEXT_151 = NL + "\tpublic void createPages()" + NL + "\t{" + NL + "\t\t// Creates the model from the editor input" + NL + "\t\t//" + NL + "\t\tcreateModel();" + NL + "" + NL + "\t\t// Only creates the other pages if there is something that can be edited" + NL + "\t\t//" + NL + "\t\tif (!getEditingDomain().getResourceSet().getResources().isEmpty())" + NL + "\t\t{" + NL + "\t\t\t// Create a page for the selection tree view." + NL + "\t\t\t//";
169
  protected final String TEXT_152 = NL + "\t@Override";
169
  protected final String TEXT_152 = NL + "\t\t\t{" + NL + "\t\t\t\tViewerPane viewerPane =" + NL + "\t\t\t\t\tnew ViewerPane(getSite().getPage(), ";
170
  protected final String TEXT_153 = NL + "\tpublic void createPages()" + NL + "\t{" + NL + "\t\t// Creates the model from the editor input" + NL + "\t\t//" + NL + "\t\tcreateModel();" + NL + "" + NL + "\t\t// Only creates the other pages if there is something that can be edited" + NL + "\t\t//" + NL + "\t\tif (!getEditingDomain().getResourceSet().getResources().isEmpty())" + NL + "\t\t{" + NL + "\t\t\t// Create a page for the selection tree view." + NL + "\t\t\t//";
170
  protected final String TEXT_153 = ".this)" + NL + "\t\t\t\t\t{";
171
  protected final String TEXT_154 = NL + "\t\t\t{" + NL + "\t\t\t\tViewerPane viewerPane =" + NL + "\t\t\t\t\tnew ViewerPane(getSite().getPage(), ";
171
  protected final String TEXT_154 = NL + "\t\t\t\t\t\t@Override";
172
  protected final String TEXT_155 = ".this)" + NL + "\t\t\t\t\t{";
172
  protected final String TEXT_155 = NL + "\t\t\t\t\t\tpublic Viewer createViewer(Composite composite)" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\tTree tree = new Tree(composite, SWT.MULTI);" + NL + "\t\t\t\t\t\t\tTreeViewer newTreeViewer = new TreeViewer(tree);" + NL + "\t\t\t\t\t\t\treturn newTreeViewer;" + NL + "\t\t\t\t\t\t}";
173
  protected final String TEXT_156 = NL + "\t\t\t\t\t\t@Override";
173
  protected final String TEXT_156 = NL + "\t\t\t\t\t\t@Override";
174
  protected final String TEXT_157 = NL + "\t\t\t\t\t\tpublic Viewer createViewer(Composite composite)" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\tTree tree = new Tree(composite, SWT.MULTI);" + NL + "\t\t\t\t\t\t\tTreeViewer newTreeViewer = new TreeViewer(tree);" + NL + "\t\t\t\t\t\t\treturn newTreeViewer;" + NL + "\t\t\t\t\t\t}";
174
  protected final String TEXT_157 = NL + "\t\t\t\t\t\tpublic void requestActivation()" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\tsuper.requestActivation();" + NL + "\t\t\t\t\t\t\tsetCurrentViewerPane(this);" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t};" + NL + "\t\t\t\tviewerPane.createControl(getContainer());" + NL + "" + NL + "\t\t\t\tselectionViewer = (TreeViewer)viewerPane.getViewer();" + NL + "\t\t\t\tselectionViewer.setContentProvider(new AdapterFactoryContentProvider(adapterFactory));" + NL + "" + NL + "\t\t\t\tselectionViewer.setLabelProvider(new ";
175
  protected final String TEXT_158 = NL + "\t\t\t\t\t\t@Override";
175
  protected final String TEXT_158 = "(adapterFactory";
176
  protected final String TEXT_159 = NL + "\t\t\t\t\t\tpublic void requestActivation()" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\tsuper.requestActivation();" + NL + "\t\t\t\t\t\t\tsetCurrentViewerPane(this);" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t};" + NL + "\t\t\t\tviewerPane.createControl(getContainer());" + NL + "" + NL + "\t\t\t\tselectionViewer = (TreeViewer)viewerPane.getViewer();" + NL + "\t\t\t\tselectionViewer.setContentProvider(new AdapterFactoryContentProvider(adapterFactory));" + NL + "" + NL + "\t\t\t\tselectionViewer.setLabelProvider(new ";
176
  protected final String TEXT_159 = ", selectionViewer";
177
  protected final String TEXT_160 = "(adapterFactory";
177
  protected final String TEXT_160 = "));" + NL + "\t\t\t\tselectionViewer.setInput(editingDomain.getResourceSet());" + NL + "\t\t\t\tselectionViewer.setSelection(new StructuredSelection(editingDomain.getResourceSet().getResources().get(0)), true);" + NL + "\t\t\t\tviewerPane.setTitle(editingDomain.getResourceSet());" + NL + "" + NL + "\t\t\t\tnew AdapterFactoryTreeEditor(selectionViewer.getTree(), adapterFactory);" + NL + "" + NL + "\t\t\t\tcreateContextMenuFor(selectionViewer);" + NL + "\t\t\t\tint pageIndex = addPage(viewerPane.getControl());" + NL + "\t\t\t\tsetPageText(pageIndex, getString(\"_UI_SelectionPage_label\"));";
178
  protected final String TEXT_161 = ", selectionViewer";
178
  protected final String TEXT_161 = NL + "\t\t\t}" + NL + "" + NL + "\t\t\t// Create a page for the parent tree view." + NL + "\t\t\t//" + NL + "\t\t\t{" + NL + "\t\t\t\tViewerPane viewerPane =" + NL + "\t\t\t\t\tnew ViewerPane(getSite().getPage(), ";
179
  protected final String TEXT_162 = "));" + NL + "\t\t\t\tselectionViewer.setInput(editingDomain.getResourceSet());" + NL + "\t\t\t\tselectionViewer.setSelection(new StructuredSelection(editingDomain.getResourceSet().getResources().get(0)), true);" + NL + "\t\t\t\tviewerPane.setTitle(editingDomain.getResourceSet());" + NL + "" + NL + "\t\t\t\tnew AdapterFactoryTreeEditor(selectionViewer.getTree(), adapterFactory);" + NL + "" + NL + "\t\t\t\tcreateContextMenuFor(selectionViewer);" + NL + "\t\t\t\tint pageIndex = addPage(viewerPane.getControl());" + NL + "\t\t\t\tsetPageText(pageIndex, getString(\"_UI_SelectionPage_label\"));";
179
  protected final String TEXT_162 = ".this)" + NL + "\t\t\t\t\t{";
180
  protected final String TEXT_163 = NL + "\t\t\t}" + NL + "" + NL + "\t\t\t// Create a page for the parent tree view." + NL + "\t\t\t//" + NL + "\t\t\t{" + NL + "\t\t\t\tViewerPane viewerPane =" + NL + "\t\t\t\t\tnew ViewerPane(getSite().getPage(), ";
180
  protected final String TEXT_163 = NL + "\t\t\t\t\t\t@Override";
181
  protected final String TEXT_164 = ".this)" + NL + "\t\t\t\t\t{";
181
  protected final String TEXT_164 = NL + "\t\t\t\t\t\tpublic Viewer createViewer(Composite composite)" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\tTree tree = new Tree(composite, SWT.MULTI);" + NL + "\t\t\t\t\t\t\tTreeViewer newTreeViewer = new TreeViewer(tree);" + NL + "\t\t\t\t\t\t\treturn newTreeViewer;" + NL + "\t\t\t\t\t\t}";
182
  protected final String TEXT_165 = NL + "\t\t\t\t\t\t@Override";
182
  protected final String TEXT_165 = NL + "\t\t\t\t\t\t@Override";
183
  protected final String TEXT_166 = NL + "\t\t\t\t\t\tpublic Viewer createViewer(Composite composite)" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\tTree tree = new Tree(composite, SWT.MULTI);" + NL + "\t\t\t\t\t\t\tTreeViewer newTreeViewer = new TreeViewer(tree);" + NL + "\t\t\t\t\t\t\treturn newTreeViewer;" + NL + "\t\t\t\t\t\t}";
183
  protected final String TEXT_166 = NL + "\t\t\t\t\t\tpublic void requestActivation()" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\tsuper.requestActivation();" + NL + "\t\t\t\t\t\t\tsetCurrentViewerPane(this);" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t};" + NL + "\t\t\t\tviewerPane.createControl(getContainer());" + NL + "" + NL + "\t\t\t\tparentViewer = (TreeViewer)viewerPane.getViewer();" + NL + "\t\t\t\tparentViewer.setAutoExpandLevel(30);" + NL + "\t\t\t\tparentViewer.setContentProvider(new ReverseAdapterFactoryContentProvider(adapterFactory));" + NL + "\t\t\t\tparentViewer.setLabelProvider(new ";
184
  protected final String TEXT_167 = NL + "\t\t\t\t\t\t@Override";
184
  protected final String TEXT_167 = "(adapterFactory";
185
  protected final String TEXT_168 = NL + "\t\t\t\t\t\tpublic void requestActivation()" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\tsuper.requestActivation();" + NL + "\t\t\t\t\t\t\tsetCurrentViewerPane(this);" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t};" + NL + "\t\t\t\tviewerPane.createControl(getContainer());" + NL + "" + NL + "\t\t\t\tparentViewer = (TreeViewer)viewerPane.getViewer();" + NL + "\t\t\t\tparentViewer.setAutoExpandLevel(30);" + NL + "\t\t\t\tparentViewer.setContentProvider(new ReverseAdapterFactoryContentProvider(adapterFactory));" + NL + "\t\t\t\tparentViewer.setLabelProvider(new ";
185
  protected final String TEXT_168 = ", parentViewer";
186
  protected final String TEXT_169 = "(adapterFactory";
186
  protected final String TEXT_169 = "));" + NL + "" + NL + "\t\t\t\tcreateContextMenuFor(parentViewer);" + NL + "\t\t\t\tint pageIndex = addPage(viewerPane.getControl());" + NL + "\t\t\t\tsetPageText(pageIndex, getString(\"_UI_ParentPage_label\"));";
187
  protected final String TEXT_170 = ", parentViewer";
187
  protected final String TEXT_170 = NL + "\t\t\t}" + NL + "" + NL + "\t\t\t// This is the page for the list viewer" + NL + "\t\t\t//" + NL + "\t\t\t{" + NL + "\t\t\t\tViewerPane viewerPane =" + NL + "\t\t\t\t\tnew ViewerPane(getSite().getPage(), ";
188
  protected final String TEXT_171 = "));" + NL + "" + NL + "\t\t\t\tcreateContextMenuFor(parentViewer);" + NL + "\t\t\t\tint pageIndex = addPage(viewerPane.getControl());" + NL + "\t\t\t\tsetPageText(pageIndex, getString(\"_UI_ParentPage_label\"));";
188
  protected final String TEXT_171 = ".this)" + NL + "\t\t\t\t\t{";
189
  protected final String TEXT_172 = NL + "\t\t\t}" + NL + "" + NL + "\t\t\t// This is the page for the list viewer" + NL + "\t\t\t//" + NL + "\t\t\t{" + NL + "\t\t\t\tViewerPane viewerPane =" + NL + "\t\t\t\t\tnew ViewerPane(getSite().getPage(), ";
189
  protected final String TEXT_172 = NL + "\t\t\t\t\t\t@Override";
190
  protected final String TEXT_173 = ".this)" + NL + "\t\t\t\t\t{";
190
  protected final String TEXT_173 = NL + "\t\t\t\t\t\tpublic Viewer createViewer(Composite composite)" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\treturn new ListViewer(composite);" + NL + "\t\t\t\t\t\t}";
191
  protected final String TEXT_174 = NL + "\t\t\t\t\t\t@Override";
191
  protected final String TEXT_174 = NL + "\t\t\t\t\t\t@Override";
192
  protected final String TEXT_175 = NL + "\t\t\t\t\t\tpublic Viewer createViewer(Composite composite)" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\treturn new ListViewer(composite);" + NL + "\t\t\t\t\t\t}";
192
  protected final String TEXT_175 = NL + "\t\t\t\t\t\tpublic void requestActivation()" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\tsuper.requestActivation();" + NL + "\t\t\t\t\t\t\tsetCurrentViewerPane(this);" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t};" + NL + "\t\t\t\tviewerPane.createControl(getContainer());" + NL + "\t\t\t\tlistViewer = (ListViewer)viewerPane.getViewer();" + NL + "\t\t\t\tlistViewer.setContentProvider(new AdapterFactoryContentProvider(adapterFactory));" + NL + "\t\t\t\tlistViewer.setLabelProvider(new ";
193
  protected final String TEXT_176 = NL + "\t\t\t\t\t\t@Override";
193
  protected final String TEXT_176 = "(adapterFactory";
194
  protected final String TEXT_177 = NL + "\t\t\t\t\t\tpublic void requestActivation()" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\tsuper.requestActivation();" + NL + "\t\t\t\t\t\t\tsetCurrentViewerPane(this);" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t};" + NL + "\t\t\t\tviewerPane.createControl(getContainer());" + NL + "\t\t\t\tlistViewer = (ListViewer)viewerPane.getViewer();" + NL + "\t\t\t\tlistViewer.setContentProvider(new AdapterFactoryContentProvider(adapterFactory));" + NL + "\t\t\t\tlistViewer.setLabelProvider(new ";
194
  protected final String TEXT_177 = ", listViewer";
195
  protected final String TEXT_178 = "(adapterFactory";
195
  protected final String TEXT_178 = "));" + NL + "" + NL + "\t\t\t\tcreateContextMenuFor(listViewer);" + NL + "\t\t\t\tint pageIndex = addPage(viewerPane.getControl());" + NL + "\t\t\t\tsetPageText(pageIndex, getString(\"_UI_ListPage_label\"));";
196
  protected final String TEXT_179 = ", listViewer";
196
  protected final String TEXT_179 = NL + "\t\t\t}" + NL + "" + NL + "\t\t\t// This is the page for the tree viewer" + NL + "\t\t\t//" + NL + "\t\t\t{" + NL + "\t\t\t\tViewerPane viewerPane =" + NL + "\t\t\t\t\tnew ViewerPane(getSite().getPage(), ";
197
  protected final String TEXT_180 = "));" + NL + "" + NL + "\t\t\t\tcreateContextMenuFor(listViewer);" + NL + "\t\t\t\tint pageIndex = addPage(viewerPane.getControl());" + NL + "\t\t\t\tsetPageText(pageIndex, getString(\"_UI_ListPage_label\"));";
197
  protected final String TEXT_180 = ".this)" + NL + "\t\t\t\t\t{";
198
  protected final String TEXT_181 = NL + "\t\t\t}" + NL + "" + NL + "\t\t\t// This is the page for the tree viewer" + NL + "\t\t\t//" + NL + "\t\t\t{" + NL + "\t\t\t\tViewerPane viewerPane =" + NL + "\t\t\t\t\tnew ViewerPane(getSite().getPage(), ";
198
  protected final String TEXT_181 = NL + "\t\t\t\t\t\t@Override";
199
  protected final String TEXT_182 = ".this)" + NL + "\t\t\t\t\t{";
199
  protected final String TEXT_182 = NL + "\t\t\t\t\t\tpublic Viewer createViewer(Composite composite)" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\treturn new TreeViewer(composite);" + NL + "\t\t\t\t\t\t}";
200
  protected final String TEXT_183 = NL + "\t\t\t\t\t\t@Override";
200
  protected final String TEXT_183 = NL + "\t\t\t\t\t\t@Override";
201
  protected final String TEXT_184 = NL + "\t\t\t\t\t\tpublic Viewer createViewer(Composite composite)" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\treturn new TreeViewer(composite);" + NL + "\t\t\t\t\t\t}";
201
  protected final String TEXT_184 = NL + "\t\t\t\t\t\tpublic void requestActivation()" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\tsuper.requestActivation();" + NL + "\t\t\t\t\t\t\tsetCurrentViewerPane(this);" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t};" + NL + "\t\t\t\tviewerPane.createControl(getContainer());" + NL + "\t\t\t\ttreeViewer = (TreeViewer)viewerPane.getViewer();" + NL + "\t\t\t\ttreeViewer.setContentProvider(new AdapterFactoryContentProvider(adapterFactory));" + NL + "\t\t\t\ttreeViewer.setLabelProvider(new ";
202
  protected final String TEXT_185 = NL + "\t\t\t\t\t\t@Override";
202
  protected final String TEXT_185 = "(adapterFactory";
203
  protected final String TEXT_186 = NL + "\t\t\t\t\t\tpublic void requestActivation()" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\tsuper.requestActivation();" + NL + "\t\t\t\t\t\t\tsetCurrentViewerPane(this);" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t};" + NL + "\t\t\t\tviewerPane.createControl(getContainer());" + NL + "\t\t\t\ttreeViewer = (TreeViewer)viewerPane.getViewer();" + NL + "\t\t\t\ttreeViewer.setContentProvider(new AdapterFactoryContentProvider(adapterFactory));" + NL + "\t\t\t\ttreeViewer.setLabelProvider(new ";
203
  protected final String TEXT_186 = ", treeViewer";
204
  protected final String TEXT_187 = "(adapterFactory";
204
  protected final String TEXT_187 = "));" + NL + "" + NL + "\t\t\t\tnew AdapterFactoryTreeEditor(treeViewer.getTree(), adapterFactory);" + NL + "" + NL + "\t\t\t\tcreateContextMenuFor(treeViewer);" + NL + "\t\t\t\tint pageIndex = addPage(viewerPane.getControl());" + NL + "\t\t\t\tsetPageText(pageIndex, getString(\"_UI_TreePage_label\"));";
205
  protected final String TEXT_188 = ", treeViewer";
205
  protected final String TEXT_188 = NL + "\t\t\t}" + NL + "" + NL + "\t\t\t// This is the page for the table viewer." + NL + "\t\t\t//" + NL + "\t\t\t{" + NL + "\t\t\t\tViewerPane viewerPane =" + NL + "\t\t\t\t\tnew ViewerPane(getSite().getPage(), ";
206
  protected final String TEXT_189 = "));" + NL + "" + NL + "\t\t\t\tnew AdapterFactoryTreeEditor(treeViewer.getTree(), adapterFactory);" + NL + "" + NL + "\t\t\t\tcreateContextMenuFor(treeViewer);" + NL + "\t\t\t\tint pageIndex = addPage(viewerPane.getControl());" + NL + "\t\t\t\tsetPageText(pageIndex, getString(\"_UI_TreePage_label\"));";
206
  protected final String TEXT_189 = ".this)" + NL + "\t\t\t\t\t{";
207
  protected final String TEXT_190 = NL + "\t\t\t}" + NL + "" + NL + "\t\t\t// This is the page for the table viewer." + NL + "\t\t\t//" + NL + "\t\t\t{" + NL + "\t\t\t\tViewerPane viewerPane =" + NL + "\t\t\t\t\tnew ViewerPane(getSite().getPage(), ";
207
  protected final String TEXT_190 = NL + "\t\t\t\t\t\t@Override";
208
  protected final String TEXT_191 = ".this)" + NL + "\t\t\t\t\t{";
208
  protected final String TEXT_191 = NL + "\t\t\t\t\t\tpublic Viewer createViewer(Composite composite)" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\treturn new TableViewer(composite);" + NL + "\t\t\t\t\t\t}";
209
  protected final String TEXT_192 = NL + "\t\t\t\t\t\t@Override";
209
  protected final String TEXT_192 = NL + "\t\t\t\t\t\t@Override";
210
  protected final String TEXT_193 = NL + "\t\t\t\t\t\tpublic Viewer createViewer(Composite composite)" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\treturn new TableViewer(composite);" + NL + "\t\t\t\t\t\t}";
210
  protected final String TEXT_193 = NL + "\t\t\t\t\t\tpublic void requestActivation()" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\tsuper.requestActivation();" + NL + "\t\t\t\t\t\t\tsetCurrentViewerPane(this);" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t};" + NL + "\t\t\t\tviewerPane.createControl(getContainer());" + NL + "\t\t\t\ttableViewer = (TableViewer)viewerPane.getViewer();" + NL + "" + NL + "\t\t\t\tTable table = tableViewer.getTable();" + NL + "\t\t\t\tTableLayout layout = new TableLayout();" + NL + "\t\t\t\ttable.setLayout(layout);" + NL + "\t\t\t\ttable.setHeaderVisible(true);" + NL + "\t\t\t\ttable.setLinesVisible(true);" + NL + "" + NL + "\t\t\t\tTableColumn objectColumn = new TableColumn(table, SWT.NONE);" + NL + "\t\t\t\tlayout.addColumnData(new ColumnWeightData(3, 100, true));" + NL + "\t\t\t\tobjectColumn.setText(getString(\"_UI_ObjectColumn_label\"));";
211
  protected final String TEXT_194 = NL + "\t\t\t\t\t\t@Override";
211
  protected final String TEXT_194 = NL + "\t\t\t\tobjectColumn.setResizable(true);" + NL + "" + NL + "\t\t\t\tTableColumn selfColumn = new TableColumn(table, SWT.NONE);" + NL + "\t\t\t\tlayout.addColumnData(new ColumnWeightData(2, 100, true));" + NL + "\t\t\t\tselfColumn.setText(getString(\"_UI_SelfColumn_label\"));";
212
  protected final String TEXT_195 = NL + "\t\t\t\t\t\tpublic void requestActivation()" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\tsuper.requestActivation();" + NL + "\t\t\t\t\t\t\tsetCurrentViewerPane(this);" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t};" + NL + "\t\t\t\tviewerPane.createControl(getContainer());" + NL + "\t\t\t\ttableViewer = (TableViewer)viewerPane.getViewer();" + NL + "" + NL + "\t\t\t\tTable table = tableViewer.getTable();" + NL + "\t\t\t\tTableLayout layout = new TableLayout();" + NL + "\t\t\t\ttable.setLayout(layout);" + NL + "\t\t\t\ttable.setHeaderVisible(true);" + NL + "\t\t\t\ttable.setLinesVisible(true);" + NL + "" + NL + "\t\t\t\tTableColumn objectColumn = new TableColumn(table, SWT.NONE);" + NL + "\t\t\t\tlayout.addColumnData(new ColumnWeightData(3, 100, true));" + NL + "\t\t\t\tobjectColumn.setText(getString(\"_UI_ObjectColumn_label\"));";
212
  protected final String TEXT_195 = NL + "\t\t\t\tselfColumn.setResizable(true);" + NL + "" + NL + "\t\t\t\ttableViewer.setColumnProperties(new String [] {\"a\", \"b\"});";
213
  protected final String TEXT_196 = NL + "\t\t\t\tobjectColumn.setResizable(true);" + NL + "" + NL + "\t\t\t\tTableColumn selfColumn = new TableColumn(table, SWT.NONE);" + NL + "\t\t\t\tlayout.addColumnData(new ColumnWeightData(2, 100, true));" + NL + "\t\t\t\tselfColumn.setText(getString(\"_UI_SelfColumn_label\"));";
213
  protected final String TEXT_196 = NL + "\t\t\t\ttableViewer.setContentProvider(new AdapterFactoryContentProvider(adapterFactory));" + NL + "\t\t\t\ttableViewer.setLabelProvider(new ";
214
  protected final String TEXT_197 = NL + "\t\t\t\tselfColumn.setResizable(true);" + NL + "" + NL + "\t\t\t\ttableViewer.setColumnProperties(new String [] {\"a\", \"b\"});";
214
  protected final String TEXT_197 = "(adapterFactory";
215
  protected final String TEXT_198 = NL + "\t\t\t\ttableViewer.setContentProvider(new AdapterFactoryContentProvider(adapterFactory));" + NL + "\t\t\t\ttableViewer.setLabelProvider(new ";
215
  protected final String TEXT_198 = ", tableViewer";
216
  protected final String TEXT_199 = "(adapterFactory";
216
  protected final String TEXT_199 = "));" + NL + "" + NL + "\t\t\t\tcreateContextMenuFor(tableViewer);" + NL + "\t\t\t\tint pageIndex = addPage(viewerPane.getControl());" + NL + "\t\t\t\tsetPageText(pageIndex, getString(\"_UI_TablePage_label\"));";
217
  protected final String TEXT_200 = ", tableViewer";
217
  protected final String TEXT_200 = NL + "\t\t\t}" + NL + "" + NL + "\t\t\t// This is the page for the table tree viewer." + NL + "\t\t\t//" + NL + "\t\t\t{" + NL + "\t\t\t\tViewerPane viewerPane =" + NL + "\t\t\t\t\tnew ViewerPane(getSite().getPage(), ";
218
  protected final String TEXT_201 = "));" + NL + "" + NL + "\t\t\t\tcreateContextMenuFor(tableViewer);" + NL + "\t\t\t\tint pageIndex = addPage(viewerPane.getControl());" + NL + "\t\t\t\tsetPageText(pageIndex, getString(\"_UI_TablePage_label\"));";
218
  protected final String TEXT_201 = ".this)" + NL + "\t\t\t\t\t{";
219
  protected final String TEXT_202 = NL + "\t\t\t}" + NL + "" + NL + "\t\t\t// This is the page for the table tree viewer." + NL + "\t\t\t//" + NL + "\t\t\t{" + NL + "\t\t\t\tViewerPane viewerPane =" + NL + "\t\t\t\t\tnew ViewerPane(getSite().getPage(), ";
219
  protected final String TEXT_202 = NL + "\t\t\t\t\t\t@Override";
220
  protected final String TEXT_203 = ".this)" + NL + "\t\t\t\t\t{";
220
  protected final String TEXT_203 = NL + "\t\t\t\t\t\tpublic Viewer createViewer(Composite composite)" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\treturn new TreeViewer(composite);" + NL + "\t\t\t\t\t\t}";
221
  protected final String TEXT_204 = NL + "\t\t\t\t\t\t@Override";
221
  protected final String TEXT_204 = NL + "\t\t\t\t\t\t@Override";
222
  protected final String TEXT_205 = NL + "\t\t\t\t\t\tpublic Viewer createViewer(Composite composite)" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\treturn new TreeViewer(composite);" + NL + "\t\t\t\t\t\t}";
222
  protected final String TEXT_205 = NL + "\t\t\t\t\t\tpublic void requestActivation()" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\tsuper.requestActivation();" + NL + "\t\t\t\t\t\t\tsetCurrentViewerPane(this);" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t};" + NL + "\t\t\t\tviewerPane.createControl(getContainer());" + NL + "" + NL + "\t\t\t\ttreeViewerWithColumns = (TreeViewer)viewerPane.getViewer();" + NL + "" + NL + "\t\t\t\tTree tree = treeViewerWithColumns.getTree();" + NL + "\t\t\t\ttree.setLayoutData(new FillLayout());" + NL + "\t\t\t\ttree.setHeaderVisible(true);" + NL + "\t\t\t\ttree.setLinesVisible(true);" + NL + "" + NL + "\t\t\t\tTreeColumn objectColumn = new TreeColumn(tree, SWT.NONE);" + NL + "\t\t\t\tobjectColumn.setText(getString(\"_UI_ObjectColumn_label\"));";
223
  protected final String TEXT_206 = NL + "\t\t\t\t\t\t@Override";
223
  protected final String TEXT_206 = NL + "\t\t\t\tobjectColumn.setResizable(true);" + NL + "\t\t\t\tobjectColumn.setWidth(250);" + NL + "" + NL + "\t\t\t\tTreeColumn selfColumn = new TreeColumn(tree, SWT.NONE);" + NL + "\t\t\t\tselfColumn.setText(getString(\"_UI_SelfColumn_label\"));";
224
  protected final String TEXT_207 = NL + "\t\t\t\t\t\tpublic void requestActivation()" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\tsuper.requestActivation();" + NL + "\t\t\t\t\t\t\tsetCurrentViewerPane(this);" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t};" + NL + "\t\t\t\tviewerPane.createControl(getContainer());" + NL + "" + NL + "\t\t\t\ttreeViewerWithColumns = (TreeViewer)viewerPane.getViewer();" + NL + "" + NL + "\t\t\t\tTree tree = treeViewerWithColumns.getTree();" + NL + "\t\t\t\ttree.setLayoutData(new FillLayout());" + NL + "\t\t\t\ttree.setHeaderVisible(true);" + NL + "\t\t\t\ttree.setLinesVisible(true);" + NL + "" + NL + "\t\t\t\tTreeColumn objectColumn = new TreeColumn(tree, SWT.NONE);" + NL + "\t\t\t\tobjectColumn.setText(getString(\"_UI_ObjectColumn_label\"));";
224
  protected final String TEXT_207 = NL + "\t\t\t\tselfColumn.setResizable(true);" + NL + "\t\t\t\tselfColumn.setWidth(200);" + NL + "" + NL + "\t\t\t\ttreeViewerWithColumns.setColumnProperties(new String [] {\"a\", \"b\"});";
225
  protected final String TEXT_208 = NL + "\t\t\t\tobjectColumn.setResizable(true);" + NL + "\t\t\t\tobjectColumn.setWidth(250);" + NL + "" + NL + "\t\t\t\tTreeColumn selfColumn = new TreeColumn(tree, SWT.NONE);" + NL + "\t\t\t\tselfColumn.setText(getString(\"_UI_SelfColumn_label\"));";
225
  protected final String TEXT_208 = NL + "\t\t\t\ttreeViewerWithColumns.setContentProvider(new AdapterFactoryContentProvider(adapterFactory));" + NL + "\t\t\t\ttreeViewerWithColumns.setLabelProvider(new ";
226
  protected final String TEXT_209 = NL + "\t\t\t\tselfColumn.setResizable(true);" + NL + "\t\t\t\tselfColumn.setWidth(200);" + NL + "" + NL + "\t\t\t\ttreeViewerWithColumns.setColumnProperties(new String [] {\"a\", \"b\"});";
226
  protected final String TEXT_209 = "(adapterFactory";
227
  protected final String TEXT_210 = NL + "\t\t\t\ttreeViewerWithColumns.setContentProvider(new AdapterFactoryContentProvider(adapterFactory));" + NL + "\t\t\t\ttreeViewerWithColumns.setLabelProvider(new ";
227
  protected final String TEXT_210 = ", treeViewerWithColumns";
228
  protected final String TEXT_211 = "(adapterFactory";
228
  protected final String TEXT_211 = "));" + NL + "" + NL + "\t\t\t\tcreateContextMenuFor(treeViewerWithColumns);" + NL + "\t\t\t\tint pageIndex = addPage(viewerPane.getControl());" + NL + "\t\t\t\tsetPageText(pageIndex, getString(\"_UI_TreeWithColumnsPage_label\"));";
229
  protected final String TEXT_212 = ", treeViewerWithColumns";
229
  protected final String TEXT_212 = NL + "\t\t\t}";
230
  protected final String TEXT_213 = "));" + NL + "" + NL + "\t\t\t\tcreateContextMenuFor(treeViewerWithColumns);" + NL + "\t\t\t\tint pageIndex = addPage(viewerPane.getControl());" + NL + "\t\t\t\tsetPageText(pageIndex, getString(\"_UI_TreeWithColumnsPage_label\"));";
230
  protected final String TEXT_213 = NL + "\t\t\tTree tree = new Tree(getContainer(), SWT.MULTI);" + NL + "\t\t\tselectionViewer = new TreeViewer(tree);" + NL + "\t\t\tsetCurrentViewer(selectionViewer);" + NL + "" + NL + "\t\t\tselectionViewer.setContentProvider(new AdapterFactoryContentProvider(adapterFactory));" + NL + "\t\t\tselectionViewer.setLabelProvider(new ";
231
  protected final String TEXT_214 = NL + "\t\t\t}";
231
  protected final String TEXT_214 = "(adapterFactory";
232
  protected final String TEXT_215 = NL + "\t\t\tTree tree = new Tree(getContainer(), SWT.MULTI);" + NL + "\t\t\tselectionViewer = new TreeViewer(tree);" + NL + "\t\t\tsetCurrentViewer(selectionViewer);" + NL + "" + NL + "\t\t\tselectionViewer.setContentProvider(new AdapterFactoryContentProvider(adapterFactory));" + NL + "\t\t\tselectionViewer.setLabelProvider(new ";
232
  protected final String TEXT_215 = ", selectionViewer";
233
  protected final String TEXT_216 = "(adapterFactory";
233
  protected final String TEXT_216 = "));" + NL + "\t\t\tselectionViewer.setInput(editingDomain.getResourceSet());" + NL + "\t\t\tselectionViewer.setSelection(new StructuredSelection(editingDomain.getResourceSet().getResources().get(0)), true);" + NL + "" + NL + "\t\t\tnew AdapterFactoryTreeEditor(selectionViewer.getTree(), adapterFactory);" + NL + "" + NL + "\t\t\tcreateContextMenuFor(selectionViewer);" + NL + "\t\t\tint pageIndex = addPage(tree);" + NL + "\t\t\tsetPageText(pageIndex, getString(\"_UI_SelectionPage_label\"));";
234
  protected final String TEXT_217 = ", selectionViewer";
234
  protected final String TEXT_217 = NL + NL + "\t\t\tgetSite().getShell().getDisplay().asyncExec" + NL + "\t\t\t\t(new Runnable()" + NL + "\t\t\t\t {" + NL + "\t\t\t\t\t public void run()" + NL + "\t\t\t\t\t {" + NL + "\t\t\t\t\t\t setActivePage(0);" + NL + "\t\t\t\t\t }" + NL + "\t\t\t\t });" + NL + "\t\t}" + NL + "" + NL + "\t\t// Ensures that this editor will only display the page's tab" + NL + "\t\t// area if there are more than one page" + NL + "\t\t//" + NL + "\t\tgetContainer().addControlListener" + NL + "\t\t\t(new ControlAdapter()" + NL + "\t\t\t {" + NL + "\t\t\t\tboolean guard = false;";
235
  protected final String TEXT_218 = "));" + NL + "\t\t\tselectionViewer.setInput(editingDomain.getResourceSet());" + NL + "\t\t\tselectionViewer.setSelection(new StructuredSelection(editingDomain.getResourceSet().getResources().get(0)), true);" + NL + "" + NL + "\t\t\tnew AdapterFactoryTreeEditor(selectionViewer.getTree(), adapterFactory);" + NL + "" + NL + "\t\t\tcreateContextMenuFor(selectionViewer);" + NL + "\t\t\tint pageIndex = addPage(tree);" + NL + "\t\t\tsetPageText(pageIndex, getString(\"_UI_SelectionPage_label\"));";
235
  protected final String TEXT_218 = NL + "\t\t\t\t@Override";
236
  protected final String TEXT_219 = NL + NL + "\t\t\tgetSite().getShell().getDisplay().asyncExec" + NL + "\t\t\t\t(new Runnable()" + NL + "\t\t\t\t {" + NL + "\t\t\t\t\t public void run()" + NL + "\t\t\t\t\t {" + NL + "\t\t\t\t\t\t setActivePage(0);" + NL + "\t\t\t\t\t }" + NL + "\t\t\t\t });" + NL + "\t\t}" + NL + "" + NL + "\t\t// Ensures that this editor will only display the page's tab" + NL + "\t\t// area if there are more than one page" + NL + "\t\t//" + NL + "\t\tgetContainer().addControlListener" + NL + "\t\t\t(new ControlAdapter()" + NL + "\t\t\t {" + NL + "\t\t\t\tboolean guard = false;";
236
  protected final String TEXT_219 = NL + "\t\t\t\tpublic void controlResized(ControlEvent event)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tif (!guard)" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tguard = true;" + NL + "\t\t\t\t\t\thideTabs();" + NL + "\t\t\t\t\t\tguard = false;" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t });" + NL + "" + NL + "\t\tgetSite().getShell().getDisplay().asyncExec" + NL + "\t\t\t(new Runnable()" + NL + "\t\t\t {" + NL + "\t\t\t\t public void run()" + NL + "\t\t\t\t {" + NL + "\t\t\t\t\t updateProblemIndication();" + NL + "\t\t\t\t }" + NL + "\t\t\t });" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * If there is just one page in the multi-page editor part," + NL + "\t * this hides the single tab at the bottom." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void hideTabs()" + NL + "\t{" + NL + "\t\tif (getPageCount() <= 1)" + NL + "\t\t{" + NL + "\t\t\tsetPageText(0, \"\");";
237
  protected final String TEXT_220 = NL + "\t\t\t\t@Override";
237
  protected final String TEXT_220 = NL + "\t\t\tif (getContainer() instanceof CTabFolder)" + NL + "\t\t\t{" + NL + "\t\t\t\t((CTabFolder)getContainer()).setTabHeight(1);" + NL + "\t\t\t\tPoint point = getContainer().getSize();" + NL + "\t\t\t\tgetContainer().setSize(point.x, point.y + 6);" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * If there is more than one page in the multi-page editor part," + NL + "\t * this shows the tabs at the bottom." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void showTabs()" + NL + "\t{" + NL + "\t\tif (getPageCount() > 1)" + NL + "\t\t{" + NL + "\t\t\tsetPageText(0, getString(\"_UI_SelectionPage_label\"));";
238
  protected final String TEXT_221 = NL + "\t\t\t\tpublic void controlResized(ControlEvent event)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tif (!guard)" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tguard = true;" + NL + "\t\t\t\t\t\thideTabs();" + NL + "\t\t\t\t\t\tguard = false;" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t });" + NL + "" + NL + "\t\tgetSite().getShell().getDisplay().asyncExec" + NL + "\t\t\t(new Runnable()" + NL + "\t\t\t {" + NL + "\t\t\t\t public void run()" + NL + "\t\t\t\t {" + NL + "\t\t\t\t\t updateProblemIndication();" + NL + "\t\t\t\t }" + NL + "\t\t\t });" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * If there is just one page in the multi-page editor part," + NL + "\t * this hides the single tab at the bottom." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void hideTabs()" + NL + "\t{" + NL + "\t\tif (getPageCount() <= 1)" + NL + "\t\t{" + NL + "\t\t\tsetPageText(0, \"\");";
238
  protected final String TEXT_221 = NL + "\t\t\tif (getContainer() instanceof CTabFolder)" + NL + "\t\t\t{" + NL + "\t\t\t\t((CTabFolder)getContainer()).setTabHeight(SWT.DEFAULT);" + NL + "\t\t\t\tPoint point = getContainer().getSize();" + NL + "\t\t\t\tgetContainer().setSize(point.x, point.y - 6);" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This is used to track the active viewer." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
239
  protected final String TEXT_222 = NL + "\t\t\tif (getContainer() instanceof CTabFolder)" + NL + "\t\t\t{" + NL + "\t\t\t\t((CTabFolder)getContainer()).setTabHeight(1);" + NL + "\t\t\t\tPoint point = getContainer().getSize();" + NL + "\t\t\t\tgetContainer().setSize(point.x, point.y + 6);" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * If there is more than one page in the multi-page editor part," + NL + "\t * this shows the tabs at the bottom." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void showTabs()" + NL + "\t{" + NL + "\t\tif (getPageCount() > 1)" + NL + "\t\t{" + NL + "\t\t\tsetPageText(0, getString(\"_UI_SelectionPage_label\"));";
239
  protected final String TEXT_222 = NL + "\t@Override";
240
  protected final String TEXT_223 = NL + "\t\t\tif (getContainer() instanceof CTabFolder)" + NL + "\t\t\t{" + NL + "\t\t\t\t((CTabFolder)getContainer()).setTabHeight(SWT.DEFAULT);" + NL + "\t\t\t\tPoint point = getContainer().getSize();" + NL + "\t\t\t\tgetContainer().setSize(point.x, point.y - 6);" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This is used to track the active viewer." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
240
  protected final String TEXT_223 = NL + "\tprotected void pageChange(int pageIndex)" + NL + "\t{" + NL + "\t\tsuper.pageChange(pageIndex);" + NL + "" + NL + "\t\tif (contentOutlinePage != null)" + NL + "\t\t{" + NL + "\t\t\thandleContentOutlineSelection(contentOutlinePage.getSelection());" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This is how the framework determines which interfaces we implement." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
241
  protected final String TEXT_224 = NL + "\t@Override";
241
  protected final String TEXT_224 = NL + "\t@SuppressWarnings(\"unchecked\")";
242
  protected final String TEXT_225 = NL + "\tprotected void pageChange(int pageIndex)" + NL + "\t{" + NL + "\t\tsuper.pageChange(pageIndex);" + NL + "" + NL + "\t\tif (contentOutlinePage != null)" + NL + "\t\t{" + NL + "\t\t\thandleContentOutlineSelection(contentOutlinePage.getSelection());" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This is how the framework determines which interfaces we implement." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
242
  protected final String TEXT_225 = NL + "\t@Override";
243
  protected final String TEXT_226 = NL + "\t@SuppressWarnings(\"unchecked\")";
243
  protected final String TEXT_226 = NL + "\tpublic Object getAdapter(Class key)" + NL + "\t{" + NL + "\t\tif (key.equals(IContentOutlinePage.class))" + NL + "\t\t{" + NL + "\t\t\treturn showOutlineView() ? getContentOutlinePage() : null;" + NL + "\t\t}" + NL + "\t\telse if (key.equals(IPropertySheetPage.class))" + NL + "\t\t{" + NL + "\t\t\treturn getPropertySheetPage();" + NL + "\t\t}";
244
  protected final String TEXT_227 = NL + "\t@Override";
244
  protected final String TEXT_227 = NL + "\t\telse if (key.equals(IGotoMarker.class))" + NL + "\t\t{" + NL + "\t\t\treturn this;" + NL + "\t\t}";
245
  protected final String TEXT_228 = NL + "\tpublic Object getAdapter(Class key)" + NL + "\t{" + NL + "\t\tif (key.equals(IContentOutlinePage.class))" + NL + "\t\t{" + NL + "\t\t\treturn showOutlineView() ? getContentOutlinePage() : null;" + NL + "\t\t}" + NL + "\t\telse if (key.equals(IPropertySheetPage.class))" + NL + "\t\t{" + NL + "\t\t\treturn getPropertySheetPage();" + NL + "\t\t}";
245
  protected final String TEXT_228 = NL + "\t\telse" + NL + "\t\t{" + NL + "\t\t\treturn super.getAdapter(key);" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This accesses a cached version of the content outliner." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic IContentOutlinePage getContentOutlinePage()" + NL + "\t{" + NL + "\t\tif (contentOutlinePage == null)" + NL + "\t\t{" + NL + "\t\t\t// The content outline is just a tree." + NL + "\t\t\t//" + NL + "\t\t\tclass MyContentOutlinePage extends ContentOutlinePage" + NL + "\t\t\t{";
246
  protected final String TEXT_229 = NL + "\t\telse if (key.equals(IGotoMarker.class))" + NL + "\t\t{" + NL + "\t\t\treturn this;" + NL + "\t\t}";
246
  protected final String TEXT_229 = NL + "\t\t\t\t@Override";
247
  protected final String TEXT_230 = NL + "\t\telse" + NL + "\t\t{" + NL + "\t\t\treturn super.getAdapter(key);" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This accesses a cached version of the content outliner." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic IContentOutlinePage getContentOutlinePage()" + NL + "\t{" + NL + "\t\tif (contentOutlinePage == null)" + NL + "\t\t{" + NL + "\t\t\t// The content outline is just a tree." + NL + "\t\t\t//" + NL + "\t\t\tclass MyContentOutlinePage extends ContentOutlinePage" + NL + "\t\t\t{";
247
  protected final String TEXT_230 = NL + "\t\t\t\tpublic void createControl(Composite parent)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tsuper.createControl(parent);" + NL + "\t\t\t\t\tcontentOutlineViewer = getTreeViewer();" + NL + "\t\t\t\t\tcontentOutlineViewer.addSelectionChangedListener(this);" + NL + "" + NL + "\t\t\t\t\t// Set up the tree viewer." + NL + "\t\t\t\t\t//" + NL + "\t\t\t\t\tcontentOutlineViewer.setContentProvider(new AdapterFactoryContentProvider(adapterFactory));" + NL + "\t\t\t\t\tcontentOutlineViewer.setLabelProvider(new ";
248
  protected final String TEXT_231 = NL + "\t\t\t\t@Override";
248
  protected final String TEXT_231 = "(adapterFactory";
249
  protected final String TEXT_232 = NL + "\t\t\t\tpublic void createControl(Composite parent)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tsuper.createControl(parent);" + NL + "\t\t\t\t\tcontentOutlineViewer = getTreeViewer();" + NL + "\t\t\t\t\tcontentOutlineViewer.addSelectionChangedListener(this);" + NL + "" + NL + "\t\t\t\t\t// Set up the tree viewer." + NL + "\t\t\t\t\t//" + NL + "\t\t\t\t\tcontentOutlineViewer.setContentProvider(new AdapterFactoryContentProvider(adapterFactory));" + NL + "\t\t\t\t\tcontentOutlineViewer.setLabelProvider(new ";
249
  protected final String TEXT_232 = ", contentOutlineViewer";
250
  protected final String TEXT_233 = "(adapterFactory";
250
  protected final String TEXT_233 = "));" + NL + "\t\t\t\t\tcontentOutlineViewer.setInput(editingDomain.getResourceSet());" + NL + "" + NL + "\t\t\t\t\t// Make sure our popups work." + NL + "\t\t\t\t\t//" + NL + "\t\t\t\t\tcreateContextMenuFor(contentOutlineViewer);" + NL + "" + NL + "\t\t\t\t\tif (!editingDomain.getResourceSet().getResources().isEmpty())" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t  // Select the root object in the view." + NL + "\t\t\t\t\t  //" + NL + "\t\t\t\t\t  contentOutlineViewer.setSelection(new StructuredSelection(editingDomain.getResourceSet().getResources().get(0)), true);" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL;
251
  protected final String TEXT_234 = ", contentOutlineViewer";
251
  protected final String TEXT_234 = NL + "\t\t\t\t@Override";
252
  protected final String TEXT_235 = "));" + NL + "\t\t\t\t\tcontentOutlineViewer.setInput(editingDomain.getResourceSet());" + NL + "" + NL + "\t\t\t\t\t// Make sure our popups work." + NL + "\t\t\t\t\t//" + NL + "\t\t\t\t\tcreateContextMenuFor(contentOutlineViewer);" + NL + "" + NL + "\t\t\t\t\tif (!editingDomain.getResourceSet().getResources().isEmpty())" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t  // Select the root object in the view." + NL + "\t\t\t\t\t  //" + NL + "\t\t\t\t\t  contentOutlineViewer.setSelection(new StructuredSelection(editingDomain.getResourceSet().getResources().get(0)), true);" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL;
252
  protected final String TEXT_235 = NL + "\t\t\t\tpublic void makeContributions(IMenuManager menuManager, IToolBarManager toolBarManager, IStatusLineManager statusLineManager)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tsuper.makeContributions(menuManager, toolBarManager, statusLineManager);" + NL + "\t\t\t\t\tcontentOutlineStatusLineManager = statusLineManager;" + NL + "\t\t\t\t}" + NL;
253
  protected final String TEXT_236 = NL + "\t\t\t\t@Override";
253
  protected final String TEXT_236 = NL + "\t\t\t\t@Override";
254
  protected final String TEXT_237 = NL + "\t\t\t\tpublic void makeContributions(IMenuManager menuManager, IToolBarManager toolBarManager, IStatusLineManager statusLineManager)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tsuper.makeContributions(menuManager, toolBarManager, statusLineManager);" + NL + "\t\t\t\t\tcontentOutlineStatusLineManager = statusLineManager;" + NL + "\t\t\t\t}" + NL;
254
  protected final String TEXT_237 = NL + "\t\t\t\tpublic void setActionBars(IActionBars actionBars)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tsuper.setActionBars(actionBars);" + NL + "\t\t\t\t\tgetActionBarContributor().shareGlobalActions(this, actionBars);" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "" + NL + "\t\t\tcontentOutlinePage = new MyContentOutlinePage();" + NL + "" + NL + "\t\t\t// Listen to selection so that we can handle it is a special way." + NL + "\t\t\t//" + NL + "\t\t\tcontentOutlinePage.addSelectionChangedListener" + NL + "\t\t\t\t(new ISelectionChangedListener()" + NL + "\t\t\t\t {" + NL + "\t\t\t\t\t // This ensures that we handle selections correctly." + NL + "\t\t\t\t\t //" + NL + "\t\t\t\t\t public void selectionChanged(SelectionChangedEvent event)" + NL + "\t\t\t\t\t {" + NL + "\t\t\t\t\t\t handleContentOutlineSelection(event.getSelection());" + NL + "\t\t\t\t\t }" + NL + "\t\t\t\t });" + NL + "\t\t}" + NL + "" + NL + "\t\treturn contentOutlinePage;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This accesses a cached version of the property sheet." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic IPropertySheetPage getPropertySheetPage()" + NL + "\t{" + NL + "\t\tif (propertySheetPage == null)" + NL + "\t\t{" + NL + "\t\t\tpropertySheetPage =" + NL + "\t\t\t\tnew ExtendedPropertySheetPage(editingDomain)" + NL + "\t\t\t\t{";
255
  protected final String TEXT_238 = NL + "\t\t\t\t@Override";
255
  protected final String TEXT_238 = NL + "\t\t\t\t\t@Override";
256
  protected final String TEXT_239 = NL + "\t\t\t\tpublic void setActionBars(IActionBars actionBars)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tsuper.setActionBars(actionBars);" + NL + "\t\t\t\t\tgetActionBarContributor().shareGlobalActions(this, actionBars);" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "" + NL + "\t\t\tcontentOutlinePage = new MyContentOutlinePage();" + NL + "" + NL + "\t\t\t// Listen to selection so that we can handle it is a special way." + NL + "\t\t\t//" + NL + "\t\t\tcontentOutlinePage.addSelectionChangedListener" + NL + "\t\t\t\t(new ISelectionChangedListener()" + NL + "\t\t\t\t {" + NL + "\t\t\t\t\t // This ensures that we handle selections correctly." + NL + "\t\t\t\t\t //" + NL + "\t\t\t\t\t public void selectionChanged(SelectionChangedEvent event)" + NL + "\t\t\t\t\t {" + NL + "\t\t\t\t\t\t handleContentOutlineSelection(event.getSelection());" + NL + "\t\t\t\t\t }" + NL + "\t\t\t\t });" + NL + "\t\t}" + NL + "" + NL + "\t\treturn contentOutlinePage;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This accesses a cached version of the property sheet." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic IPropertySheetPage getPropertySheetPage()" + NL + "\t{" + NL + "\t\tif (propertySheetPage == null)" + NL + "\t\t{" + NL + "\t\t\tpropertySheetPage =" + NL + "\t\t\t\tnew ExtendedPropertySheetPage(editingDomain)" + NL + "\t\t\t\t{";
256
  protected final String TEXT_239 = NL + "\t\t\t\t\tpublic void setSelectionToViewer(";
257
  protected final String TEXT_240 = NL + "\t\t\t\t\t@Override";
257
  protected final String TEXT_240 = " selection)" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\t";
258
  protected final String TEXT_241 = NL + "\t\t\t\t\tpublic void setSelectionToViewer(";
258
  protected final String TEXT_241 = ".this.setSelectionToViewer(selection);" + NL + "\t\t\t\t\t\t";
259
  protected final String TEXT_242 = " selection)" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\t";
259
  protected final String TEXT_242 = ".this.setFocus();" + NL + "\t\t\t\t\t}" + NL;
260
  protected final String TEXT_243 = ".this.setSelectionToViewer(selection);" + NL + "\t\t\t\t\t\t";
260
  protected final String TEXT_243 = NL + "\t\t\t\t\t@Override";
261
  protected final String TEXT_244 = ".this.setFocus();" + NL + "\t\t\t\t\t}" + NL;
261
  protected final String TEXT_244 = NL + "\t\t\t\t\tpublic void setActionBars(IActionBars actionBars)" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tsuper.setActionBars(actionBars);" + NL + "\t\t\t\t\t\tgetActionBarContributor().shareGlobalActions(this, actionBars);" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t};" + NL + "\t\t\tpropertySheetPage.setPropertySourceProvider(new AdapterFactoryContentProvider(adapterFactory));" + NL + "\t\t}" + NL + "" + NL + "\t\treturn propertySheetPage;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This deals with how we want selection in the outliner to affect the other views." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void handleContentOutlineSelection(ISelection selection)" + NL + "\t{";
262
  protected final String TEXT_245 = NL + "\t\t\t\t\t@Override";
262
  protected final String TEXT_245 = NL + "\t\tif (currentViewerPane != null && !selection.isEmpty() && selection instanceof IStructuredSelection)";
263
  protected final String TEXT_246 = NL + "\t\t\t\t\tpublic void setActionBars(IActionBars actionBars)" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tsuper.setActionBars(actionBars);" + NL + "\t\t\t\t\t\tgetActionBarContributor().shareGlobalActions(this, actionBars);" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t};" + NL + "\t\t\tpropertySheetPage.setPropertySourceProvider(new AdapterFactoryContentProvider(adapterFactory));" + NL + "\t\t}" + NL + "" + NL + "\t\treturn propertySheetPage;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This deals with how we want selection in the outliner to affect the other views." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void handleContentOutlineSelection(ISelection selection)" + NL + "\t{";
263
  protected final String TEXT_246 = NL + "\t\tif (selectionViewer != null && !selection.isEmpty() && selection instanceof IStructuredSelection)";
264
  protected final String TEXT_247 = NL + "\t\tif (currentViewerPane != null && !selection.isEmpty() && selection instanceof IStructuredSelection)";
264
  protected final String TEXT_247 = NL + "\t\t{" + NL + "\t\t\tIterator";
265
  protected final String TEXT_248 = NL + "\t\tif (selectionViewer != null && !selection.isEmpty() && selection instanceof IStructuredSelection)";
265
  protected final String TEXT_248 = "<?>";
266
  protected final String TEXT_249 = NL + "\t\t{" + NL + "\t\t\tIterator";
266
  protected final String TEXT_249 = " selectedElements = ((IStructuredSelection)selection).iterator();" + NL + "\t\t\tif (selectedElements.hasNext())" + NL + "\t\t\t{" + NL + "\t\t\t\t// Get the first selected element." + NL + "\t\t\t\t//" + NL + "\t\t\t\tObject selectedElement = selectedElements.next();" + NL;
267
  protected final String TEXT_250 = "<?>";
267
  protected final String TEXT_250 = NL + "\t\t\t\t// If it's the selection viewer, then we want it to select the same selection as this selection." + NL + "\t\t\t\t//" + NL + "\t\t\t\tif (currentViewerPane.getViewer() == selectionViewer)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\t";
268
  protected final String TEXT_251 = " selectedElements = ((IStructuredSelection)selection).iterator();" + NL + "\t\t\tif (selectedElements.hasNext())" + NL + "\t\t\t{" + NL + "\t\t\t\t// Get the first selected element." + NL + "\t\t\t\t//" + NL + "\t\t\t\tObject selectedElement = selectedElements.next();" + NL;
268
  protected final String TEXT_251 = " selectionList = new ";
269
  protected final String TEXT_252 = NL + "\t\t\t\t// If it's the selection viewer, then we want it to select the same selection as this selection." + NL + "\t\t\t\t//" + NL + "\t\t\t\tif (currentViewerPane.getViewer() == selectionViewer)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\t";
269
  protected final String TEXT_252 = "();" + NL + "\t\t\t\t\tselectionList.add(selectedElement);" + NL + "\t\t\t\t\twhile (selectedElements.hasNext())" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tselectionList.add(selectedElements.next());" + NL + "\t\t\t\t\t}" + NL + "" + NL + "\t\t\t\t\t// Set the selection to the widget." + NL + "\t\t\t\t\t//" + NL + "\t\t\t\t\tselectionViewer.setSelection(new StructuredSelection(selectionList));" + NL + "\t\t\t\t}" + NL + "\t\t\t\telse" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\t// Set the input to the widget." + NL + "\t\t\t\t\t//" + NL + "\t\t\t\t\tif (currentViewerPane.getViewer().getInput() != selectedElement)" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tcurrentViewerPane.getViewer().setInput(selectedElement);" + NL + "\t\t\t\t\t\tcurrentViewerPane.setTitle(selectedElement);" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}";
270
  protected final String TEXT_253 = " selectionList = new ";
270
  protected final String TEXT_253 = NL + "\t\t\t\t";
271
  protected final String TEXT_254 = "();" + NL + "\t\t\t\t\tselectionList.add(selectedElement);" + NL + "\t\t\t\t\twhile (selectedElements.hasNext())" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tselectionList.add(selectedElements.next());" + NL + "\t\t\t\t\t}" + NL + "" + NL + "\t\t\t\t\t// Set the selection to the widget." + NL + "\t\t\t\t\t//" + NL + "\t\t\t\t\tselectionViewer.setSelection(new StructuredSelection(selectionList));" + NL + "\t\t\t\t}" + NL + "\t\t\t\telse" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\t// Set the input to the widget." + NL + "\t\t\t\t\t//" + NL + "\t\t\t\t\tif (currentViewerPane.getViewer().getInput() != selectedElement)" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tcurrentViewerPane.getViewer().setInput(selectedElement);" + NL + "\t\t\t\t\t\tcurrentViewerPane.setTitle(selectedElement);" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}";
271
  protected final String TEXT_254 = " selectionList = new ";
272
  protected final String TEXT_255 = NL + "\t\t\t\t";
272
  protected final String TEXT_255 = "();" + NL + "\t\t\t\tselectionList.add(selectedElement);" + NL + "\t\t\t\twhile (selectedElements.hasNext())" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tselectionList.add(selectedElements.next());" + NL + "\t\t\t\t}" + NL + "" + NL + "\t\t\t\t// Set the selection to the widget." + NL + "\t\t\t\t//" + NL + "\t\t\t\tselectionViewer.setSelection(new StructuredSelection(selectionList));";
273
  protected final String TEXT_256 = " selectionList = new ";
273
  protected final String TEXT_256 = NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This is for implementing {@link IEditorPart} and simply tests the command stack." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
274
  protected final String TEXT_257 = "();" + NL + "\t\t\t\tselectionList.add(selectedElement);" + NL + "\t\t\t\twhile (selectedElements.hasNext())" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tselectionList.add(selectedElements.next());" + NL + "\t\t\t\t}" + NL + "" + NL + "\t\t\t\t// Set the selection to the widget." + NL + "\t\t\t\t//" + NL + "\t\t\t\tselectionViewer.setSelection(new StructuredSelection(selectionList));";
274
  protected final String TEXT_257 = NL + "\t@Override";
275
  protected final String TEXT_258 = NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This is for implementing {@link IEditorPart} and simply tests the command stack." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
275
  protected final String TEXT_258 = NL + "\tpublic boolean isDirty()" + NL + "\t{" + NL + "\t\treturn ((BasicCommandStack)editingDomain.getCommandStack()).isSaveNeeded();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This is for implementing {@link IEditorPart} and simply saves the model file." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
276
  protected final String TEXT_259 = NL + "\t@Override";
276
  protected final String TEXT_259 = NL + "\t@Override";
277
  protected final String TEXT_260 = NL + "\tpublic boolean isDirty()" + NL + "\t{" + NL + "\t\treturn ((BasicCommandStack)editingDomain.getCommandStack()).isSaveNeeded();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This is for implementing {@link IEditorPart} and simply saves the model file." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
277
  protected final String TEXT_260 = NL + "\tpublic void doSave(IProgressMonitor progressMonitor)" + NL + "\t{" + NL + "\t\t// Save only resources that have actually changed." + NL + "\t\t//" + NL + "\t\tfinal ";
278
  protected final String TEXT_261 = NL + "\t@Override";
278
  protected final String TEXT_261 = " saveOptions = new ";
279
  protected final String TEXT_262 = NL + "\tpublic void doSave(IProgressMonitor progressMonitor)" + NL + "\t{" + NL + "\t\t// Save only resources that have actually changed." + NL + "\t\t//" + NL + "\t\tfinal ";
279
  protected final String TEXT_262 = "();" + NL + "\t\tsaveOptions.put(Resource.OPTION_SAVE_ONLY_IF_CHANGED, Resource.OPTION_SAVE_ONLY_IF_CHANGED_MEMORY_BUFFER);" + NL + "" + NL + "\t\t// Do the work within an operation because this is a long running activity that modifies the workbench." + NL + "\t\t//" + NL + "\t\t";
280
  protected final String TEXT_263 = " saveOptions = new ";
280
  protected final String TEXT_263 = " operation =" + NL + "\t\t\tnew ";
281
  protected final String TEXT_264 = "();" + NL + "\t\tsaveOptions.put(Resource.OPTION_SAVE_ONLY_IF_CHANGED, Resource.OPTION_SAVE_ONLY_IF_CHANGED_MEMORY_BUFFER);" + NL + "" + NL + "\t\t// Do the work within an operation because this is a long running activity that modifies the workbench." + NL + "\t\t//" + NL + "\t\t";
281
  protected final String TEXT_264 = "()" + NL + "\t\t\t{" + NL + "\t\t\t\t// This is the method that gets invoked when the operation runs." + NL + "\t\t\t\t//";
282
  protected final String TEXT_265 = " operation =" + NL + "\t\t\tnew ";
282
  protected final String TEXT_265 = NL + "\t\t\t\t@Override";
283
  protected final String TEXT_266 = "()" + NL + "\t\t\t{" + NL + "\t\t\t\t// This is the method that gets invoked when the operation runs." + NL + "\t\t\t\t//";
283
  protected final String TEXT_266 = NL + "\t\t\t\tpublic void ";
284
  protected final String TEXT_267 = NL + "\t\t\t\t@Override";
284
  protected final String TEXT_267 = "(IProgressMonitor monitor)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\t// Save the resources to the file system." + NL + "\t\t\t\t\t//" + NL + "\t\t\t\t\tboolean first = true;";
285
  protected final String TEXT_268 = NL + "\t\t\t\tpublic void ";
285
  protected final String TEXT_268 = NL + "\t\t\t\t\tfor (Resource resource : editingDomain.getResourceSet().getResources())";
286
  protected final String TEXT_269 = "(IProgressMonitor monitor)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\t// Save the resources to the file system." + NL + "\t\t\t\t\t//" + NL + "\t\t\t\t\tboolean first = true;";
286
  protected final String TEXT_269 = NL + "\t\t\t\t\tfor (Iterator i = editingDomain.getResourceSet().getResources().iterator(); i.hasNext(); )";
287
  protected final String TEXT_270 = NL + "\t\t\t\t\tfor (Resource resource : editingDomain.getResourceSet().getResources())";
287
  protected final String TEXT_270 = NL + "\t\t\t\t\t{";
288
  protected final String TEXT_271 = NL + "\t\t\t\t\tfor (Iterator i = editingDomain.getResourceSet().getResources().iterator(); i.hasNext(); )";
288
  protected final String TEXT_271 = NL + "\t\t\t\t\t\tResource resource = (Resource)i.next();";
289
  protected final String TEXT_272 = NL + "\t\t\t\t\t{";
289
  protected final String TEXT_272 = NL + "\t\t\t\t\t\tif ((first || !resource.getContents().isEmpty() || isPersisted(resource)) && !editingDomain.isReadOnly(resource))" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\ttry" + NL + "\t\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\t\tlong timeStamp = resource.getTimeStamp();" + NL + "\t\t\t\t\t\t\t\tresource.save(saveOptions);" + NL + "\t\t\t\t\t\t\t\tif (resource.getTimeStamp() != timeStamp)" + NL + "\t\t\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\t\t\tsavedResources.add(resource);" + NL + "\t\t\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\t\tcatch (Exception exception)" + NL + "\t\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\t\tresourceToDiagnosticMap.put(resource, analyzeResourceProblems(resource, exception));" + NL + "\t\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\t\tfirst = false;" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t};" + NL + "" + NL + "\t\tupdateProblemIndication = false;" + NL + "\t\ttry" + NL + "\t\t{" + NL + "\t\t\t// This runs the options, and shows progress." + NL + "\t\t\t//" + NL + "\t\t\tnew ProgressMonitorDialog(getSite().getShell()).run(true, false, operation);" + NL + "" + NL + "\t\t\t// Refresh the necessary state." + NL + "\t\t\t//" + NL + "\t\t\t((BasicCommandStack)editingDomain.getCommandStack()).saveIsDone();" + NL + "\t\t\tfirePropertyChange(IEditorPart.PROP_DIRTY);" + NL + "\t\t}" + NL + "\t\tcatch (Exception exception)" + NL + "\t\t{" + NL + "\t\t\t// Something went wrong that shouldn't." + NL + "\t\t\t//" + NL + "\t\t\t";
290
  protected final String TEXT_273 = NL + "\t\t\t\t\t\tResource resource = (Resource)i.next();";
290
  protected final String TEXT_273 = ".INSTANCE.log(exception);" + NL + "\t\t}" + NL + "\t\tupdateProblemIndication = true;" + NL + "\t\tupdateProblemIndication();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This returns whether something has been persisted to the URI of the specified resource." + NL + "\t * The implementation uses the URI converter from the editor's resource set to try to open an input stream. " + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected boolean isPersisted(Resource resource)" + NL + "\t{" + NL + "\t\tboolean result = false;" + NL + "\t\ttry" + NL + "\t\t{" + NL + "\t\t\tInputStream stream = editingDomain.getResourceSet().getURIConverter().createInputStream(resource.getURI());" + NL + "\t\t\tif (stream != null)" + NL + "\t\t\t{" + NL + "\t\t\t\tresult = true;" + NL + "\t\t\t\tstream.close();" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t\tcatch (IOException e)" + NL + "\t\t{" + NL + "\t\t\t// Ignore" + NL + "\t\t}" + NL + "\t\treturn result;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This always returns true because it is not currently supported." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
291
  protected final String TEXT_274 = NL + "\t\t\t\t\t\tif ((first || !resource.getContents().isEmpty() || isPersisted(resource)) && !editingDomain.isReadOnly(resource))" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\ttry" + NL + "\t\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\t\tlong timeStamp = resource.getTimeStamp();" + NL + "\t\t\t\t\t\t\t\tresource.save(saveOptions);" + NL + "\t\t\t\t\t\t\t\tif (resource.getTimeStamp() != timeStamp)" + NL + "\t\t\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\t\t\tsavedResources.add(resource);" + NL + "\t\t\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\t\tcatch (Exception exception)" + NL + "\t\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\t\tresourceToDiagnosticMap.put(resource, analyzeResourceProblems(resource, exception));" + NL + "\t\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\t\tfirst = false;" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t};" + NL + "" + NL + "\t\tupdateProblemIndication = false;" + NL + "\t\ttry" + NL + "\t\t{" + NL + "\t\t\t// This runs the options, and shows progress." + NL + "\t\t\t//" + NL + "\t\t\tnew ProgressMonitorDialog(getSite().getShell()).run(true, false, operation);" + NL + "" + NL + "\t\t\t// Refresh the necessary state." + NL + "\t\t\t//" + NL + "\t\t\t((BasicCommandStack)editingDomain.getCommandStack()).saveIsDone();" + NL + "\t\t\tfirePropertyChange(IEditorPart.PROP_DIRTY);" + NL + "\t\t}" + NL + "\t\tcatch (Exception exception)" + NL + "\t\t{" + NL + "\t\t\t// Something went wrong that shouldn't." + NL + "\t\t\t//" + NL + "\t\t\t";
291
  protected final String TEXT_274 = NL + "\t@Override";
292
  protected final String TEXT_275 = ".INSTANCE.log(exception);" + NL + "\t\t}" + NL + "\t\tupdateProblemIndication = true;" + NL + "\t\tupdateProblemIndication();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This returns whether something has been persisted to the URI of the specified resource." + NL + "\t * The implementation uses the URI converter from the editor's resource set to try to open an input stream. " + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected boolean isPersisted(Resource resource)" + NL + "\t{" + NL + "\t\tboolean result = false;" + NL + "\t\ttry" + NL + "\t\t{" + NL + "\t\t\tInputStream stream = editingDomain.getResourceSet().getURIConverter().createInputStream(resource.getURI());" + NL + "\t\t\tif (stream != null)" + NL + "\t\t\t{" + NL + "\t\t\t\tresult = true;" + NL + "\t\t\t\tstream.close();" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t\tcatch (IOException e)" + NL + "\t\t{" + NL + "\t\t\t// Ignore" + NL + "\t\t}" + NL + "\t\treturn result;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This always returns true because it is not currently supported." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
292
  protected final String TEXT_275 = NL + "\tpublic boolean isSaveAsAllowed()" + NL + "\t{" + NL + "\t\treturn true;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This also changes the editor's input." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
293
  protected final String TEXT_276 = NL + "\t@Override";
293
  protected final String TEXT_276 = NL + "\t@Override";
294
  protected final String TEXT_277 = NL + "\tpublic boolean isSaveAsAllowed()" + NL + "\t{" + NL + "\t\treturn true;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This also changes the editor's input." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
294
  protected final String TEXT_277 = NL + "\tpublic void doSaveAs()" + NL + "\t{";
295
  protected final String TEXT_278 = NL + "\t@Override";
295
  protected final String TEXT_278 = NL + "\t\tString[] filters = ";
296
  protected final String TEXT_279 = NL + "\tpublic void doSaveAs()" + NL + "\t{";
296
  protected final String TEXT_279 = "(String[])";
297
  protected final String TEXT_280 = NL + "\t\tString[] filters = ";
297
  protected final String TEXT_280 = "FILE_EXTENSION_FILTERS.toArray(new String[FILE_EXTENSION_FILTERS.size()]);" + NL + "\t\tString[] files = ";
298
  protected final String TEXT_281 = "(String[])";
298
  protected final String TEXT_281 = ".openFilePathDialog(getSite().getShell(), ";
299
  protected final String TEXT_282 = "FILE_EXTENSION_FILTERS.toArray(new String[FILE_EXTENSION_FILTERS.size()]);" + NL + "\t\tString[] files = ";
299
  protected final String TEXT_282 = ".SAVE, filters);" + NL + "\t\tif (files.length > 0)" + NL + "\t\t{" + NL + "\t\t\tURI uri = URI.createFileURI(files[0]);" + NL + "\t\t\tdoSaveAs(uri, new ";
300
  protected final String TEXT_283 = ".openFilePathDialog(getSite().getShell(), ";
300
  protected final String TEXT_283 = "(uri));" + NL + "\t\t}";
301
  protected final String TEXT_284 = ".SAVE, filters);" + NL + "\t\tif (files.length > 0)" + NL + "\t\t{" + NL + "\t\t\tURI uri = URI.createFileURI(files[0]);" + NL + "\t\t\tdoSaveAs(uri, new ";
301
  protected final String TEXT_284 = NL + "\t\tSaveAsDialog saveAsDialog = new SaveAsDialog(getSite().getShell());" + NL + "\t\tsaveAsDialog.open();" + NL + "\t\tIPath path = saveAsDialog.getResult();" + NL + "\t\tif (path != null)" + NL + "\t\t{" + NL + "\t\t\tIFile file = ResourcesPlugin.getWorkspace().getRoot().getFile(path);" + NL + "\t\t\tif (file != null)" + NL + "\t\t\t{" + NL + "\t\t\t\tdoSaveAs(URI.createPlatformResourceURI(file.getFullPath().toString(), true), new FileEditorInput(file));" + NL + "\t\t\t}" + NL + "\t\t}";
302
  protected final String TEXT_285 = "(uri));" + NL + "\t\t}";
302
  protected final String TEXT_285 = NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void doSaveAs(URI uri, IEditorInput editorInput)" + NL + "\t{" + NL + "\t\t(";
303
  protected final String TEXT_286 = NL + "\t\tSaveAsDialog saveAsDialog = new SaveAsDialog(getSite().getShell());" + NL + "\t\tsaveAsDialog.open();" + NL + "\t\tIPath path = saveAsDialog.getResult();" + NL + "\t\tif (path != null)" + NL + "\t\t{" + NL + "\t\t\tIFile file = ResourcesPlugin.getWorkspace().getRoot().getFile(path);" + NL + "\t\t\tif (file != null)" + NL + "\t\t\t{" + NL + "\t\t\t\tdoSaveAs(URI.createPlatformResourceURI(file.getFullPath().toString(), true), new FileEditorInput(file));" + NL + "\t\t\t}" + NL + "\t\t}";
303
  protected final String TEXT_286 = "(Resource)";
304
  protected final String TEXT_287 = NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void doSaveAs(URI uri, IEditorInput editorInput)" + NL + "\t{" + NL + "\t\t(";
304
  protected final String TEXT_287 = "editingDomain.getResourceSet().getResources().get(0)).setURI(uri);" + NL + "\t\tsetInputWithNotify(editorInput);" + NL + "\t\tsetPartName(editorInput.getName());" + NL + "\t\tIProgressMonitor progressMonitor =" + NL + "\t\t\tgetActionBars().getStatusLineManager() != null ?" + NL + "\t\t\t\tgetActionBars().getStatusLineManager().getProgressMonitor() :" + NL + "\t\t\t\tnew ";
305
  protected final String TEXT_288 = "(Resource)";
305
  protected final String TEXT_288 = "();" + NL + "\t\tdoSave(progressMonitor);" + NL + "\t}";
306
  protected final String TEXT_289 = "editingDomain.getResourceSet().getResources().get(0)).setURI(uri);" + NL + "\t\tsetInputWithNotify(editorInput);" + NL + "\t\tsetPartName(editorInput.getName());" + NL + "\t\tIProgressMonitor progressMonitor =" + NL + "\t\t\tgetActionBars().getStatusLineManager() != null ?" + NL + "\t\t\t\tgetActionBars().getStatusLineManager().getProgressMonitor() :" + NL + "\t\t\t\tnew ";
306
  protected final String TEXT_289 = NL + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void gotoMarker(IMarker marker)" + NL + "\t{" + NL + "\t\ttry" + NL + "\t\t{" + NL + "\t\t\tif (marker.getType().equals(EValidator.MARKER))" + NL + "\t\t\t{" + NL + "\t\t\t\tString uriAttribute = marker.getAttribute(EValidator.URI_ATTRIBUTE, null);" + NL + "\t\t\t\tif (uriAttribute != null)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tURI uri = URI.createURI(uriAttribute);" + NL + "\t\t\t\t\tEObject eObject = editingDomain.getResourceSet().getEObject(uri, true);" + NL + "\t\t\t\t\tif (eObject != null)" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t  setSelectionToViewer(Collections.singleton(editingDomain.getWrapper(eObject)));" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t\tcatch (CoreException exception)" + NL + "\t\t{" + NL + "\t\t\t";
307
  protected final String TEXT_290 = "();" + NL + "\t\tdoSave(progressMonitor);" + NL + "\t}";
307
  protected final String TEXT_290 = ".INSTANCE.log(exception);" + NL + "\t\t}" + NL + "\t}";
308
  protected final String TEXT_291 = NL + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void gotoMarker(IMarker marker)" + NL + "\t{" + NL + "\t\ttry" + NL + "\t\t{" + NL + "\t\t\tif (marker.getType().equals(EValidator.MARKER))" + NL + "\t\t\t{" + NL + "\t\t\t\tString uriAttribute = marker.getAttribute(EValidator.URI_ATTRIBUTE, null);" + NL + "\t\t\t\tif (uriAttribute != null)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tURI uri = URI.createURI(uriAttribute);" + NL + "\t\t\t\t\tEObject eObject = editingDomain.getResourceSet().getEObject(uri, true);" + NL + "\t\t\t\t\tif (eObject != null)" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t  setSelectionToViewer(Collections.singleton(editingDomain.getWrapper(eObject)));" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t\tcatch (CoreException exception)" + NL + "\t\t{" + NL + "\t\t\t";
308
  protected final String TEXT_291 = NL + NL + "\t/**" + NL + "\t * This is called during startup." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
309
  protected final String TEXT_292 = ".INSTANCE.log(exception);" + NL + "\t\t}" + NL + "\t}";
309
  protected final String TEXT_292 = NL + "\t@Override";
310
  protected final String TEXT_293 = NL + NL + "\t/**" + NL + "\t * This is called during startup." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
310
  protected final String TEXT_293 = NL + "\tpublic void init(IEditorSite site, IEditorInput editorInput)" + NL + "\t{" + NL + "\t\tsetSite(site);" + NL + "\t\tsetInputWithNotify(editorInput);" + NL + "\t\tsetPartName(editorInput.getName());" + NL + "\t\tsite.setSelectionProvider(this);" + NL + "\t\tsite.getPage().addPartListener(partListener);";
311
  protected final String TEXT_294 = NL + "\t@Override";
311
  protected final String TEXT_294 = NL + "\t\tResourcesPlugin.getWorkspace().addResourceChangeListener(resourceChangeListener, IResourceChangeEvent.POST_CHANGE);";
312
  protected final String TEXT_295 = NL + "\tpublic void init(IEditorSite site, IEditorInput editorInput)" + NL + "\t{" + NL + "\t\tsetSite(site);" + NL + "\t\tsetInputWithNotify(editorInput);" + NL + "\t\tsetPartName(editorInput.getName());" + NL + "\t\tsite.setSelectionProvider(this);" + NL + "\t\tsite.getPage().addPartListener(partListener);";
312
  protected final String TEXT_295 = NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
313
  protected final String TEXT_296 = NL + "\t\tResourcesPlugin.getWorkspace().addResourceChangeListener(resourceChangeListener, IResourceChangeEvent.POST_CHANGE);";
313
  protected final String TEXT_296 = NL + "\t@Override";
314
  protected final String TEXT_297 = NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
314
  protected final String TEXT_297 = NL + "\tpublic void setFocus()" + NL + "\t{";
315
  protected final String TEXT_298 = NL + "\t@Override";
315
  protected final String TEXT_298 = NL + "\t\tif (currentViewerPane != null)" + NL + "\t\t{" + NL + "\t\t\tcurrentViewerPane.setFocus();" + NL + "\t\t}" + NL + "\t\telse" + NL + "\t\t{" + NL + "\t\t\tgetControl(getActivePage()).setFocus();" + NL + "\t\t}";
316
  protected final String TEXT_299 = NL + "\tpublic void setFocus()" + NL + "\t{";
316
  protected final String TEXT_299 = NL + "\t\tgetControl(getActivePage()).setFocus();";
317
  protected final String TEXT_300 = NL + "\t\tif (currentViewerPane != null)" + NL + "\t\t{" + NL + "\t\t\tcurrentViewerPane.setFocus();" + NL + "\t\t}" + NL + "\t\telse" + NL + "\t\t{" + NL + "\t\t\tgetControl(getActivePage()).setFocus();" + NL + "\t\t}";
317
  protected final String TEXT_300 = NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This implements {@link org.eclipse.jface.viewers.ISelectionProvider}." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void addSelectionChangedListener(ISelectionChangedListener listener)" + NL + "\t{" + NL + "\t\tselectionChangedListeners.add(listener);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This implements {@link org.eclipse.jface.viewers.ISelectionProvider}." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void removeSelectionChangedListener(ISelectionChangedListener listener)" + NL + "\t{" + NL + "\t\tselectionChangedListeners.remove(listener);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This implements {@link org.eclipse.jface.viewers.ISelectionProvider} to return this editor's overall selection." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic ISelection getSelection()" + NL + "\t{" + NL + "\t\treturn editorSelection;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This implements {@link org.eclipse.jface.viewers.ISelectionProvider} to set this editor's overall selection." + NL + "\t * Calling this result will notify the listeners." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void setSelection(ISelection selection)" + NL + "\t{" + NL + "\t\teditorSelection = selection;" + NL;
318
  protected final String TEXT_301 = NL + "\t\tgetControl(getActivePage()).setFocus();";
318
  protected final String TEXT_301 = NL + "\t\tfor (ISelectionChangedListener listener : selectionChangedListeners)";
319
  protected final String TEXT_302 = NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This implements {@link org.eclipse.jface.viewers.ISelectionProvider}." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void addSelectionChangedListener(ISelectionChangedListener listener)" + NL + "\t{" + NL + "\t\tselectionChangedListeners.add(listener);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This implements {@link org.eclipse.jface.viewers.ISelectionProvider}." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void removeSelectionChangedListener(ISelectionChangedListener listener)" + NL + "\t{" + NL + "\t\tselectionChangedListeners.remove(listener);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This implements {@link org.eclipse.jface.viewers.ISelectionProvider} to return this editor's overall selection." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic ISelection getSelection()" + NL + "\t{" + NL + "\t\treturn editorSelection;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This implements {@link org.eclipse.jface.viewers.ISelectionProvider} to set this editor's overall selection." + NL + "\t * Calling this result will notify the listeners." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void setSelection(ISelection selection)" + NL + "\t{" + NL + "\t\teditorSelection = selection;" + NL;
319
  protected final String TEXT_302 = NL + "\t\tfor (Iterator listeners = selectionChangedListeners.iterator(); listeners.hasNext(); )";
320
  protected final String TEXT_303 = NL + "\t\tfor (ISelectionChangedListener listener : selectionChangedListeners)";
320
  protected final String TEXT_303 = NL + "\t\t{";
321
  protected final String TEXT_304 = NL + "\t\tfor (Iterator listeners = selectionChangedListeners.iterator(); listeners.hasNext(); )";
321
  protected final String TEXT_304 = NL + "\t\t\tISelectionChangedListener listener = (ISelectionChangedListener)listeners.next();";
322
  protected final String TEXT_305 = NL + "\t\t{";
322
  protected final String TEXT_305 = NL + "\t\t\tlistener.selectionChanged(new SelectionChangedEvent(this, selection));" + NL + "\t\t}" + NL + "\t\tsetStatusLineManager(selection);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void setStatusLineManager(ISelection selection)" + NL + "\t{" + NL + "\t\tIStatusLineManager statusLineManager = currentViewer != null && currentViewer == contentOutlineViewer ?" + NL + "\t\t\tcontentOutlineStatusLineManager : getActionBars().getStatusLineManager();" + NL + "" + NL + "\t\tif (statusLineManager != null)" + NL + "\t\t{" + NL + "\t\t\tif (selection instanceof IStructuredSelection)" + NL + "\t\t\t{" + NL + "\t\t\t\t";
323
  protected final String TEXT_306 = NL + "\t\t\tISelectionChangedListener listener = (ISelectionChangedListener)listeners.next();";
323
  protected final String TEXT_306 = " collection = ((IStructuredSelection)selection).toList();" + NL + "\t\t\t\tswitch (collection.size())" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tcase 0:" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tstatusLineManager.setMessage(getString(\"_UI_NoObjectSelected\"));";
324
  protected final String TEXT_307 = NL + "\t\t\tlistener.selectionChanged(new SelectionChangedEvent(this, selection));" + NL + "\t\t}" + NL + "\t\tsetStatusLineManager(selection);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void setStatusLineManager(ISelection selection)" + NL + "\t{" + NL + "\t\tIStatusLineManager statusLineManager = currentViewer != null && currentViewer == contentOutlineViewer ?" + NL + "\t\t\tcontentOutlineStatusLineManager : getActionBars().getStatusLineManager();" + NL + "" + NL + "\t\tif (statusLineManager != null)" + NL + "\t\t{" + NL + "\t\t\tif (selection instanceof IStructuredSelection)" + NL + "\t\t\t{" + NL + "\t\t\t\t";
324
  protected final String TEXT_307 = NL + "\t\t\t\t\t\tbreak;" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tcase 1:" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tString text = new AdapterFactoryItemDelegator(adapterFactory).getText(collection.iterator().next());" + NL + "\t\t\t\t\t\tstatusLineManager.setMessage(getString(\"_UI_SingleObjectSelected\", text));";
325
  protected final String TEXT_308 = " collection = ((IStructuredSelection)selection).toList();" + NL + "\t\t\t\tswitch (collection.size())" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tcase 0:" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tstatusLineManager.setMessage(getString(\"_UI_NoObjectSelected\"));";
325
  protected final String TEXT_308 = NL + "\t\t\t\t\t\tbreak;" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tdefault:" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tstatusLineManager.setMessage(getString(\"_UI_MultiObjectSelected\", Integer.toString(collection.size())));";
326
  protected final String TEXT_309 = NL + "\t\t\t\t\t\tbreak;" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tcase 1:" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tString text = new AdapterFactoryItemDelegator(adapterFactory).getText(collection.iterator().next());" + NL + "\t\t\t\t\t\tstatusLineManager.setMessage(getString(\"_UI_SingleObjectSelected\", text));";
326
  protected final String TEXT_309 = NL + "\t\t\t\t\t\tbreak;" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t\telse" + NL + "\t\t\t{" + NL + "\t\t\t\tstatusLineManager.setMessage(\"\");";
327
  protected final String TEXT_310 = NL + "\t\t\t\t\t\tbreak;" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tdefault:" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tstatusLineManager.setMessage(getString(\"_UI_MultiObjectSelected\", Integer.toString(collection.size())));";
327
  protected final String TEXT_310 = NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This looks up a string in the plugin's plugin.properties file." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate static String getString(String key)" + NL + "\t{" + NL + "\t\treturn ";
328
  protected final String TEXT_311 = NL + "\t\t\t\t\t\tbreak;" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t\telse" + NL + "\t\t\t{" + NL + "\t\t\t\tstatusLineManager.setMessage(\"\");";
328
  protected final String TEXT_311 = ".INSTANCE.getString(key);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This looks up a string in plugin.properties, making a substitution." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate static String getString(String key, Object s1)" + NL + "\t{" + NL + "\t\treturn ";
329
  protected final String TEXT_312 = NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This looks up a string in the plugin's plugin.properties file." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate static String getString(String key)" + NL + "\t{" + NL + "\t\treturn ";
329
  protected final String TEXT_312 = ".INSTANCE.getString(key, new Object [] { s1 });" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This implements {@link org.eclipse.jface.action.IMenuListener} to help fill the context menus with contributions from the Edit menu." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void menuAboutToShow(IMenuManager menuManager)" + NL + "\t{" + NL + "\t\t((IMenuListener)getEditorSite().getActionBarContributor()).menuAboutToShow(menuManager);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic EditingDomainActionBarContributor getActionBarContributor()" + NL + "\t{" + NL + "\t\treturn (EditingDomainActionBarContributor)getEditorSite().getActionBarContributor();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic IActionBars getActionBars()" + NL + "\t{" + NL + "\t\treturn getActionBarContributor().getActionBars();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic AdapterFactory getAdapterFactory()" + NL + "\t{" + NL + "\t\treturn adapterFactory;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
330
  protected final String TEXT_313 = ".INSTANCE.getString(key);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This looks up a string in plugin.properties, making a substitution." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate static String getString(String key, Object s1)" + NL + "\t{" + NL + "\t\treturn ";
330
  protected final String TEXT_313 = NL + "\t@Override";
331
  protected final String TEXT_314 = ".INSTANCE.getString(key, new Object [] { s1 });" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This implements {@link org.eclipse.jface.action.IMenuListener} to help fill the context menus with contributions from the Edit menu." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void menuAboutToShow(IMenuManager menuManager)" + NL + "\t{" + NL + "\t\t((IMenuListener)getEditorSite().getActionBarContributor()).menuAboutToShow(menuManager);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic EditingDomainActionBarContributor getActionBarContributor()" + NL + "\t{" + NL + "\t\treturn (EditingDomainActionBarContributor)getEditorSite().getActionBarContributor();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic IActionBars getActionBars()" + NL + "\t{" + NL + "\t\treturn getActionBarContributor().getActionBars();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic AdapterFactory getAdapterFactory()" + NL + "\t{" + NL + "\t\treturn adapterFactory;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
331
  protected final String TEXT_314 = NL + "\tpublic void dispose()" + NL + "\t{" + NL + "\t\tupdateProblemIndication = false;" + NL;
332
  protected final String TEXT_315 = NL + "\t@Override";
332
  protected final String TEXT_315 = NL + "\t\tResourcesPlugin.getWorkspace().removeResourceChangeListener(resourceChangeListener);" + NL;
333
  protected final String TEXT_316 = NL + "\tpublic void dispose()" + NL + "\t{" + NL + "\t\tupdateProblemIndication = false;" + NL;
333
  protected final String TEXT_316 = NL + "\t\tgetSite().getPage().removePartListener(partListener);" + NL + "" + NL + "\t\tadapterFactory.dispose();" + NL + "" + NL + "\t\tif (getActionBarContributor().getActiveEditor() == this)" + NL + "\t\t{" + NL + "\t\t\tgetActionBarContributor().setActiveEditor(null);" + NL + "\t\t}" + NL + "" + NL + "\t\tif (propertySheetPage != null)" + NL + "\t\t{" + NL + "\t\t\tpropertySheetPage.dispose();" + NL + "\t\t}" + NL + "" + NL + "\t\tif (contentOutlinePage != null)" + NL + "\t\t{" + NL + "\t\t\tcontentOutlinePage.dispose();" + NL + "\t\t}" + NL + "" + NL + "\t\tsuper.dispose();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * Returns whether the outline view should be presented to the user." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected boolean showOutlineView()" + NL + "\t{" + NL + "\t\treturn ";
334
  protected final String TEXT_317 = NL + "\t\tResourcesPlugin.getWorkspace().removeResourceChangeListener(resourceChangeListener);" + NL;
334
  protected final String TEXT_317 = ";" + NL + "\t}" + NL + "}";
335
  protected final String TEXT_318 = NL + "\t\tgetSite().getPage().removePartListener(partListener);" + NL + "" + NL + "\t\tadapterFactory.dispose();" + NL + "" + NL + "\t\tif (getActionBarContributor().getActiveEditor() == this)" + NL + "\t\t{" + NL + "\t\t\tgetActionBarContributor().setActiveEditor(null);" + NL + "\t\t}" + NL + "" + NL + "\t\tif (propertySheetPage != null)" + NL + "\t\t{" + NL + "\t\t\tpropertySheetPage.dispose();" + NL + "\t\t}" + NL + "" + NL + "\t\tif (contentOutlinePage != null)" + NL + "\t\t{" + NL + "\t\t\tcontentOutlinePage.dispose();" + NL + "\t\t}" + NL + "" + NL + "\t\tsuper.dispose();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * Returns whether the outline view should be presented to the user." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected boolean showOutlineView()" + NL + "\t{" + NL + "\t\treturn ";
335
  protected final String TEXT_318 = NL;
336
  protected final String TEXT_319 = ";" + NL + "\t}" + NL + "}";
337
  protected final String TEXT_320 = NL;
338
336
339
  public String generate(Object argument)
337
  public String generate(Object argument)
340
  {
338
  {
Lines 564-646 Link Here
564
    stringBuffer.append(TEXT_92);
562
    stringBuffer.append(TEXT_92);
565
    stringBuffer.append(genPackage.getEditorClassName());
563
    stringBuffer.append(genPackage.getEditorClassName());
566
    stringBuffer.append(TEXT_93);
564
    stringBuffer.append(TEXT_93);
567
    stringBuffer.append(genPackage.getEditorClassName());
568
    stringBuffer.append(TEXT_94);
569
    stringBuffer.append(genPackage.getImportedEditorPluginClassName());
565
    stringBuffer.append(genPackage.getImportedEditorPluginClassName());
570
    stringBuffer.append(TEXT_95);
566
    stringBuffer.append(TEXT_94);
571
    }
567
    }
572
    stringBuffer.append(TEXT_96);
568
    stringBuffer.append(TEXT_95);
573
    stringBuffer.append(genPackage.getEditorClassName());
569
    stringBuffer.append(genPackage.getEditorClassName());
570
    stringBuffer.append(TEXT_96);
571
    if (genModel.useGenerics()) {
574
    stringBuffer.append(TEXT_97);
572
    stringBuffer.append(TEXT_97);
575
    stringBuffer.append(genPackage.getEditorClassName());
573
    } else {
576
    stringBuffer.append(TEXT_98);
574
    stringBuffer.append(TEXT_98);
577
    if (genModel.useGenerics()) {
575
    }
578
    stringBuffer.append(TEXT_99);
576
    stringBuffer.append(TEXT_99);
579
    } else {
577
    if (!genModel.useGenerics()) {
580
    stringBuffer.append(TEXT_100);
578
    stringBuffer.append(TEXT_100);
581
    }
579
    }
582
    stringBuffer.append(TEXT_101);
580
    stringBuffer.append(TEXT_101);
583
    if (!genModel.useGenerics()) {
581
    stringBuffer.append(genPackage.getGenModel().getEditorPluginID());
584
    stringBuffer.append(TEXT_102);
582
    stringBuffer.append(TEXT_102);
585
    }
583
    stringBuffer.append(genModel.getNonNLS());
586
    stringBuffer.append(TEXT_103);
584
    stringBuffer.append(TEXT_103);
587
    stringBuffer.append(genPackage.getGenModel().getEditorPluginID());
585
    if (genModel.useGenerics()) {
588
    stringBuffer.append(TEXT_104);
586
    stringBuffer.append(TEXT_104);
589
    stringBuffer.append(genModel.getNonNLS());
587
    } else {
590
    stringBuffer.append(TEXT_105);
588
    stringBuffer.append(TEXT_105);
591
    if (genModel.useGenerics()) {
589
    }
592
    stringBuffer.append(TEXT_106);
590
    stringBuffer.append(TEXT_106);
593
    } else {
591
    if (!genModel.useGenerics()) {
594
    stringBuffer.append(TEXT_107);
592
    stringBuffer.append(TEXT_107);
595
    }
593
    }
596
    stringBuffer.append(TEXT_108);
594
    stringBuffer.append(TEXT_108);
597
    if (!genModel.useGenerics()) {
595
    if (!genModel.isRichClientPlatform()) {
598
    stringBuffer.append(TEXT_109);
596
    stringBuffer.append(TEXT_109);
599
    }
597
    }
600
    stringBuffer.append(TEXT_110);
598
    stringBuffer.append(TEXT_110);
601
    if (!genModel.isRichClientPlatform()) {
599
    stringBuffer.append(genPackage.getImportedEditorPluginClassName());
602
    stringBuffer.append(TEXT_111);
600
    stringBuffer.append(TEXT_111);
603
    }
601
    if (!genModel.isRichClientPlatform()) {
604
    stringBuffer.append(TEXT_112);
602
    stringBuffer.append(TEXT_112);
605
    stringBuffer.append(genPackage.getImportedEditorPluginClassName());
603
    stringBuffer.append(genPackage.getImportedEditorPluginClassName());
606
    stringBuffer.append(TEXT_113);
604
    stringBuffer.append(TEXT_113);
607
    if (!genModel.isRichClientPlatform()) {
608
    stringBuffer.append(TEXT_114);
609
    stringBuffer.append(genPackage.getImportedEditorPluginClassName());
610
    stringBuffer.append(TEXT_115);
611
    }
605
    }
612
    stringBuffer.append(TEXT_116);
606
    stringBuffer.append(TEXT_114);
613
    stringBuffer.append(genModel.getNonNLS());
607
    stringBuffer.append(genModel.getNonNLS());
614
    stringBuffer.append(TEXT_117);
608
    stringBuffer.append(TEXT_115);
615
    stringBuffer.append(genModel.getNonNLS());
609
    stringBuffer.append(genModel.getNonNLS());
616
    stringBuffer.append(TEXT_118);
610
    stringBuffer.append(TEXT_116);
617
    stringBuffer.append(genPackage.getEditorClassName());
611
    stringBuffer.append(genPackage.getEditorClassName());
618
    stringBuffer.append(TEXT_119);
612
    stringBuffer.append(TEXT_117);
619
    for (GenPackage aGenPackage : genModel.getAllGenPackagesWithClassifiers()) {
613
    for (GenPackage aGenPackage : genModel.getAllGenPackagesWithClassifiers()) {
620
    if (!aGenPackage.getGenClasses().isEmpty() && aGenPackage.getGenModel().hasEditSupport()) {
614
    if (!aGenPackage.getGenClasses().isEmpty() && aGenPackage.getGenModel().hasEditSupport()) {
621
    stringBuffer.append(TEXT_120);
615
    stringBuffer.append(TEXT_118);
622
    stringBuffer.append(aGenPackage.getImportedItemProviderAdapterFactoryClassName());
616
    stringBuffer.append(aGenPackage.getImportedItemProviderAdapterFactoryClassName());
623
    stringBuffer.append(TEXT_121);
617
    stringBuffer.append(TEXT_119);
624
    }
618
    }
625
    }
619
    }
626
    for (GenPackage aGenPackage : genModel.getAllUsedGenPackagesWithClassifiers()) {
620
    for (GenPackage aGenPackage : genModel.getAllUsedGenPackagesWithClassifiers()) {
627
    if (!aGenPackage.getGenClasses().isEmpty() && aGenPackage.getGenModel().hasEditSupport()) {
621
    if (!aGenPackage.getGenClasses().isEmpty() && aGenPackage.getGenModel().hasEditSupport()) {
628
    stringBuffer.append(TEXT_122);
622
    stringBuffer.append(TEXT_120);
629
    stringBuffer.append(aGenPackage.getImportedItemProviderAdapterFactoryClassName());
623
    stringBuffer.append(aGenPackage.getImportedItemProviderAdapterFactoryClassName());
630
    stringBuffer.append(TEXT_123);
624
    stringBuffer.append(TEXT_121);
631
    }
625
    }
632
    }
626
    }
633
    //Editor/addItemproviderFactories.override.javajetinc"
627
    //Editor/addItemproviderFactories.override.javajetinc"
634
    stringBuffer.append(TEXT_124);
628
    stringBuffer.append(TEXT_122);
635
    stringBuffer.append(_HashMapOfResourceToBoolean);
629
    stringBuffer.append(_HashMapOfResourceToBoolean);
636
    stringBuffer.append(TEXT_125);
630
    stringBuffer.append(TEXT_123);
637
    if (genModel.useClassOverrideAnnotation()) {
631
    if (genModel.useClassOverrideAnnotation()) {
638
    stringBuffer.append(TEXT_126);
632
    stringBuffer.append(TEXT_124);
639
    }
633
    }
640
    stringBuffer.append(TEXT_127);
634
    stringBuffer.append(TEXT_125);
641
    stringBuffer.append(_CollectionOfAnything);
635
    stringBuffer.append(_CollectionOfAnything);
642
    stringBuffer.append(TEXT_128);
636
    stringBuffer.append(TEXT_126);
643
    stringBuffer.append(_CollectionOfAnything);
637
    stringBuffer.append(_CollectionOfAnything);
638
    stringBuffer.append(TEXT_127);
639
    if (genModel.useClassOverrideAnnotation()) {
640
    stringBuffer.append(TEXT_128);
641
    }
644
    stringBuffer.append(TEXT_129);
642
    stringBuffer.append(TEXT_129);
645
    if (genModel.useClassOverrideAnnotation()) {
643
    if (genModel.useClassOverrideAnnotation()) {
646
    stringBuffer.append(TEXT_130);
644
    stringBuffer.append(TEXT_130);
Lines 654-860 Link Here
654
    stringBuffer.append(TEXT_134);
652
    stringBuffer.append(TEXT_134);
655
    }
653
    }
656
    stringBuffer.append(TEXT_135);
654
    stringBuffer.append(TEXT_135);
657
    if (genModel.useClassOverrideAnnotation()) {
655
    if (genPackage.isMultipleEditorPages()) {
658
    stringBuffer.append(TEXT_136);
656
    stringBuffer.append(TEXT_136);
659
    }
657
    }
660
    stringBuffer.append(TEXT_137);
658
    stringBuffer.append(TEXT_137);
661
    if (genPackage.isMultipleEditorPages()) {
659
    stringBuffer.append(genModel.getNonNLS());
662
    stringBuffer.append(TEXT_138);
660
    stringBuffer.append(TEXT_138);
663
    }
664
    stringBuffer.append(TEXT_139);
665
    stringBuffer.append(genModel.getNonNLS());
661
    stringBuffer.append(genModel.getNonNLS());
662
    stringBuffer.append(TEXT_139);
663
    if (genModel.getComplianceLevel().getValue() >= GenJDKLevel.JDK50) {
666
    stringBuffer.append(TEXT_140);
664
    stringBuffer.append(TEXT_140);
667
    stringBuffer.append(genModel.getNonNLS());
665
    } else if (genModel.isRichClientPlatform()) {
668
    stringBuffer.append(TEXT_141);
666
    stringBuffer.append(TEXT_141);
669
    if (genModel.getComplianceLevel().getValue() >= GenJDKLevel.JDK50) {
667
    } else {
670
    stringBuffer.append(TEXT_142);
668
    stringBuffer.append(TEXT_142);
671
    } else if (genModel.isRichClientPlatform()) {
669
    }
672
    stringBuffer.append(TEXT_143);
670
    stringBuffer.append(TEXT_143);
673
    } else {
671
    stringBuffer.append(genPackage.getGenModel().getEditorPluginID());
674
    stringBuffer.append(TEXT_144);
672
    stringBuffer.append(TEXT_144);
675
    }
673
    stringBuffer.append(genModel.getNonNLS());
676
    stringBuffer.append(TEXT_145);
674
    stringBuffer.append(TEXT_145);
677
    stringBuffer.append(genPackage.getGenModel().getEditorPluginID());
678
    stringBuffer.append(TEXT_146);
679
    stringBuffer.append(genModel.getNonNLS());
675
    stringBuffer.append(genModel.getNonNLS());
676
    stringBuffer.append(TEXT_146);
677
    stringBuffer.append(genPackage.getGenModel().getEditorPluginID());
680
    stringBuffer.append(TEXT_147);
678
    stringBuffer.append(TEXT_147);
681
    stringBuffer.append(genModel.getNonNLS());
679
    stringBuffer.append(genModel.getNonNLS());
682
    stringBuffer.append(TEXT_148);
680
    stringBuffer.append(TEXT_148);
683
    stringBuffer.append(genPackage.getGenModel().getEditorPluginID());
684
    stringBuffer.append(TEXT_149);
685
    stringBuffer.append(genModel.getNonNLS());
681
    stringBuffer.append(genModel.getNonNLS());
682
    stringBuffer.append(TEXT_149);
683
    if (genModel.useClassOverrideAnnotation()) {
686
    stringBuffer.append(TEXT_150);
684
    stringBuffer.append(TEXT_150);
687
    stringBuffer.append(genModel.getNonNLS());
685
    }
688
    stringBuffer.append(TEXT_151);
686
    stringBuffer.append(TEXT_151);
689
    if (genModel.useClassOverrideAnnotation()) {
687
    if (genPackage.isMultipleEditorPages()) {
690
    stringBuffer.append(TEXT_152);
688
    stringBuffer.append(TEXT_152);
691
    }
689
    stringBuffer.append(genPackage.getEditorClassName());
692
    stringBuffer.append(TEXT_153);
690
    stringBuffer.append(TEXT_153);
693
    if (genPackage.isMultipleEditorPages()) {
691
    if (genModel.useClassOverrideAnnotation()) {
694
    stringBuffer.append(TEXT_154);
692
    stringBuffer.append(TEXT_154);
695
    stringBuffer.append(genPackage.getEditorClassName());
693
    }
696
    stringBuffer.append(TEXT_155);
694
    stringBuffer.append(TEXT_155);
697
    if (genModel.useClassOverrideAnnotation()) {
695
    if (genModel.useClassOverrideAnnotation()) {
698
    stringBuffer.append(TEXT_156);
696
    stringBuffer.append(TEXT_156);
699
    }
697
    }
700
    stringBuffer.append(TEXT_157);
698
    stringBuffer.append(TEXT_157);
701
    if (genModel.useClassOverrideAnnotation()) {
699
    stringBuffer.append(_AdapterFactoryLabelProvider);
702
    stringBuffer.append(TEXT_158);
700
    stringBuffer.append(TEXT_158);
703
    }
701
    if (useExtendedLabelProvider) {
704
    stringBuffer.append(TEXT_159);
702
    stringBuffer.append(TEXT_159);
705
    stringBuffer.append(_AdapterFactoryLabelProvider);
703
    }
706
    stringBuffer.append(TEXT_160);
704
    stringBuffer.append(TEXT_160);
707
    if (useExtendedLabelProvider) {
705
    stringBuffer.append(genModel.getNonNLS());
708
    stringBuffer.append(TEXT_161);
706
    stringBuffer.append(TEXT_161);
709
    }
707
    stringBuffer.append(genPackage.getEditorClassName());
710
    stringBuffer.append(TEXT_162);
708
    stringBuffer.append(TEXT_162);
711
    stringBuffer.append(genModel.getNonNLS());
709
    if (genModel.useClassOverrideAnnotation()) {
712
    stringBuffer.append(TEXT_163);
710
    stringBuffer.append(TEXT_163);
713
    stringBuffer.append(genPackage.getEditorClassName());
711
    }
714
    stringBuffer.append(TEXT_164);
712
    stringBuffer.append(TEXT_164);
715
    if (genModel.useClassOverrideAnnotation()) {
713
    if (genModel.useClassOverrideAnnotation()) {
716
    stringBuffer.append(TEXT_165);
714
    stringBuffer.append(TEXT_165);
717
    }
715
    }
718
    stringBuffer.append(TEXT_166);
716
    stringBuffer.append(TEXT_166);
719
    if (genModel.useClassOverrideAnnotation()) {
717
    stringBuffer.append(_AdapterFactoryLabelProvider);
720
    stringBuffer.append(TEXT_167);
718
    stringBuffer.append(TEXT_167);
721
    }
719
    if (useExtendedLabelProvider) {
722
    stringBuffer.append(TEXT_168);
720
    stringBuffer.append(TEXT_168);
723
    stringBuffer.append(_AdapterFactoryLabelProvider);
721
    }
724
    stringBuffer.append(TEXT_169);
722
    stringBuffer.append(TEXT_169);
725
    if (useExtendedLabelProvider) {
723
    stringBuffer.append(genModel.getNonNLS());
726
    stringBuffer.append(TEXT_170);
724
    stringBuffer.append(TEXT_170);
727
    }
725
    stringBuffer.append(genPackage.getEditorClassName());
728
    stringBuffer.append(TEXT_171);
726
    stringBuffer.append(TEXT_171);
729
    stringBuffer.append(genModel.getNonNLS());
727
    if (genModel.useClassOverrideAnnotation()) {
730
    stringBuffer.append(TEXT_172);
728
    stringBuffer.append(TEXT_172);
731
    stringBuffer.append(genPackage.getEditorClassName());
729
    }
732
    stringBuffer.append(TEXT_173);
730
    stringBuffer.append(TEXT_173);
733
    if (genModel.useClassOverrideAnnotation()) {
731
    if (genModel.useClassOverrideAnnotation()) {
734
    stringBuffer.append(TEXT_174);
732
    stringBuffer.append(TEXT_174);
735
    }
733
    }
736
    stringBuffer.append(TEXT_175);
734
    stringBuffer.append(TEXT_175);
737
    if (genModel.useClassOverrideAnnotation()) {
735
    stringBuffer.append(_AdapterFactoryLabelProvider);
738
    stringBuffer.append(TEXT_176);
736
    stringBuffer.append(TEXT_176);
739
    }
737
    if (useExtendedLabelProvider) {
740
    stringBuffer.append(TEXT_177);
738
    stringBuffer.append(TEXT_177);
741
    stringBuffer.append(_AdapterFactoryLabelProvider);
739
    }
742
    stringBuffer.append(TEXT_178);
740
    stringBuffer.append(TEXT_178);
743
    if (useExtendedLabelProvider) {
741
    stringBuffer.append(genModel.getNonNLS());
744
    stringBuffer.append(TEXT_179);
742
    stringBuffer.append(TEXT_179);
745
    }
743
    stringBuffer.append(genPackage.getEditorClassName());
746
    stringBuffer.append(TEXT_180);
744
    stringBuffer.append(TEXT_180);
747
    stringBuffer.append(genModel.getNonNLS());
745
    if (genModel.useClassOverrideAnnotation()) {
748
    stringBuffer.append(TEXT_181);
746
    stringBuffer.append(TEXT_181);
749
    stringBuffer.append(genPackage.getEditorClassName());
747
    }
750
    stringBuffer.append(TEXT_182);
748
    stringBuffer.append(TEXT_182);
751
    if (genModel.useClassOverrideAnnotation()) {
749
    if (genModel.useClassOverrideAnnotation()) {
752
    stringBuffer.append(TEXT_183);
750
    stringBuffer.append(TEXT_183);
753
    }
751
    }
754
    stringBuffer.append(TEXT_184);
752
    stringBuffer.append(TEXT_184);
755
    if (genModel.useClassOverrideAnnotation()) {
753
    stringBuffer.append(_AdapterFactoryLabelProvider);
756
    stringBuffer.append(TEXT_185);
754
    stringBuffer.append(TEXT_185);
757
    }
755
    if (useExtendedLabelProvider) {
758
    stringBuffer.append(TEXT_186);
756
    stringBuffer.append(TEXT_186);
759
    stringBuffer.append(_AdapterFactoryLabelProvider);
757
    }
760
    stringBuffer.append(TEXT_187);
758
    stringBuffer.append(TEXT_187);
761
    if (useExtendedLabelProvider) {
759
    stringBuffer.append(genModel.getNonNLS());
762
    stringBuffer.append(TEXT_188);
760
    stringBuffer.append(TEXT_188);
763
    }
761
    stringBuffer.append(genPackage.getEditorClassName());
764
    stringBuffer.append(TEXT_189);
762
    stringBuffer.append(TEXT_189);
765
    stringBuffer.append(genModel.getNonNLS());
763
    if (genModel.useClassOverrideAnnotation()) {
766
    stringBuffer.append(TEXT_190);
764
    stringBuffer.append(TEXT_190);
767
    stringBuffer.append(genPackage.getEditorClassName());
765
    }
768
    stringBuffer.append(TEXT_191);
766
    stringBuffer.append(TEXT_191);
769
    if (genModel.useClassOverrideAnnotation()) {
767
    if (genModel.useClassOverrideAnnotation()) {
770
    stringBuffer.append(TEXT_192);
768
    stringBuffer.append(TEXT_192);
771
    }
769
    }
772
    stringBuffer.append(TEXT_193);
770
    stringBuffer.append(TEXT_193);
773
    if (genModel.useClassOverrideAnnotation()) {
771
    stringBuffer.append(genModel.getNonNLS());
774
    stringBuffer.append(TEXT_194);
772
    stringBuffer.append(TEXT_194);
775
    }
773
    stringBuffer.append(genModel.getNonNLS());
776
    stringBuffer.append(TEXT_195);
774
    stringBuffer.append(TEXT_195);
777
    stringBuffer.append(genModel.getNonNLS());
775
    stringBuffer.append(genModel.getNonNLS());
776
    stringBuffer.append(genModel.getNonNLS(2));
778
    stringBuffer.append(TEXT_196);
777
    stringBuffer.append(TEXT_196);
779
    stringBuffer.append(genModel.getNonNLS());
778
    stringBuffer.append(_AdapterFactoryLabelProvider);
780
    stringBuffer.append(TEXT_197);
779
    stringBuffer.append(TEXT_197);
781
    stringBuffer.append(genModel.getNonNLS());
780
    if (useExtendedLabelProvider) {
782
    stringBuffer.append(genModel.getNonNLS(2));
783
    stringBuffer.append(TEXT_198);
781
    stringBuffer.append(TEXT_198);
784
    stringBuffer.append(_AdapterFactoryLabelProvider);
782
    }
785
    stringBuffer.append(TEXT_199);
783
    stringBuffer.append(TEXT_199);
786
    if (useExtendedLabelProvider) {
784
    stringBuffer.append(genModel.getNonNLS());
787
    stringBuffer.append(TEXT_200);
785
    stringBuffer.append(TEXT_200);
788
    }
786
    stringBuffer.append(genPackage.getEditorClassName());
789
    stringBuffer.append(TEXT_201);
787
    stringBuffer.append(TEXT_201);
790
    stringBuffer.append(genModel.getNonNLS());
788
    if (genModel.useClassOverrideAnnotation()) {
791
    stringBuffer.append(TEXT_202);
789
    stringBuffer.append(TEXT_202);
792
    stringBuffer.append(genPackage.getEditorClassName());
790
    }
793
    stringBuffer.append(TEXT_203);
791
    stringBuffer.append(TEXT_203);
794
    if (genModel.useClassOverrideAnnotation()) {
792
    if (genModel.useClassOverrideAnnotation()) {
795
    stringBuffer.append(TEXT_204);
793
    stringBuffer.append(TEXT_204);
796
    }
794
    }
797
    stringBuffer.append(TEXT_205);
795
    stringBuffer.append(TEXT_205);
798
    if (genModel.useClassOverrideAnnotation()) {
796
    stringBuffer.append(genModel.getNonNLS());
799
    stringBuffer.append(TEXT_206);
797
    stringBuffer.append(TEXT_206);
800
    }
798
    stringBuffer.append(genModel.getNonNLS());
801
    stringBuffer.append(TEXT_207);
799
    stringBuffer.append(TEXT_207);
802
    stringBuffer.append(genModel.getNonNLS());
800
    stringBuffer.append(genModel.getNonNLS());
801
    stringBuffer.append(genModel.getNonNLS(2));
803
    stringBuffer.append(TEXT_208);
802
    stringBuffer.append(TEXT_208);
804
    stringBuffer.append(genModel.getNonNLS());
803
    stringBuffer.append(_AdapterFactoryLabelProvider);
805
    stringBuffer.append(TEXT_209);
804
    stringBuffer.append(TEXT_209);
806
    stringBuffer.append(genModel.getNonNLS());
805
    if (useExtendedLabelProvider) {
807
    stringBuffer.append(genModel.getNonNLS(2));
808
    stringBuffer.append(TEXT_210);
806
    stringBuffer.append(TEXT_210);
809
    stringBuffer.append(_AdapterFactoryLabelProvider);
807
    }
810
    stringBuffer.append(TEXT_211);
808
    stringBuffer.append(TEXT_211);
811
    if (useExtendedLabelProvider) {
809
    stringBuffer.append(genModel.getNonNLS());
812
    stringBuffer.append(TEXT_212);
810
    stringBuffer.append(TEXT_212);
813
    }
811
    } else {
814
    stringBuffer.append(TEXT_213);
812
    stringBuffer.append(TEXT_213);
815
    stringBuffer.append(genModel.getNonNLS());
813
    stringBuffer.append(_AdapterFactoryLabelProvider);
816
    stringBuffer.append(TEXT_214);
814
    stringBuffer.append(TEXT_214);
817
    } else {
815
    if (useExtendedLabelProvider) {
818
    stringBuffer.append(TEXT_215);
816
    stringBuffer.append(TEXT_215);
819
    stringBuffer.append(_AdapterFactoryLabelProvider);
817
    }
820
    stringBuffer.append(TEXT_216);
818
    stringBuffer.append(TEXT_216);
821
    if (useExtendedLabelProvider) {
819
    stringBuffer.append(genModel.getNonNLS());
822
    stringBuffer.append(TEXT_217);
823
    }
820
    }
821
    stringBuffer.append(TEXT_217);
822
    if (genModel.useClassOverrideAnnotation()) {
824
    stringBuffer.append(TEXT_218);
823
    stringBuffer.append(TEXT_218);
825
    stringBuffer.append(genModel.getNonNLS());
826
    }
824
    }
827
    stringBuffer.append(TEXT_219);
825
    stringBuffer.append(TEXT_219);
828
    if (genModel.useClassOverrideAnnotation()) {
826
    stringBuffer.append(genModel.getNonNLS());
829
    stringBuffer.append(TEXT_220);
827
    stringBuffer.append(TEXT_220);
830
    }
831
    stringBuffer.append(TEXT_221);
832
    stringBuffer.append(genModel.getNonNLS());
828
    stringBuffer.append(genModel.getNonNLS());
829
    stringBuffer.append(TEXT_221);
830
    if (genModel.useClassOverrideAnnotation()) {
833
    stringBuffer.append(TEXT_222);
831
    stringBuffer.append(TEXT_222);
834
    stringBuffer.append(genModel.getNonNLS());
832
    }
835
    stringBuffer.append(TEXT_223);
833
    stringBuffer.append(TEXT_223);
836
    if (genModel.useClassOverrideAnnotation()) {
834
    if (genModel.useGenerics()) {
837
    stringBuffer.append(TEXT_224);
835
    stringBuffer.append(TEXT_224);
838
    }
836
    }
837
    if (genModel.useClassOverrideAnnotation()) {
839
    stringBuffer.append(TEXT_225);
838
    stringBuffer.append(TEXT_225);
840
    if (genModel.useGenerics()) {
841
    stringBuffer.append(TEXT_226);
842
    }
839
    }
843
    if (genModel.useClassOverrideAnnotation()) {
840
    stringBuffer.append(TEXT_226);
841
    if (!genModel.isRichClientPlatform()) {
844
    stringBuffer.append(TEXT_227);
842
    stringBuffer.append(TEXT_227);
845
    }
843
    }
846
    stringBuffer.append(TEXT_228);
844
    stringBuffer.append(TEXT_228);
847
    if (!genModel.isRichClientPlatform()) {
845
    if (genModel.useClassOverrideAnnotation()) {
848
    stringBuffer.append(TEXT_229);
846
    stringBuffer.append(TEXT_229);
849
    }
847
    }
850
    stringBuffer.append(TEXT_230);
848
    stringBuffer.append(TEXT_230);
851
    if (genModel.useClassOverrideAnnotation()) {
849
    stringBuffer.append(_AdapterFactoryLabelProvider);
852
    stringBuffer.append(TEXT_231);
850
    stringBuffer.append(TEXT_231);
853
    }
851
    if (useExtendedLabelProvider) {
854
    stringBuffer.append(TEXT_232);
852
    stringBuffer.append(TEXT_232);
855
    stringBuffer.append(_AdapterFactoryLabelProvider);
853
    }
856
    stringBuffer.append(TEXT_233);
854
    stringBuffer.append(TEXT_233);
857
    if (useExtendedLabelProvider) {
855
    if (genModel.useClassOverrideAnnotation()) {
858
    stringBuffer.append(TEXT_234);
856
    stringBuffer.append(TEXT_234);
859
    }
857
    }
860
    stringBuffer.append(TEXT_235);
858
    stringBuffer.append(TEXT_235);
Lines 866-906 Link Here
866
    stringBuffer.append(TEXT_238);
864
    stringBuffer.append(TEXT_238);
867
    }
865
    }
868
    stringBuffer.append(TEXT_239);
866
    stringBuffer.append(TEXT_239);
869
    if (genModel.useClassOverrideAnnotation()) {
867
    stringBuffer.append(_ListOfAnything);
870
    stringBuffer.append(TEXT_240);
868
    stringBuffer.append(TEXT_240);
871
    }
869
    stringBuffer.append(genPackage.getEditorClassName());
872
    stringBuffer.append(TEXT_241);
870
    stringBuffer.append(TEXT_241);
873
    stringBuffer.append(_ListOfAnything);
874
    stringBuffer.append(TEXT_242);
875
    stringBuffer.append(genPackage.getEditorClassName());
871
    stringBuffer.append(genPackage.getEditorClassName());
872
    stringBuffer.append(TEXT_242);
873
    if (genModel.useClassOverrideAnnotation()) {
876
    stringBuffer.append(TEXT_243);
874
    stringBuffer.append(TEXT_243);
877
    stringBuffer.append(genPackage.getEditorClassName());
875
    }
878
    stringBuffer.append(TEXT_244);
876
    stringBuffer.append(TEXT_244);
879
    if (genModel.useClassOverrideAnnotation()) {
877
    if (genPackage.isMultipleEditorPages()) {
880
    stringBuffer.append(TEXT_245);
878
    stringBuffer.append(TEXT_245);
881
    }
879
    } else {
882
    stringBuffer.append(TEXT_246);
880
    stringBuffer.append(TEXT_246);
883
    if (genPackage.isMultipleEditorPages()) {
881
    }
884
    stringBuffer.append(TEXT_247);
882
    stringBuffer.append(TEXT_247);
885
    } else {
883
    if (genModel.useGenerics()) {
886
    stringBuffer.append(TEXT_248);
884
    stringBuffer.append(TEXT_248);
887
    }
885
    }
888
    stringBuffer.append(TEXT_249);
886
    stringBuffer.append(TEXT_249);
889
    if (genModel.useGenerics()) {
887
    if (genPackage.isMultipleEditorPages()) {
890
    stringBuffer.append(TEXT_250);
888
    stringBuffer.append(TEXT_250);
891
    }
889
    stringBuffer.append(_ArrayListOfObject);
892
    stringBuffer.append(TEXT_251);
890
    stringBuffer.append(TEXT_251);
893
    if (genPackage.isMultipleEditorPages()) {
894
    stringBuffer.append(TEXT_252);
895
    stringBuffer.append(_ArrayListOfObject);
891
    stringBuffer.append(_ArrayListOfObject);
892
    stringBuffer.append(TEXT_252);
893
    } else {
896
    stringBuffer.append(TEXT_253);
894
    stringBuffer.append(TEXT_253);
897
    stringBuffer.append(_ArrayListOfObject);
895
    stringBuffer.append(_ArrayListOfObject);
898
    stringBuffer.append(TEXT_254);
896
    stringBuffer.append(TEXT_254);
899
    } else {
900
    stringBuffer.append(TEXT_255);
901
    stringBuffer.append(_ArrayListOfObject);
897
    stringBuffer.append(_ArrayListOfObject);
898
    stringBuffer.append(TEXT_255);
899
    }
902
    stringBuffer.append(TEXT_256);
900
    stringBuffer.append(TEXT_256);
903
    stringBuffer.append(_ArrayListOfObject);
901
    if (genModel.useClassOverrideAnnotation()) {
904
    stringBuffer.append(TEXT_257);
902
    stringBuffer.append(TEXT_257);
905
    }
903
    }
906
    stringBuffer.append(TEXT_258);
904
    stringBuffer.append(TEXT_258);
Lines 908-1033 Link Here
908
    stringBuffer.append(TEXT_259);
906
    stringBuffer.append(TEXT_259);
909
    }
907
    }
910
    stringBuffer.append(TEXT_260);
908
    stringBuffer.append(TEXT_260);
911
    if (genModel.useClassOverrideAnnotation()) {
909
    stringBuffer.append(_MapOfObjectToObject);
912
    stringBuffer.append(TEXT_261);
910
    stringBuffer.append(TEXT_261);
913
    }
911
    stringBuffer.append(_HashMapOfObjectToObject);
914
    stringBuffer.append(TEXT_262);
912
    stringBuffer.append(TEXT_262);
915
    stringBuffer.append(_MapOfObjectToObject);
913
    stringBuffer.append(importedOperationClassName);
916
    stringBuffer.append(TEXT_263);
914
    stringBuffer.append(TEXT_263);
917
    stringBuffer.append(_HashMapOfObjectToObject);
918
    stringBuffer.append(TEXT_264);
919
    stringBuffer.append(importedOperationClassName);
915
    stringBuffer.append(importedOperationClassName);
916
    stringBuffer.append(TEXT_264);
917
    if (!genModel.isRichClientPlatform() && genModel.useClassOverrideAnnotation()) {
920
    stringBuffer.append(TEXT_265);
918
    stringBuffer.append(TEXT_265);
921
    stringBuffer.append(importedOperationClassName);
919
    }
922
    stringBuffer.append(TEXT_266);
920
    stringBuffer.append(TEXT_266);
923
    if (!genModel.isRichClientPlatform() && genModel.useClassOverrideAnnotation()) {
921
    stringBuffer.append(operationMethodName);
924
    stringBuffer.append(TEXT_267);
922
    stringBuffer.append(TEXT_267);
925
    }
923
    if (genModel.useGenerics()) {
926
    stringBuffer.append(TEXT_268);
924
    stringBuffer.append(TEXT_268);
927
    stringBuffer.append(operationMethodName);
925
    } else {
928
    stringBuffer.append(TEXT_269);
926
    stringBuffer.append(TEXT_269);
929
    if (genModel.useGenerics()) {
927
    }
930
    stringBuffer.append(TEXT_270);
928
    stringBuffer.append(TEXT_270);
931
    } else {
929
    if (!genModel.useGenerics()) {
932
    stringBuffer.append(TEXT_271);
930
    stringBuffer.append(TEXT_271);
933
    }
931
    }
934
    stringBuffer.append(TEXT_272);
932
    stringBuffer.append(TEXT_272);
935
    if (!genModel.useGenerics()) {
933
    stringBuffer.append(genPackage.getImportedEditorPluginClassName());
936
    stringBuffer.append(TEXT_273);
934
    stringBuffer.append(TEXT_273);
937
    }
935
    if (genModel.useClassOverrideAnnotation()) {
938
    stringBuffer.append(TEXT_274);
936
    stringBuffer.append(TEXT_274);
939
    stringBuffer.append(genPackage.getImportedEditorPluginClassName());
937
    }
940
    stringBuffer.append(TEXT_275);
938
    stringBuffer.append(TEXT_275);
941
    if (genModel.useClassOverrideAnnotation()) {
939
    if (genModel.useClassOverrideAnnotation()) {
942
    stringBuffer.append(TEXT_276);
940
    stringBuffer.append(TEXT_276);
943
    }
941
    }
944
    stringBuffer.append(TEXT_277);
942
    stringBuffer.append(TEXT_277);
945
    if (genModel.useClassOverrideAnnotation()) {
943
    if (genModel.isRichClientPlatform()) {
946
    stringBuffer.append(TEXT_278);
944
    stringBuffer.append(TEXT_278);
947
    }
945
    if (!genModel.useGenerics()) {
948
    stringBuffer.append(TEXT_279);
946
    stringBuffer.append(TEXT_279);
949
    if (genModel.isRichClientPlatform()) {
947
    }
950
    stringBuffer.append(TEXT_280);
948
    stringBuffer.append(TEXT_280);
951
    if (!genModel.useGenerics()) {
949
    stringBuffer.append(genModel.getImportedName(genModel.getQualifiedEditorAdvisorClassName()));
952
    stringBuffer.append(TEXT_281);
950
    stringBuffer.append(TEXT_281);
953
    }
951
    stringBuffer.append(genModel.getImportedName("org.eclipse.swt.SWT"));
954
    stringBuffer.append(TEXT_282);
952
    stringBuffer.append(TEXT_282);
955
    stringBuffer.append(genModel.getImportedName(genModel.getQualifiedEditorAdvisorClassName()));
953
    stringBuffer.append(genModel.getImportedName("org.eclipse.emf.common.ui.URIEditorInput"));
956
    stringBuffer.append(TEXT_283);
954
    stringBuffer.append(TEXT_283);
957
    stringBuffer.append(genModel.getImportedName("org.eclipse.swt.SWT"));
955
    } else {
958
    stringBuffer.append(TEXT_284);
956
    stringBuffer.append(TEXT_284);
959
    stringBuffer.append(genModel.getImportedName("org.eclipse.emf.common.ui.URIEditorInput"));
957
    }
960
    stringBuffer.append(TEXT_285);
958
    stringBuffer.append(TEXT_285);
961
    } else {
959
    if (!genModel.useGenerics()) {
962
    stringBuffer.append(TEXT_286);
960
    stringBuffer.append(TEXT_286);
963
    }
961
    }
964
    stringBuffer.append(TEXT_287);
962
    stringBuffer.append(TEXT_287);
965
    if (!genModel.useGenerics()) {
963
    stringBuffer.append(genModel.getImportedName("org.eclipse.core.runtime.NullProgressMonitor"));
966
    stringBuffer.append(TEXT_288);
964
    stringBuffer.append(TEXT_288);
967
    }
965
    if (!genModel.isRichClientPlatform()) {
968
    stringBuffer.append(TEXT_289);
966
    stringBuffer.append(TEXT_289);
969
    stringBuffer.append(genModel.getImportedName("org.eclipse.core.runtime.NullProgressMonitor"));
967
    stringBuffer.append(genPackage.getImportedEditorPluginClassName());
970
    stringBuffer.append(TEXT_290);
968
    stringBuffer.append(TEXT_290);
971
    if (!genModel.isRichClientPlatform()) {
969
    }
972
    stringBuffer.append(TEXT_291);
970
    stringBuffer.append(TEXT_291);
973
    stringBuffer.append(genPackage.getImportedEditorPluginClassName());
971
    if (genModel.useClassOverrideAnnotation()) {
974
    stringBuffer.append(TEXT_292);
972
    stringBuffer.append(TEXT_292);
975
    }
973
    }
976
    stringBuffer.append(TEXT_293);
974
    stringBuffer.append(TEXT_293);
977
    if (genModel.useClassOverrideAnnotation()) {
975
    if (!genModel.isRichClientPlatform()) {
978
    stringBuffer.append(TEXT_294);
976
    stringBuffer.append(TEXT_294);
979
    }
977
    }
980
    stringBuffer.append(TEXT_295);
978
    stringBuffer.append(TEXT_295);
981
    if (!genModel.isRichClientPlatform()) {
979
    if (genModel.useClassOverrideAnnotation()) {
982
    stringBuffer.append(TEXT_296);
980
    stringBuffer.append(TEXT_296);
983
    }
981
    }
984
    stringBuffer.append(TEXT_297);
982
    stringBuffer.append(TEXT_297);
985
    if (genModel.useClassOverrideAnnotation()) {
983
    if (genPackage.isMultipleEditorPages()) {
986
    stringBuffer.append(TEXT_298);
984
    stringBuffer.append(TEXT_298);
987
    }
985
    } else {
988
    stringBuffer.append(TEXT_299);
986
    stringBuffer.append(TEXT_299);
989
    if (genPackage.isMultipleEditorPages()) {
987
    }
990
    stringBuffer.append(TEXT_300);
988
    stringBuffer.append(TEXT_300);
991
    } else {
989
    if (genModel.useGenerics()) {
992
    stringBuffer.append(TEXT_301);
990
    stringBuffer.append(TEXT_301);
993
    }
991
    } else {
994
    stringBuffer.append(TEXT_302);
992
    stringBuffer.append(TEXT_302);
995
    if (genModel.useGenerics()) {
993
    }
996
    stringBuffer.append(TEXT_303);
994
    stringBuffer.append(TEXT_303);
997
    } else {
995
    if (!genModel.useGenerics()) {
998
    stringBuffer.append(TEXT_304);
996
    stringBuffer.append(TEXT_304);
999
    }
997
    }
1000
    stringBuffer.append(TEXT_305);
998
    stringBuffer.append(TEXT_305);
1001
    if (!genModel.useGenerics()) {
999
    stringBuffer.append(_CollectionOfAnything);
1002
    stringBuffer.append(TEXT_306);
1000
    stringBuffer.append(TEXT_306);
1003
    }
1001
    stringBuffer.append(genModel.getNonNLS());
1004
    stringBuffer.append(TEXT_307);
1002
    stringBuffer.append(TEXT_307);
1005
    stringBuffer.append(_CollectionOfAnything);
1003
    stringBuffer.append(genModel.getNonNLS());
1006
    stringBuffer.append(TEXT_308);
1004
    stringBuffer.append(TEXT_308);
1007
    stringBuffer.append(genModel.getNonNLS());
1005
    stringBuffer.append(genModel.getNonNLS());
1008
    stringBuffer.append(TEXT_309);
1006
    stringBuffer.append(TEXT_309);
1009
    stringBuffer.append(genModel.getNonNLS());
1007
    stringBuffer.append(genModel.getNonNLS());
1010
    stringBuffer.append(TEXT_310);
1008
    stringBuffer.append(TEXT_310);
1011
    stringBuffer.append(genModel.getNonNLS());
1009
    stringBuffer.append(genPackage.getImportedEditorPluginClassName());
1012
    stringBuffer.append(TEXT_311);
1010
    stringBuffer.append(TEXT_311);
1013
    stringBuffer.append(genModel.getNonNLS());
1014
    stringBuffer.append(TEXT_312);
1015
    stringBuffer.append(genPackage.getImportedEditorPluginClassName());
1011
    stringBuffer.append(genPackage.getImportedEditorPluginClassName());
1012
    stringBuffer.append(TEXT_312);
1013
    if (genModel.useClassOverrideAnnotation()) {
1016
    stringBuffer.append(TEXT_313);
1014
    stringBuffer.append(TEXT_313);
1017
    stringBuffer.append(genPackage.getImportedEditorPluginClassName());
1015
    }
1018
    stringBuffer.append(TEXT_314);
1016
    stringBuffer.append(TEXT_314);
1019
    if (genModel.useClassOverrideAnnotation()) {
1017
    if (!genModel.isRichClientPlatform()) {
1020
    stringBuffer.append(TEXT_315);
1018
    stringBuffer.append(TEXT_315);
1021
    }
1019
    }
1022
    stringBuffer.append(TEXT_316);
1020
    stringBuffer.append(TEXT_316);
1023
    if (!genModel.isRichClientPlatform()) {
1024
    stringBuffer.append(TEXT_317);
1025
    }
1026
    stringBuffer.append(TEXT_318);
1027
    stringBuffer.append(genPackage.isMultipleEditorPages());
1021
    stringBuffer.append(genPackage.isMultipleEditorPages());
1028
    stringBuffer.append(TEXT_319);
1022
    stringBuffer.append(TEXT_317);
1029
    genModel.emitSortedImports();
1023
    genModel.emitSortedImports();
1030
    stringBuffer.append(TEXT_320);
1024
    stringBuffer.append(TEXT_318);
1031
    return stringBuffer.toString();
1025
    return stringBuffer.toString();
1032
  }
1026
  }
1033
}
1027
}

Return to bug 235797