*/
package eu.etaxonomy.taxeditor.newWizards;
-import java.util.ArrayList;
-import java.util.List;
-
import org.apache.log4j.Logger;
import org.eclipse.core.commands.operations.AbstractOperation;
-import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.viewers.StructuredSelection;
-import org.eclipse.jface.viewers.TreePath;
-import org.eclipse.jface.viewers.TreeSelection;
import org.eclipse.jface.wizard.Wizard;
import org.eclipse.ui.INewWizard;
import org.eclipse.ui.IWorkbench;
private IStructuredSelection selection;
- private IWorkbench workbench;
-
private TaxonNode generatedTaxonNode;
private boolean openEmptyEditor = false;
}
public void init(IWorkbench workbench, IStructuredSelection selection) {
- this.workbench = workbench;
+ // workbench is not used at the moment
this.selection = selection;
}
// set combos to their default values
for(String fieldName : matchModeCombos.keySet()){
Combo combo = matchModeCombos.get(fieldName);
- MatchMode matchMode;
- if(matchStrategy.getMatchMode(fieldName) == null){
-
- matchMode = IMatchStrategy.defaultMatchMode;
-
- // TODO set default match modes for collections and other objects
- }else{
- matchMode = matchStrategy.getMatchMode(fieldName);
- }
-
+ MatchMode matchMode = matchStrategy.getMatchMode(fieldName);
combo.select(matchModeList.indexOf(matchMode));
}