public LaunchSuspendTrigger(ILaunch launch, SuspendTriggerAdapterFactory factory) { fFactory = factory; fLaunch = launch; DebugPlugin.getDefault().addDebugEventListener(this); }
/** * Registers debug event listener. */ private void addEventListener() { DebugPlugin.getDefault().addDebugEventListener(this); }
@Override public void init(IViewPart view) { DebugPlugin.getDefault().addDebugEventListener(this); }
/** * Constructs a new inspect result for the given * expression and resulting value. Starts listening * to debug events such that this element will remove * itself from the expression manager when its debug * target terminates. * * @param expression code snippet * @param value value of the expression */ public JavaInspectExpression(String expression, IJavaValue value) { fValue = value; fExpression = expression; DebugPlugin.getDefault().addDebugEventListener(this); }
public void addMemoryBlockRendering(IMemoryRendering rendering) { // do not allow duplicated objects if (fRenderings.contains(rendering)) { return; } fRenderings.add(rendering); // add listener for the first memory block added if (fRenderings.size() == 1) { DebugPlugin.getDefault().addDebugEventListener(this); } storeRenderings(); }
/** * @param memoryBlock * @param newTab */ public TableRenderingContentProvider() { lineCache = new Vector<>(); contentCache = new Hashtable<>(); initializeDynamicLoad(); DebugPlugin.getDefault().addDebugEventListener(this); }
@Override public void launchChanged(ILaunch launch) { IProcess[] processes = launch.getProcesses(); if (processes == null || processes.length < 1) { return; } synchronized (watchedProcesses) { debugPlugin.addDebugEventListener(eventSetListener); for (IProcess p : processes) { watchedProcesses.add(p); } launchManager.removeLaunchListener(this); } }
public void init(IViewPart view) { super.init(view); DebugPlugin.getDefault().addDebugEventListener(this); } /* (non-Javadoc)
@Override public String getProgramArguments(ILaunchConfiguration configuration) throws CoreException { File workingDir = verifyWorkingDirectory(configuration); // Construct the HTML file and set its name as a program argument File htmlFile = buildHTMLFile(configuration, workingDir); if (htmlFile == null) { abort(LaunchingMessages.JavaAppletLaunchConfigurationDelegate_Could_not_build_HTML_file_for_applet_launch_1, null, IJavaLaunchConfigurationConstants.ERR_COULD_NOT_BUILD_HTML); } // Add a debug listener if necessary if (fgLaunchToFileMap.isEmpty()) { DebugPlugin.getDefault().addDebugEventListener(this); } // Add a mapping of the launch to the html file fgLaunchToFileMap.put(fLaunch, htmlFile); return htmlFile.getName(); }
private ThreadMonitorManager() { fJavaMonitorThreads= new HashMap(); fJavaMonitors= new HashMap(); IPreferenceStore preferenceStore = JDIDebugUIPlugin.getDefault().getPreferenceStore(); preferenceStore.addPropertyChangeListener(this); fIsEnabled= preferenceStore.getBoolean(IJavaDebugUIConstants.PREF_SHOW_MONITOR_THREAD_INFO); if (fIsEnabled) { DebugPlugin.getDefault().addDebugEventListener(this); } }
/** * Constructs a source lookup facility. */ private SourceLookupFacility() { fEditorsByPage = new HashMap<>(); DebugUIPlugin.getDefault().getPreferenceStore().addPropertyChangeListener(this); DebugPlugin.getDefault().addDebugEventListener(this); }
public static void addDebuggerConnectionListener(String connectionId, ILaunch launch) { Object source = launch.getDebugTarget(); ConnectToDebuggerListener debugListener = new ConnectToDebuggerListener(connectionId, source); DebugPlugin.getDefault().addDebugEventListener(debugListener); }
@Override public void init(IPresentationContext context) { super.init(context); DebugPlugin.getDefault().addDebugEventListener(this); fHandlers = createEventHandlers(); }
/** * If the process has already terminated, resource refreshing is done * immediately in the current thread. Otherwise, refreshing is done when the * process terminates. */ public void startBackgroundRefresh() { synchronized (fProcess) { if (fProcess.isTerminated()) { refresh(); } else { DebugPlugin.getDefault().addDebugEventListener(this); } } }
public void propertyChange(PropertyChangeEvent event) { if (event.getProperty().equals(IJavaDebugUIConstants.PREF_SHOW_MONITOR_THREAD_INFO)) { fIsEnabled= JDIDebugUIPreferenceInitializer.getBoolean(event); if (fIsEnabled) { DebugPlugin.getDefault().addDebugEventListener(this); } else { DebugPlugin.getDefault().removeDebugEventListener(this); } } }
public ViewPaneEventHandler() { DebugPlugin.getDefault().getMemoryBlockManager().addListener(this); DebugPlugin.getDefault().addDebugEventListener(this); }
private void hookListener(boolean add) { DebugPlugin debugPlugin = DebugPlugin.getDefault(); ILaunchManager launchManager = debugPlugin.getLaunchManager(); if (add) { launchManager.addLaunchListener(this); debugPlugin.addDebugEventListener(this); } else { launchManager.removeLaunchListener(this); debugPlugin.removeDebugEventListener(this); } }
/** * JavaDetailFormattersManager constructor. */ private JavaDetailFormattersManager() { populateDetailFormattersMap(); JDIDebugUIPlugin.getDefault().getPreferenceStore().addPropertyChangeListener(this); DebugPlugin.getDefault().getLaunchManager().addLaunchListener(this); DebugPlugin.getDefault().addDebugEventListener(this); DebugUITools.getPreferenceStore().addPropertyChangeListener(this); fCacheMap= new HashMap(); }
protected void addListeners() { MemoryViewUtil.getMemoryBlockManager().addListener(this); fParent.getViewSite().getPage().addSelectionListener(this); DebugUITools.addPartDebugContextListener(fParent.getSite(), this); DebugPlugin.getDefault().addDebugEventListener(this); }
@Override public void start(BundleContext context) throws Exception { super.start(context); executionDataFiles = new ExecutionDataFiles(getStateLocation()); executionDataFiles.deleteTemporaryFiles(); sessionManager = new SessionManager(executionDataFiles); coverageLoader = new JavaCoverageLoader(sessionManager); DebugPlugin.getDefault().getLaunchManager() .addLaunchListener(launchListener); DebugPlugin.getDefault().addDebugEventListener(debugListener); instance = this; }