Delete unused class
authorPatrick Plitzner <p.plitzner@bgbm.org>
Tue, 12 Jan 2016 07:22:10 +0000 (08:22 +0100)
committerPatrick Plitzner <p.plitzner@bgbm.org>
Tue, 12 Jan 2016 15:46:08 +0000 (16:46 +0100)
I81n for store plugin

eu.etaxonomy.taxeditor.store/OSGI-INF/l10n/bundle.properties
eu.etaxonomy.taxeditor.store/OSGI-INF/l10n/messages.properties
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/AbstractSplitableViewPart.java [deleted file]

index 965c45900111e23f5913bec064e1eb39b6f3bb9f..242111fb2153704537ac1fe38e297b5239e5cd86 100644 (file)
-#Properties file for eu.etaxonomy.taxeditor.store
-page.name = Taxonomic Editor
-page.name.0 = Description
-page.name.1 = Features
-page.name.2 = Distribution Status
-page.name.3 = Taxonomic
-page.name.4 = Nomenclatural Code
-page.name.5 = Ranks
-page.name.6 = Nomenclatural Status
-page.name.7 = Name Relationships
-page.name.8 = Concept Relationships
-page.name.9 = Type Designation (Specimen)
-page.name.10 = Available Languages
-page.name.11 = Marker
-page.name.12 = Extension Types
-page.name.13 = Type Designation (Name)
-page.name.14 = Named Area Type
-page.name.15 = Matching (Experimental)
-page.name.16 = Taxon Name Matching Strategy
-page.name.17 = Reference Matching Strategy
-page.name.18 = Team or Person Matching Strategy
-page.name.19 = Stage
-page.name.20 = Preservation Method
-page.name.21 = Feature Tree
-page.name.22 = Default Feature Trees
-page.name.23 = Representation
-page.name.24 = Mobot Open Url
-page.name.25 = Type Designations
-view.name = Datasource
-view.name.0 = Progress
-view.name.1 = Message
-view.name.2 = Reporting
-view.name.3 = Supplemental Data
-view.name.4 = Details
-view.name.5 = Use Records
-view.name.6 = Derivative Search
-editor.name = Defined Term Editor
-menu.label = Show View
-command.label = Derivative Search
-command.label.0 = Details
-command.label.1 = Supplemental
-command.label.2 = Datasource
-command.label.3 = Error Log
-command.label.4 = Reporting
-command.label.5 = Switch User
-command.label.6 = Connect
-command.label.7 = New
-command.label.8 = Edit
-command.label.9 = Delete
-command.label.10 = Close Active Connection
-command.label.11 = Update Datamodel
-menu.label.0 = New
-command.label.12 = Vocabulary
-command.label.13 = Defined Term
-command.label.14 = Delete
-extension.name = Popup Menu Commands
-command.name = Connect Datasource
-command.name.0 = Edit Datasource
-command.name.1 = Create Datasource
-command.name.2 = Close Active Connection
-command.name.3 = Update Datasource
-command.name.4 = Show Login Window
-command.name.5 = Open Defined Term Editor
-commandParameter.name = inputType
-commandParameter.name.0 = inputType
-command.name.6 = New Defined Term
-command.name.7 = New Term Vocabulary
-category.name = CDM
-wizard.name = TCS
-wizard.name.0 = Berlin Model
-wizard.name.1 = Endnote
-wizard.name.2 = Excel Normal Explicit Taxa
-wizard.name.3 = ABCD
-wizard.name.4 = SDD
-wizard.name.5 = Specimen CDM Excel
-category.name.0 = CDM
-wizard.name.6 = JAXB
-wizard.name.7 = Berlin Model
-category.name.1 = Excel
-wizard.name.8 = SDD
-wizard.name.9 = DwC-A
-wizard.name.10 = Reference
-wizard.name.11 = Name
-wizard.name.12 = Team
-wizard.name.13 = Person
-wizard.name.14 = Specimen
-wizard.name.15 = Polytomous Key
-category.name.2 = CDM
-wizard.name.16 = Taxon
-wizard.name.17 = Classification
-themeElementCategory.label = Taxonomic Editor
-themeElementCategory.description = Color and font definitions for the EDIT Taxonomic Editor
-colorDefinition.label = List Background
-colorDefinition.label.0 = Global Text Color
-colorDefinition.label.1 = Global Color Composite Background
-colorDefinition.label.2 = Global Color Composite Irrelevant
-colorDefinition.label.3 = Global Text Color Disabled
-colorDefinition.label.4 = Global Background Color Disabled
-themeElementCategory.label.0 = Details View
-themeElementCategory.description.0 = Colors and fonts for the details view
-colorDefinition.label.5 = Entity Element List Background Odd
-colorDefinition.label.6 = Entity Element List Background Even
-themeElementCategory.label.1 = Name Editor
-themeElementCategory.description.1 = Colors and fonts for the name editor
-colorDefinition.label.7 = Container Background
-colorDefinition.label.8 = Container Selected Focus
-colorDefinition.label.9 = Container Selected
-colorDefinition.label.10 = Container Drag Enter
-fontDefinition.label = Accepted Taxon Font
-fontDefinition.label.0 = Synonym Font
-fontDefinition.label.1 = Misapplication Font
-fontDefinition.label.2 = Concept Font
-fontDefinition.label.3 = Default Font
-themeElementCategory.label.2 = Search View
-themeElementCategory.description.2 = Colors and fonts for the search view
-colorDefinition.label.11 = Search View Foreground
-colorDefinition.label.12 = Search View Focus
-fontDefinition.label.4 = Accepted font
-fontDefinition.description = The font that is used for accepted taxa in the search result list.
-fontDefinition.label.5 = Synonym font
-fontDefinition.description.0 = The font that is used for synonyms in the search result list.
-fontDefinition.label.6 = Other font
-fontDefinition.description.1 = The font used by default in the search result list.
-colorDefinition.label.13 = Parse Error
-colorDefinition.label.14 = Disabled Name Editor Field
-colorDefinition.label.15 = Editor On Error
-page.name.26 = Specimens and FieldUnits
-page.name.27 = Media
-page.name.28 = Checklist Editor
-page.name.29 = Editor Profile
-page.name.30 = Language
-command.label.clone = Clone
-command.label.openInSpecimenEditor = Open in Specimen Editor
-page.name.31 = Order of Taxonnodes
-extension.name.0 = Popup Menu Commands
-command.name.8 = Clone Datasource
-command.name.9 = Open Feature Tree Editor Wizard
-command.name.10 = Open Password Wizard
-command.name.11 = Open Distribution Editor Wizard
-command.name.12 = Connect
-wizard.name.18 = CSV
-wizard.name.19 = CSV_NAME
-wizard.name.20 = CSV_PRINT
-activity.description = DELETE permission dependent ui contributions
-activity.name = Delete
-activity.description.0 = UPDATE permission dependent ui contributions
-activity.name.0 = Update
-activity.description.1 = CREATE permission dependent ui contributions
-activity.name.1 = Delete
-activity.description.2 = ROLE_USER_MANAGER dependent ui contributions
-activity.name.2 = UserManagement
-activity.description.3 = ROLE_PROJECT_MANAGER dependent ui contributions
-activity.name.3 = ProjectManagement
-Bundle-Vendor = EDIT
-Bundle-Name = DataStore Bundle
-command.name.13 = delete
-command.name.14 = delete
-page.name.32 = Taxon Navigator
-page.name.33 = Sort of Taxonnodes
-command.name.15 = Open
-view.name.SESSIONS = Sessions
-command.label.SESSION = Sessions
-command.label.CONNECT = Connect
-command.label.RE_CONNECT = Re-Connect
-command.name.CONNECT = Connect
-command.name.RE_CONNECT = Re-Connect
+#Properties file for eu.etaxonomy.taxeditor.store\r
+page.name = Taxonomic Editor\r
+page.name.0 = Description\r
+page.name.1 = Features\r
+page.name.2 = Distribution Status\r
+page.name.3 = Taxonomic\r
+page.name.4 = Nomenclatural Code\r
+page.name.5 = Ranks\r
+page.name.6 = Nomenclatural Status\r
+page.name.7 = Name Relationships\r
+page.name.8 = Concept Relationships\r
+page.name.9 = Type Designation (Specimen)\r
+page.name.10 = Available Languages\r
+page.name.11 = Marker\r
+page.name.12 = Extension Types\r
+page.name.13 = Type Designation (Name)\r
+page.name.14 = Named Area Type\r
+page.name.15 = Matching (Experimental)\r
+page.name.16 = Taxon Name Matching Strategy\r
+page.name.17 = Reference Matching Strategy\r
+page.name.18 = Team or Person Matching Strategy\r
+page.name.19 = Stage\r
+page.name.20 = Preservation Method\r
+page.name.21 = Feature Tree\r
+page.name.22 = Default Feature Trees\r
+page.name.23 = Representation\r
+page.name.24 = Mobot Open Url\r
+page.name.25 = Type Designations\r
+view.name = Datasource\r
+view.name.0 = Progress\r
+view.name.1 = Message\r
+view.name.2 = Reporting\r
+view.name.3 = Supplemental Data\r
+view.name.4 = Details\r
+view.name.5 = Use Records\r
+view.name.6 = Derivative Search\r
+editor.name = Defined Term Editor\r
+menu.label = Show View\r
+command.label = Derivative Search\r
+command.label.0 = Details\r
+command.label.1 = Supplemental\r
+command.label.2 = Datasource\r
+command.label.3 = Error Log\r
+command.label.4 = Reporting\r
+command.label.5 = Switch User\r
+command.label.6 = Connect\r
+command.label.7 = New\r
+command.label.8 = Edit\r
+command.label.9 = Delete\r
+command.label.10 = Close Active Connection\r
+command.label.11 = Update Datamodel\r
+menu.label.0 = New\r
+command.label.12 = Vocabulary\r
+command.label.13 = Defined Term\r
+command.label.14 = Delete\r
+extension.name = Popup Menu Commands\r
+command.name = Connect Datasource\r
+command.name.0 = Edit Datasource\r
+command.name.1 = Create Datasource\r
+command.name.2 = Close Active Connection\r
+command.name.3 = Update Datasource\r
+command.name.4 = Show Login Window\r
+command.name.5 = Open Defined Term Editor\r
+commandParameter.name = inputType\r
+commandParameter.name.0 = inputType\r
+command.name.6 = New Defined Term\r
+command.name.7 = New Term Vocabulary\r
+category.name = CDM\r
+wizard.name = TCS\r
+wizard.name.0 = Berlin Model\r
+wizard.name.1 = Endnote\r
+wizard.name.2 = Excel Normal Explicit Taxa\r
+wizard.name.3 = ABCD\r
+wizard.name.4 = SDD\r
+wizard.name.5 = Specimen CDM Excel\r
+category.name.0 = CDM\r
+wizard.name.6 = JAXB\r
+wizard.name.7 = Berlin Model\r
+category.name.1 = Excel\r
+wizard.name.8 = SDD\r
+wizard.name.9 = DwC-A\r
+wizard.name.10 = Reference\r
+wizard.name.11 = Name\r
+wizard.name.12 = Team\r
+wizard.name.13 = Person\r
+wizard.name.14 = Specimen\r
+wizard.name.15 = Polytomous Key\r
+category.name.2 = CDM\r
+wizard.name.16 = Taxon\r
+wizard.name.17 = Classification\r
+themeElementCategory.label = Taxonomic Editor\r
+themeElementCategory.description = Color and font definitions for the EDIT Taxonomic Editor\r
+colorDefinition.label = List Background\r
+colorDefinition.label.0 = Global Text Color\r
+colorDefinition.label.1 = Global Color Composite Background\r
+colorDefinition.label.2 = Global Color Composite Irrelevant\r
+colorDefinition.label.3 = Global Text Color Disabled\r
+colorDefinition.label.4 = Global Background Color Disabled\r
+themeElementCategory.label.0 = Details View\r
+themeElementCategory.description.0 = Colors and fonts for the details view\r
+colorDefinition.label.5 = Entity Element List Background Odd\r
+colorDefinition.label.6 = Entity Element List Background Even\r
+themeElementCategory.label.1 = Name Editor\r
+themeElementCategory.description.1 = Colors and fonts for the name editor\r
+colorDefinition.label.7 = Container Background\r
+colorDefinition.label.8 = Container Selected Focus\r
+colorDefinition.label.9 = Container Selected\r
+colorDefinition.label.10 = Container Drag Enter\r
+fontDefinition.label = Accepted Taxon Font\r
+fontDefinition.label.0 = Synonym Font\r
+fontDefinition.label.1 = Misapplication Font\r
+fontDefinition.label.2 = Concept Font\r
+fontDefinition.label.3 = Default Font\r
+themeElementCategory.label.2 = Search View\r
+themeElementCategory.description.2 = Colors and fonts for the search view\r
+colorDefinition.label.11 = Search View Foreground\r
+colorDefinition.label.12 = Search View Focus\r
+fontDefinition.label.4 = Accepted font\r
+fontDefinition.description = The font that is used for accepted taxa in the search result list.\r
+fontDefinition.label.5 = Synonym font\r
+fontDefinition.description.0 = The font that is used for synonyms in the search result list.\r
+fontDefinition.label.6 = Other font\r
+fontDefinition.description.1 = The font used by default in the search result list.\r
+colorDefinition.label.13 = Parse Error\r
+colorDefinition.label.14 = Disabled Name Editor Field\r
+colorDefinition.label.15 = Editor On Error\r
+page.name.26 = Specimens and FieldUnits\r
+page.name.27 = Media\r
+page.name.28 = Checklist Editor\r
+page.name.29 = Editor Profile\r
+page.name.30 = Language\r
+command.label.clone = Clone\r
+command.label.openInSpecimenEditor = Open in Specimen Editor\r
+page.name.31 = Order of Taxonnodes\r
+extension.name.0 = Popup Menu Commands\r
+command.name.8 = Clone Datasource\r
+command.name.9 = Open Feature Tree Editor Wizard\r
+command.name.10 = Open Password Wizard\r
+command.name.11 = Open Distribution Editor Wizard\r
+command.name.12 = Connect\r
+wizard.name.18 = CSV\r
+wizard.name.19 = CSV_NAME\r
+wizard.name.20 = CSV_PRINT\r
+activity.description = DELETE permission dependent ui contributions\r
+activity.name = Delete\r
+activity.description.0 = UPDATE permission dependent ui contributions\r
+activity.name.0 = Update\r
+activity.description.1 = CREATE permission dependent ui contributions\r
+activity.name.1 = Delete\r
+activity.description.2 = ROLE_USER_MANAGER dependent ui contributions\r
+activity.name.2 = UserManagement\r
+activity.description.3 = ROLE_PROJECT_MANAGER dependent ui contributions\r
+activity.name.3 = ProjectManagement\r
+Bundle-Vendor = EDIT\r
+Bundle-Name = DataStore Bundle\r
+command.name.13 = delete\r
+command.name.14 = delete\r
+page.name.32 = Taxon Navigator\r
+page.name.33 = Sort of Taxonnodes\r
+command.name.15 = Open\r
+view.name.SESSIONS = Sessions\r
+command.label.SESSION = Sessions\r
+command.label.CONNECT = Connect\r
+command.label.RE_CONNECT = Re-Connect\r
+command.name.CONNECT = Connect\r
+command.name.RE_CONNECT = Re-Connect\r
 command.name.OPEN_CLASSIFICATION_WIZARD = Open Classification Wizard
