Skip to content
Snippets Groups Projects
Commit 109c9f2d authored by Piotr Gawron's avatar Piotr Gawron
Browse files

unused attributes removed

parent f24e181f
No related branches found
No related tags found
1 merge request!704Unit tests for CellDesigner plugin module
......@@ -12,7 +12,7 @@ import lcsb.mapviewer.common.SystemClipboard;
import lcsb.mapviewer.common.exception.InvalidXmlSchemaException;
/**
* CD Plugin action resposible for translating annotation stored in notes to xml
* CD Plugin action responsible for translating annotation stored in notes to xml
* format stored in annotations.
*
* @author Piotr Gawron
......@@ -25,7 +25,7 @@ public class CopyAction extends CopyPasteAbstractAction {
private final Logger logger = Logger.getLogger(CopyAction.class.getName());
/**
* Method that perform annotation of a celldesigner species listed in
* Method that perform annotation of a CellDesigner species listed in
* speciesList.
*
* @param plug
......@@ -44,9 +44,6 @@ public class CopyAction extends CopyPasteAbstractAction {
SystemClipboard sc = new SystemClipboard();
this.setWindow(win);
this.setPlug(plug);
int size = speciesList.size();
PluginSBase chosenElement = null;
......
......@@ -5,7 +5,6 @@ import java.util.Set;
import org.apache.log4j.Logger;
import jp.sbi.celldesigner.MainWindow;
import lcsb.mapviewer.common.Pair;
import lcsb.mapviewer.common.exception.InvalidXmlSchemaException;
import lcsb.mapviewer.converter.annotation.XmlAnnotationParser;
......@@ -32,15 +31,6 @@ public class CopyPasteAbstractAction {
* stored in system clipboard.
*/
private static final String PREFIX = "[MIRIAM]";
/**
* Plugin object which ran this action. This object is used to update
* information about species
*/
private CopyPastePlugin plug;
/**
* Object of CellDesigner main form.
*/
private MainWindow window;
/**
* Serializes {@link MiriamData} into string that will be stored into system
......@@ -148,39 +138,4 @@ public class CopyPasteAbstractAction {
return new Pair<Set<MiriamData>, String>(set, notes);
}
/**
* @return the plug
* @see #plug
*/
protected CopyPastePlugin getPlug() {
return plug;
}
/**
* @param plug
* the plug to set
* @see #plug
*/
protected void setPlug(CopyPastePlugin plug) {
this.plug = plug;
}
/**
* @return the window
* @see #window
*/
protected MainWindow getWindow() {
return window;
}
/**
* @param window
* the window to set
* @see #window
*/
protected void setWindow(MainWindow window) {
this.window = window;
}
}
\ No newline at end of file
......@@ -55,9 +55,6 @@ public class PasteAction extends CopyPasteAbstractAction {
String notes = data.getRight();
Set<MiriamData> set = data.getLeft();
this.setWindow(win);
this.setPlug(plug);
int size = speciesList.size();
for (int i = 0; i < size; i++) {
PluginSBase element = speciesList.get(i);
......
package lcsb.mapviewer.cdplugin;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
import org.junit.runners.Suite.SuiteClasses;
import lcsb.mapviewer.cdplugin.copypaste.AllCopyPasteTests;
@RunWith(Suite.class)
@SuiteClasses({ AllCopyPasteTests.class })
public class AllCdPluginTests {
}
package lcsb.mapviewer.cdplugin.copypaste;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
import org.junit.runners.Suite.SuiteClasses;
@RunWith(Suite.class)
@SuiteClasses({ CopyPasteAbstractActionTest.class })
public class AllCopyPasteTests {
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment