Project

General

Profile

« Previous | Next » 

Revision 3be6ef3e

Added by Niels Hoffmann over 13 years ago

performed javacscript:fix and worked on documentation

View differences:

taxeditor-store/src/main/java/eu/etaxonomy/taxeditor/store/ContextManager.java
28 28

  
29 29
/**
30 30
 * The context manager mediates context start/stop and workbench shutdowns to all registered listeners.
31
 * 
31
 *
32 32
 * @author n.hoffmann
33 33
 * @created Sep 30, 2010
34 34
 * @version 1.0
......
39 39

  
40 40
	private IMemento memento;
41 41
		
42
	/**
43
	 * <p>Constructor for ContextManager.</p>
44
	 */
42 45
	protected ContextManager() {
43 46
		PlatformUI.getWorkbench().addWorkbenchListener(this);
44 47
	}
45 48
	
49
	/**
50
	 * <p>addContextListener</p>
51
	 *
52
	 * @param listener a {@link eu.etaxonomy.taxeditor.model.IContextListener} object.
53
	 */
46 54
	public void addContextListener(IContextListener listener){
47 55
		contextListeners.add(listener);
48 56
	}
49 57
	
58
	/**
59
	 * <p>removeContextListener</p>
60
	 *
61
	 * @param listener a {@link eu.etaxonomy.taxeditor.model.IContextListener} object.
62
	 */
50 63
	public void removeContextListener(IContextListener listener) {
51 64
		contextListeners.remove(listener);
52 65
	}
53 66
	
67
	/**
68
	 * <p>notifyContextStart</p>
69
	 *
70
	 * @param monitor a {@link org.eclipse.core.runtime.IProgressMonitor} object.
71
	 */
54 72
	public void notifyContextStart(IProgressMonitor monitor) {
55 73
		IProgressMonitor subMonitor = StoreUtil.getSubProgressMonitor(monitor, 1);
56 74

  
......
67 85
		subMonitor.done();
68 86
	}
69 87
	
88
	/**
89
	 * <p>notifyContextAboutToStop</p>
90
	 *
91
	 * @param monitor a {@link org.eclipse.core.runtime.IProgressMonitor} object.
92
	 */
70 93
	public void notifyContextAboutToStop(IProgressMonitor monitor){
71 94

  
72 95
		IProgressMonitor subMonitor = StoreUtil.getSubProgressMonitor(monitor, 1);
......
83 106
		subMonitor.done();
84 107
	}
85 108
	
109
	/**
110
	 * <p>notifyContextStop</p>
111
	 *
112
	 * @param monitor a {@link org.eclipse.core.runtime.IProgressMonitor} object.
113
	 */
86 114
	public void notifyContextStop(IProgressMonitor monitor) {
87 115
		
88 116
		IProgressMonitor subMonitor = StoreUtil.getSubProgressMonitor(monitor, 1);
......
101 129
	/* (non-Javadoc)
102 130
	 * @see org.eclipse.ui.IWorkbenchListener#preShutdown(org.eclipse.ui.IWorkbench, boolean)
103 131
	 */
132
	/** {@inheritDoc} */
104 133
	@Override
105 134
	public boolean preShutdown(IWorkbench workbench, boolean forced) {
106 135

  
......
121 150
	/* (non-Javadoc)
122 151
	 * @see org.eclipse.ui.IWorkbenchListener#postShutdown(org.eclipse.ui.IWorkbench)
123 152
	 */
153
	/** {@inheritDoc} */
124 154
	@Override
125 155
	public void postShutdown(IWorkbench workbench) {
126 156
		
......
160 190
	}
161 191
	
162 192
	/**
163
	 * 
164
	 * @return
193
	 * <p>getStateFileForCurrentDatabase</p>
194
	 *
195
	 * @return a {@link java.io.File} object.
165 196
	 */
166 197
	protected File getStateFileForCurrentDatabase() {
167 198
		if(CdmStore.getDataSource() == null){

Also available in: Unified diff