Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/TableV3/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/manager/table/INattableModelManager.java')
-rw-r--r--sandbox/TableV3/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/manager/table/INattableModelManager.java181
1 files changed, 0 insertions, 181 deletions
diff --git a/sandbox/TableV3/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/manager/table/INattableModelManager.java b/sandbox/TableV3/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/manager/table/INattableModelManager.java
deleted file mode 100644
index 956c0aa9732..00000000000
--- a/sandbox/TableV3/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/manager/table/INattableModelManager.java
+++ /dev/null
@@ -1,181 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2012 CEA LIST.
- *
- *
- * 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:
- * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.infra.nattable.manager.table;
-
-import java.util.Collection;
-import java.util.List;
-
-import org.eclipse.emf.common.command.Command;
-import org.eclipse.nebula.widgets.nattable.NatTable;
-import org.eclipse.nebula.widgets.nattable.data.IDataProvider;
-import org.eclipse.nebula.widgets.nattable.ui.NatEventData;
-import org.eclipse.papyrus.infra.nattable.layerstack.BodyLayerStack;
-import org.eclipse.papyrus.infra.nattable.manager.axis.IAxisManager;
-import org.eclipse.papyrus.infra.nattable.model.nattable.Table;
-import org.eclipse.papyrus.infra.nattable.model.nattable.nattableaxisprovider.AbstractAxisProvider;
-import org.eclipse.papyrus.infra.nattable.utils.LocationValue;
-import org.eclipse.swt.graphics.Point;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.ui.IWorkbenchPartSite;
-import org.eclipse.ui.services.IDisposable;
-
-
-public interface INattableModelManager extends ILimitedNattableModelManager, ITableAxisElementProvider, IDisposable, IDataProvider {
-
-
- public int getColumnCount();
-
- public int getRowCount();
-
- public void addRows(final Collection<Object> objectsToAdd);
-
- public void addColumns(final Collection<Object> objectsToAdd);
-
- public boolean canInsertRow(final Collection<Object> objectsToAdd, int index);
-
- public boolean canInsertColumns(final Collection<Object> objectsToAdd, int index);
-
- public boolean canDropColumnsElement(final Collection<Object> objectsToAdd);
-
- public boolean canDropRowElement(final Collection<Object> objectsToAdd);
-
- public void insertRows(final Collection<Object> objectsToAdd, int index);
-
- public void insertColumns(final Collection<Object> objectsToAdd, int index);
-
- public IDataProvider getBodyDataProvider();
-
- public boolean canMoveColumns();
-
- public boolean canMoveRows();
-
- public void moveColumnElement(final Object axisToMove, final int newIndex);
-
- public void moveRowElement(final Object axisToMove, final int newIndex);
-
- public void invertAxis();
-
- public boolean canInvertAxis();
-
- public boolean declareEditorsOnColumns();
-
- public boolean declareEditorsOnRows();
-
- public Table getTable();
-
- public ITableAxisElementProvider getTableAxisElementProvider();
-
- public NatTable createNattable(final Composite parent, int style, IWorkbenchPartSite site);
-
- public LocationValue getLocationInTheTable(final Point location);
-
- public List<Object> getElementsList(final AbstractAxisProvider axisProvider);
-
- public boolean canCreateRowElement(String elementType);
-
- public boolean canCreateColumnElement(String elementType);
-
- public Command getAddRowElementCommand(Collection<Object> objectsToAdd);
-
- public Command getAddColumnElementCommand(Collection<Object> objectsToAdd);
-
-
-
- public void print();
-
- public void selectAll();
-
- public void exportToXLS();
-
- /**
- * Opens a dialog to choose the columns to display or to destroy. This action doesn't create or destroy model element. It can only create/destroy
- * axis
- */
- public void openCreateDestroyColumnsManagerDialog();
-
- /**
- * Opens a dialog to choose the columns to display or to destroy. This action doesn't create or destroy model element. It can only create/destroy
- * axis
- */
- public void openCreateDestroyRowsManagerDialog();
-
- /**
- * Returns <code>true</code> if columns axis can be destroyed (only are will be destroyed, the model element won't be destroyed)
- *
- * @return
- */
- public boolean canCreateDestroyColumnsAxis();
-
- /**
- * Returns <code>true</code> if columns axis can be destroyed (only are will be destroyed, the model element won't be destroyed)
- *
- * @return
- */
- public boolean canCreateDestroyRowsAxis();
-
- public void sortColumnsByName(final boolean alphabeticOrder);
-
- public void sortRowsByName(final boolean alphabeticOrder);
-
-
- /**
- *
- * @return
- * the "real"{@link AbstractAxisProvider}, that's to say that this method use the property {@link Table#isInvertAxis()} to return the real
- * vertical axis
- */
- public AbstractAxisProvider getVerticalAxisProvider();
-
- /**
- *
- * @return
- * the "real"{@link AbstractAxisProvider}, that's to say that this method use the property {@link Table#isInvertAxis()} to return the real
- * horizontal axis
- */
- public AbstractAxisProvider getHorizontalAxisProvider();
-
- public BodyLayerStack getBodyLayerStack();
-
- /**
- * Opens a dialog to edit the alias of the row
- *
- * @param event
- */
- public void openEditRowAliasDialog(final NatEventData event);
-
- /**
- * Opens a dialog to edit the alias of the column
- *
- * @param event
- */
- public void openEditColumnAliasDialog(final NatEventData event);
-
- public boolean canEditColumnHeader(final NatEventData eventData);
-
- public boolean canEditRowHeader(final NatEventData eventData);
-
- /**
- *
- * @return
- * the column axis manager, managing the axis inversion
- */
- public IAxisManager getColumnAxisManager();
-
- /**
- *
- * @return
- * the row axis manager, managing the axis inversion
- */
- public IAxisManager getRowAxisManager();
-}

Back to the top