Project

General

Profile

« Previous | Next » 

Revision 6ddb76e8

Added by Alex Theys over 12 years ago

AT: Fixing the failed branching errors/wrongly committed files

View differences:

.gitattributes
30 30
eu.etaxonomy.taxeditor.application/src/main/java/eu/etaxonomy/taxeditor/TaxonomicEditorPlugin.java -text
31 31
eu.etaxonomy.taxeditor.application/src/main/java/eu/etaxonomy/taxeditor/perspective/BulkEditing.java -text
32 32
eu.etaxonomy.taxeditor.application/src/main/java/eu/etaxonomy/taxeditor/perspective/Default.java -text
33
eu.etaxonomy.taxeditor.application/src/main/java/eu/etaxonomy/taxeditor/perspective/PalmUses.java -text
34 33
eu.etaxonomy.taxeditor.application/src/main/java/eu/etaxonomy/taxeditor/perspective/PolytomousKey.java -text
35 34
eu.etaxonomy.taxeditor.application/src/main/java/eu/etaxonomy/taxeditor/perspective/Taxonomic.java -text
36 35
eu.etaxonomy.taxeditor.application/src/main/resources/log4j.properties -text
......
605 604
eu.etaxonomy.taxeditor.help/original_document/Taxonomic_Editor_User_Manual_Version_4.doc -text
606 605
eu.etaxonomy.taxeditor.help/plugin.xml -text
607 606
eu.etaxonomy.taxeditor.help/pom.xml -text
608
eu.etaxonomy.taxeditor.help/src/eu/etaxonomy/taxeditor/help/Activator.class -text
609 607
eu.etaxonomy.taxeditor.help/src/eu/etaxonomy/taxeditor/help/Activator.java -text
610 608
eu.etaxonomy.taxeditor.help/toc.xml -text
611 609
eu.etaxonomy.taxeditor.help/tocgettingstarted.xml -text
......
772 770
eu.etaxonomy.taxeditor.store/icons/icon.png -text
773 771
eu.etaxonomy.taxeditor.store/icons/import_wiz.gif -text
774 772
eu.etaxonomy.taxeditor.store/icons/large_image.gif -text
775
eu.etaxonomy.taxeditor.store/icons/leaf_detail.png -text
776 773
eu.etaxonomy.taxeditor.store/icons/linkto_help.gif -text
777 774
eu.etaxonomy.taxeditor.store/icons/lockedstate.gif -text
778 775
eu.etaxonomy.taxeditor.store/icons/ma_12x12.gif -text
......
1315 1312
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/reporting/ReportingViewPart.java -text
1316 1313
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/supplementaldata/SupplementalDataViewPart.java -text
1317 1314
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/supplementaldata/SupplementalDataViewer.java -text
1318
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/userecords/UseRecordsViewPart.java -text
1319
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/userecords/UseRecordsViewer.java -text
1320 1315
eu.etaxonomy.taxeditor.store/src/main/resources/eu/etaxonomy/cdm/editorApplicationContext.xml -text
1321 1316
eu.etaxonomy.taxeditor.store/src/main/resources/log4j.properties -text
1322 1317
eu.etaxonomy.taxeditor.store/src/test/java/eu/etaxonomy/taxeditor/store/NameProtectTitleCacheTest.java -text
......
1338 1333
eu.etaxonomy.taxeditor.test/.classpath -text
1339 1334
eu.etaxonomy.taxeditor.test/.project -text
1340 1335
eu.etaxonomy.taxeditor.test/.settings/org.eclipse.jdt.core.prefs -text
1341
eu.etaxonomy.taxeditor.test/.settings/org.maven.ide.eclipse.prefs -text
1342 1336
eu.etaxonomy.taxeditor.test/META-INF/MANIFEST.MF -text
1343 1337
eu.etaxonomy.taxeditor.test/build.properties -text
1344 1338
eu.etaxonomy.taxeditor.test/ide/eclipse/EDITor[!!-~]Tests.launch -text
eu.etaxonomy.taxeditor.application/plugin.xml
31 31
            id="eu.etaxonomy.taxeditor.application.perspective.polytomous"
