/** * */ public EveryNodeDebugAdapter() { super(); fInternalDocumentListener = new InternalDocumentListener(); fInternalStructuredDocumentAboutToChange = new InternalStructuredDocumentAboutToChange(); fInternalStructuredDocumentListener = new InternalStructuredDocumentListener(); fInternalModelStateListener = new InternalModelStateListener(); }
public String resolvePhysicalLocation(String baseLocation, String publicId, String logicalLocation) { // This class should never be called to perform physical resolution! // If it does we should log it as an error Logger.log(Logger.ERROR_DEBUG, "XMLCatalogIDResolver.resolvePhysicalLocation() called unexpectedly"); //$NON-NLS-1$ return logicalLocation; } }
public static EveryNodeDebugAdapter getInstance() { if (singletonInstance == null) { singletonInstance = new EveryNodeDebugAdapter(); } return singletonInstance; }
protected Preferences getModelPreferences() { return XMLCorePlugin.getDefault().getPluginPreferences(); }
public ICatalog getDefaultXMLCatalog() { if (catalogSet == null) { catalogSet = new CatalogSet(); defaultCatalogFileStateLocation = getPluginStateLocation(Catalog.DEFAULT_CATALOG_FILE); catalogSet.putCatalogPersistenceLocation(DEFAULT_CATALOG_ID, defaultCatalogFileStateLocation); catalogSet.putCatalogPersistenceLocation(SYSTEM_CATALOG_ID, getPluginStateLocation(Catalog.SYSTEM_CATALOG_FILE)); catalogSet.putCatalogPersistenceLocation(USER_CATALOG_ID, getPluginStateLocation(Catalog.USER_CATALOG_FILE)); } return catalogSet.lookupOrCreateCatalog(DEFAULT_CATALOG_ID, defaultCatalogFileStateLocation); }
protected void doSavePreferenceStore() { XMLCorePlugin.getDefault().savePluginPreferences(); // model }
public INodeAdapterFactory copy() { return new DebugAdapterFactory(getAdapterKey(), isShouldRegisterAdapter()); }
public static void log(int level, String message, Throwable exception) { _log(level, message, exception); }
public static void trace(String category, String message) { _trace(category, message, null); }
protected INodeAdapter createAdapter(INodeNotifier target) { EveryNodeDebugAdapter result = null; result = EveryNodeDebugAdapter.getInstance(); return result; }
protected Preferences getModelPreferences() { return XMLCorePlugin.getDefault().getPluginPreferences(); }
/** * Reports an error that occured while scanning - from the SED JFlex skeleton * * @param errorCode the code of the errormessage to display */ private void yy_ScanError(int errorCode) { try { Logger.log(Logger.ERROR, YY_ERROR_MSG[errorCode]); } catch (ArrayIndexOutOfBoundsException e) { Logger.log(Logger.ERROR, YY_ERROR_MSG[YY_UNKNOWN_ERROR]); } // DO NOT EXIT the VM on an error // System.exit(1); }
public static void logException(String message, Throwable exception) { _log(ERROR, message, exception); }
public static void traceException(String category, String message, Throwable exception) { _trace(category, message, exception); }
protected Preferences getModelPreferences() { return XMLCorePlugin.getDefault().getPluginPreferences(); }
public static void log(int level, String message) { _log(level, message, null); }
protected Preferences getModelPreferences() { return XMLCorePlugin.getDefault().getPluginPreferences(); }
protected Preferences getModelPreferences() { return XMLCorePlugin.getDefault().getPluginPreferences(); }
protected Preferences getModelPreferences() { return XMLCorePlugin.getDefault().getPluginPreferences(); }
protected Preferences getModelPreferences() { return XMLCorePlugin.getDefault().getPluginPreferences(); }