diff options
author | Dani Megert | 2011-11-04 10:31:52 +0000 |
---|---|---|
committer | Dani Megert | 2011-11-04 10:31:52 +0000 |
commit | dd2b4bb2a2daa84d458ab3975b9157d4771584fb (patch) | |
tree | d368fa4b75c159efe9997ab8d079e146fcbf9221 /org.eclipse.debug.ui/ui/org/eclipse | |
parent | 10d115a56d8e361de6cc36e3f46f6bf841c1e35b (diff) | |
download | eclipse.platform.debug-dd2b4bb2a2daa84d458ab3975b9157d4771584fb.tar.gz eclipse.platform.debug-dd2b4bb2a2daa84d458ab3975b9157d4771584fb.tar.xz eclipse.platform.debug-dd2b4bb2a2daa84d458ab3975b9157d4771584fb.zip |
Fixed previous commit
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse')
2 files changed, 60 insertions, 47 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/DebugUIPlugin.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/DebugUIPlugin.java index 75eb0fc2d..bbcfc2ef7 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/DebugUIPlugin.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/DebugUIPlugin.java @@ -23,12 +23,23 @@ import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.ParserConfigurationException; +import com.ibm.icu.text.MessageFormat; + +import org.osgi.framework.Bundle; +import org.osgi.framework.BundleContext; +import org.osgi.service.packageadmin.PackageAdmin; +import org.osgi.util.tracker.ServiceTracker; + +import org.w3c.dom.Document; + +import org.eclipse.swt.custom.BusyIndicator; +import org.eclipse.swt.graphics.Color; +import org.eclipse.swt.widgets.Display; +import org.eclipse.swt.widgets.Shell; + import org.eclipse.core.expressions.EvaluationContext; import org.eclipse.core.expressions.IEvaluationContext; -import org.eclipse.core.resources.ISaveContext; -import org.eclipse.core.resources.ISaveParticipant; -import org.eclipse.core.resources.IncrementalProjectBuilder; -import org.eclipse.core.resources.ResourcesPlugin; + import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.FileLocator; import org.eclipse.core.runtime.IConfigurationElement; @@ -42,6 +53,36 @@ import org.eclipse.core.runtime.jobs.IJobChangeEvent; import org.eclipse.core.runtime.jobs.IJobChangeListener; import org.eclipse.core.runtime.jobs.IJobManager; import org.eclipse.core.runtime.jobs.Job; + +import org.eclipse.core.resources.ISaveContext; +import org.eclipse.core.resources.ISaveParticipant; +import org.eclipse.core.resources.IncrementalProjectBuilder; +import org.eclipse.core.resources.ResourcesPlugin; + +import org.eclipse.jface.dialogs.ErrorDialog; +import org.eclipse.jface.dialogs.IDialogConstants; +import org.eclipse.jface.dialogs.MessageDialogWithToggle; +import org.eclipse.jface.operation.IRunnableWithProgress; +import org.eclipse.jface.preference.IPreferenceStore; +import org.eclipse.jface.preference.PreferenceConverter; +import org.eclipse.jface.resource.ImageDescriptor; +import org.eclipse.jface.resource.ImageRegistry; +import org.eclipse.jface.util.IPropertyChangeListener; +import org.eclipse.jface.util.PropertyChangeEvent; +import org.eclipse.jface.viewers.ILabelProvider; +import org.eclipse.jface.viewers.IStructuredSelection; +import org.eclipse.jface.viewers.StructuredSelection; +import org.eclipse.jface.window.Window; + +import org.eclipse.ui.IWorkbench; +import org.eclipse.ui.IWorkbenchWindow; +import org.eclipse.ui.PlatformUI; +import org.eclipse.ui.plugin.AbstractUIPlugin; +import org.eclipse.ui.progress.IProgressConstants2; +import org.eclipse.ui.progress.IProgressService; +import org.eclipse.ui.services.IEvaluationService; +import org.eclipse.ui.themes.IThemeManager; + import org.eclipse.debug.core.DebugException; import org.eclipse.debug.core.DebugPlugin; import org.eclipse.debug.core.ILaunch; @@ -70,43 +111,11 @@ import org.eclipse.debug.internal.ui.stringsubstitution.SelectedResourceManager; import org.eclipse.debug.internal.ui.views.breakpoints.BreakpointOrganizerManager; import org.eclipse.debug.internal.ui.views.console.ProcessConsoleManager; import org.eclipse.debug.internal.ui.views.launch.DebugElementHelper; + import org.eclipse.debug.ui.DebugUITools; import org.eclipse.debug.ui.IDebugModelPresentation; import org.eclipse.debug.ui.IDebugUIConstants; import org.eclipse.debug.ui.ILaunchGroup; -import org.eclipse.jface.dialogs.ErrorDialog; -import org.eclipse.jface.dialogs.IDialogConstants; -import org.eclipse.jface.dialogs.MessageDialogWithToggle; -import org.eclipse.jface.operation.IRunnableWithProgress; -import org.eclipse.jface.preference.IPreferenceStore; -import org.eclipse.jface.preference.PreferenceConverter; -import org.eclipse.jface.resource.ImageDescriptor; -import org.eclipse.jface.resource.ImageRegistry; -import org.eclipse.jface.util.IPropertyChangeListener; -import org.eclipse.jface.util.PropertyChangeEvent; -import org.eclipse.jface.viewers.ILabelProvider; -import org.eclipse.jface.viewers.IStructuredSelection; -import org.eclipse.jface.viewers.StructuredSelection; -import org.eclipse.jface.window.Window; -import org.eclipse.swt.custom.BusyIndicator; -import org.eclipse.swt.graphics.Color; -import org.eclipse.swt.widgets.Display; -import org.eclipse.swt.widgets.Shell; -import org.eclipse.ui.IWorkbench; -import org.eclipse.ui.IWorkbenchWindow; -import org.eclipse.ui.PlatformUI; -import org.eclipse.ui.plugin.AbstractUIPlugin; -import org.eclipse.ui.progress.IProgressConstants2; -import org.eclipse.ui.progress.IProgressService; -import org.eclipse.ui.services.IEvaluationService; -import org.eclipse.ui.themes.IThemeManager; -import org.osgi.framework.Bundle; -import org.osgi.framework.BundleContext; -import org.osgi.service.packageadmin.PackageAdmin; -import org.osgi.util.tracker.ServiceTracker; -import org.w3c.dom.Document; - -import com.ibm.icu.text.MessageFormat; /** * The Debug UI Plug-in. @@ -1323,11 +1332,11 @@ public class DebugUIPlugin extends AbstractUIPlugin implements ILaunchListener { } /** - * Creates a new {@link IEvaluationContext} initialized with the current platform state if the - * {@link IEvaluationService} can be acquired, otherwise the new context is created with no + * Creates a new {@link IEvaluationContext} initialized with the current platform state if the + * {@link IEvaluationService} can be acquired, otherwise the new context is created with no * parent context * - * @param defaultvar the default variable for the new context (cannot be <code>null</code>). + * @param defaultvar the default variable for the new context * @return a new {@link IEvaluationContext} * @since 3.7 */ diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpoints/RetargetBreakpointAction.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpoints/RetargetBreakpointAction.java index ec404b9ba..9bd0a0e5a 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpoints/RetargetBreakpointAction.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpoints/RetargetBreakpointAction.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2008 IBM Corporation and others. + * Copyright (c) 2000, 2011 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -12,16 +12,20 @@ package org.eclipse.debug.internal.ui.actions.breakpoints; import org.eclipse.core.runtime.IAdaptable; -import org.eclipse.debug.internal.ui.actions.IToggleBreakpointsTargetManagerListener; -import org.eclipse.debug.internal.ui.actions.RetargetAction; -import org.eclipse.debug.internal.ui.actions.ToggleBreakpointsTargetManager; -import org.eclipse.debug.ui.actions.IToggleBreakpointsTarget; + import org.eclipse.jface.action.IAction; import org.eclipse.jface.viewers.ISelection; import org.eclipse.jface.viewers.ISelectionProvider; + import org.eclipse.ui.IWorkbenchPart; import org.eclipse.ui.IWorkbenchWindow; +import org.eclipse.debug.internal.ui.actions.IToggleBreakpointsTargetManagerListener; +import org.eclipse.debug.internal.ui.actions.RetargetAction; +import org.eclipse.debug.internal.ui.actions.ToggleBreakpointsTargetManager; + +import org.eclipse.debug.ui.actions.IToggleBreakpointsTarget; + /** * Retargettable breakpoint action. @@ -41,9 +45,9 @@ public abstract class RetargetBreakpointAction extends RetargetAction implements protected Object getAdapter(IAdaptable adaptable) { ToggleBreakpointsTargetManager manager = ToggleBreakpointsTargetManager.getDefault(); - IPart activePart = getActivePart(); + IWorkbenchPart activePart = getActivePart(); if (activePart != null) { - return manager.getToggleBreakpointsTarget(getActivePart(), getTargetSelection()); + return manager.getToggleBreakpointsTarget(activePart, getTargetSelection()); } return null; } |