SCViewer/com.itjw.txviewer.ui/src/com/itjw/txviewer/ui/TxEditorInput.java

33 lines
673 B
Java
Raw Normal View History

2015-01-01 23:17:32 +01:00
package com.itjw.txviewer.ui;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import org.eclipse.core.resources.IFile;
import org.eclipse.ui.IMemento;
import org.eclipse.ui.part.FileEditorInput;
public class TxEditorInput extends FileEditorInput {
private ArrayList<String> streamNames;
public TxEditorInput(IFile file) {
super(file);
streamNames=new ArrayList<String>();
}
public String getFactoryId(){
return TxEditorInputFactory.getFactoryId();
}
public void saveState(IMemento memento) {
TxEditorInputFactory.saveState(memento, this);
}
public List<String> getStreamNames() {
return streamNames;
}
}