Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Lorenzo2016-05-02 12:34:17 +0000
committerGerrit Code Review @ Eclipse.org2016-05-24 08:32:18 +0000
commit81d5eeaef515f1fb84872e059f3e65472b4d441f (patch)
tree4cdc762249cdb10d298798a3e29b31a8b514a9d9 /plugins/uml
parentac233284410bf2a2fb8257fbecfb4e6718395e3b (diff)
downloadorg.eclipse.papyrus-81d5eeaef515f1fb84872e059f3e65472b4d441f.tar.gz
org.eclipse.papyrus-81d5eeaef515f1fb84872e059f3e65472b4d441f.tar.xz
org.eclipse.papyrus-81d5eeaef515f1fb84872e059f3e65472b4d441f.zip
bug 483357: [Table] Popup menu must be available in each context! - remove 2 methods added for 2.0 and already deprecated!
Signed-off-by: Vincent Lorenzo <vincent.lorenzo@cea.fr>
Diffstat (limited to 'plugins/uml')
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/widgets/NattablePropertyEditor.java55
1 files changed, 0 insertions, 55 deletions
diff --git a/plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/widgets/NattablePropertyEditor.java b/plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/widgets/NattablePropertyEditor.java
index fce99cd07dc..0a4de44dec3 100644
--- a/plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/widgets/NattablePropertyEditor.java
+++ b/plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/widgets/NattablePropertyEditor.java
@@ -73,10 +73,8 @@ import org.eclipse.papyrus.infra.nattable.model.nattable.nattablestyle.BooleanVa
import org.eclipse.papyrus.infra.nattable.model.nattable.nattablestyle.NattablestyleFactory;
import org.eclipse.papyrus.infra.nattable.model.nattable.nattablestyle.Style;
import org.eclipse.papyrus.infra.nattable.tree.ITreeItemAxisHelper;
-import org.eclipse.papyrus.infra.nattable.utils.HeaderAxisConfigurationManagementUtils;
import org.eclipse.papyrus.infra.nattable.utils.NamedStyleConstants;
import org.eclipse.papyrus.infra.nattable.utils.NattableModelManagerFactory;
-import org.eclipse.papyrus.infra.nattable.utils.TableHelper;
import org.eclipse.papyrus.infra.properties.contexts.Property;
import org.eclipse.papyrus.infra.properties.ui.modelelement.CompositeModelElement;
import org.eclipse.papyrus.infra.properties.ui.modelelement.DataSource;
@@ -504,59 +502,6 @@ public class NattablePropertyEditor extends AbstractPropertyEditor {
}
/**
- * This method initialize the context of the table, the feature to listen and the intial rows list element
- *
- * @since 2.0
- *
- * @deprecated since 2.0, use {@link #configureTable(TransactionalEditingDomain, Table, EObject, EStructuralFeature, Collection, Command)} instead
- */
- @Deprecated
- protected void configureTable(Table table, EObject sourceElement, EStructuralFeature synchronizedFeature, Collection<?> rows) {
- final TransactionalEditingDomain domain = getTableEditingDomain();
- if (null != domain) {
- Command setContextCommand = SetCommand.create(domain, table, NattablePackage.eINSTANCE.getTable_Context(), sourceElement);
- getTableEditingDomain().getCommandStack().execute(setContextCommand);
- Assert.isNotNull(table.getContext());
-
- if (TableHelper.isTreeTable(table) && null != rows && !rows.isEmpty()) {// add test on TreeTable to fix bug 476623
- final AbstractAxisProvider axisProvider = table.getCurrentRowAxisProvider();
- TableHeaderAxisConfiguration conf = (TableHeaderAxisConfiguration) HeaderAxisConfigurationManagementUtils.getRowAbstractHeaderAxisInTableConfiguration(table);
- AxisManagerRepresentation rep = conf.getAxisManagers().get(0);
- for (Object context : rows) {
- addTreeItemAxis(axisProvider, rep, context);
- }
- }
- }
- }
-
-
- /**
- * This allows to add some named style to the table.
- *
- * @param table
- * The current table.
- * @since 2.0
- *
- * @deprecated since 2.0 done directly in the creation of the table
- */
- @Deprecated
- protected void manageTableNamedStyle(final Table table) {
- final org.eclipse.papyrus.infra.nattable.model.nattable.nattablestyle.BooleanValueStyle style = NattablestyleFactory.eINSTANCE.createBooleanValueStyle();
- style.setName(NamedStyleConstants.FILL_COLUMNS_SIZE);
- style.setBooleanValue(true);
- final TransactionalEditingDomain domain = getTableEditingDomain();
- RecordingCommand rc = new RecordingCommand(domain) {
-
- @Override
- protected void doExecute() {
- table.getStyles().add(style);
-
- }
- };
- domain.getCommandStack().execute(rc);
- }
-
- /**
* This allows to configure the tree table.
*
* @param nattableManager

Back to the top