Project

General

Profile

« Previous | Next » 

Revision 3738a99a

Added by Katja Luther over 3 years ago

ref #9116: layout issues

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/TextWithLabelElement.java
223 223
        text.setTextLimit(limit);
224 224
    }
225 225

  
226
    public void setIndent(int indent){
227
        TableWrapData tableWrapData = (TableWrapData)label.getLayoutData();
228
        tableWrapData.indent = indent;
229

  
230
        label.setLayoutData(tableWrapData);
231
        getLayoutComposite().layout();
232
    }
233

  
226 234
}
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/classification/TaxonNodeDetailElement.java
82 82
	private EntitySelectionElement<TaxonName> selection_reuseExistingName;
83 83
    private EntitySelectionElement<Reference> selection_SecRef;
84 84

  
85
    private OriginalSourceElement sourceSection;
85
    private OriginalSourceElement singleSourceSection;
86 86

  
87 87
    private TextWithLabelElement textTaxonSec;
88 88
	private TextWithLabelElement microReference;
......
107 107
	}
108 108

  
109 109
    public Reference getRef() {
110
        return sourceSection.getEntity().getCitation();
110
        return singleSourceSection.getEntity().getCitation();
111 111
    }
112 112
    public TaxonName getExistingName() {
113 113
        return selection_reuseExistingName.getEntity();
......
251 251

  
252 252

  
253 253

  
254
		sourceSection = formFactory.createOriginalSourceElement(formElement, entity);
254
		singleSourceSection = formFactory.createOriginalSourceElement(formElement, entity);
255 255
		if (isCreateNew() || entity.getSource() == null){
256 256
		    DescriptionElementSource source = DescriptionElementSource.NewPrimarySourceInstance(null, null);
257 257
		    entity.setSource(source);
258
		    sourceSection.setEntity(source);
258
		    singleSourceSection.setEntity(source);
259 259
		}else{
260
		    sourceSection.setEntity(entity.getSource());
260
		    singleSourceSection.setEntity(entity.getSource());
261 261

  
262 262
		}
263 263

  
......
338 338
			complete = !textNewTaxonName.getText().isEmpty();
339 339
		}
340 340

  
341
        if (eventSource == sourceSection) {
341
        if (eventSource == singleSourceSection) {
342 342
//            getEntity().setSource((DescriptionElementSource)sourceSection.getEntity());
343 343

  
344 344
        }else if (eventSource == selection_SecRef) {

Also available in: Unified diff