stringBuffer.append(genModel.getImportedName("org.eclipse.emf.ecore.util.ExtendedMetaData"));
} else {
  public String generate(Object argument)  {    StringBuffer stringBuffer = new StringBuffer();    /** * <copyright> * * Copyright (c) 2002-2004 IBM Corporation and others. * All rights reserved.   This program and the accompanying materials * are made available under the terms of the Common Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/cpl-v10.html * * Contributors: *   IBM - Initial API and implementation * * </copyright> */    GenPackage genPackage = (GenPackage)argument; GenModel genModel=genPackage.getGenModel();    stringBuffer.append(TEXT_1);    stringBuffer.append(TEXT_2);    stringBuffer.append("$");    stringBuffer.append(TEXT_3);    stringBuffer.append("$");    stringBuffer.append(TEXT_4);    stringBuffer.append(genPackage.getPresentationPackageName());    stringBuffer.append(TEXT_5);    if (!genModel.isRichClientPlatform()) {    stringBuffer.append(TEXT_6);    }    stringBuffer.append(TEXT_7);    if (!genModel.isRichClientPlatform()) {    stringBuffer.append(TEXT_8);    }    stringBuffer.append(TEXT_9);    stringBuffer.append(genPackage.getQualifiedFactoryInterfaceName());    stringBuffer.append(TEXT_10);    stringBuffer.append(genPackage.getQualifiedPackageInterfaceName());    stringBuffer.append(TEXT_11);    genModel.markImportLocation(stringBuffer);    stringBuffer.append(TEXT_12);    stringBuffer.append(genPackage.getModelWizardClassName());    stringBuffer.append(TEXT_13);    if (genModel.getCopyrightText() != null) {    stringBuffer.append(TEXT_14);    stringBuffer.append(genModel.getImportedName("java.lang.String"));    stringBuffer.append(TEXT_15);    stringBuffer.append(genModel.getCopyrightText());    stringBuffer.append(TEXT_16);    stringBuffer.append(genModel.getNonNLS());    stringBuffer.append(TEXT_17);    }    stringBuffer.append(TEXT_18);    stringBuffer.append(genPackage.getPackageInterfaceName());    stringBuffer.append(TEXT_19);    stringBuffer.append(genPackage.getUncapPackageInterfaceName());    stringBuffer.append(TEXT_20);    stringBuffer.append(genPackage.getPackageInterfaceName());    stringBuffer.append(TEXT_21);    stringBuffer.append(genPackage.getFactoryInterfaceName());    stringBuffer.append(TEXT_22);    stringBuffer.append(genPackage.getUncapFactoryInterfaceName());    stringBuffer.append(TEXT_23);    stringBuffer.append(genPackage.getUncapPackageInterfaceName());    stringBuffer.append(TEXT_24);    stringBuffer.append(genPackage.getFactoryInterfaceName());    stringBuffer.append(TEXT_25);    if (!genModel.isRichClientPlatform()) {    stringBuffer.append(TEXT_26);    stringBuffer.append(genPackage.getModelWizardClassName());    stringBuffer.append(TEXT_27);    }    stringBuffer.append(TEXT_28);    stringBuffer.append(genPackage.getModelWizardClassName());    stringBuffer.append(TEXT_29);    stringBuffer.append(genPackage.getImportedEditorPluginClassName());    stringBuffer.append(TEXT_30);    stringBuffer.append(genModel.getNonNLS());    stringBuffer.append(TEXT_31);    stringBuffer.append(genPackage.getImportedEditorPluginClassName());    stringBuffer.append(TEXT_32);    stringBuffer.append(genPackage.getPrefix());    stringBuffer.append(TEXT_33);    stringBuffer.append(genModel.getNonNLS());    stringBuffer.append(TEXT_34);    if (!genPackage.hasDocumentRoot()) {    stringBuffer.append(TEXT_35);    stringBuffer.append(genPackage.getUncapPackageInterfaceName());    stringBuffer.append(TEXT_36);    stringBuffer.append(genPackage.getUncapFactoryInterfaceName());    stringBuffer.append(TEXT_37);    } else {    stringBuffer.append(TEXT_38);    stringBuffer.append(genModel.getImportedName("org.eclipse.emf.ecore.util.ExtendedMetaData"));    stringBuffer.append(TEXT_39);    stringBuffer.append(genPackage.getUncapPackageInterfaceName());    stringBuffer.append(TEXT_40);    stringBuffer.append(genPackage.getUncapFactoryInterfaceName());    stringBuffer.append(TEXT_41);    stringBuffer.append(genModel.getImportedName("org.eclipse.emf.ecore.util.EcoreUtil"));    stringBuffer.append(TEXT_42);    }    stringBuffer.append(TEXT_43);    if (genModel.isRichClientPlatform()) {    stringBuffer.append(TEXT_44);    stringBuffer.append(genModel.getImportedName("java.io.File"));    stringBuffer.append(TEXT_45);    stringBuffer.append(genPackage.getImportedEditorPluginClassName());    stringBuffer.append(TEXT_46);    stringBuffer.append(genModel.getNonNLS());    stringBuffer.append(TEXT_47);    stringBuffer.append(genPackage.getImportedEditorPluginClassName());    stringBuffer.append(TEXT_48);    stringBuffer.append(genModel.getNonNLS());    stringBuffer.append(TEXT_49);    stringBuffer.append(genModel.getImportedName("org.eclipse.jface.operation.IRunnableWithProgress"));    stringBuffer.append(TEXT_50);    stringBuffer.append(genModel.getImportedName("org.eclipse.jface.operation.IRunnableWithProgress"));    stringBuffer.append(TEXT_51);    stringBuffer.append(genModel.getImportedName("java.lang.reflect.InvocationTargetException"));    stringBuffer.append(TEXT_52);    } else {    stringBuffer.append(TEXT_53);    }    stringBuffer.append(TEXT_54);    if (!genModel.isRichClientPlatform()) {    stringBuffer.append(TEXT_55);    }    stringBuffer.append(TEXT_56);    stringBuffer.append(genPackage.getImportedEditorPluginClassName());    stringBuffer.append(TEXT_57);    if (genModel.isRichClientPlatform()) {    stringBuffer.append(TEXT_58);    stringBuffer.append(genModel.getImportedName(genModel.getQualifiedEditorAdvisorClassName()));    stringBuffer.append(TEXT_59);    } else {    stringBuffer.append(TEXT_60);    stringBuffer.append(genModel.getImportedName("org.eclipse.ui.IWorkbenchWindow"));    stringBuffer.append(TEXT_61);    stringBuffer.append(genModel.getImportedName("org.eclipse.ui.IWorkbenchPage"));    stringBuffer.append(TEXT_62);    stringBuffer.append(genModel.getImportedName("org.eclipse.ui.IWorkbenchPart"));    stringBuffer.append(TEXT_63);    stringBuffer.append(genModel.getImportedName("org.eclipse.jface.viewers.ISelection"));    stringBuffer.append(TEXT_64);    stringBuffer.append(genModel.getImportedName("org.eclipse.jface.viewers.StructuredSelection"));    stringBuffer.append(TEXT_65);    stringBuffer.append(genModel.getImportedName("org.eclipse.ui.PartInitException"));    stringBuffer.append(TEXT_66);    stringBuffer.append(genPackage.getImportedEditorPluginClassName());    stringBuffer.append(TEXT_67);    stringBuffer.append(genModel.getNonNLS());    stringBuffer.append(TEXT_68);    }    stringBuffer.append(TEXT_69);    stringBuffer.append(genPackage.getImportedEditorPluginClassName());    stringBuffer.append(TEXT_70);    if (!genModel.isRichClientPlatform()) {    stringBuffer.append(TEXT_71);    stringBuffer.append(genPackage.getModelWizardClassName());    stringBuffer.append(TEXT_72);    stringBuffer.append(genPackage.getModelWizardClassName());    stringBuffer.append(TEXT_73);    stringBuffer.append(genPackage.getPrefix().toLowerCase());    stringBuffer.append(TEXT_74);    stringBuffer.append(genPackage.getImportedEditorPluginClassName());    stringBuffer.append(TEXT_75);    stringBuffer.append(genPackage.getEditorClassName());    stringBuffer.append(TEXT_76);    stringBuffer.append(genModel.getNonNLS());    stringBuffer.append(TEXT_77);    stringBuffer.append(genModel.getImportedName("org.eclipse.core.runtime.Path"));    stringBuffer.append(TEXT_78);    stringBuffer.append(genPackage.getImportedEditorPluginClassName());    stringBuffer.append(TEXT_79);    stringBuffer.append(genModel.getNonNLS());    stringBuffer.append(TEXT_80);    }    stringBuffer.append(TEXT_81);    stringBuffer.append(genPackage.getModelWizardClassName());    stringBuffer.append(TEXT_82);    if (genModel.isRichClientPlatform()) {    stringBuffer.append(TEXT_83);    stringBuffer.append(genModel.getImportedName("org.eclipse.swt.widgets.Text"));    stringBuffer.append(TEXT_84);    }    stringBuffer.append(TEXT_85);    stringBuffer.append(genPackage.getModelWizardClassName());    stringBuffer.append(TEXT_86);    if (genModel.isRichClientPlatform()) {    stringBuffer.append(TEXT_87);    stringBuffer.append(genPackage.getImportedEditorPluginClassName());    stringBuffer.append(TEXT_88);    stringBuffer.append(genModel.getNonNLS());    stringBuffer.append(TEXT_89);    stringBuffer.append(genModel.getImportedName("org.eclipse.swt.widgets.Text"));    stringBuffer.append(TEXT_90);    stringBuffer.append(genModel.getImportedName("org.eclipse.swt.events.ModifyListener"));    stringBuffer.append(TEXT_91);    stringBuffer.append(genModel.getImportedName("org.eclipse.swt.events.ModifyEvent"));    stringBuffer.append(TEXT_92);    stringBuffer.append(genModel.getImportedName("org.eclipse.swt.widgets.Button"));    stringBuffer.append(TEXT_93);    stringBuffer.append(genModel.getImportedName("org.eclipse.swt.widgets.Button"));    stringBuffer.append(TEXT_94);    stringBuffer.append(genPackage.getImportedEditorPluginClassName());    stringBuffer.append(TEXT_95);    stringBuffer.append(genModel.getNonNLS());    stringBuffer.append(TEXT_96);    stringBuffer.append(genPackage.getImportedEditorPluginClassName());    stringBuffer.append(TEXT_97);    stringBuffer.append("_UI_"+genPackage.getEditorClassName()+"FilenameExtension");    stringBuffer.append(TEXT_98);    stringBuffer.append(genModel.getNonNLS());    stringBuffer.append(TEXT_99);    stringBuffer.append(genModel.getImportedName(genModel.getQualifiedEditorAdvisorClassName()));    stringBuffer.append(TEXT_100);    stringBuffer.append(genModel.getImportedName("org.eclipse.swt.SWT"));    stringBuffer.append(TEXT_101);    stringBuffer.append(genModel.getNonNLS());    stringBuffer.append(TEXT_102);    stringBuffer.append(genModel.getNonNLS());    stringBuffer.append(TEXT_103);    stringBuffer.append(genModel.getNonNLS());    stringBuffer.append(TEXT_104);    }    stringBuffer.append(TEXT_105);    stringBuffer.append(genPackage.getImportedEditorPluginClassName());    stringBuffer.append(TEXT_106);    stringBuffer.append(genModel.getNonNLS());    stringBuffer.append(TEXT_107);    if (!genPackage.hasDocumentRoot()) {    stringBuffer.append(TEXT_108);    stringBuffer.append(genPackage.getUncapPackageInterfaceName());    stringBuffer.append(TEXT_109);    } else {    stringBuffer.append(TEXT_110);    stringBuffer.append(genModel.getImportedName("org.eclipse.emf.ecore.util.ExtendedMetaData"));    stringBuffer.append(TEXT_111);    stringBuffer.append(genModel.getImportedName("org.eclipse.emf.ecore.util.ExtendedMetaData"));    stringBuffer.append(TEXT_112);    stringBuffer.append(genPackage.getUncapPackageInterfaceName());    stringBuffer.append(TEXT_113);    stringBuffer.append(genModel.getImportedName("org.eclipse.emf.ecore.EStructuralFeature"));    stringBuffer.append(TEXT_114);    stringBuffer.append(genModel.getImportedName("org.eclipse.emf.ecore.EStructuralFeature"));    stringBuffer.append(TEXT_115);    }    stringBuffer.append(TEXT_116);    stringBuffer.append(genPackage.getImportedEditorPluginClassName());    stringBuffer.append(TEXT_117);    stringBuffer.append(genModel.getNonNLS());    stringBuffer.append(TEXT_118);    stringBuffer.append(genPackage.getImportedEditorPluginClassName());    stringBuffer.append(TEXT_119);    stringBuffer.append(genModel.getNonNLS());    stringBuffer.append(TEXT_120);    if (genModel.isRichClientPlatform()) {    stringBuffer.append(TEXT_121);    } else {    stringBuffer.append(TEXT_122);    }    stringBuffer.append(TEXT_123);    if (genModel.isRichClientPlatform()) {    stringBuffer.append(TEXT_124);    }    stringBuffer.append(TEXT_125);    if (genModel.isRichClientPlatform()) {    stringBuffer.append(TEXT_126);    }    stringBuffer.append(TEXT_127);    if (!genModel.isRichClientPlatform()) {    stringBuffer.append(TEXT_128);    stringBuffer.append(genPackage.getModelWizardClassName());    stringBuffer.append(TEXT_129);    stringBuffer.append(genModel.getNonNLS());    stringBuffer.append(TEXT_130);    stringBuffer.append(genPackage.getImportedEditorPluginClassName());    stringBuffer.append(TEXT_131);    stringBuffer.append(genPackage.getModelWizardClassName());    stringBuffer.append(TEXT_132);    stringBuffer.append(genModel.getNonNLS());    stringBuffer.append(TEXT_133);    stringBuffer.append(genPackage.getImportedEditorPluginClassName());    stringBuffer.append(TEXT_134);    stringBuffer.append(genPackage.getModelWizardClassName());    stringBuffer.append(TEXT_135);    stringBuffer.append(genModel.getNonNLS());    stringBuffer.append(TEXT_136);    stringBuffer.append(genPackage.getImportedEditorPluginClassName());    stringBuffer.append(TEXT_137);    stringBuffer.append(genPackage.getEditorClassName());    stringBuffer.append(TEXT_138);    stringBuffer.append(genPackage.getImportedEditorPluginClassName());    stringBuffer.append(TEXT_139);    stringBuffer.append(genPackage.getEditorClassName());    stringBuffer.append(TEXT_140);    stringBuffer.append(genModel.getNonNLS());    stringBuffer.append(genModel.getNonNLS(2));    stringBuffer.append(genModel.getNonNLS(3));    stringBuffer.append(TEXT_141);    stringBuffer.append(genPackage.getImportedEditorPluginClassName());    stringBuffer.append(TEXT_142);    stringBuffer.append(genPackage.getEditorClassName());    stringBuffer.append(TEXT_143);    stringBuffer.append(genModel.getNonNLS());    stringBuffer.append(TEXT_144);    stringBuffer.append(genPackage.getImportedEditorPluginClassName());    stringBuffer.append(TEXT_145);    stringBuffer.append(genPackage.getEditorClassName());    stringBuffer.append(TEXT_146);    stringBuffer.append(genModel.getNonNLS());    stringBuffer.append(TEXT_147);    stringBuffer.append(genModel.getNonNLS());    stringBuffer.append(TEXT_148);    stringBuffer.append(genModel.getNonNLS());    stringBuffer.append(TEXT_149);    }    stringBuffer.append(TEXT_150);    stringBuffer.append(genPackage.getModelWizardClassName());    stringBuffer.append(TEXT_151);    stringBuffer.append(genModel.getNonNLS());    stringBuffer.append(TEXT_152);    stringBuffer.append(genPackage.getImportedEditorPluginClassName());    stringBuffer.append(TEXT_153);    stringBuffer.append(genPackage.getModelWizardClassName());    stringBuffer.append(TEXT_154);    stringBuffer.append(genModel.getNonNLS());    stringBuffer.append(TEXT_155);    stringBuffer.append(genPackage.getImportedEditorPluginClassName());    stringBuffer.append(TEXT_156);    stringBuffer.append(genModel.getNonNLS());    stringBuffer.append(TEXT_157);    if (genModel.isRichClientPlatform()) {    stringBuffer.append(TEXT_158);    } else {    stringBuffer.append(TEXT_159);    }    stringBuffer.append(TEXT_160);    genModel.emitSortedImports();    stringBuffer.append(TEXT_161);    return stringBuffer.toString();  }