Author: vyemialyanchyk
Date: 2009-10-21 10:31:01 -0400 (Wed, 21 Oct 2009)
New Revision: 18207
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/ExporterSettingsTab.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-5032 - "Select all" and "Deselect
all" bugfix
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/ExporterSettingsTab.java
===================================================================
---
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/ExporterSettingsTab.java 2009-10-21
13:57:25 UTC (rev 18206)
+++
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/ExporterSettingsTab.java 2009-10-21
14:31:01 UTC (rev 18207)
@@ -402,9 +402,14 @@
return new Object[0];// { exporterFactory };
case 1:
getExporterTable().setAllChecked( true );
+ selectedExporters.clear();
+ observableFactoryList.copyUnderlyingList(selectedExporters);
+ dialogChanged();
break;
case 2:
getExporterTable().setAllChecked( false );
+ selectedExporters.clear();
+ dialogChanged();
break;
default:
break;
@@ -434,6 +439,7 @@
}
+ @SuppressWarnings("unchecked")
protected void handleRemove() {
IStructuredSelection selection = (IStructuredSelection)
getTableViewer().getSelection();
if (selection != null) {
@@ -519,6 +525,8 @@
exporterUpDown.setLayoutData( gd );
}
+ // currently unused functionality
+ @SuppressWarnings("unused")
private void createOldExporterTable(Composite parent) {
Composite exporterOptions = createComposite( parent,
HibernateConsoleMessages.ExporterSettingsTab_exporters );
@@ -667,6 +675,10 @@
underlyingList = exporterFactories;
}
+ public void copyUnderlyingList(Set<ExporterFactory> list) {
+ list.addAll(underlyingList);
+ }
+
public void moveTo(int i, ExporterFactory data) {
underlyingList.remove(data);
remove(data);
@@ -860,6 +872,8 @@
updateLaunchConfigurationDialog();
}
+ // currently unused functionality
+ @SuppressWarnings("unused")
private Path pathOrNull(String p) {
if ( p == null || p.trim().length() == 0 ) {
return null;