32 32
            name="Polytomous Key">
33 33
      </perspective>
34
       <perspective
35
            class="eu.etaxonomy.taxeditor.perspective.PalmUses"
36
            id="eu.etaxonomy.taxeditor.application.perspective.palmuses"
37
            name="Palm Uses">
38
      </perspective>
39
     
40 34
   </extension>
41 35
   <!--extension
42 36
         point="org.eclipse.ui.views">
......
70 64
             id="eu.etaxonomy.taxeditor.editor.forms.detailsView">
71 65
       </showInPart>
72 66
    </perspectiveExtension>
73
    <perspectiveExtension
74
          targetID="eu.etaxonomy.taxeditor.application.perspective.palmuses">
75
       <showInPart
76
             id="eu.etaxonomy.taxeditor.editor.forms.detailsView">
77
       </showInPart>
78
    </perspectiveExtension>
79 67
 </extension>
80 68
   <extension
81 69
         point="org.eclipse.ui.menus">
eu.etaxonomy.taxeditor.application/src/main/java/eu/etaxonomy/taxeditor/perspective/PalmUses.java
1
/**
2
 * 
3
 */
4
package eu.etaxonomy.taxeditor.perspective;
5

  
6
import org.eclipse.ui.IPageLayout;
7

  
8

  
9

  
10
import eu.etaxonomy.taxeditor.editor.view.uses.UsesViewPart;
11
import eu.etaxonomy.taxeditor.navigation.navigator.TaxonNavigator;
12
import eu.etaxonomy.taxeditor.view.userecords.UseRecordsViewPart;
13

  
14
/**
15
 * @author a.theys
16
 *
17
 */
18
public class PalmUses extends Default {
19

  
20
	/* (non-Javadoc)
21
	 * @see org.eclipse.ui.IPerspectiveFactory#createInitialLayout(org.eclipse.ui.IPageLayout)
22
	 */
23
	@Override
24
	public void createInitialLayout(IPageLayout layout) {
25
		layout.addView(TaxonNavigator.ID, IPageLayout.LEFT, 0.25f, layout.getEditorArea());
26
		layout.addView(UseRecordsViewPart.ID, IPageLayout.RIGHT, 0.25f, layout.getEditorArea());
27
		layout.addView(UsesViewPart.ID, IPageLayout.BOTTOM, 0.25f, layout.getEditorArea());
28
		
29
		// layout.addView(SupplementalDataViewPart.ID, IPageLayout.BOTTOM, 0.25f, DetailsViewPart.ID);
30
		
31
		createAdditionalFolder(layout, layout.getEditorArea());
32
	}
33
	
34

  
35
}
36

  
eu.etaxonomy.taxeditor.store/META-INF/MANIFEST.MF
46 46
 eu.etaxonomy.taxeditor.view.datasource,
47 47
 eu.etaxonomy.taxeditor.view.datasource.handler,
48 48
 eu.etaxonomy.taxeditor.view.detail,
49
 eu.etaxonomy.taxeditor.view.supplementaldata,
50
 eu.etaxonomy.taxeditor.view.userecords
49
 eu.etaxonomy.taxeditor.view.supplementaldata
51 50
Require-Bundle: org.eclipse.osgi,
52 51
 org.eclipse.ui,
53 52
 org.eclipse.jface.text,
eu.etaxonomy.taxeditor.store/plugin.xml
219 219
        id="eu.etaxonomy.taxeditor.view.detail"
220 220
        name="Details"
221 221
        restorable="true">
222
  </view>
223
  <view
224
        class="eu.etaxonomy.taxeditor.view.userecords.UseRecordsViewPart"
225
        icon="icons/leaf_detail.png"
226
        id="eu.etaxonomy.taxeditor.view.userecords"
227
        name="Use Records"
228
        restorable="true">
229 222
  </view>
230 223
   </extension>
