blob: 72cb1d2d319ab196e5c5385d726ff12d28ddc44b [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2007, 2008 Oracle. 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:
* Oracle - initial API and implementation
******************************************************************************/
package org.eclipse.jpt.common.utility.tests.internal.model.value.swing;
import org.eclipse.jpt.common.utility.internal.model.value.swing.ColumnAdapter;
import org.eclipse.jpt.common.utility.tests.internal.model.value.swing.TableModelAdapterTests.PersonColumnAdapter;
/**
* Make it easy to test the table model adapter and
* renderers without any editing allowed.
*/
public class ReadOnlyTableModelAdapterUITest extends TableModelAdapterUITest {
public static void main(String[] args) throws Exception {
new ReadOnlyTableModelAdapterUITest().exec(args);
}
protected ReadOnlyTableModelAdapterUITest() {
super();
}
@Override
protected ColumnAdapter buildColumnAdapter() {
return new PersonColumnAdapter() {
@Override
public boolean columnIsEditable(int index) {
return false;
}
};
}
}