01: /*--------------------------------------------------------------------------*
02: | Copyright (C) 2006 Christopher Kohlhaas, Bettina Lademann |
03: | |
04: | This program is free software; you can redistribute it and/or modify |
05: | it under the terms of the GNU General Public License as published by the |
06: | Free Software Foundation. A copy of the license has been included with |
07: | these distribution in the COPYING file, if not go to www.fsf.org |
08: | |
09: | As a special exception, you are granted the permissions to link this |
10: | program with every library, which license fulfills the Open Source |
11: | Definition as published by the Open Source Initiative (OSI). |
12: *--------------------------------------------------------------------------*/
13: package org.rapla.gui.internal.action;
14:
15: import java.awt.event.ActionEvent;
16:
17: import org.rapla.client.ClientService;
18: import org.rapla.framework.RaplaContext;
19: import org.rapla.framework.RaplaException;
20: import org.rapla.gui.RaplaAction;
21:
22: public class RestartRaplaAction extends RaplaAction {
23: public RestartRaplaAction(RaplaContext sm) throws RaplaException {
24: super (sm);
25: putValue(NAME, getString("restart_client"));
26: putValue(SMALL_ICON, getIcon("icon.restart"));
27: }
28:
29: public void actionPerformed(ActionEvent arg0) {
30: ((ClientService) getService(ClientService.ROLE)).restart();
31: }
32:
33: }
|