KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > mountainminds > eclemma > core > ICorePreferences


1 /*******************************************************************************
2  * Copyright (c) 2006, 2007 Mountainminds GmbH & Co. KG
3  * This software is provided under the terms of the Eclipse Public License v1.0
4  * See http://www.eclipse.org/legal/epl-v10.html.
5  *
6  * $Id: $
7  ******************************************************************************/

8 package com.mountainminds.eclemma.core;
9
10 /**
11  * Clients may implement this interface to customize the behavior of the EclEmma
12  * core plug-in and pass a instance to
13  * {@link com.mountainminds.eclemma.core.CoverageTools#setPreferences(ICorePreferences)}.
14  * This interface decouples the core e.g. from the UI preferences.
15  *
16  * @author Marc R. Hoffmann
17  * @version $Revision: $
18  */

19 public interface ICorePreferences {
20
21   /**
22    * Default behavior if no customization is set.
23    */

24   public static final ICorePreferences DEFAULT = new ICorePreferences() {
25     public boolean getActivateNewSessions() { return true; }
26     public boolean getAutoRemoveSessions() { return false; }
27   };
28   
29   /**
30    * Determines whether new sessions should automatically be activated.
31    *
32    * @return true, if sessions should be activated
33    */

34   public boolean getActivateNewSessions();
35   
36   /**
37    * Determines whether sessions should automatically be removed when their
38    * respective lauch is removed from the debug environment
39    *
40    * @return true, if sessions should be removed
41    */

42   public boolean getAutoRemoveSessions();
43   
44 }
45
Popular Tags