comparison dwtx/jface/preference/IPreferencePageContainer.d @ 34:b3c8e32d406f

preference
author Frank Benoit <benoit@tionex.de>
date Sat, 05 Apr 2008 01:45:47 +0200
parents
children
comparison
equal deleted inserted replaced
33:f25582573129 34:b3c8e32d406f
1 /*******************************************************************************
2 * Copyright (c) 2000, 2006 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
7 *
8 * Contributors:
9 * IBM Corporation - initial API and implementation
10 * Port to the D programming language:
11 * Frank Benoit <benoit@tionex.de>
12 *******************************************************************************/
13 module dwtx.jface.preference.IPreferencePageContainer;
14
15 import dwtx.jface.preference.IPreferenceStore;
16
17 import dwt.dwthelper.utils;
18
19 /**
20 * An interface used by a preference page to talk to
21 * its dialog.
22 */
23 public interface IPreferencePageContainer {
24 /**
25 * Returns the preference store.
26 *
27 * @return the preference store, or <code>null</code> if none
28 */
29 public IPreferenceStore getPreferenceStore();
30
31 /**
32 * Adjusts the enable state of the OK
33 * button to reflect the state of the currently active
34 * page in this container.
35 * <p>
36 * This method is called by the container itself
37 * when its preference page changes and may be called
38 * by the page at other times to force a button state
39 * update.
40 * </p>
41 */
42 public void updateButtons();
43
44 /**
45 * Updates the message (or error message) shown in the message line to
46 * reflect the state of the currently active page in this container.
47 * <p>
48 * This method is called by the container itself
49 * when its preference page changes and may be called
50 * by the page at other times to force a message
51 * update.
52 * </p>
53 */
54 public void updateMessage();
55
56 /**
57 * Updates the title to reflect the state of the
58 * currently active page in this container.
59 * <p>
60 * This method is called by the container itself
61 * when its page changes and may be called
62 * by the page at other times to force a title
63 * update.
64 * </p>
65 */
66 public void updateTitle();
67 }