Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 199949 Details for
Bug 352502
[breakpoints] Toggle breakpoints type logic can select an invalid breakpoint type.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Test code.
352502-example.patch (text/plain), 3.74 KB, created by
Pawel Piech
on 2011-07-19 18:16:08 EDT
(
hide
)
Description:
Test code.
Filename:
MIME Type:
Creator:
Pawel Piech
Created:
2011-07-19 18:16:08 EDT
Size:
3.74 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.debug.examples.ui >Index: plugin.xml >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.debug.examples.ui/plugin.xml,v >retrieving revision 1.20 >diff -u -r1.20 plugin.xml >--- plugin.xml 6 Jul 2011 19:22:30 -0000 1.20 >+++ plugin.xml 19 Jul 2011 22:12:53 -0000 >@@ -215,7 +215,6 @@ > <factory > class="org.eclipse.debug.examples.ui.pda.breakpoints.PDAEditorAdapterFactory" > adaptableType="org.eclipse.debug.examples.ui.pda.editor.PDAEditor"> >- <adapter type="org.eclipse.debug.ui.actions.IToggleBreakpointsTarget"/> > <!--#ifdef ex7 --> > <!--#else --> > <adapter type="org.eclipse.debug.ui.actions.IRunToLineTarget"/> >@@ -333,6 +332,10 @@ > </extension> > <extension point="org.eclipse.debug.ui.toggleBreakpointsTargetFactories"> > <toggleTargetFactory >+ id="org.eclipse.debug.examples.ui.pda.BadToggleFactory" >+ class="org.eclipse.debug.examples.ui.pda.breakpoints.BadPDAToggleFactory"> >+ </toggleTargetFactory> >+ <toggleTargetFactory > id="org.eclipse.debug.examples.ui.pda.ToggleWatchpointsTargetFactory" > class="org.eclipse.debug.examples.ui.pda.breakpoints.PDAToggleWatchpointsTargetFactory"> > <enablement> >Index: src/org/eclipse/debug/examples/ui/pda/breakpoints/BadPDAToggleFactory.java >=================================================================== >RCS file: src/org/eclipse/debug/examples/ui/pda/breakpoints/BadPDAToggleFactory.java >diff -N src/org/eclipse/debug/examples/ui/pda/breakpoints/BadPDAToggleFactory.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/debug/examples/ui/pda/breakpoints/BadPDAToggleFactory.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,59 @@ >+/******************************************************************************* >+ * Copyright (c) 2008 Wind River Systems 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 >+ * http://www.eclipse.org/legal/epl-v10.html >+ * >+ * Contributors: >+ * Wind River Systems - initial API and implementation >+ *******************************************************************************/ >+package org.eclipse.debug.examples.ui.pda.breakpoints; >+ >+import java.util.Collections; >+import java.util.Map; >+import java.util.Set; >+import java.util.TreeMap; >+import java.util.TreeSet; >+ >+import org.eclipse.debug.ui.actions.IToggleBreakpointsTarget; >+import org.eclipse.debug.ui.actions.IToggleBreakpointsTargetFactory; >+import org.eclipse.jface.viewers.ISelection; >+import org.eclipse.ui.IWorkbenchPart; >+ >+public class BadPDAToggleFactory implements IToggleBreakpointsTargetFactory { >+ >+ private static final String TOGGLE_BAD = "org.eclipse.debug.examples.ui.pda.bad"; >+ >+ private static Set TOGGLE_BAD_TARGETS = new TreeSet(); >+ >+ private Map fToggleWatchpointTargets = new TreeMap(); >+ >+ static { >+ TOGGLE_BAD_TARGETS.add(TOGGLE_BAD); >+ } >+ >+ public IToggleBreakpointsTarget createToggleTarget(String targetID) { >+ return null; >+ } >+ >+ public String getDefaultToggleTarget(IWorkbenchPart part, ISelection selection) { >+ return TOGGLE_BAD; >+ } >+ >+ public Set getToggleTargets(IWorkbenchPart part, ISelection selection) { >+ return Collections.EMPTY_SET; >+ } >+ >+ public String getToggleTargetName(String targetID) { >+ if (TOGGLE_BAD.equals(targetID)) { >+ return "Bad Toggle Target"; >+ } else { >+ return null; >+ } >+ } >+ >+ public String getToggleTargetDescription(String targetID) { >+ return getToggleTargetName(targetID); >+ } >+}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 352502
:
199942
| 199949