final IFile newFile = ResourcesPlugin.getWorkspace()
.getRoot().getFile(delta.getMovedToPath());
display.asyncExec(new Runnable() {
public void run() {
IWebflowConfig config = ((WebflowEditorInput) getEditorInput())
.getConfig();
config.setResource(newFile);
List<IWebflowConfig> configs = config.getProject()
.getConfigs();
config.getProject().setConfigs(configs);
superSetInput(new WebflowEditorInput(config));
}
});
}
}
else if (delta.getKind() == IResourceDelta.CHANGED) {
if (!isDirty() || isCurrentlySaving) {
Display display = getSite().getShell().getDisplay();
display.asyncExec(new Runnable() {
public void run() {
IWebflowConfig config = ((WebflowEditorInput) getEditorInput())
.getConfig();
setInput(new WebflowEditorInput(config));
getCommandStack().flush();
initializeGraphicalViewer();
if (outlinePage != null) {
outlinePage.initializeOutlineViewer();
}
}
});
}
else if (isDirty()
&& MessageDialog
.openQuestion(
Activator.getDefault().getWorkbench()
.getActiveWorkbenchWindow()
.getShell(),
"File Changed",
"The file has been changed on the file system. Do you want to load the changes?")) {
Display display = getSite().getShell().getDisplay();
display.asyncExec(new Runnable() {
public void run() {
IWebflowConfig config = ((WebflowEditorInput) getEditorInput())
.getConfig();
setInput(new WebflowEditorInput(config));
getCommandStack().flush();
initializeGraphicalViewer();
if (outlinePage != null) {