getSite().getPage().addSelectionListener(this);
FileEditorInput fileInput = (FileEditorInput) input;
this.definitionFile = fileInput.getFile();
IPath path = fileInput.getPath().removeLastSegments(1);
path = path.removeFirstSegments(path.segmentCount() - 1);
setPartName(path.lastSegment());
definition = ProcessCache.getProcessDefinition(definitionFile);
definition.setDirty(false);
ResourcesPlugin.getWorkspace().addResourceChangeListener(this, IResourceChangeEvent.POST_CHANGE);
definition.addPropertyChangeListener(this);
}