public void addEditor(IEditor editor)
{
if (editor != null)
{
frame = new DefaultEditorFrame((EditorVC) editor, new EditorOperations((IEditor) editor), new EditorData(),new PetriNetResourceEditor((EditorVC) editor));
Point position = getNextEditorPosition();
frame.setAlignmentX((float) position.getX());
frame.setAlignmentY((float) position.getY());
frame.addInternalFrameListener(this);