X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fgui%2FAssociatePdbFileWithSeq.java;h=ce75821a3535dea439bf1dcef203e730aea0e8f1;hb=50ff87bdae1829a7a7471ec393142ae659b40a11;hp=08cee2f8a858ce94575b6c7b5bdb59652b5266ec;hpb=0e2054d29bc49351f000d478659dc3c4371b251c;p=jalview.git
diff --git a/src/jalview/gui/AssociatePdbFileWithSeq.java b/src/jalview/gui/AssociatePdbFileWithSeq.java
index 08cee2f..ce75821 100644
--- a/src/jalview/gui/AssociatePdbFileWithSeq.java
+++ b/src/jalview/gui/AssociatePdbFileWithSeq.java
@@ -1,19 +1,21 @@
/*
- * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.1)
+ * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.2)
* Copyright (C) 2014 The Jalview Authors
*
* This file is part of Jalview.
*
* Jalview is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
+ * as published by the Free Software Foundation, either version 3
+ * of the License, or (at your option) any later version.
*
* Jalview is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU General Public License for more details.
*
- * You should have received a copy of the GNU General Public License along with Jalview. If not, see .
+ * You should have received a copy of the GNU General Public License
+ * along with Jalview. If not, see .
* The Jalview Authors are detailed in the 'AUTHORS' file.
*/
package jalview.gui;
@@ -42,21 +44,23 @@ public class AssociatePdbFileWithSeq
SequenceI sequence, boolean prompt)
{
PDBEntry entry = new PDBEntry();
+ MCview.PDBfile pdbfile = null;
try
{
- MCview.PDBfile pdbfile = new MCview.PDBfile(choice, protocol);
-
+ // TODO JAL-674 extract secondary structure and transfer it to associated
+ // sequence
+ pdbfile = new MCview.PDBfile(false, false, choice, protocol);
if (pdbfile.id == null)
{
String reply = null;
if (prompt)
{
- reply = JOptionPane
- .showInternalInputDialog(
- Desktop.desktop,
- MessageManager.getString("label.couldnt_find_pdb_id_in_file"),
- MessageManager.getString("label.no_pdb_id_in_file"), JOptionPane.QUESTION_MESSAGE);
+ reply = JOptionPane.showInternalInputDialog(Desktop.desktop,
+ MessageManager
+ .getString("label.couldnt_find_pdb_id_in_file"),
+ MessageManager.getString("label.no_pdb_id_in_file"),
+ JOptionPane.QUESTION_MESSAGE);
}
if (reply == null)
{