Revision: 15093
http://gate.svn.sourceforge.net/gate/?rev=15093&view=rev
Author: valyt
Date: 2012-01-17 09:36:34 +0000 (Tue, 17 Jan 2012)
Log Message:
-----------
Made access to MPI IMs fully reflective.
Modified Paths:
--------------
guk/trunk/src/guk/Editor.java
Modified: guk/trunk/src/guk/Editor.java
===================================================================
--- guk/trunk/src/guk/Editor.java 2012-01-17 09:36:08 UTC (rev 15092)
+++ guk/trunk/src/guk/Editor.java 2012-01-17 09:36:34 UTC (rev 15093)
@@ -116,11 +116,11 @@
try{
//add the MPI IMs
//if this fails mpi IM is not present
- Class.forName("mpi.alt.java.awt.im.spi.lookup.LookupDescriptor");
-
+ Class theClass = Class.forName(
+ "mpi.alt.java.awt.im.spi.lookup.LookupDescriptor");
installedLocales.addAll(Arrays.asList(
- new mpi.alt.java.awt.im.spi.lookup.LookupDescriptor().
- getAvailableLocales()));
+ theClass.getMethod("getAvailableLocales", null).invoke(
+ theClass.newInstance(), new Object[]{})));
}catch(Exception e){
//something happened; most probably MPI not present.
//just drop it, is not vital.
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs