This is an automated email from the ASF dual-hosted git repository. rec pushed a commit to branch refactoring/UIMA-6373-Format-UIMA-Core-Java-SDK-codebase in repository https://gitbox.apache.org/repos/asf/uima-uimaj.git
commit 154a0bff692a2a00e43ab09b78bf80b465ed6634 Author: Richard Eckart de Castilho <[email protected]> AuthorDate: Thu Feb 10 15:14:17 2022 +0100 [UIMA-6373] Format UIMA Core Java SDK codebase - Auto-format --- .../java/org/apache/uima/ep_debug/DebugPlugin.java | 70 +++++++++++----------- .../apache/uima/ep_debug/DebugPluginStartup.java | 24 ++++---- 2 files changed, 49 insertions(+), 45 deletions(-) diff --git a/uimaj-ep-debug/src/main/java/org/apache/uima/ep_debug/DebugPlugin.java b/uimaj-ep-debug/src/main/java/org/apache/uima/ep_debug/DebugPlugin.java index f391903..4744144 100644 --- a/uimaj-ep-debug/src/main/java/org/apache/uima/ep_debug/DebugPlugin.java +++ b/uimaj-ep-debug/src/main/java/org/apache/uima/ep_debug/DebugPlugin.java @@ -38,44 +38,46 @@ public class DebugPlugin extends Plugin { public DebugPlugin() { plugin = this; } - -// next moved to DebugPluginStartup class, per change in Eclipse Platform Design -// /** -// * This method is called upon plug-in activation. -// * -// * @param context the context -// * @throws Exception the exception -// */ -// @Override -// public void start(BundleContext context) throws Exception { -// super.start(context); -// // Intent of next code -// // For users installing this plugin for the first time, set the pref-show-details preference, -// // but only once (per fresh workspace) - to allow it to be set to the value which makes -// // debugging -// // display work, initially, but allowing the user to set it to something else without having -// // this -// // be overridden every time the pluging starts. -// String doneOnce = JDIDebugUIPlugin.getDefault().getPreferenceStore().getString( -// PREF_ALREADY_SET_PREF_SHOW_DETAILS); -// if (ALREADY_SET_PREF_SHOW_DETAILS.equals(doneOnce)) -// return; -// JDIDebugUIPlugin.getDefault().getPreferenceStore().setValue(PREF_ALREADY_SET_PREF_SHOW_DETAILS, -// ALREADY_SET_PREF_SHOW_DETAILS); -// -// String preference = JDIDebugUIPlugin.getDefault().getPreferenceStore().getString( -// IJDIPreferencesConstants.PREF_SHOW_DETAILS); -// if (IJDIPreferencesConstants.INLINE_ALL.equals(preference)) -// return; -// JDIDebugUIPlugin.getDefault().getPreferenceStore().setValue( -// IJDIPreferencesConstants.PREF_SHOW_DETAILS, IJDIPreferencesConstants.INLINE_ALL); -// } + + // next moved to DebugPluginStartup class, per change in Eclipse Platform Design + // /** + // * This method is called upon plug-in activation. + // * + // * @param context the context + // * @throws Exception the exception + // */ + // @Override + // public void start(BundleContext context) throws Exception { + // super.start(context); + // // Intent of next code + // // For users installing this plugin for the first time, set the pref-show-details preference, + // // but only once (per fresh workspace) - to allow it to be set to the value which makes + // // debugging + // // display work, initially, but allowing the user to set it to something else without having + // // this + // // be overridden every time the pluging starts. + // String doneOnce = JDIDebugUIPlugin.getDefault().getPreferenceStore().getString( + // PREF_ALREADY_SET_PREF_SHOW_DETAILS); + // if (ALREADY_SET_PREF_SHOW_DETAILS.equals(doneOnce)) + // return; + // JDIDebugUIPlugin.getDefault().getPreferenceStore().setValue(PREF_ALREADY_SET_PREF_SHOW_DETAILS, + // ALREADY_SET_PREF_SHOW_DETAILS); + // + // String preference = JDIDebugUIPlugin.getDefault().getPreferenceStore().getString( + // IJDIPreferencesConstants.PREF_SHOW_DETAILS); + // if (IJDIPreferencesConstants.INLINE_ALL.equals(preference)) + // return; + // JDIDebugUIPlugin.getDefault().getPreferenceStore().setValue( + // IJDIPreferencesConstants.PREF_SHOW_DETAILS, IJDIPreferencesConstants.INLINE_ALL); + // } /** * This method is called when the plug-in is stopped. * - * @param context the context - * @throws Exception the exception + * @param context + * the context + * @throws Exception + * the exception */ @Override public void stop(BundleContext context) throws Exception { diff --git a/uimaj-ep-debug/src/main/java/org/apache/uima/ep_debug/DebugPluginStartup.java b/uimaj-ep-debug/src/main/java/org/apache/uima/ep_debug/DebugPluginStartup.java index 30de1e7..ed47779 100644 --- a/uimaj-ep-debug/src/main/java/org/apache/uima/ep_debug/DebugPluginStartup.java +++ b/uimaj-ep-debug/src/main/java/org/apache/uima/ep_debug/DebugPluginStartup.java @@ -24,8 +24,8 @@ import org.eclipse.jdt.internal.debug.ui.JDIDebugUIPlugin; import org.eclipse.ui.IStartup; /** - * The class that has the startup code. - * Per Eclipse platform design, it must be in a different class than the main plugin code. + * The class that has the startup code. Per Eclipse platform design, it must be in a different class + * than the main plugin code. */ public class DebugPluginStartup implements IStartup { @@ -34,10 +34,12 @@ public class DebugPluginStartup implements IStartup { /** The Constant ALREADY_SET_PREF_SHOW_DETAILS. */ public static final String ALREADY_SET_PREF_SHOW_DETAILS = "already_set_pref_show_details"; - - /* (non-Javadoc) - * @see org.eclipse.ui.IStartup#earlyStartup() - * This method will be called on a different thread after the workbench initializes. + + /* + * (non-Javadoc) + * + * @see org.eclipse.ui.IStartup#earlyStartup() This method will be called on a different thread + * after the workbench initializes. */ @Override public void earlyStartup() { @@ -48,19 +50,19 @@ public class DebugPluginStartup implements IStartup { // display work, initially, but allowing the user to set it to something else without having // this // be overridden every time the pluging starts. - String doneOnce = JDIDebugUIPlugin.getDefault().getPreferenceStore().getString( - PREF_ALREADY_SET_PREF_SHOW_DETAILS); + String doneOnce = JDIDebugUIPlugin.getDefault().getPreferenceStore() + .getString(PREF_ALREADY_SET_PREF_SHOW_DETAILS); if (ALREADY_SET_PREF_SHOW_DETAILS.equals(doneOnce)) return; JDIDebugUIPlugin.getDefault().getPreferenceStore().setValue(PREF_ALREADY_SET_PREF_SHOW_DETAILS, ALREADY_SET_PREF_SHOW_DETAILS); - String preference = JDIDebugUIPlugin.getDefault().getPreferenceStore().getString( - IJDIPreferencesConstants.PREF_SHOW_DETAILS); + String preference = JDIDebugUIPlugin.getDefault().getPreferenceStore() + .getString(IJDIPreferencesConstants.PREF_SHOW_DETAILS); if (IJDIPreferencesConstants.INLINE_ALL.equals(preference)) return; JDIDebugUIPlugin.getDefault().getPreferenceStore().setValue( - IJDIPreferencesConstants.PREF_SHOW_DETAILS, IJDIPreferencesConstants.INLINE_ALL); + IJDIPreferencesConstants.PREF_SHOW_DETAILS, IJDIPreferencesConstants.INLINE_ALL); } }
