Package net.sphene.goim.rcp.ui.actions.account

Source Code of net.sphene.goim.rcp.ui.actions.account.EditVCardAction

/*
* File    : EditVCardAction.java
* Created : 02.04.2006
* By      : kahless
*
* GOIM - Gamers Own Instant Messenger
* Copyright (C) 2005-2006 Herbert Poul
*              (JabberId: kahless@sphene.net / Email: herbert.poul@gmail.com)
* http://goim.sphene.net
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
*/
package net.sphene.goim.rcp.ui.actions.account;

import net.sphene.goim.rcp.extensionpoints.IAccountProvider;
import net.sphene.goim.rcp.ui.vCardGUI;

import org.eclipse.jface.action.Action;

/**
* Simple action which opens the VCard editor UI and let the user edit
* his/her vcard.
* @author kahless
*
*/
public class EditVCardAction extends Action {
  private IAccountProvider accountProvider;

  public EditVCardAction(IAccountProvider accountProvider) {
    super("Edit VCard");
    this.accountProvider = accountProvider;
  }
 
  public void run() {
    new vCardGUI(accountProvider.getAccount());
  }
}
TOP

Related Classes of net.sphene.goim.rcp.ui.actions.account.EditVCardAction

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.