1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-09 18:56:02 +02:00

fix for bug 175338 - changing all references to IModelProxyFactoryAdapter to IModelProxyFactory

This commit is contained in:
Vivian Kong 2007-03-21 18:03:22 +00:00
parent 5f4612c76a
commit 5bc8da81cd
2 changed files with 11 additions and 9 deletions

View file

@ -1,5 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright (c) 2004, 2006 QNX Software Systems and others. * Copyright (c) 2004, 2007 QNX Software Systems and others.
* All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -7,6 +7,7 @@
* *
* Contributors: * Contributors:
* QNX Software Systems - Initial API and implementation * QNX Software Systems - Initial API and implementation
* IBM Corporation
*******************************************************************************/ *******************************************************************************/
package org.eclipse.cdt.debug.internal.ui.elements.adapters; package org.eclipse.cdt.debug.internal.ui.elements.adapters;
@ -21,7 +22,7 @@ import org.eclipse.core.runtime.IAdapterFactory;
import org.eclipse.debug.internal.ui.viewers.model.provisional.IElementContentProvider; import org.eclipse.debug.internal.ui.viewers.model.provisional.IElementContentProvider;
import org.eclipse.debug.internal.ui.viewers.model.provisional.IElementLabelProvider; import org.eclipse.debug.internal.ui.viewers.model.provisional.IElementLabelProvider;
import org.eclipse.debug.internal.ui.viewers.model.provisional.IElementMementoProvider; import org.eclipse.debug.internal.ui.viewers.model.provisional.IElementMementoProvider;
import org.eclipse.debug.internal.ui.viewers.model.provisional.IModelProxyFactoryAdapter; import org.eclipse.debug.internal.ui.viewers.model.provisional.IModelProxyFactory;
/** /**
* Comment for . * Comment for .
@ -30,7 +31,7 @@ public class CDebugElementAdapterFactory implements IAdapterFactory {
private static IElementLabelProvider fgModuleLabelProvider = new ModuleLabelProvider(); private static IElementLabelProvider fgModuleLabelProvider = new ModuleLabelProvider();
private static IElementContentProvider fgModuleContentProvider = new ModuleContentProvider(); private static IElementContentProvider fgModuleContentProvider = new ModuleContentProvider();
private static IModelProxyFactoryAdapter fgModuleProxyFactory = new ModuleProxyFactory(); private static IModelProxyFactory fgModuleProxyFactory = new ModuleProxyFactory();
private static IElementMementoProvider fgModuleMementoProvider = new ModuleMementoProvider(); private static IElementMementoProvider fgModuleMementoProvider = new ModuleMementoProvider();
/* (non-Javadoc) /* (non-Javadoc)
@ -59,7 +60,7 @@ public class CDebugElementAdapterFactory implements IAdapterFactory {
return fgModuleContentProvider; return fgModuleContentProvider;
} }
} }
if ( adapterType.equals( IModelProxyFactoryAdapter.class ) ) { if ( adapterType.equals( IModelProxyFactory.class ) ) {
if ( adaptableObject instanceof IModuleRetrieval ) { if ( adaptableObject instanceof IModuleRetrieval ) {
return fgModuleProxyFactory; return fgModuleProxyFactory;
} }
@ -79,7 +80,7 @@ public class CDebugElementAdapterFactory implements IAdapterFactory {
return new Class[] { return new Class[] {
IElementLabelProvider.class, IElementLabelProvider.class,
IElementContentProvider.class, IElementContentProvider.class,
IModelProxyFactoryAdapter.class, IModelProxyFactory.class,
IElementMementoProvider.class, IElementMementoProvider.class,
}; };
} }

View file

@ -1,5 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright (c) 2004, 2006 QNX Software Systems and others. * Copyright (c) 2004, 2007 QNX Software Systems and others.
* All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -7,19 +7,20 @@
* *
* Contributors: * Contributors:
* QNX Software Systems - Initial API and implementation * QNX Software Systems - Initial API and implementation
* IBM Corporation
*******************************************************************************/ *******************************************************************************/
package org.eclipse.cdt.debug.internal.ui.views.modules; package org.eclipse.cdt.debug.internal.ui.views.modules;
import org.eclipse.cdt.debug.core.model.IModuleRetrieval; import org.eclipse.cdt.debug.core.model.IModuleRetrieval;
import org.eclipse.cdt.debug.ui.ICDebugUIConstants; import org.eclipse.cdt.debug.ui.ICDebugUIConstants;
import org.eclipse.debug.internal.ui.viewers.model.provisional.IModelProxy; import org.eclipse.debug.internal.ui.viewers.model.provisional.IModelProxy;
import org.eclipse.debug.internal.ui.viewers.model.provisional.IModelProxyFactoryAdapter; import org.eclipse.debug.internal.ui.viewers.model.provisional.IModelProxyFactory;
import org.eclipse.debug.internal.ui.viewers.model.provisional.IPresentationContext; import org.eclipse.debug.internal.ui.viewers.model.provisional.IPresentationContext;
public class ModuleProxyFactory implements IModelProxyFactoryAdapter { public class ModuleProxyFactory implements IModelProxyFactory {
/* (non-Javadoc) /* (non-Javadoc)
* @see org.eclipse.debug.internal.ui.viewers.provisional.IModelProxyFactoryAdapter#createModelProxy(java.lang.Object, org.eclipse.debug.internal.ui.viewers.provisional.IPresentationContext) * @see org.eclipse.debug.internal.ui.viewers.provisional.IModelProxyFactory#createModelProxy(java.lang.Object, org.eclipse.debug.internal.ui.viewers.provisional.IPresentationContext)
*/ */
public IModelProxy createModelProxy( Object element, IPresentationContext context ) { public IModelProxy createModelProxy( Object element, IPresentationContext context ) {
if ( ICDebugUIConstants.ID_MODULES_VIEW.equals( context.getId() ) ) { if ( ICDebugUIConstants.ID_MODULES_VIEW.equals( context.getId() ) ) {