KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > internal > ui > javaeditor > RemoveOccurrenceAnnotations


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11
12 package org.eclipse.jdt.internal.ui.javaeditor;
13
14 import org.eclipse.jface.action.Action;
15
16 /**
17  * Remove occurrence annotations action.
18  *
19  * @since 3.0
20  */

21 class RemoveOccurrenceAnnotations extends Action {
22
23     /** The Java editor to which this actions belongs. */
24     private final JavaEditor fEditor;
25
26     /**
27      * Creates this action.
28      *
29      * @param editor the Java editor for which to remove the occurrence annotations
30      */

31     RemoveOccurrenceAnnotations(JavaEditor editor) {
32         fEditor = editor;
33     }
34
35     /*
36      * @see org.eclipse.jface.action.Action#run()
37      */

38     public void run() {
39         fEditor.removeOccurrenceAnnotations();
40     }
41 }
42
Popular Tags