blob: 7d1328ba4bac594fa937e3f897e1c85b6eb53960 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
/*******************************************************************************
* Copyright (c) 2000, 2006 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.ui.dialogs;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.jface.preference.PreferencePage;
import org.eclipse.ui.IWorkbenchPropertyPage;
/**
* Abstract base implementation of a workbench property page (
* <code>IWorkbenchPropertyPage</code>). The implementation is a JFace
* preference page with an adapatable element.
* <p>
* Subclasses must implement the <code>createContents</code> framework method
* to supply the property page's main control.
* </p>
* <p>
* Subclasses should extend the <code>doComputeSize</code> framework method to
* compute the size of the page's control.
* </p>
* <p>
* Subclasses may override the <code>performOk</code>,
* <code>performApply</code>,<code>performDefaults</code>,
* <code>performCancel</code>, and <code>performHelp</code> framework
* methods to react to the standard button events.
* </p>
* <p>
* Subclasses may call the <code>noDefaultAndApplyButton</code> framework
* method before the page's control has been created to suppress the standard
* Apply and Defaults buttons.
* </p>
*
* @see IWorkbenchPropertyPage
*/
public abstract class PropertyPage extends PreferencePage implements
IWorkbenchPropertyPage {
/**
* The element.
*/
private IAdaptable element;
/**
* Creates a new property page.
*/
public PropertyPage() {
}
/*
* (non-Javadoc)
* @see org.eclipse.ui.IWorkbenchPropertyPage#getElement()
*/
public IAdaptable getElement() {
return element;
}
/**
* Sets the element that owns properties shown on this page.
*
* @param element
* the element
*/
public void setElement(IAdaptable element) {
this.element = element;
}
}
|