1 17 package org.eclipse.emf.mapping.ecore2ecore; 18 19 20 import org.eclipse.emf.common.EMFPlugin; 21 22 import org.eclipse.emf.common.util.ResourceLocator; 23 24 import org.eclipse.emf.ecore.provider.EcoreEditPlugin; 25 26 import org.eclipse.emf.mapping.MappingPlugin; 27 28 29 35 public final class Ecore2EcorePlugin extends EMFPlugin 36 { 37 43 public static final Ecore2EcorePlugin INSTANCE = new Ecore2EcorePlugin(); 44 45 51 private static Implementation plugin; 52 53 59 public Ecore2EcorePlugin() 60 { 61 super 62 (new ResourceLocator [] 63 { 64 MappingPlugin.INSTANCE, 65 EcoreEditPlugin.INSTANCE, 66 }); 67 } 68 69 76 public ResourceLocator getPluginResourceLocator() 77 { 78 return plugin; 79 } 80 81 88 public static Implementation getPlugin() 89 { 90 return plugin; 91 } 92 93 99 public static class Implementation extends EclipsePlugin 100 { 101 107 public Implementation() 108 { 109 super(); 110 111 plugin = this; 114 } 115 } 116 } | Popular Tags |