KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > internal > debug > ui > launcher > DefineSystemLibraryQuickFix


1 /*******************************************************************************
2  * Copyright (c) 2000, 2007 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 package org.eclipse.jdt.internal.debug.ui.launcher;
12
13
14 import org.eclipse.core.resources.IMarker;
15 import org.eclipse.jdt.internal.debug.ui.JDIDebugUIPlugin;
16 import org.eclipse.ui.IMarkerResolution;
17
18 /**
19  * Quick fix to define a new system library (none were found).
20  */

21 public class DefineSystemLibraryQuickFix implements IMarkerResolution {
22     
23     public DefineSystemLibraryQuickFix() {
24         super();
25     }
26
27     /**
28      * @see org.eclipse.ui.IMarkerResolution#run(org.eclipse.core.resources.IMarker)
29      */

30     public void run(IMarker marker) {
31         JDIDebugUIPlugin.showPreferencePage("org.eclipse.jdt.debug.ui.preferences.VMPreferencePage"); //$NON-NLS-1$
32
}
33     
34     /**
35      * @see org.eclipse.ui.IMarkerResolution#getLabel()
36      */

37     public String JavaDoc getLabel() {
38         return LauncherMessages.DefineSystemLibraryQuickFix_Create_a_system_library_definition_2;
39     }
40
41
42 }
43
Popular Tags