231 224
   <extension
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/model/AbstractUtility.java
56 56
import eu.etaxonomy.taxeditor.view.AbstractCdmDataViewer;
57 57
import eu.etaxonomy.taxeditor.view.detail.DetailsViewPart;
58 58
import eu.etaxonomy.taxeditor.view.supplementaldata.SupplementalDataViewPart;
59
import eu.etaxonomy.taxeditor.view.userecords.UseRecordsViewPart;
60 59

  
61 60
/**
62 61
 * <p>
......
910 909
					.reflow();
911 910
		}
912 911
	}
913
	
914
	public static UseRecordsViewPart getUseRecordsView() {
915
		return (UseRecordsViewPart) getView(UseRecordsViewPart.ID, false);
916
	}
917

  
918
	/**
919
	 * <p>
920
	 * refreshUseRecordsViewer
921
	 * </p>
922
	 */
923
	public static void refreshUseRecordsViewer() {
924
		if (getUseRecordsView() != null) {
925
			((AbstractCdmDataViewer) getUseRecordsView().getViewer()).refresh();
926
		}
927
	}
928

  
929
	/**
930
	 * <p>
931
	 * reflowUseRecordsViewer
932
	 * </p>
933
	 */
934
	public static void reflowUseRecordsViewer() {
935
		if (getUseRecordsView() != null) {
936
			((AbstractCdmDataViewer) getUseRecordsView().getViewer()).reflow();
937
		}
938
	}
939 912
}
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/model/DescriptionHelper.java
381 381
		if (text == null || text.length() == 0) {
382 382
			text = "No label provided";
383 383
		}
384
		
385 384
		return "Description: " + text;
386 385
	}
387 386
	
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/description/DescriptionDetailElement.java
51 51
		detailDescription = formFactory.createMultilineTextWithLabel(this, "Label", 50, SWT.WRAP);
52 52
		detailDescription.setText(entity.getTitleCache());
53 53
		
54
		selection_featureTree = (FeatureTreeSelectionElement) formFactory.createSelectionElement(SelectionType.FEATURE_TREE, getConversationHolder(), formElement, "Feature Tree", null, style, 1);
54
//		selection_featureTree = (FeatureTreeSelectionElement) formFactory.createSelectionElement(SelectionType.FEATURE_TREE, getConversationHolder(), formElement, "Feature Tree", null, style);
55 55
	}
56 56
	
