action = (EditAction)Class.forName(className) .newInstance();
Class clazz; ClassLoader loader = getClass().getClassLoader(); if(loader == null) clazz = Class.forName(className); else clazz = loader.loadClass(className);  action = (EditAction)clazz.newInstance();
		private void loadAction()		{			String className = "org.gjt.sp.jedit.actions."				+ getName().replace('-','_');			Log.log(Log.DEBUG,this,"Loading action " + name +				" (class=" + className + ")");			try			{				action = (EditAction)Class.forName(className)					.newInstance();			}			catch(Exception e)			{				Log.log(Log.ERROR,this,"Cannot load action " + className);				Log.log(Log.ERROR,this,e);			}		}