Project

General

Profile

« Previous | Next » 

Revision a21952bb

Added by Patrick Plitzner almost 7 years ago

ref #6776 do not render specimen editor when conversation not active

View differences:

eu.etaxonomy.taxeditor.editor/fragment.e4xmi
4 4
  <imports xsi:type="commands:Command" xmi:id="_Qz6EMD62EeekvPZafWEv7w" elementId="eu.etaxonomy.taxeditor.bulkeditor.openBulkEditorForIdentifiableEntity"/>
5 5
  <imports xsi:type="commands:Command" xmi:id="_majwMEaQEeeXMc6kSYO7Xg" elementId="org.eclipse.ui.file.save"/>
6 6
  <fragments xsi:type="fragment:StringModelFragment" xmi:id="_gSpRsDQDEeeTNOFVGI4q2w" featurename="descriptors" parentElementId="xpath:/">
7
    <elements xsi:type="basic:PartDescriptor" xmi:id="_gSpRsTQDEeeTNOFVGI4q2w" elementId="eu.etaxonomy.taxeditor.editor.view.derivate.DerivateView" label="%command.label.DERIVATIVE_EDITOR" iconURI="platform:/plugin/eu.etaxonomy.taxeditor.editor/icons/derivate_view-16x16-32.png" tooltip="%command.label.DERIVATIVE_EDITOR" allowMultiple="true" category="Sample Category" closeable="true" dirtyable="true" contributionURI="bundleclass://eu.etaxonomy.taxeditor.editor/eu.etaxonomy.taxeditor.editor.view.derivate.DerivateView">
7
    <elements xsi:type="basic:PartDescriptor" xmi:id="_gSpRsTQDEeeTNOFVGI4q2w" elementId="eu.etaxonomy.taxeditor.editor.view.derivate.DerivateView" label="%command.label.DERIVATIVE_EDITOR" iconURI="platform:/plugin/eu.etaxonomy.taxeditor.editor/icons/derivate_view-16x16-32.png" tooltip="%command.label.DERIVATIVE_EDITOR" allowMultiple="true" category="" closeable="true" dirtyable="true" contributionURI="bundleclass://eu.etaxonomy.taxeditor.editor/eu.etaxonomy.taxeditor.editor.view.derivate.DerivateView">
8 8
      <tags>View</tags>
9 9
      <tags>categoryTag:Sample Category</tags>
10 10
      <handlers xmi:id="_E5l4wDVqEee_b7RlBzTDRw" elementId="eu.etaxonomy.taxeditor.editor.view.derivate.handler.CreateFieldUnitHandler" contributionURI="bundleclass://eu.etaxonomy.taxeditor.editor/eu.etaxonomy.taxeditor.editor.view.derivate.handler.CreateFieldUnitHandler" command="_BjF3ADVqEee_b7RlBzTDRw"/>
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/derivate/DerivateView.java
179 179
    }
180 180

  
181 181
    @PostConstruct
182
    public void createPartControl(Composite parent, EMenuService menuService) {
183
        if (CdmStore.isActive() && conversation == null) {
184
            conversation = CdmStore.createConversation();
185
        }
186
        if (CdmStore.isActive()) {
182
    public void createPartControl(Composite parent, EMenuService menuService, MPart thisPart) {
183
        if (CdmStore.isActive()){
184
            if(conversation == null){
185
                conversation = CdmStore.createConversation();
186
            }
187 187
            cdmEntitySession = CdmStore.getCurrentSessionManager().newSession(this, true);
188 188
        }
189
        else{
190
            return;
191
        }
189 192
        //listen to context changes
190 193
        CdmStore.getContextManager().addContextListener(this);
191 194

  
......
356 359
        if(cdmEntitySession != null) {
357 360
            cdmEntitySession.bind();
358 361
        }
359
        derivateSearchCompositeController.setFocusOnSearchField();
362
        if(derivateSearchCompositeController!=null) {
363
            derivateSearchCompositeController.setFocusOnSearchField();
364
        }
360 365
    }
361 366

  
362 367
    @Override

Also available in: Unified diff