blob: 48584a6ebf3620a5ef7f429ae34de1cb28d27875 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
/*****************************************************************************
* Copyright (c) 2015 CEA LIST 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:
* Nicolas FAUVERGUE (ALL4TEC) nicolas.fauvergue@all4tec.net - Initial API and implementation
*
*****************************************************************************/
package org.eclipse.papyrus.uml.nattable.clazz.config.tests.paste.overwrite;
import org.eclipse.nebula.widgets.nattable.selection.command.SelectColumnCommand;
import org.eclipse.papyrus.infra.nattable.manager.table.NattableModelManager;
/**
* Test pastes overwrite all of selection with hidden categories.
*/
public class PasteColumnsOverwriteAll_H1_H1_H1_MultiColumns_Test extends AbstractPasteColumnsOverwriteTest {
/**
* {@inheritDoc}
*
* @see org.eclipse.papyrus.uml.nattable.clazz.config.tests.paste.overwrite.AbstractPasteOverwriteTest#removeClassName(java.lang.String)
*/
@Override
public String removeClassName(final String className) throws Exception {
return className.replaceFirst("PasteColumnsOverwriteAll_", ""); //$NON-NLS-1$ //$NON-NLS-2$
}
/**
* {@inheritDoc}
*
* @see org.eclipse.papyrus.uml.nattable.clazz.config.tests.paste.overwrite.AbstractPasteOverwriteTest#manageSelection(org.eclipse.papyrus.infra.nattable.manager.table.TreeNattableModelManager)
*/
@Override
public void manageSelection(final NattableModelManager manager) throws Exception {
super.manageSelection(manager);
manager.getBodyLayerStack().getSelectionLayer().doCommand(new SelectColumnCommand(manager.getBodyLayerStack().getSelectionLayer(), 3, 0, true, false));
}
}
|