try { Log.log(Log.MESSAGE,Abbrevs.class,"Loading default.abbrevs"); loadAbbrevs(new InputStreamReader(Abbrevs.class .getResourceAsStream("default.abbrevs"))); } catch(Exception e) { Log.log(Log.ERROR,Abbrevs.class,"Error while loading default.abbrevs"); Log.log(Log.ERROR,Abbrevs.class,e); }
boolean loaded = false;
	static void load()	{		expandOnInput = "yes".equals(jEdit.getProperty("view.expandOnInput"));		globalAbbrevs = new Hashtable();		modes = new Hashtable();		try		{			Log.log(Log.MESSAGE,Abbrevs.class,"Loading default.abbrevs");			loadAbbrevs(new InputStreamReader(Abbrevs.class				.getResourceAsStream("default.abbrevs")));		}		catch(Exception e)		{			Log.log(Log.ERROR,Abbrevs.class,"Error while loading default.abbrevs");			Log.log(Log.ERROR,Abbrevs.class,e);		}		String settings = jEdit.getSettingsDirectory();		if(settings != null)		{			String path = MiscUtilities.constructPath(settings,"abbrevs");			try			{				Log.log(Log.MESSAGE,Abbrevs.class,"Loading " + path);				loadAbbrevs(new FileReader(path));			}			catch(FileNotFoundException fnf)			{			}			catch(Exception e)			{				Log.log(Log.ERROR,Abbrevs.class,"Error while loading " + path);				Log.log(Log.ERROR,Abbrevs.class,e);			}		}	}