?? couldnotfindjartoolhandler.java
字號:
/**
* Copyright (c) 2003-2005 Craig Setera
* All Rights Reserved.
* Licensed under the Eclipse Public License - v 1.0
* For more information see http://www.eclipse.org/legal/epl-v10.html
*/
package eclipseme.ui.internal.statusHandlers;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.debug.core.IStatusHandler;
import org.eclipse.jface.dialogs.ErrorDialog;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
/**
* Status handler for the case when the JAR tool executable could
* not be found during preverification.
* <p />
* Copyright (c) 2003-2005 Craig Setera<br>
* All Rights Reserved.<br>
* Licensed under the Eclipse Public License - v 1.0<p/>
* <br>
* $Revision: 1.4 $
* <br>
* $Date: 2006/02/11 21:27:37 $
* <br>
* @author Craig Setera
*/
public class CouldNotFindJarToolHandler implements IStatusHandler
{
/**
* @see org.eclipse.debug.core.IStatusHandler#handleStatus(org.eclipse.core.runtime.IStatus, java.lang.Object)
*/
public Object handleStatus(final IStatus status, Object source)
throws CoreException
{
Display display = Display.getCurrent();
Shell shell = display.getActiveShell();
if (shell == null) {
shell = new Shell(display, SWT.NONE);
}
final Shell finalShell = shell;
display.syncExec(new Runnable() {
public void run() {
String title = "Could not find jar tool executable";
String message =
"Could not find jar tool executable.\n" +
"The jar tool requires a full JDK installation.\n" +
"Specify a full JDK installation in the Java preferences.";
ErrorDialog.openError(finalShell, title, message, status);
}
});
return null;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -