1 /*******************************************************************************
2 * Copyright (c) 2000, 2004 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Common Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/cpl-v10.html
9 * IBM Corporation - initial API and implementation
10 *******************************************************************************/
11 package net.sourceforge.phpdt.internal.debug.ui.actions;
13 import org.eclipse.core.runtime.IAdapterFactory;
14 import org.eclipse.debug.ui.actions.IToggleBreakpointsTarget;
17 * Creates adapters for retargettable actions in debug platform.
18 * Contributed via <code>org.eclipse.core.runtime.adapters</code>
23 public class RetargettableActionAdapterFactory implements IAdapterFactory {
25 * @see org.eclipse.core.runtime.IAdapterFactory#getAdapter(java.lang.Object, java.lang.Class)
27 public Object getAdapter(Object adaptableObject, Class adapterType) {
28 // if (adapterType == IRunToLineTarget.class) {
29 // return new RunToLineAdapter();
31 if (adapterType == IToggleBreakpointsTarget.class) {
32 return new ToggleBreakpointAdapter();
37 * @see org.eclipse.core.runtime.IAdapterFactory#getAdapterList()
39 public Class[] getAdapterList() {
40 // return new Class[]{IRunToLineTarget.class, IToggleBreakpointsTarget.class};
41 return new Class[]{IToggleBreakpointsTarget.class};