m_editAction.setEnabled(false);
	private void makeActions() 	{		// Close the currently selected watcher		m_closeAction = new Action() {			public void run() {				WatcherEntry entry = findEntry(m_folder.getSelection());				if (entry != null) {					entry.dispose();						m_watchers.remove(entry);					if (m_folder.getItemCount() == 0) {						setViewTitle(null);						m_closeAction.setEnabled(false);						m_clearAction.setEnabled(false);						m_scrollAction.setEnabled(false);					}										saveWatcherState();				}			}		};		m_closeAction.setText("Close");		m_closeAction.setToolTipText("Close this watcher");		m_closeAction.setImageDescriptor(closeImage);		m_closeAction.setEnabled(false);				// Create a new watcher		m_newAction = new Action() {			public void run() {				NewWatcherDialog d = new NewWatcherDialog(m_folder.getShell(), false);				if (d.open() == Window.OK) {					addWatcher(d.getFile(),d.getInterval(), d.getNumLines(), d.getFilters(), true);				}			}		};		m_newAction.setText("New Watcher");		m_newAction.setToolTipText("Create a new watcher");		m_newAction.setImageDescriptor(newImage);				 // Edit a watcher         m_editAction = new Action() {             public void run() {                 WatcherEntry entry = findEntry(m_folder.getSelection());                 if (entry != null) {					 int topIndex = entry.viewer.getTopIndex();					 int caret = entry.viewer.getTextWidget().getCaretOffset();	                 NewWatcherDialog d = new NewWatcherDialog(m_folder.getShell(), true);	                 d.setFilters(entry.filters);	                 d.setInterval(entry.watcher.getInterval());	                 d.setNumLines(entry.watcher.getNumLines());	                 d.setFile(new File(entry.watcher.getFilename()));	                 if (d.open() == Window.OK) {	                     editWatcher(entry,d.getInterval(), d.getNumLines(), d.getFilters());	                     entry.viewer.refresh();						 entry.viewer.setTopIndex(topIndex);						 entry.viewer.getTextWidget().setCaretOffset(caret);		                 }                 }             }         };         m_editAction.setText("Edit Watcher");         m_editAction.setToolTipText("Edit this watcher");         m_editAction.setImageDescriptor(editImage);		 m_editAction.setEnabled(false);				// Clear the display			m_clearAction = new Action() {						public void run() {				WatcherEntry entry = findEntry(m_folder.getSelection());				if (entry != null) {					entry.watcher.clear();                    entry.viewer.setDocument(new Document(""));				}				}		};		m_clearAction.setText("Clear");		m_clearAction.setToolTipText("Clear logwatcher display");		m_clearAction.setImageDescriptor(eraseImage);		m_clearAction.setEnabled(false);					// Find in log file		m_findAction = new Action() {			public void run() {				WatcherEntry entry = findEntry(m_folder.getSelection());				if (entry != null) {					FindDialog d = new FindDialog(m_folder.getShell(), entry.viewer.getFindReplaceTarget());					d.open();				}							}		};		m_findAction.setText("Find...");		m_findAction.setToolTipText("Find in log file");		m_findAction.setImageDescriptor(findImage);				// Copy		m_copyAction =  new Action() {			public void run() {				WatcherEntry entry = findEntry(m_folder.getSelection());				if (entry != null) {					entry.viewer.getTextWidget().copy();				}			}		};		m_copyAction.setText("Copy");		m_copyAction.setToolTipText("Copy selected text to the clipboard");		m_copyAction.setImageDescriptor(copyImage);						// Toggle scrolling		m_scrollAction = new Action() {			public void run() {				WatcherEntry entry = findEntry(m_folder.getSelection());				if (entry != null) {					entry.scroll = !isChecked();				}			}		};		m_scrollAction.setText("Toggle Automatic Scrolling");		m_scrollAction.setToolTipText("Toggle automatic scrolling");		m_scrollAction.setImageDescriptor(scrollImage);		m_scrollAction.setChecked(false);		m_scrollAction.setEnabled(false);	}