57 57
	/** {@inheritDoc} */
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/userecords/UseRecordsViewPart.java
1
package eu.etaxonomy.taxeditor.view.userecords;
2

  
3
import org.eclipse.jface.viewers.ISelection;
4
import org.eclipse.jface.viewers.IStructuredSelection;
5
import org.eclipse.jface.viewers.Viewer;
6
import org.eclipse.swt.widgets.Composite;
7
import org.eclipse.ui.IEditorPart;
8
import org.eclipse.ui.IWorkbenchPart;
9

  
10
import eu.etaxonomy.cdm.model.description.Feature;
11
import eu.etaxonomy.taxeditor.model.FeatureNodeContainer;
12
import eu.etaxonomy.taxeditor.model.IPartContentHasSupplementalData;
13
import eu.etaxonomy.taxeditor.store.StoreUtil;
14
import eu.etaxonomy.taxeditor.view.AbstractCdmEditorViewPart;
15
import eu.etaxonomy.taxeditor.view.AbstractCdmViewPart;
16

  
17

  
18
	public class UseRecordsViewPart extends AbstractCdmEditorViewPart implements IPartContentHasSupplementalData{
19
		
20
		public static String ID = "eu.etaxonomy.taxeditor.view.userecords";
21
		private UseRecordsViewer viewer;
22
		
23
		@Override
24
		public void createViewer(Composite parent) {
25
			//selectionService.addPostSelectionListener(this);
26
			
27
			viewer = new UseRecordsViewer(parent, this);
28
			getSite().setSelectionProvider(viewer);
29
			
30
		}
31
		
32
		@Override
33
		public void selectionChanged(IWorkbenchPart part, ISelection selection) {
34
			if(StoreUtil.getActiveEditor() == null){
35
				showEmptyPage();
36
				return;
37
			}
38
			
39
			if(part == this){
40
				return;
41
			}
42
			
43
			if(!(selection instanceof IStructuredSelection)){
44
				return;
45
			}
46
			
47
			IStructuredSelection structuredSelection = (IStructuredSelection) selection;
48
			
49
			if((part instanceof IEditorPart) || (part instanceof AbstractCdmViewPart)) {
50
				if(structuredSelection.size() != 1){
51
					showEmptyPage();
52
					return;
53
				}
54
				
55
				// do not show details for feature nodes TODO really? 
56
				if(structuredSelection.getFirstElement() instanceof FeatureNodeContainer){
57
					// do show the map for distributions
58
					Feature feature = ((FeatureNodeContainer) ((IStructuredSelection) selection).getFirstElement()).getFeature();
59
					if(!feature.equals(Feature.DISTRIBUTION())){
60
						showEmptyPage();
61
						return;
62
					}
63
				}
64
				
65
				showViewer(part, structuredSelection);
66
			}else{
67
				showEmptyPage();		
68
			}	
69
			
70
		}
71
		
72
		@Override
73
		public Viewer getViewer() {
74
			return viewer;
75
		}
76

  
77
		/** {@inheritDoc} */
78
		@Override
79
		public void dispose() {
80
			super.dispose();
81
			selectionService.removePostSelectionListener(this);
82
		}
83

  
84
		/**
85
		 * <p>onComplete</p>
86
		 *
87
		 * @return a boolean.
88
		 */
89
		public boolean onComplete() {
90
			return true;
91
		}
92

  
93
		
94

  
95
		
96

  
97
	
98
	}
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/userecords/UseRecordsViewer.java
1
package eu.etaxonomy.taxeditor.view.userecords;
2

  
3
import org.eclipse.jface.viewers.ISelection;
4
import org.eclipse.jface.viewers.SelectionChangedEvent;
5
import org.eclipse.swt.SWT;
6
import org.eclipse.swt.widgets.Composite;
7
import org.eclipse.ui.forms.widgets.Section;
8

  
9
import eu.etaxonomy.cdm.model.description.DescriptionBase;
10
import eu.etaxonomy.cdm.model.description.DescriptionElementBase;
11
import eu.etaxonomy.cdm.model.reference.Reference;
12
import eu.etaxonomy.cdm.model.taxon.TaxonBase;
13
import eu.etaxonomy.taxeditor.ui.forms.RootElement;
14
import eu.etaxonomy.taxeditor.ui.forms.CdmFormFactory.DetailType;
15
import eu.etaxonomy.taxeditor.ui.forms.CdmFormFactory.EntityDetailType;
16
import eu.etaxonomy.taxeditor.ui.section.description.DescribedSpecimenSection;
17
import eu.etaxonomy.taxeditor.ui.section.description.DescriptionDetailSection;
18
import eu.etaxonomy.taxeditor.ui.section.description.DescriptionElementDetailSection;
19
import eu.etaxonomy.taxeditor.ui.section.description.DescriptionElementMediaSection;
20
import eu.etaxonomy.taxeditor.ui.section.description.DescriptionElementSourceSection;
21
import eu.etaxonomy.taxeditor.ui.section.description.DescriptionSourceSection;
22
import eu.etaxonomy.taxeditor.ui.section.description.NaturalLanguageSection;
23
import eu.etaxonomy.taxeditor.ui.section.description.ScopeSection;
24
import eu.etaxonomy.taxeditor.ui.section.name.NameRelationshipDetailSection;
25
import eu.etaxonomy.taxeditor.ui.section.name.NomenclaturalStatusSection;
26
import eu.etaxonomy.taxeditor.ui.section.name.NonViralNameDetailSection;
27
import eu.etaxonomy.taxeditor.ui.section.name.ProtologueSection;
28
import eu.etaxonomy.taxeditor.ui.section.name.TypeDesignationSection;
29
import eu.etaxonomy.taxeditor.ui.section.reference.NomenclaturalReferenceDetailSection;
30
import eu.etaxonomy.taxeditor.ui.section.reference.ReferenceDetailSection;
31
import eu.etaxonomy.taxeditor.ui.section.taxon.ParsingMessagesSection;
32
import eu.etaxonomy.taxeditor.ui.section.taxon.TaxonBaseDetailSection;
33
import eu.etaxonomy.taxeditor.view.AbstractCdmDataViewer;
34
import eu.etaxonomy.taxeditor.view.AbstractCdmViewPart;
35

  
36

  
37

  
38

  
39

  
40
public class UseRecordsViewer extends AbstractCdmDataViewer {
41
	private enum VIEW_PART {
42
		TAXON,
43
		ECO_REGION,
44
		COUNTRY,
45
		PLANT_PART,
46
		USE_CATEGORY,
47
		USE_SUBCATEGORY,
48
		ETHNIC_GROUP,
49
		HUMAN_GROUP,
50
		DESCRIPTION, 
51
		DESCRIPTION_ELEMENT,
52
		REFEERENCE, 
53
		TEAM, 
54
		PERSON, 
55
		TEAM_OR_PERSON_BASE,
56
		EMPTY,
57
		IMAGE_GALLERY
58
	}
59

  
60
	private VIEW_PART currentViewPart;
61

  
62
	private ISelection selection;
63
	
64
	public UseRecordsViewer(Composite parent, AbstractCdmViewPart viewPart) {
65
		super(parent, viewPart);
66
	}
67
	@Override
68
	protected void showParts() {
69
		if (getInput() instanceof TaxonBase) {
70
			if (currentViewPart != VIEW_PART.TAXON) {
71
				createTaxonSections(rootElement);
72
				currentViewPart = VIEW_PART.TAXON;
73
			}
74
		} else if (getInput() instanceof Reference) {
75
			if (currentViewPart != VIEW_PART.REFEERENCE) {
76
				createReferenceSections(rootElement);
77
				currentViewPart = VIEW_PART.REFEERENCE;
78
			}
79
		} else if (getInput() instanceof DescriptionBase) {
80
			if (((DescriptionBase) getInput()).isImageGallery()) {
81
				if (currentViewPart != VIEW_PART.IMAGE_GALLERY) {
82
					createImageGallerySection(rootElement);
83
					currentViewPart = VIEW_PART.IMAGE_GALLERY;
84
				}
85
			} else {
86
				if (currentViewPart != VIEW_PART.DESCRIPTION) {
87
					createDescriptionSection(rootElement);
88
					currentViewPart = VIEW_PART.DESCRIPTION;
89
				}
90
			}
91
		} else if (getInput() instanceof DescriptionElementBase) {
92
			if (currentViewPart != VIEW_PART.DESCRIPTION_ELEMENT) {
93
				createDescriptionElementSection(rootElement);
94
				currentViewPart = VIEW_PART.DESCRIPTION_ELEMENT;
95
			}
96
		} else {
97
			destroySections();
98
			currentViewPart = VIEW_PART.EMPTY;
99
		}
100
		layout();
101
		
102
	}
103
	private void createTaxonSections(RootElement parent) {
104
		destroySections();
105

  
106
		TaxonBaseDetailSection taxonBaseDetailSection = (TaxonBaseDetailSection) formFactory
107
				.createCdmDetailSection(DetailType.TAXONBASE,
108
						getConversationHolder(), parent, this, Section.TWISTIE);
109

  
110
		formFactory.createHorizontalSeparator(parent, SWT.BORDER);
111

  
112
		NonViralNameDetailSection nonViralNameSection = (NonViralNameDetailSection) formFactory
113
				.createCdmDetailSection(DetailType.NONVIRALNAME,
114
						getConversationHolder(), parent, this, Section.TWISTIE
115
								| Section.EXPANDED);
116

  
117
		formFactory.createHorizontalSeparator(parent, SWT.BORDER);
118

  
119
		NomenclaturalReferenceDetailSection referenceDetailSection = (NomenclaturalReferenceDetailSection) formFactory
120
				.createCdmDetailSection(DetailType.NOMENCLATURALREFERENCE,
121
						getConversationHolder(), parent, this, Section.TWISTIE);
122

  
123
		formFactory.createHorizontalSeparator(parent, SWT.BORDER);
124

  
125
		NomenclaturalStatusSection nomenclaturalStatusSection = (NomenclaturalStatusSection) formFactory
126
				.createEntityDetailSection(
127
						EntityDetailType.NOMENCLATURALSTATUS,
128
						getConversationHolder(), parent, Section.TWISTIE);
129

  
130
		formFactory.createHorizontalSeparator(parent, SWT.BORDER);
131

  
132
		ProtologueSection protologSection = (ProtologueSection) formFactory
133
				.createEntityDetailSection(EntityDetailType.PROTOLOG,
134
						getConversationHolder(), parent, Section.TWISTIE);
135

  
136
		formFactory.createHorizontalSeparator(parent, SWT.BORDER);
137

  
138
		TypeDesignationSection typeDesignationSection = (TypeDesignationSection) formFactory
139
				.createEntityDetailSection(EntityDetailType.TYPEDESIGNATION,
140
						getConversationHolder(), parent, Section.TWISTIE);
141

  
142
		formFactory.createHorizontalSeparator(parent, SWT.BORDER);
143

  
144
		NameRelationshipDetailSection nameRelationshipSection = (NameRelationshipDetailSection) formFactory
145
				.createEntityDetailSection(EntityDetailType.NAME_RELATIONSHIP,
146
						getConversationHolder(), parent, Section.TWISTIE);
147

  
148
		formFactory.createHorizontalSeparator(parent, SWT.BORDER);
149

  
150
		ParsingMessagesSection parsingMessagesSection = (ParsingMessagesSection) formFactory
151
				.createCdmDetailSection(DetailType.PARSINGMESSAGE,
152
						getConversationHolder(), parent, this, Section.EXPANDED);
153

  
154
		addPart(taxonBaseDetailSection);
155
		addPart(nonViralNameSection);
156
		addPart(nomenclaturalStatusSection);
157
		addPart(protologSection);
158
		addPart(referenceDetailSection);
159
		addPart(typeDesignationSection);
160
		addPart(nameRelationshipSection);
161
		addPart(parsingMessagesSection);
162
	}
163
	private void createDescriptionElementSection(RootElement parent) {
164
		destroySections();
165

  
166
		DescriptionElementDetailSection descriptionElementDetailSection = (DescriptionElementDetailSection) formFactory
167
				.createCdmDetailSection(DetailType.DESCRIPTIONELEMENT,
168
						getConversationHolder(), parent, this, Section.TWISTIE
169
								| Section.EXPANDED);
170

  
171
		formFactory.createHorizontalSeparator(parent, SWT.BORDER);
172

  
173
		DescriptionElementSourceSection descriptionElementSourceSection = (DescriptionElementSourceSection) formFactory
174
				.createEntityDetailSection(
175
						EntityDetailType.DESCRIPTIONELEMENTSOURCE,
176
						getConversationHolder(), parent, Section.TWISTIE);
177

  
178
		formFactory.createHorizontalSeparator(parent, SWT.BORDER);
179

  
180
		DescriptionElementMediaSection descriptionElementMediaSection = (DescriptionElementMediaSection) formFactory
181
				.createEntityDetailSection(
182
						EntityDetailType.DESCRIPTIONELEMENTMEDIA,
183
						getConversationHolder(), parent, Section.TWISTIE);
184

  
185
		formFactory.createHorizontalSeparator(parent, SWT.BORDER);
186

  
187
		addPart(descriptionElementDetailSection);
188
		addPart(descriptionElementSourceSection);
189
		addPart(descriptionElementMediaSection);
190
	}
191
	
192
	private void createDescriptionSection(RootElement parent) {
193
		destroySections();
194
		DescriptionDetailSection descriptionDetailSection = (DescriptionDetailSection) formFactory
195
				.createCdmDetailSection(DetailType.DESCRIPTION,
196
						getConversationHolder(), parent, this, Section.TWISTIE
197
								| Section.EXPANDED);
198

  
199
		formFactory.createHorizontalSeparator(parent, SWT.BORDER);
200

  
201
		NaturalLanguageSection naturalLanguageSection = (NaturalLanguageSection) formFactory
202
				.createCdmDetailSection(DetailType.NATURAL_LANGUAGE,
203
						getConversationHolder(), parent, this, Section.TWISTIE
204
								| Section.EXPANDED);
205

  
206
		formFactory.createHorizontalSeparator(parent, SWT.BORDER);
207

  
208
		DescribedSpecimenSection describedSpecimenSection = (DescribedSpecimenSection) formFactory
209
				.createEntityDetailSection(EntityDetailType.DESCRIBED_SPECIMEN,
210
						getConversationHolder(), parent, Section.TWISTIE);
211

  
212
		formFactory.createHorizontalSeparator(parent, SWT.BORDER);
213

  
214
		DescriptionSourceSection descriptionSourceSection = (DescriptionSourceSection) formFactory
215
				.createEntityDetailSection(EntityDetailType.DESCRIPTIONSOURCE,
216
						getConversationHolder(), parent, Section.TWISTIE);
217

  
218
		formFactory.createHorizontalSeparator(parent, SWT.BORDER);
219

  
220
		ScopeSection scopeSection = (ScopeSection) formFactory
221
				.createEntityDetailSection(EntityDetailType.SCOPE,
222
						getConversationHolder(), parent, Section.TWISTIE);
223

  
224
		formFactory.createHorizontalSeparator(parent, SWT.BORDER);
225

  
226
		addPart(descriptionDetailSection);
227
		addPart(naturalLanguageSection);
228
		addPart(describedSpecimenSection);
229
		addPart(descriptionSourceSection);
230
		addPart(scopeSection);
231
	}
232
	
233
	private void createImageGallerySection(RootElement parent) {
234
		destroySections();
235
		DescriptionDetailSection descriptionDetailSection = (DescriptionDetailSection) formFactory
236
				.createCdmDetailSection(DetailType.DESCRIPTION,
237
						getConversationHolder(), parent, this, Section.TWISTIE
238
								| Section.EXPANDED);
239

  
240
		addPart(descriptionDetailSection);
241
	}
242
	
243
	private void createReferenceSections(RootElement parent) {
244
		destroySections();
245

  
246
		ReferenceDetailSection referenceDetailSection = (ReferenceDetailSection) formFactory
247
				.createCdmDetailSection(DetailType.REFERENCEBASE,
248
						getConversationHolder(), parent, this, Section.TWISTIE
249
								| Section.EXPANDED);
250

  
251
		addPart(referenceDetailSection);
252
		
253
	}
254
	@Override
255
	public ISelection getSelection() {
256
		return selection;
257
	}
258
	@Override
259
	public void setSelection(ISelection selection, boolean reveal) {
260
		this.selection = selection;
261
		SelectionChangedEvent selectionChangedEvent = new SelectionChangedEvent(
262
				this, selection);
263
		fireSelectionChanged(selectionChangedEvent);
264
	}
265

  
266
}
eu.etaxonomy.taxeditor.test/.settings/org.maven.ide.eclipse.prefs
1
#Mon Nov 07 10:50:06 GMT 2011
2
activeProfiles=
3
eclipse.preferences.version=1
4
fullBuildGoals=process-test-resources
5
includeModules=false
6
resolveWorkspaceProjects=true
7
resourceFilterGoals=process-resources resources\:testResources
8
skipCompilerPlugin=true
9
version=1

Also available in: Unified diff