1 17 package org.eclipse.emf.codegen; 18 19 20 import org.eclipse.emf.common.EMFPlugin; 21 import org.eclipse.emf.common.util.ResourceLocator; 22 23 24 36 public final class CodeGenPlugin extends EMFPlugin 37 { 38 41 public static final CodeGenPlugin INSTANCE = new CodeGenPlugin(); 42 43 46 private static Implementation plugin; 47 48 51 private CodeGenPlugin() 52 { 53 super(new ResourceLocator[] {}); 54 } 55 56 59 public ResourceLocator getPluginResourceLocator() 60 { 61 return plugin; 62 } 63 64 68 public static Implementation getPlugin() 69 { 70 return plugin; 71 } 72 73 76 public static void write(Exception exception) 77 { 78 INSTANCE.log(exception); 79 } 80 81 84 public static class Implementation extends EMFPlugin.EclipsePlugin 85 { 86 89 public Implementation() 90 { 91 super(); 92 93 plugin = this; 96 } 97 } 98 } 99 | Popular Tags |