Skip to contentSkip to conversation

Use explicit bundle name in UIText to aid IDE integration

PATCH New Tor Arne Vestbø 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Use explicit bundle name in UIText to aid IDE integration

When the bundle name is specified as a raw string Eclipse will pick up the location of the uitext.properties file and display the actual string value when hovering over UIText declarations. It also allows direct navigation to the uitext.properties string from a declaration.

---
 .../src/org/spearce/egit/ui/UIText.java            |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
org.spearce.egit.ui/src/org/spearce/egit/ui/UIText.java +1 -2
index bd64ca1..0740f09 100644
@@ -1022,7 +1022,6 @@
 	public static String DecoratorPreferencesPage_iconsShowAssumeValid;
 
 	static {
-		initializeMessages(UIText.class.getPackage().getName() + ".uitext",
-				UIText.class);
+		initializeMessages("org.spearce.egit.ui.uitext", UIText.class);
 	}
 }
Signature · 1 line
1.6.1.2.309.g2ea3