import eu.etaxonomy.taxeditor.preference.PreferencesUtil;
import eu.etaxonomy.taxeditor.store.CdmAuthenticationException;
-
-
/**
* <p>ApplicationWorkbenchAdvisor class.</p>
*
private CdmStatusHandler cdmStatusHandler;
- /*
- * (non-Javadoc)
- * @see org.eclipse.ui.application.WorkbenchAdvisor#createWorkbenchWindowAdvisor(org.eclipse.ui.application.IWorkbenchWindowConfigurer)
- */
- /** {@inheritDoc} */
@Override
public WorkbenchWindowAdvisor createWorkbenchWindowAdvisor(
IWorkbenchWindowConfigurer configurer) {
return new ApplicationWorkbenchWindowAdvisor(configurer);
}
-
- /*
- * (non-Javadoc)
- * @see org.eclipse.ui.application.WorkbenchAdvisor#getInitialWindowPerspectiveId()
- */
/**
* <p>getInitialWindowPerspectiveId</p>
*
return "eu.etaxonomy.taxeditor.application.perspective.taxonomic";
}
- /*
- * (non-Javadoc)
- * @see org.eclipse.ui.application.WorkbenchAdvisor#initialize(org.eclipse.ui.application.IWorkbenchConfigurer)
- */
- /** {@inheritDoc} */
@Override
public void initialize(IWorkbenchConfigurer configurer) {
super.initialize(configurer);
configurer.setSaveAndRestore(true);
}
-
- /* (non-Javadoc)
- * @see org.eclipse.ui.application.WorkbenchAdvisor#getWorkbenchErrorHandler()
- */
@Override
public synchronized AbstractStatusHandler getWorkbenchErrorHandler() {
if (cdmStatusHandler == null) {
return cdmStatusHandler;
}
-
/**
* Custom status handler for handling scenarios which are
* not handled by the editor (e.g. runtime exceptions).
* which displays a custom built error dialog.
*
* @author cmathew
- *
*/
class CdmStatusHandler extends AbstractStatusHandler {
private Throwable previousT;
- /* (non-Javadoc)
- * @see org.eclipse.ui.statushandlers.AbstractStatusHandler#handle(org.eclipse.ui.statushandlers.StatusAdapter, int)
- */
+
@Override
public void handle(StatusAdapter statusAdapter, int style)
{
return false;
}
}
-
-
-
}