Project

General

Profile

Revision 1f351807

ID1f351807ab1d6b59ff681cb002e65c42b16f11b7
Parent 332bd217
Child e4aadd07

Added by Katja Luther 9 months ago

ref #7793: update perspective when changing db

View differences:

eu.etaxonomy.taxeditor.application/src/main/java/eu/etaxonomy/taxeditor/LifeCycleManager.java
145 145
            IPerspectiveRegistry registry = workbench.getPerspectiveRegistry();
146 146
            IWorkbenchPage page = window.getActivePage();
147 147
            page.setPerspective(registry.findPerspectiveWithId("eu.etaxonomy.taxeditor.perspective.checklistperspective"));
148
        }else{
149
            IWorkbench workbench = PlatformUI.getWorkbench();
150
            IWorkbenchWindow window = workbench
151
                    .getActiveWorkbenchWindow();
152

  
153
            IPerspectiveRegistry registry = workbench.getPerspectiveRegistry();
154
            IWorkbenchPage page = window.getActivePage();
155
            page.setPerspective(registry.findPerspectiveWithId("eu.etaxonomy.taxeditor.application.perspective.taxonomic"));
148 156
        }
149 157
        PreferencesUtil.checkNomenclaturalCode();
150 158
    }

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)