blob: c28be7535c651742f65a0fb7f8363dd16188e86c [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2000, 2003 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/cpl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.jdt.ui.tests.xml;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.jdt.internal.corext.Assert;
import org.eclipse.jdt.internal.corext.refactoring.participants.xml.TypeExtender;
public class A_TypeExtender extends TypeExtender {
public Object invoke(Object receiver, String method, Object[] args) throws CoreException {
if ("simple".equals(method)) {
return "simple";
} else if ("overridden".equals(method)) {
return "A";
} else if ("ordering".equals(method)) {
return "A";
} else if ("chainOrdering".equals(method)) {
return "A";
}
Assert.isTrue(false);
return null;
}
}