Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/infra/gmfdiag/org.eclipse.papyrus.extensionpoints.editors/src/org/eclipse/papyrus/extensionpoints/editors/configuration/IDirectEditorConfiguration.java')
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.extensionpoints.editors/src/org/eclipse/papyrus/extensionpoints/editors/configuration/IDirectEditorConfiguration.java144
1 files changed, 6 insertions, 138 deletions
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.extensionpoints.editors/src/org/eclipse/papyrus/extensionpoints/editors/configuration/IDirectEditorConfiguration.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.extensionpoints.editors/src/org/eclipse/papyrus/extensionpoints/editors/configuration/IDirectEditorConfiguration.java
index 127fd19c0fd..58876556ff5 100644
--- a/plugins/infra/gmfdiag/org.eclipse.papyrus.extensionpoints.editors/src/org/eclipse/papyrus/extensionpoints/editors/configuration/IDirectEditorConfiguration.java
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.extensionpoints.editors/src/org/eclipse/papyrus/extensionpoints/editors/configuration/IDirectEditorConfiguration.java
@@ -1,5 +1,5 @@
/*****************************************************************************
- * Copyright (c) 2008 CEA LIST.
+ * Copyright (c) 2008, 2018 CEA LIST.
*
*
* All rights reserved. This program and the accompanying materials
@@ -12,149 +12,17 @@
* Contributors:
* Remi Schnekenburger (CEA LIST) Remi.Schnekenburger@cea.fr - Initial API and implementation
* Fanch BONNABESSE (ALL4TEC) fanch.bonnabesse@all4tec.net - Bug 497289
+ * Nicolas FAUVERGUE (CEA LIST) nicolas.fauvergue@cea.fr - Bug 533667
*
*****************************************************************************/
package org.eclipse.papyrus.extensionpoints.editors.configuration;
-import org.eclipse.jface.dialogs.IInputValidator;
-import org.eclipse.jface.text.source.SourceViewerConfiguration;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.graphics.Point;
-import org.eclipse.swt.widgets.Composite;
-
/**
* Interface that should be implemented by direct editors for Papyrus.
+ *
+ * @deprecated since 3.1. Use {@link org.eclipse.papyrus.infra.gmfdiag.extensionpoints.editors.configuration.IDirectEditorConfiguration} instead.
*/
-public interface IDirectEditorConfiguration {
-
- /**
- * Returns the style for the source viewer widget
- *
- * @return the style for the source viewer widget
- * @see SWT
- */
- // @unused
- public int getStyle();
-
- /**
- * Returns the preferred size for the dialog window
- *
- * @return the preferred size for the dialog window
- */
- // @unused
- public Point getPreferedSize();
-
- /**
- * Returns the source viewer configuration for the editor
- *
- * @return the source viewer configuration for the editor
- */
- public SourceViewerConfiguration getSourceViewerConfiguration();
-
- /**
- * Returns the text to edit
- *
- * @return the text to edit
- */
- public String getTextToEdit(Object editedObject);
-
- /**
- * Action executed before opening editor dialog window
- *
- * @return the result of this action
- */
- public Object preEditAction(Object editedObject);
-
- /**
- * Action executed before closing editor dialog window
- *
- * @param newText
- * the text to save
- * @return the result of this action
- */
- public Object postEditAction(Object editedObject, String newText);
-
- /**
- * Returns the extended Area for the dialog window
- *
- * @param parent
- * the parent of the returned composite
- * @return the extended Area for the dialog window or <code>null</code> if no extension is
- * required
- */
- public Composite createExtendedDialogArea(Composite parent);
-
- /**
- * Returns the language of the edited body
- *
- * @return the language of the edited body
- */
- public String getLanguage();
-
- /**
- * Sets the language of the edited body
- *
- * @param language
- * the language of the edited body
- */
- public void setLanguage(String language);
-
- /**
- * Returns the input validator, ie indicates if the text is correct
- */
- public IInputValidator getInputValidator();
-
- /**
- * Sets the input validator, ie the element that indicates if the text is correct
- */
- // @unused
- public void setInputValidator(IInputValidator validator);
-
- /**
- * Get the text selection for the viewer
- *
- * @param value
- *
- * @return a selection
- */
- public Selection getTextSelection(String value, Object editedObject);
-
- /**
- * Class that represents an area for text selection
- */
- public static class Selection {
-
- private final int lentgh;
-
- private final int start;
-
- public Selection(int start, int lentgh) {
- this.start = start;
- this.lentgh = lentgh;
- }
-
- public int getLentgh() {
- return lentgh;
- }
-
- public int getStart() {
- return start;
- }
-
- }
-
- /**
- * Get the superType attribute value.
- *
- * @return The value of superType.
- */
- public boolean isSuperType();
+@Deprecated
+public interface IDirectEditorConfiguration extends org.eclipse.papyrus.infra.gmfdiag.extensionpoints.editors.configuration.IDirectEditorConfiguration {
- /**
- * Set the superType attribute value.
- *
- * @param superType
- * the value to set.
- */
- public void setSuperType(boolean superType);
}

Back to the top