Commit 452c1779 authored by Philip Makedonski's avatar Philip Makedonski
Browse files

+ fixes for missing icons and resolving libraries from jar

parent 2ebe4854
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -5,5 +5,6 @@ bin.includes = .,\
               META-INF/,\
               plugin.xml,\
               css/,\
               templates/
               templates/,\
               icons/
bin.excludes = **/*.xtend
+1 −3
Original line number Diff line number Diff line
@@ -27,8 +27,7 @@ public class TemplateHelper {
				System.out.println("Running as plugin...");
				Bundle bundle = Platform.getBundle("org.etsi.mts.tdl.tx.ui");
				URL url = bundle.getEntry(source);
				uri = url.toURI();
				uri = FileLocator.resolve(url).toURI();
				uri = FileLocator.toFileURL(url).toURI();
			} else {
				System.out.println("Get from class localtion...");
				String binPath = TemplateContent.class.getClass().getProtectionDomain().getCodeSource()
@@ -36,7 +35,6 @@ public class TemplateHelper {
				String projectPath = new File(binPath).getParent();
				uri = new File(((projectPath + "/") + source)).toURI();
			}
//			System.out.println(uri);
			library = Files.readString(Path.of(uri));
		} catch (Throwable _e) {
			throw Exceptions.sneakyThrow(_e);