Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenoit Maggi2018-05-28 10:38:09 -0400
committerBenoit Maggi2018-05-28 10:39:27 -0400
commitd7e31357e8f1e14738e4dc4db4bd53bf68dbd73b (patch)
treece7c641afc12dab430907d26798c1ac0350f156b /plugins/toolsmiths
parentddbb15e314ee64b6134cadfb9954ad06fb44c3c2 (diff)
downloadorg.eclipse.papyrus-d7e31357e8f1e14738e4dc4db4bd53bf68dbd73b.tar.gz
org.eclipse.papyrus-d7e31357e8f1e14738e4dc4db4bd53bf68dbd73b.tar.xz
org.eclipse.papyrus-d7e31357e8f1e14738e4dc4db4bd53bf68dbd73b.zip
Bug 535209 - [Quality] Remove unused import/variable warning
- fix unused import - move example code from src to src-gen - remove unused variable Change-Id: Ic2d49c57277cc08f1b53027876b4ceab1bea515d Signed-off-by: Benoit Maggi <benoit.maggi@cea.fr>
Diffstat (limited to 'plugins/toolsmiths')
-rw-r--r--plugins/toolsmiths/org.eclipse.papyrus.customization.nattableconfiguration/src/org/eclipse/papyrus/customization/nattableconfiguration/wizards/CreateAndEditTableConfigurationWizard.java2
-rw-r--r--plugins/toolsmiths/org.eclipse.papyrus.customization.nattableconfiguration/src/org/eclipse/papyrus/customization/nattableconfiguration/wizards/EditTableConfigurationWizard.java2
2 files changed, 3 insertions, 1 deletions
diff --git a/plugins/toolsmiths/org.eclipse.papyrus.customization.nattableconfiguration/src/org/eclipse/papyrus/customization/nattableconfiguration/wizards/CreateAndEditTableConfigurationWizard.java b/plugins/toolsmiths/org.eclipse.papyrus.customization.nattableconfiguration/src/org/eclipse/papyrus/customization/nattableconfiguration/wizards/CreateAndEditTableConfigurationWizard.java
index c6de517c2b4..ab99a99cd9f 100644
--- a/plugins/toolsmiths/org.eclipse.papyrus.customization.nattableconfiguration/src/org/eclipse/papyrus/customization/nattableconfiguration/wizards/CreateAndEditTableConfigurationWizard.java
+++ b/plugins/toolsmiths/org.eclipse.papyrus.customization.nattableconfiguration/src/org/eclipse/papyrus/customization/nattableconfiguration/wizards/CreateAndEditTableConfigurationWizard.java
@@ -56,6 +56,7 @@ public class CreateAndEditTableConfigurationWizard extends EditTableConfiguratio
* @see org.eclipse.papyrus.customization.nattableconfiguration.wizards.EditTableConfigurationWizard#addEditNattableConfigurationPage()
*
*/
+ @Override
protected void addEditNattableConfigurationPage() {
addPage(this.page = new NattableConfigurationFileCreationPage(this.helper));
}
@@ -66,6 +67,7 @@ public class CreateAndEditTableConfigurationWizard extends EditTableConfiguratio
* @return
* the edited table configuration.
*/
+ @Override
protected TableConfiguration getEditedTableConfiguration(final Resource resource) {
// 1. create the configuration itself
TableConfiguration configuration = NattableconfigurationFactory.eINSTANCE.createTableConfiguration();
diff --git a/plugins/toolsmiths/org.eclipse.papyrus.customization.nattableconfiguration/src/org/eclipse/papyrus/customization/nattableconfiguration/wizards/EditTableConfigurationWizard.java b/plugins/toolsmiths/org.eclipse.papyrus.customization.nattableconfiguration/src/org/eclipse/papyrus/customization/nattableconfiguration/wizards/EditTableConfigurationWizard.java
index e0aa11f82d4..cc70bbeca9d 100644
--- a/plugins/toolsmiths/org.eclipse.papyrus.customization.nattableconfiguration/src/org/eclipse/papyrus/customization/nattableconfiguration/wizards/EditTableConfigurationWizard.java
+++ b/plugins/toolsmiths/org.eclipse.papyrus.customization.nattableconfiguration/src/org/eclipse/papyrus/customization/nattableconfiguration/wizards/EditTableConfigurationWizard.java
@@ -126,7 +126,7 @@ public class EditTableConfigurationWizard extends AbstractTableWizard implements
// TODO required ?
final IEditorPart currentPart = WorkbenchPartHelper.getCurrentActiveWorkbenchPart().getSite().getPage().getActiveEditor();
if (null != currentPart) {
- manager = (INattableModelManager) currentPart.getAdapter(INattableModelManager.class);
+ manager = currentPart.getAdapter(INattableModelManager.class);
}
if (null != manager) {

Back to the top