1 10 11 package com.bull.eclipse.jonas.utils; 12 13 import org.eclipse.core.runtime.Platform; 14 15 import com.bull.eclipse.jonas.JonasLauncherPlugin; 16 17 23 24 public class TemplateDirUtil { 25 public static String getTemplateDir() { 26 String templateFileLocation = ""; 27 templateFileLocation = getBuildFileLocation() + "/template"; 28 29 return templateFileLocation; 30 } 31 32 public static String getBuildFileLocation() { 33 String buildFileLocation = ""; 34 try{ 35 buildFileLocation = Platform.resolve( 36 JonasLauncherPlugin.getDefault().getDescriptor().getInstallURL() 37 ).getPath(); 38 }catch(java.io.IOException e){}; 39 return buildFileLocation; 40 } 41 42 } 43 | Popular Tags |