Project

General

Profile

« Previous | Next » 

Revision 8180822f

Added by Andreas Müller over 1 year ago

ref #10186 remove ConversationHolder from many forms and some more cleanup

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/e4/supplementaldata/SupplementalDataViewerE4.java
118 118

  
119 119
	private void createSourceSection(RootElement parent){
120 120
	    int expandStyle = StoreUtil.getSectionStyle(SourceSection.class, getInput().getClass().getCanonicalName(), false);
121
        SourceSection sourceSection =  formFactory.createSourceSection(getConversationHolder(), parent, expandStyle);
121
        SourceSection sourceSection =  formFactory.createSourceSection(parent, expandStyle);
122 122
        formFactory.createHorizontalSeparator(parent, SWT.BORDER);
123 123
        addPart(sourceSection);
124 124
    }
125 125

  
126 126
    private void createAnnotationSections(RootElement parent) {
127 127
        int expandStyle = StoreUtil.getSectionStyle(AnnotationSection.class, getInput().getClass().getCanonicalName(), false);
128
        AnnotationSection annotationSection = formFactory.createAnnotationSection(getConversationHolder(), parent, expandStyle);
128
        AnnotationSection annotationSection = formFactory.createAnnotationSection(parent, expandStyle);
129 129

  
130 130
        formFactory.createHorizontalSeparator(parent, SWT.BORDER);
131 131
        expandStyle = StoreUtil.getSectionStyle(MarkerSection.class, getInput().getClass().getCanonicalName(), false);
132
        MarkerSection markerSection = formFactory.createMarkerSection(getConversationHolder(), parent, expandStyle);
132
        MarkerSection markerSection = formFactory.createMarkerSection(parent, expandStyle);
133 133

  
134 134
        formFactory.createHorizontalSeparator(parent, SWT.BORDER);
135 135

  
......
140 140

  
141 141
    private void createIdentifiableSections(RootElement parent) {
142 142
        int expandStyle = StoreUtil.getSectionStyle(SourceSection.class, getInput().getClass().getCanonicalName(), false);
143
        SourceSection sourceSection = formFactory.createSourceSection(getConversationHolder(), parent, expandStyle);
143
        SourceSection sourceSection = formFactory.createSourceSection(parent, expandStyle);
144 144

  
145 145
        formFactory.createHorizontalSeparator(parent, SWT.BORDER);
146 146
        expandStyle =  StoreUtil.getSectionStyle(IdentifierSection.class, getInput().getClass().getCanonicalName(), false);
147
        IdentifierSection identifierSection = formFactory.createIdentifierDetailSection(getConversationHolder(), parent, expandStyle);
147
        IdentifierSection identifierSection = formFactory.createIdentifierDetailSection(parent, expandStyle);
148 148

  
149 149
        formFactory.createHorizontalSeparator(parent, SWT.BORDER);
150 150
        expandStyle =  StoreUtil.getSectionStyle(ExtensionSection.class, getInput().getClass().getCanonicalName(), false);
151
        ExtensionSection extensionSection = formFactory.createExtensionSection(getConversationHolder(), parent, expandStyle);
151
        ExtensionSection extensionSection = formFactory.createExtensionSection(parent, expandStyle);
152 152

  
153 153
        formFactory.createHorizontalSeparator(parent, SWT.BORDER);
154 154
        expandStyle =  StoreUtil.getSectionStyle(CreditSection.class, getInput().getClass().getCanonicalName(), false);
155
        CreditSection creditSection = formFactory.createCreditSection(getConversationHolder(), parent, expandStyle);
155
        CreditSection creditSection = formFactory.createCreditSection(parent, expandStyle);
156 156

  
157 157
        formFactory.createHorizontalSeparator(parent, SWT.BORDER);
158 158
        expandStyle =  StoreUtil.getSectionStyle(RightsSection.class, getInput().getClass().getCanonicalName(), false);
159
        RightsSection rightsSection = formFactory.createRightsSection(getConversationHolder(), parent, expandStyle);
159
        RightsSection rightsSection = formFactory.createRightsSection(parent, expandStyle);
160 160

  
161 161
        formFactory.createHorizontalSeparator(parent, SWT.BORDER);
162 162

  
......
170 170

  
171 171
    private void createIdentifiableMediaSections(RootElement parent) {
172 172
        int expandStyle = StoreUtil.getSectionStyle(MediaSection.class, getInput().getClass().getCanonicalName(), false);
173
        MediaSection mediaSection = formFactory.createMediaSection(getConversationHolder(), parent, expandStyle);
173
        MediaSection mediaSection = formFactory.createMediaSection(parent, expandStyle);
174 174

  
175 175
        formFactory.createHorizontalSeparator(parent, SWT.BORDER);
176 176

  
177 177
        addPart(mediaSection);
178 178
    }
179 179

  
180
  
180

  
181 181
	private void createVersionSection(RootElement parent){
182 182
		VersionSection versionSection = formFactory.createVersionSection(parent, ExpandableComposite.NO_TITLE);
183 183
		addPart(versionSection);

Also available in: Unified diff