Bundle bundle = Platform.getBundle(PLUGIN_ID);
IPath path = new Path("resources/librarySets");
URL librarySetURL = FileLocator.find(bundle, path, null);
File librarySetsDir = new File(FileLocator.toFileURL(librarySetURL).getPath());
DirectoryLibrarySet j2ee13 = new DirectoryLibrarySet(LIBRARY_SET_J2EE_1_3);
j2ee13.setName("Partial J2EE 1.3");
j2ee13.setLocation(new File(librarySetsDir, "j2ee13"));
_librarySets.put(j2ee13.getId(), j2ee13);
DirectoryLibrarySet j2ee14 = new DirectoryLibrarySet(LIBRARY_SET_J2EE_1_4);
j2ee14.setName("Partial J2EE 1.4");
j2ee14.setLocation(new File(librarySetsDir, "j2ee14"));
_librarySets.put(j2ee14.getId(), j2ee14);
} catch (Exception e) {
logError("Unable to initialize plugin '" + PLUGIN_ID + "'.", e);
}
context.addBundleListener(this);