Project

General

Profile

« Previous | Next » 

Revision 021883d9

Added by Patrick Plitzner almost 6 years ago

code cleanup

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/selection/FeatureTreeSelectionDialog.java
34 34
public class FeatureTreeSelectionDialog extends
35 35
		AbstractFilteredCdmResourceSelectionDialog<FeatureTree> {
36 36

  
37
	public static FeatureTree select(Shell shell, //ConversationHolder conversation,
37
	public static FeatureTree select(Shell shell,
38 38
	        FeatureTree featureTree) {
39
		FeatureTreeSelectionDialog dialog = new FeatureTreeSelectionDialog(shell, //conversation,
39
		FeatureTreeSelectionDialog dialog = new FeatureTreeSelectionDialog(shell,
40 40
				"Choose a feature tree", false, featureTree);
41 41
		return getSelectionFromDialog(dialog);
42 42
	}
43 43

  
44
	protected FeatureTreeSelectionDialog(Shell shell,//ConversationHolder conversation,
44
	protected FeatureTreeSelectionDialog(Shell shell,
45 45
			 String title, boolean multi,
46 46
			FeatureTree cdmObject) {
47
		super(shell, //conversation,
47
		super(shell,
48 48
		        title, multi, FeatureTreeSelectionDialog.class.getCanonicalName(), cdmObject);
49 49
	}
50 50

  
51
	/** {@inheritDoc} */
52 51
	@Override
53 52
	protected FeatureTree getPersistentObject(UUID uuid) {
54 53
		return CdmStore.getService(IFeatureTreeService.class).load(uuid);
55 54
	}
56 55

  
57
	/** {@inheritDoc} */
58 56
	@Override
59 57
	protected void callService(String pattern) {
60 58
		List<FeatureTree> featureTrees = CdmStore.getService(IFeatureTreeService.class).list(FeatureTree.class, null, null, null, null);
......
91 89
        };
92 90
    }
93 91

  
94
	/** {@inheritDoc} */
95 92
	@Override
96 93
	protected String[] getNewWizardText() {
97 94
		return new String[]{ "New Feature tree"};
98 95
	}
99 96

  
100

  
101
	/** {@inheritDoc} */
102 97
	@Override
103 98
	protected AbstractNewEntityWizard getNewEntityWizard(String parameter) {
104 99
		return null;

Also available in: Unified diff