Code Search for Developers
 
 
  

OpenTournamentAction.java from The Geronimo Project at Krugle


Show OpenTournamentAction.java syntax highlighted

package geronimo.hoshigo.control.tournament;

import geronimo.hoshigo.model.tournament.Tournament;
import geronimo.hoshigo.view.IconRegistry;
import geronimo.hoshigo.view.IconRegistry.IconSize;

import org.eclipse.jface.action.Action;

/**
 * Action de fermeture d'une partie. On ne peut fermer qu'un match amical
 * @author Geronimo
 */
public class OpenTournamentAction extends Action
{
	private static OpenTournamentAction instance;
	
	/**
	 * Création de l'action. Privé car on n'autorise qu'une seule instance
	 * de la classe.
	 */
	private OpenTournamentAction()
	{
		super();
		this.setText("&Ouvrir un tournoi...@Ctrl+O");
		this.setToolTipText("Ouvrir un tournoi");
		this.setImageDescriptor( IconRegistry.getDescriptor("open_tournament",IconSize.SMALL) );
		this.setEnabled(true);
	}
	
	/**
	 * Accès à l'instance de la classe.
	 * @return Retourne l'instance
	 */
	public synchronized static OpenTournamentAction getInstance()
	{
		// Creation de l'instance au premier appel
		if(instance == null)
		{
			instance = new OpenTournamentAction();
		}
		return instance;
	}
	
	/**
	 * Changement de tournoi actif
	 * @param tournament Nouveau tournoi actif
	 */
	public void setActiveTournament(Tournament tournament)
	{
	}

	/**
	 * Lancement de l'action. Supprime la partie
	 */
	public void run()
	{
		// TODO implémenter
	}
}




See more files for this project here

The Geronimo Project

The Geronimo project concists of two software :\n- Geronimo Hoshigo : a playable graphical user interface to play Go\n- Geronimo Margo : a artificial intelligence program which plays Go

Project homepage: http://sourceforge.net/projects/geronimo
Programming language(s): Java,Pascal,Perl,PHP
License: gpl2

  CloseTournamentAction.java
  NewTournamentAction.java
  OpenTournamentAction.java
  SaveTournamentAction.java
  SaveTournamentAsAction.java
  TournamentActionManager.java