Author: dgeraskov
Date: 2010-02-11 02:40:29 -0500 (Thu, 11 Feb 2010)
New Revision: 20236
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/ConfigurationCombo.java
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsolePlugin.java
trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/KnownConfigurationsAdapter.java
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/HibernateJptPlugin.java
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/KnownConfigurationsTest.java
Log:
Refactoring. "Reset" method of KnownConfigurationsListener added to abstract
class KnownConfigurationsAdapter to free all subclasses of empty implementation.
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/KnownConfigurationsAdapter.java
===================================================================
---
trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/KnownConfigurationsAdapter.java 2010-02-11
07:15:32 UTC (rev 20235)
+++
trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/KnownConfigurationsAdapter.java 2010-02-11
07:40:29 UTC (rev 20236)
@@ -41,5 +41,7 @@
public void sessionFactoryClosing(ConsoleConfiguration configuration,
SessionFactory closingFactory) {}
+
+ public void configurationReset(ConsoleConfiguration ccfg){}
}
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/ConfigurationCombo.java
===================================================================
---
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/ConfigurationCombo.java 2010-02-11
07:15:32 UTC (rev 20235)
+++
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/ConfigurationCombo.java 2010-02-11
07:40:29 UTC (rev 20236)
@@ -59,9 +59,6 @@
populateComboBox();
}
- public void configurationReset(ConsoleConfiguration ccfg) {
-
- }
};
KnownConfigurations.getInstance().addConsoleConfigurationListener(
listener );
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsolePlugin.java
===================================================================
---
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsolePlugin.java 2010-02-11
07:15:32 UTC (rev 20235)
+++
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsolePlugin.java 2010-02-11
07:40:29 UTC (rev 20236)
@@ -142,9 +142,6 @@
}
}
- public void configurationReset(ConsoleConfiguration ccfg) {
-
- }
};
KnownConfigurations.getInstance().addConsoleConfigurationListener(kcl);
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/HibernateJptPlugin.java
===================================================================
---
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/HibernateJptPlugin.java 2010-02-11
07:15:32 UTC (rev 20235)
+++
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/HibernateJptPlugin.java 2010-02-11
07:40:29 UTC (rev 20236)
@@ -139,10 +139,6 @@
revalidateProjects(root);
}
- public void configurationReset(ConsoleConfiguration ccfg) {
- // TODO Auto-generated method stub
-
- }
});
}
Modified:
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/KnownConfigurationsTest.java
===================================================================
---
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/KnownConfigurationsTest.java 2010-02-11
07:15:32 UTC (rev 20235)
+++
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/KnownConfigurationsTest.java 2010-02-11
07:40:29 UTC (rev 20236)
@@ -43,10 +43,6 @@
}
}
- public void configurationReset(ConsoleConfiguration ccfg) {
- // TODO Auto-generated method stub
-
- }
}
public void testKnownConfigurations() {
Show replies by date