~vil/pydev/upstream

« back to all changes in this revision

Viewing changes to org.python.pydev/src/org/python/pydev/editor/correctionassist/MarkerResolution.java

  • Committer: Vladimír Lapáček
  • Date: 2006-08-30 18:38:44 UTC
  • Revision ID: vladimir.lapacek@gmail.com-20060830183844-f4d82c1239a7770a
Initial import of upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Created on Sep 22, 2004
 
3
 *
 
4
 * @author Fabio Zadrozny
 
5
 */
 
6
package org.python.pydev.editor.correctionassist;
 
7
 
 
8
import org.eclipse.core.resources.IMarker;
 
9
import org.eclipse.jface.dialogs.MessageDialog;
 
10
import org.eclipse.ui.IMarkerResolution;
 
11
 
 
12
/**
 
13
 * @author Fabio Zadrozny
 
14
 */
 
15
public class MarkerResolution implements IMarkerResolution {
 
16
 
 
17
    private String label;
 
18
 
 
19
    /**
 
20
     * @param string
 
21
     */
 
22
    public MarkerResolution(String string) {
 
23
        
 
24
        this.label = string;
 
25
    }
 
26
 
 
27
    /* (non-Javadoc)
 
28
     * @see org.eclipse.ui.IMarkerResolution#getLabel()
 
29
     */
 
30
    public String getLabel() {
 
31
        return label;
 
32
    }
 
33
 
 
34
    public void run(IMarker marker) {
 
35
        MessageDialog.openInformation(null, "QuickFix Demo",
 
36
           "This quick-fix is not yet implemented");
 
37
     }
 
38
}