private void setDebuging(final boolean state){
Workbench.getInstance().getDisplay().syncExec(new Runnable() {
public void run() {
MaudeDepuracion depuracion = (MaudeDepuracion) PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().findView(Messages.getString("MaudeWorkstationGUIPlugin.MAUDE_DEPURACION")); //$NON-NLS-1$
if(depuracion==null){
try {
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().showView(Messages.getString("MaudeWorkstationGUIPlugin.MAUDE_DEPURACION")); //$NON-NLS-1$
} catch (PartInitException e) {
e.printStackTrace();
}
depuracion = (MaudeDepuracion) PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().findView(Messages.getString("MaudeWorkstationGUIPlugin.MAUDE_DEPURACION")); //$NON-NLS-1$
}
else{
try {
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().showView(Messages.getString("MaudeWorkstationGUIPlugin.MAUDE_DEPURACION")); //$NON-NLS-1$
} catch (PartInitException e) {
e.printStackTrace();
}
}
if(state)depuracion.enable();
else depuracion.disable();
}});
}