Commit 96e6b7c7 authored by Simon Barner's avatar Simon Barner
Browse files

- Shorten very long class names (motivated by TODO in...

- Shorten very long class names (motivated by TODO in AbstractDecoratedStyledTextCellDatabindingEditingSupport)
  - TextCellEditorWithTextStyledTextActionHandler -> StyledTextCellEditor
  - AbstractDecoratedTextCellWithTextStyledTextActionHandlerDatabindingEditingSupport -> AbstractDecoratedStyledTextCellDatabindingEditingSupport
  - AbstractTextCellWithTextStyledTextActionHandlerDatabindingEditingSupport -> AbstractStyledTextCellDatabindingEditingSupport

- Update rating of affected classes
  - Resolve minor issues (many documentation)
  - Try to keep current rating where appropriate since the changes are pure renamings
refs 2983
parent e5f46018
......@@ -42,20 +42,20 @@ import org.fortiss.tooling.kernel.ui.util.DataBindingUtils;
* abstract methods.
* </p>
* <P>
* Decoration is in effect if either {@link #getTextValidator(Object)} returns a non-null
* Decoration is in effect if either {@link #getTextValidator(Object)} returns a non-{@code null}
* {@link IValidator}.
* </p>
*
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating GREEN Hash: BC0D36A060AE96F7784E11F4E02E16E6
* @ConQAT.Rating YELLOW Hash: 0836F73B8DA170C80B3C15AA185F58FE
*/
public abstract class AbstractDecoratedTextCellWithTextStyledTextActionHandlerDatabindingEditingSupport
extends AbstractTextCellWithTextStyledTextActionHandlerDatabindingEditingSupport {
public abstract class AbstractDecoratedStyledTextCellDatabindingEditingSupport extends
AbstractStyledTextCellDatabindingEditingSupport {
/** Constructor. */
public AbstractDecoratedTextCellWithTextStyledTextActionHandlerDatabindingEditingSupport(
public AbstractDecoratedStyledTextCellDatabindingEditingSupport(
EditorBase<? extends EObject> editor, ColumnViewer viewer,
DataBindingContext bindingContext) {
super(editor, viewer, bindingContext);
......
......@@ -22,27 +22,26 @@ import org.eclipse.emf.ecore.EObject;
import org.eclipse.jface.viewers.CellEditor;
import org.eclipse.jface.viewers.ColumnViewer;
import org.eclipse.swt.widgets.Composite;
import org.fortiss.tooling.base.ui.editor.TextCellEditorWithTextStyledTextActionHandler;
import org.fortiss.tooling.base.ui.editor.StyledTextCellEditor;
import org.fortiss.tooling.kernel.ui.extension.base.EditorBase;
/**
* Abstract base class for inline text cell, with copy-pasting.
* Abstract base class for inline text cell, with copy-paste support.
*
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating GREEN Hash: 129A3738C36A26DB5CC5ACCE0BD08D28
* @ConQAT.Rating YELLOW Hash: 10E8790FF4A5261438CD789743CCD020
*/
public abstract class AbstractTextCellWithTextStyledTextActionHandlerDatabindingEditingSupport
extends AbstractTextCellDatabindingEditingSupport {
public abstract class AbstractStyledTextCellDatabindingEditingSupport extends
AbstractTextCellDatabindingEditingSupport {
/** Editor, which contains this EditingSupport} */
/** Editor, which contains this EditingSupport}. */
protected EditorBase<? extends EObject> editor;
/** Constructor. */
public AbstractTextCellWithTextStyledTextActionHandlerDatabindingEditingSupport(
EditorBase<? extends EObject> editor, ColumnViewer viewer,
DataBindingContext bindingContext) {
public AbstractStyledTextCellDatabindingEditingSupport(EditorBase<? extends EObject> editor,
ColumnViewer viewer, DataBindingContext bindingContext) {
super(viewer, bindingContext);
this.editor = editor;
}
......@@ -51,9 +50,8 @@ public abstract class AbstractTextCellWithTextStyledTextActionHandlerDatabinding
@Override
protected CellEditor createCellEditor(ColumnViewer viewer) {
CellEditor cellEditor =
new TextCellEditorWithTextStyledTextActionHandler(
editor.getTextStyledTextActionHandler(), (Composite)getViewer()
.getControl());
new StyledTextCellEditor(editor.getTextStyledTextActionHandler(),
(Composite)getViewer().getControl());
setupCellEditor(cellEditor);
return cellEditor;
}
......
......@@ -23,19 +23,16 @@ import org.eclipse.swt.widgets.Control;
import org.eclipse.ui.actions.TextStyledTextActionHandler;
/**
* A specific {@link TextCellEditor} with copy-paste key function
*
* TODO(VA) this class should not be called "handler" IMHO, it brings confusion with all the things
* we call handler already.
* A {@link TextCellEditor} with styled text fileds and copy-paste keyboard shortcut support.
*
* @author wenwenchen
* @author $Author$
* @version $Rev$
* @ConQAT.Rating GREEN Hash: 792912BF97001631339E59902BE890A2
* @ConQAT.Rating YELLOW Hash: CB25ED6030D8C8BCE63C66C0B639A7C9
*/
public class TextCellEditorWithTextStyledTextActionHandler extends TextCellEditor {
public class StyledTextCellEditor extends TextCellEditor {
/** text action handler for text fields and styled text fields with copy-paste key function */
/** Text action handler for text fields and styled text fields with copy-paste key function. */
private TextStyledTextActionHandler textStyledTextActionHandler;
/**
......@@ -46,8 +43,8 @@ public class TextCellEditorWithTextStyledTextActionHandler extends TextCellEdito
* @param parent
* parent composite
*/
public TextCellEditorWithTextStyledTextActionHandler(
TextStyledTextActionHandler textStyledTextActionHandler, Composite parent) {
public StyledTextCellEditor(TextStyledTextActionHandler textStyledTextActionHandler,
Composite parent) {
super();
this.textStyledTextActionHandler = textStyledTextActionHandler;
create(parent);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment