Esempio n. 1
0
 public static void parseBufferLocalProperties(Buffer buffer) {
   try {
     Class<?> cl = Class.forName("org.gjt.sp.jedit.buffer.JEditBuffer");
     Method method = cl.getDeclaredMethod("parseBufferLocalProperties");
     method.setAccessible(true);
     method.invoke(buffer);
   } catch (Exception e) {
     Log.log(Log.ERROR, PluginUtils.class + ".parseBufferLocalProperties", e);
   }
 }
Esempio n. 2
0
 public static void setEditPane(EditPane editPane) {
   View view = editPane.getView();
   try {
     Class<?> cl = Class.forName("org.gjt.sp.jedit.View");
     Method method = cl.getDeclaredMethod("setEditPane", EditPane.class);
     method.setAccessible(true);
     method.invoke(view, editPane);
   } catch (Exception e) {
     Log.log(Log.ERROR, PluginUtils.class + ".setEditPane", e);
   }
 }