01: /*
02: * Copyright 2001-2006 C:1 Financial Services GmbH
03: *
04: * This software is free software; you can redistribute it and/or
05: * modify it under the terms of the GNU Lesser General Public
06: * License Version 2.1, as published by the Free Software Foundation.
07: *
08: * This software is distributed in the hope that it will be useful,
09: * but WITHOUT ANY WARRANTY; without even the implied warranty of
10: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11: * Lesser General Public License for more details.
12: *
13: * You should have received a copy of the GNU Lesser General Public
14: * License along with this library; if not, write to the Free Software
15: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA
16: */
17:
18: package de.finix.contelligent.client.gui.explorer;
19:
20: import java.awt.event.ActionEvent;
21: import java.util.logging.Logger;
22:
23: import javax.swing.AbstractAction;
24:
25: import de.finix.contelligent.client.gui.ContelligentAction;
26: import de.finix.contelligent.client.i18n.Resources;
27:
28: public class ManageBookmarkAction extends AbstractAction implements
29: ContelligentAction {
30:
31: static Logger log = Logger.getLogger(ManageBookmarkAction.class
32: .getName());
33:
34: private final ExplorerEditor editor;
35:
36: public ManageBookmarkAction(ExplorerEditor editor) {
37:
38: super ("bookmarks_manage_action", Resources.manageBookmarkIcon);
39: this .editor = editor;
40:
41: putValue(ROLLOVER_ICON, Resources.manageBookmarkIconRollOver);
42: putValue(TYPE, PUSH_ACTION);
43: putValue(ACTION_TYPE, BOOKMARK_ACTION);
44: putValue(ACTION_GROUP, BOOKMARKS_EDIT_BOOKMARKS_GROUP);
45: putValue(ACTION_POS, BOOKMARKS_MANAGE_BOOKMARKS);
46: putValue(MENU_TARGET, MENU);
47: putValue(BUTTON_TARGET, NO_BUTTON);
48: putValue(POPUP_TARGET, NO_POPUP);
49: }
50:
51: public void actionPerformed(ActionEvent e) {
52:
53: ManageBookmarkDialog manageBookmarkFrame = new ManageBookmarkDialog();
54: manageBookmarkFrame.setVisible(true);
55: }
56: }
|