commit fad2c5803a859552c93d96878992ad8d7b85c7f7
Author: Patrick Plitzner
Date: Fri May 4 16:32:15 2018 +0200
ref #6913 Remove pherogram view
diff --git a/eu.etaxonomy.taxeditor.molecular/src/main/java/eu/etaxonomy/taxeditor/molecular/editor/PherogramViewPart.java b/eu.etaxonomy.taxeditor.molecular/src/main/java/eu/etaxonomy/taxeditor/molecular/editor/PherogramViewPart.java
deleted file mode 100644
index 3a00a1109..000000000
--- a/eu.etaxonomy.taxeditor.molecular/src/main/java/eu/etaxonomy/taxeditor/molecular/editor/PherogramViewPart.java
+++ /dev/null
@@ -1,68 +0,0 @@
-/**
-* 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.molecular.editor;
-
-
-import info.bioinfweb.libralign.pherogram.PherogramFormats.QualityOutputType;
-import info.bioinfweb.libralign.pherogram.model.PherogramComponentModel;
-import info.bioinfweb.libralign.pherogram.view.PherogramView;
-import info.bioinfweb.tic.SWTComponentFactory;
-
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.ui.PartInitException;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.ui.part.ViewPart;
-
-
-
-/**
- * Component that allows to view a pherogram without the distortion due to aligning it to a sequence as in
- * {@link AlignmentEditor}.
- *
- * @author Ben Stöver
- * @date Nov 20, 2014
- */
-public class PherogramViewPart extends ViewPart {
- public static final String ID = "eu.etaxonomy.taxeditor.molecular.PherogramView"; //$NON-NLS-1$
-
- private PherogramView pherogramView = null;
-
-
- public static PherogramViewPart createView(PherogramComponentModel model) throws PartInitException {
- PherogramViewPart view = (PherogramViewPart)PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().showView(ID);
- view.getPherogramView().getTraceCurveView().setModel(model);
- view.getPherogramView().assignSize();
- return view;
- }
-
-
- public PherogramView getPherogramView() {
- if (pherogramView == null) {
- pherogramView = new PherogramView();
- pherogramView.getTraceCurveView().getFormats().setShowProbabilityValues(true);
- pherogramView.getTraceCurveView().setHorizontalScale(1);
- pherogramView.getTraceCurveView().setVerticalScale(100);
- pherogramView.getTraceCurveView().getFormats().setQualityOutputType(QualityOutputType.NONE); //TODO Make this user defined
- pherogramView.getTraceCurveView().getFormats().setShowProbabilityValues(false);
- }
- return pherogramView;
- }
-
-
- @Override
- public void createPartControl(Composite parent) {
- SWTComponentFactory.getInstance().getSWTComponent(getPherogramView(), parent, SWT.NONE);
- getPherogramView().assignSize();
- }
-
-
- @Override
- public void setFocus() {} // nothing to do
-}