Project

General

Profile

Revision 3720ed7b

ID3720ed7b0c97d22987d0a6ef76194d0c8e7ae545
Parent 1d255789
Child 5893c96f

Added by Andreas Müller 7 months ago

cleanup

View differences:

eu.etaxonomy.taxeditor.application/src/main/java/eu/etaxonomy/taxeditor/ApplicationWorkbenchAdvisor.java
16 16
import eu.etaxonomy.taxeditor.preference.PreferencesUtil;
17 17
import eu.etaxonomy.taxeditor.store.CdmAuthenticationException;
18 18

  
19

  
20

  
21 19
/**
22 20
 * <p>ApplicationWorkbenchAdvisor class.</p>
23 21
 *
......
28 26

  
29 27
	private CdmStatusHandler cdmStatusHandler;
30 28

  
31
	/*
32
	 * (non-Javadoc)
33
	 * @see org.eclipse.ui.application.WorkbenchAdvisor#createWorkbenchWindowAdvisor(org.eclipse.ui.application.IWorkbenchWindowConfigurer)
34
	 */
35
	/** {@inheritDoc} */
36 29
	@Override
37 30
    public WorkbenchWindowAdvisor createWorkbenchWindowAdvisor(
38 31
			IWorkbenchWindowConfigurer configurer) {
39 32
		return new ApplicationWorkbenchWindowAdvisor(configurer);
40 33
	}
41 34

  
42

  
43
	/*
44
	 * (non-Javadoc)
45
	 * @see org.eclipse.ui.application.WorkbenchAdvisor#getInitialWindowPerspectiveId()
46
	 */
47 35
	/**
48 36
	 * <p>getInitialWindowPerspectiveId</p>
49 37
	 *
......
58 46
		return "eu.etaxonomy.taxeditor.application.perspective.taxonomic";
59 47
	}
60 48

  
61
	/*
62
	 * (non-Javadoc)
63
	 * @see org.eclipse.ui.application.WorkbenchAdvisor#initialize(org.eclipse.ui.application.IWorkbenchConfigurer)
64
	 */
65
	/** {@inheritDoc} */
66 49
	@Override
67 50
    public void initialize(IWorkbenchConfigurer configurer) {
68 51
		super.initialize(configurer);
......
72 55
		configurer.setSaveAndRestore(true);
73 56
	}
74 57

  
75

  
76
	/* (non-Javadoc)
77
	 * @see org.eclipse.ui.application.WorkbenchAdvisor#getWorkbenchErrorHandler()
78
	 */
79 58
	@Override
80 59
	public synchronized AbstractStatusHandler getWorkbenchErrorHandler() {
81 60
	    if (cdmStatusHandler == null) {
......
84 63
	    return cdmStatusHandler;
85 64
	}
86 65

  
87

  
88 66
	/**
89 67
	 * Custom status handler for handling scenarios which are
90 68
	 * not handled by the editor (e.g. runtime exceptions).
......
94 72
	 * which displays a custom built error dialog.
95 73
	 *
96 74
	 * @author cmathew
97
	 *
98 75
	 */
99 76
	class CdmStatusHandler extends AbstractStatusHandler {
100 77

  
101 78
	    private Throwable previousT;
102
		/* (non-Javadoc)
103
		 * @see org.eclipse.ui.statushandlers.AbstractStatusHandler#handle(org.eclipse.ui.statushandlers.StatusAdapter, int)
104
		 */
79

  
105 80
		@Override
106 81
		public void handle(StatusAdapter statusAdapter, int style)
107 82
		{
......
187 162
		    return false;
188 163
		}
189 164
	}
190

  
191

  
192

  
193 165
}

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)