IProject project = ((IFileEditorInput)input).getFile().getProject();
try {
if (project.hasNature(WGADesignerPlugin.NATURE_WGA_RUNTIME)) {
_wgaRuntime = (WGARuntime) project.getNature(WGADesignerPlugin.NATURE_WGA_RUNTIME);
setPartName("Runtime (" + _wgaRuntime.getName() + ")");
_model = new WGARuntimeConfigurationModel();
try {
_model.init(_wgaRuntime);
} catch (IncompatibleWGAConfigVersion e) {
MessageDialog.openWarning(getSite().getShell(), "Warning", "The configured WGA distribution seams to be incompatible. Please ensure that your are using the latest version of WGADevelopmentStudio. Some config features may not work properly.");
WGADesignerPlugin.getDefault().logError(e.getMessage(), e);