1 11 package org.eclipse.ui.internal.ide; 12 13 import org.eclipse.core.runtime.Platform; 14 15 public class Policy { 16 public static final boolean DEFAULT = false; 17 18 public static boolean DEBUG_OPEN_ERROR_DIALOG = DEFAULT; 19 public static boolean DEBUG_GC = DEFAULT; 20 public static boolean DEBUG_UNDOMONITOR = DEFAULT; 21 22 static { 23 if (getDebugOption("/debug")) { DEBUG_OPEN_ERROR_DIALOG = getDebugOption("/debug/internalerror/openDialog"); DEBUG_GC = getDebugOption("/debug/gc"); DEBUG_UNDOMONITOR = getDebugOption("/debug/undomonitor"); } 28 } 29 30 private static boolean getDebugOption(String option) { 31 return "true".equalsIgnoreCase(Platform.getDebugOption(IDEWorkbenchPlugin.IDE_WORKBENCH + option)); } 33 } 34 | Popular Tags |