\ No newline at end of file
index 9d61d411c32f79aa652c742b3f141b8c4ddeebe9..ad278768865dd660e7124d0b37f01fea95807d89 100644 (file)
@@ -1,39 +1,39 @@
-CdmDataSourceViewPart_1=Loading datasources
-CdmDataSourceViewPart_10=Server
-CdmDataSourceViewPart_11=Name
-CdmDataSourceViewPart_12=Connected
-CdmDataSourceViewPart_2=Notes
-CdmDataSourceViewPart_3=Compatible
-CdmDataSourceViewPart_4=CDM Version
-CdmDataSourceViewPart_5=Created
-CdmDataSourceViewPart_6=Nomenclatural Code
-CdmDataSourceViewPart_7=Database
-CdmDataSourceViewPart_8=Type
-CdmDataSourceViewPart_9=Up
-LanguageEditorPreferencePage_ChooseDefaultLanguage=Please choose your default language for the editor: 
-LanguageEditorPreferencePage_EditorHasToRestart=The application has to be restarted, in order to complete the language switch.\nDo you want to restart now?
-LanguageEditorPreferencePage_PleaseRestart=Please Restart
-LanguageEditorPreferencePage_RestartRequired=After changing the default language, a restart is required,\nin order for the new settings to take effect.
-OrderPreferencePage_NewNavigatorWindowRequired=After changing the order of the taxon nodes, closing and reopen of the taxon navigator is required.
-OrderPreferencePage_PleaseReopenNavigator=Please close and reopen the taxon navigator.
-UriWithLabelElement_URL_NOT_SAVED=URI won't be saved\! 
-UriWithLabelElement_COULD_NOT_OPEN_BROWSER=Could not open external browser. URI is invalid.
-UriWithLabelElement_INVALID_URL=Invalid URI
-UriWithLabelElement_OPEN_EXTERNAL_BROWSER=Open in external browser
-
-ChangeConnectionHandler_ALREADY_CONNECTING=Already connecting
-ChangeConnectionHandler_CONFIRM_DATASOURCE=Confirm Datasource Connection
-ChangeConnectionHandler_CURRENTLY_CONNECTING_ALREADY=You are currently connecting to a different datasource already.
-ChangeConnectionHandler_DATASOURCE_NOT_AVAILABLE=Chosen datasource is not available
-ChangeConnectionHandler_REALLY_WANT_TO_CONNECT=Do you really want to connect to this datasource?\n\n
-ChangeConnectionHandler_NOT_AVAILABLE_REASONS=This could mean that either the database server is not running or the machine is not reachable.\n\n Please also make sure that you are connected to the network when trying to connect to a remote datasource.
-
-LoginDialog_CANCEL_MESSAGE=Aborting the login procedure will close the database.
-LoginDialog_LOGIN=Login
-LoginDialog_PASSWORD=Password
-LoginDialog_REALLY_CANCEL=Do you really want to cancel?
-LoginDialog_USER_LOGIN=User Login
-LoginDialog_USER_NAME=Username
-
-CdmViewerContextMenu_OPEN=Open (%s)
-CdmViewerContextMenu_OPEN_IN=Open in...
+CdmDataSourceViewPart_1=Loading datasources\r
+CdmDataSourceViewPart_10=Server\r
+CdmDataSourceViewPart_11=Name\r
+CdmDataSourceViewPart_12=Connected\r
+CdmDataSourceViewPart_2=Notes\r
+CdmDataSourceViewPart_3=Compatible\r
+CdmDataSourceViewPart_4=CDM Version\r
+CdmDataSourceViewPart_5=Created\r
+CdmDataSourceViewPart_6=Nomenclatural Code\r
+CdmDataSourceViewPart_7=Database\r
+CdmDataSourceViewPart_8=Type\r
+CdmDataSourceViewPart_9=Up\r
+LanguageEditorPreferencePage_ChooseDefaultLanguage=Please choose your default language for the editor: \r
+LanguageEditorPreferencePage_EditorHasToRestart=The application has to be restarted, in order to complete the language switch.\nDo you want to restart now?\r
+LanguageEditorPreferencePage_PleaseRestart=Please Restart\r
+LanguageEditorPreferencePage_RestartRequired=After changing the default language, a restart is required,\nin order for the new settings to take effect.\r
+OrderPreferencePage_NewNavigatorWindowRequired=After changing the order of the taxon nodes, closing and reopen of the taxon navigator is required.\r
+OrderPreferencePage_PleaseReopenNavigator=Please close and reopen the taxon navigator.\r
+UriWithLabelElement_URL_NOT_SAVED=URI won't be saved\! \r
+UriWithLabelElement_COULD_NOT_OPEN_BROWSER=Could not open external browser. URI is invalid.\r
+UriWithLabelElement_INVALID_URL=Invalid URI\r
+UriWithLabelElement_OPEN_EXTERNAL_BROWSER=Open in external browser\r
+\r
+ChangeConnectionHandler_ALREADY_CONNECTING=Already connecting\r
+ChangeConnectionHandler_CONFIRM_DATASOURCE=Confirm Datasource Connection\r
+ChangeConnectionHandler_CURRENTLY_CONNECTING_ALREADY=You are currently connecting to a different datasource already.\r
+ChangeConnectionHandler_DATASOURCE_NOT_AVAILABLE=Chosen datasource is not available\r
+ChangeConnectionHandler_REALLY_WANT_TO_CONNECT=Do you really want to connect to this datasource?\n\n\r
+ChangeConnectionHandler_NOT_AVAILABLE_REASONS=This could mean that either the database server is not running or the machine is not reachable.\n\n Please also make sure that you are connected to the network when trying to connect to a remote datasource.\r
+\r
+LoginDialog_CANCEL_MESSAGE=Aborting the login procedure will close the database.\r
+LoginDialog_LOGIN=Login\r
+LoginDialog_PASSWORD=Password\r
+LoginDialog_REALLY_CANCEL=Do you really want to cancel?\r
+LoginDialog_USER_LOGIN=User Login\r
+LoginDialog_USER_NAME=Username\r
+\r
+CdmViewerContextMenu_OPEN=Open (%s)\r
+CdmViewerContextMenu_OPEN_IN=Open in...\r
diff --git a/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/AbstractSplitableViewPart.java b/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/AbstractSplitableViewPart.java
deleted file mode 100644 (file)
index d1f5293..0000000
+++ /dev/null
@@ -1,321 +0,0 @@
-// $Id$
-/**
-* Copyright (C) 2007 EDIT
-* European Distributed Institute of Taxonomy 
-* http://www.e-taxonomy.eu
-* 
-* The contents of this file are subject to the Mozilla Public License Version 1.1
-* See LICENSE.TXT at the top of this package for the full license terms.
-*/
-
-package eu.etaxonomy.taxeditor.view;
-
-import org.eclipse.jface.dialogs.IDialogSettings;
-import org.eclipse.jface.viewers.Viewer;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.custom.SashForm;
-import org.eclipse.swt.events.ControlEvent;
-import org.eclipse.swt.events.ControlListener;
-import org.eclipse.swt.graphics.Point;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Label;
-import org.eclipse.ui.ISelectionListener;
-import org.eclipse.ui.ISelectionService;
-import org.eclipse.ui.part.PageBook;
-import org.eclipse.ui.part.ViewPart;
-
-import eu.etaxonomy.taxeditor.store.internal.TaxeditorStorePlugin;
-
-/**
- * <p>Abstract AbstractSplitableViewPart class.</p>
- *
- * @author n.hoffmann
- * @created Feb 12, 2010
- * @version 1.0
- */
-public abstract class AbstractSplitableViewPart extends ViewPart implements ISelectionListener{
-       
-       static final int VIEW_ORIENTATION_VERTICAL = 0;
-       static final int VIEW_ORIENTATION_HORIZONTAL = 1;
-       static final int VIEW_ORIENTATION_SINGLE = 2;
-       static final int VIEW_ORIENTATION_AUTOMATIC = 3;
-
-       private static final int PAGE_EMPTY = 0;
-    private static final int PAGE_VIEWER = 1;
-       
-       private final IDialogSettings dialogSettings;
-       
-       private SashForm detailSplitter;
-
-       private Composite parent;
-
-       private PageBook pagebook;
-
-       private int orientation;
-
-       private int currentOrientation;
-//
-       private boolean showViewer2;
-
-       private Viewer viewer1;
-       
-       private Viewer viewer2;
-       
-       private Label emptySelectionLabel;
-
-       private ISelectionService selectionService;
-
-       
-       /**
-        * <p>Constructor for AbstractSplitableViewPart.</p>
-        */
-       public AbstractSplitableViewPart() {
-               super();
-               
-               dialogSettings = TaxeditorStorePlugin.getDefault().getDialogSettings();
-               
-       }
-       
-       /* (non-Javadoc)
-        * @see org.eclipse.ui.part.WorkbenchPart#createPartControl(org.eclipse.swt.widgets.Composite)
-        */
-       /** {@inheritDoc} */
-       @Override
-       public void createPartControl(Composite parent) {       
-               selectionService = getSite().getWorkbenchWindow().getSelectionService();
-               selectionService.addSelectionListener(this);
-               selectionService.addPostSelectionListener(this);
-               
-               
-               this.parent = parent;
-               addResizeListener(parent);
-               pagebook = new PageBook(parent, SWT.NULL);
-               
-               // Page 1: Viewers
-               createDetailSplitter(pagebook);
-               viewer1 = createViewer1(detailSplitter);
-               viewer2 = createViewer2(detailSplitter);
-               
-               // Page 2: Nothing selected
-        emptySelectionLabel = new Label(pagebook, SWT.TOP + SWT.LEFT + SWT.WRAP);
-        emptySelectionLabel.setText("Current selection does not support this view"); //
-               
-               showPage(PAGE_EMPTY);
-               
-               initOrientation();
-               
-               // FIXME since this class is not used at the moment we will not have to fix this soon
-               // it might also become irrelevant in future uses
-               // set the selection if there is an open editor
-//             if(EditorUtil.getActiveMultiPageTaxonEditor() != null){
-//                     selectionChanged(EditorUtil.getActiveMultiPageTaxonEditor(), EditorUtil.getCurrentSelection());
-//             }
-       }
-       
-    private void initOrientation() {
-
-        try {
-            orientation = dialogSettings.getInt(getDialogstoreVieworientationKey());
-
-            if ((orientation < 0) || (orientation > 3)) {
-               orientation = VIEW_ORIENTATION_AUTOMATIC;
-            }
-        } catch (NumberFormatException e) {
-               orientation = VIEW_ORIENTATION_AUTOMATIC;
-        }
-
-        // force the update
-        currentOrientation = -1;
-        setOrientation(orientation);
-    }
-       
-    /**
-     * <p>getDialogstoreVieworientationKey</p>
-     *
-     * @return a {@link java.lang.String} object.
-     */
-    protected abstract String getDialogstoreVieworientationKey();
-
-    /**
-     * <p>showEmptyPage</p>
-     */
-    public void showEmptyPage(){
-       showPage(PAGE_EMPTY);
-    }
-    
-    /**
-     * <p>showViewer</p>
-     */
-    public void showViewer(){
-       showPage(PAGE_VIEWER);
-    }
-    
-       private void showPage(int page) {
-        if (page == PAGE_EMPTY) {
-            pagebook.showPage(emptySelectionLabel);
-        } else {
-            pagebook.showPage(detailSplitter);
-        }
-    }
-
-       private void addResizeListener(Composite parent) {
-               parent.addControlListener(new ControlListener() {
-                       public void controlMoved(ControlEvent e) {
-                       }
-                       public void controlResized(ControlEvent e) {
-                               computeOrientation();
-                       }
-               });
-       }
-       
-       void computeOrientation() {
-               saveSplitterRatio();
-               dialogSettings.put(getDialogstoreVieworientationKey(), orientation);
-               if (orientation != VIEW_ORIENTATION_AUTOMATIC) {
-                       setOrientation(orientation);
-               }
-               else {
-                       if (orientation == VIEW_ORIENTATION_SINGLE)
-                               return;
-                       Point size= parent.getSize();
-                       if (size.x != 0 && size.y != 0) {
-                               if (size.x > size.y)
-                                       setOrientation(VIEW_ORIENTATION_HORIZONTAL);
-                               else
-                                       setOrientation(VIEW_ORIENTATION_VERTICAL);
-                       }
-               }
-       }
-       
-       private void saveSplitterRatio() {
-               if (detailSplitter != null && ! detailSplitter.isDisposed()) {
-               int[] weigths = detailSplitter.getWeights();
-               int ratio = (weigths[0] * 1000) / (weigths[0] + weigths[1]);
-                       String key= getDialogStoreRatioKey() + currentOrientation;
-               dialogSettings.put(key, ratio);
-               }
-       }
-       
-    /**
-     * <p>getDialogStoreRatioKey</p>
-     *
-     * @return a {@link java.lang.String} object.
-     */
-    protected abstract String getDialogStoreRatioKey();
-
-       void setOrientation(int orientation) {
-        if (currentOrientation != orientation) {
-            if ((getViewer1() != null) 
-               && !getViewer1().getControl().isDisposed() 
-               && (detailSplitter != null) 
-               && !detailSplitter.isDisposed()) {
-                
-               if (orientation == VIEW_ORIENTATION_SINGLE) {
-                    setShowViewer2(false);
-                } else {
-                    if (currentOrientation == VIEW_ORIENTATION_SINGLE) {
-                       setShowViewer2(true);
-                    }
-                    boolean horizontal = orientation == VIEW_ORIENTATION_HORIZONTAL;
-                    detailSplitter.setOrientation(horizontal ? SWT.HORIZONTAL
-                                                                     : SWT.VERTICAL);
-                }
-
-                detailSplitter.layout();
-            }
-
-            updateCheckedState();
-
-            currentOrientation = orientation;
-
-                       restoreSplitterRatio();
-        }
-    }
-    
-       /**
-        * @param show
-        */
-       private void setShowViewer2(boolean show) {
-               showViewer2 = show;
-               showOrHideViewer2();            
-       }
-
-       /**
-        * 
-        */
-       private void showOrHideViewer2() {
-        if (showViewer2) {
-               detailSplitter.setMaximizedControl(null);
-        } else {
-               detailSplitter.setMaximizedControl(getViewer1().getControl());
-        }
-       }
-
-       private void restoreSplitterRatio() {
-               String ratio= dialogSettings.get(getDialogStoreRatioKey() + currentOrientation);
-               if (ratio == null)
-                       return;
-               int intRatio= Integer.parseInt(ratio);
-               detailSplitter.setWeights(new int[] {intRatio, 1000 - intRatio});
-       }
-    
-       private void updateCheckedState() {
-//             for (int i= 0; i < fToggleOrientationActions.length; i++) {
-//                     fToggleOrientationActions[i].setChecked(fOrientation == fToggleOrientationActions[i].getOrientation());
-//             }
-       }
-       
-       /**
-        * <p>createViewer1</p>
-        *
-        * @param parent a {@link org.eclipse.swt.widgets.Composite} object.
-        * @return a {@link org.eclipse.jface.viewers.Viewer} object.
-        */
-       protected abstract Viewer createViewer1(Composite parent);
-       
-
-       /**
-        * <p>createViewer2</p>
-        *
-        * @param parent a {@link org.eclipse.swt.widgets.Composite} object.
-        * @return a {@link org.eclipse.jface.viewers.Viewer} object.
-        */
-       protected abstract Viewer createViewer2(Composite parent);
-       
-
-       /**
-        * @param pagebook2
-        */
-       private void createDetailSplitter(Composite parent) {
-               detailSplitter = new SashForm(parent, SWT.HORIZONTAL);
-       }
-       
-       /* (non-Javadoc)
-        * @see org.eclipse.ui.part.WorkbenchPart#dispose()
-        */
-       /** {@inheritDoc} */
-       @Override
-       public void dispose() {
-               selectionService.removeSelectionListener(this);
-               selectionService.removePostSelectionListener(this);
-               super.dispose();
-       }
-
-       /**
-        * <p>Getter for the field <code>viewer1</code>.</p>
-        *
-        * @return a {@link org.eclipse.jface.viewers.Viewer} object.
-        */
-       protected Viewer getViewer1() {
-               return viewer1;
-       }
-
-       /**
-        * <p>Getter for the field <code>viewer2</code>.</p>
-        *
-        * @return a {@link org.eclipse.jface.viewers.Viewer} object.
-        */
-       protected Viewer getViewer2() {
-               return viewer2;
-       }
-}