Skip to main content

This CGIT instance is deprecated, and repositories have been moved to Gitlab or Github. See the repository descriptions for specific locations.

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoman Karlstetter2016-06-21 12:29:13 +0000
committerEugen Neufeld2016-07-17 21:39:15 +0000
commit5a8fc086d94c5d4f22499424ea32d0a5e29fac4c (patch)
tree009f00d41d45f75fc6a72da9697e9aaf2b1204fc
parent734b0f6cae242b89cf60c32f07b58a2253cc82b2 (diff)
downloadorg.eclipse.emf.ecp.core-5a8fc086d94c5d4f22499424ea32d0a5e29fac4c.tar.gz
org.eclipse.emf.ecp.core-5a8fc086d94c5d4f22499424ea32d0a5e29fac4c.tar.xz
org.eclipse.emf.ecp.core-5a8fc086d94c5d4f22499424ea32d0a5e29fac4c.zip
TCI - Remove final modifier keyword from methods of AbstractControlSWTRenderer
Removing 'final'-keyword from the protected methods createLabel() and createValidationIcon() makes it possible for inheriting classes to override the creation of the label-Control and validationIcon-Label. Change-Id: Iafd09432b01bc60941af0933fbba758da51b4fd9 Signed-off-by: Roman Karlstetter <roman.karlstetter@googlemail.com>
-rw-r--r--bundles/org.eclipse.emf.ecp.view.core.swt/src/org/eclipse/emf/ecp/view/spi/core/swt/AbstractControlSWTRenderer.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.emf.ecp.view.core.swt/src/org/eclipse/emf/ecp/view/spi/core/swt/AbstractControlSWTRenderer.java b/bundles/org.eclipse.emf.ecp.view.core.swt/src/org/eclipse/emf/ecp/view/spi/core/swt/AbstractControlSWTRenderer.java
index 5940d2b8c6..d2519ede35 100644
--- a/bundles/org.eclipse.emf.ecp.view.core.swt/src/org/eclipse/emf/ecp/view/spi/core/swt/AbstractControlSWTRenderer.java
+++ b/bundles/org.eclipse.emf.ecp.view.core.swt/src/org/eclipse/emf/ecp/view/spi/core/swt/AbstractControlSWTRenderer.java
@@ -348,7 +348,7 @@ public abstract class AbstractControlSWTRenderer<VCONTROL extends VControl> exte
* @param parent the {@link Composite} to render onto
* @return the created {@link Control} or null
*/
- protected final Control createLabel(final Composite parent) {
+ protected Control createLabel(final Composite parent) {
Label label = null;
labelRender: if (hasLeftLabelAlignment()) {
final VDomainModelReference domainModelReference = getVElement().getDomainModelReference();
@@ -445,7 +445,7 @@ public abstract class AbstractControlSWTRenderer<VCONTROL extends VControl> exte
* @param composite the {@link Composite} to create onto
* @return the created Label
*/
- protected final Label createValidationIcon(Composite composite) {
+ protected Label createValidationIcon(Composite composite) {
final Label validationLabel = new Label(composite, SWT.NONE);
SWTDataElementIdHelper.setElementIdDataWithSubId(validationLabel, getVElement(), "control_validation", //$NON-NLS-1$
getViewModelContext());

Back to the top