View | Details | Raw Unified | Return to bug 187193 | Differences between
and this patch

Collapse All | Expand All

(-)plugin.xml (-2 / +3 lines)
Lines 1-6 Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
1
<?xml version="1.0" encoding="UTF-8"?>
2
<?eclipse version="3.0"?>
2
<?eclipse version="3.0"?>
3
<plugin>
3
<plugin>
4
   <extension-point id="DelegateValidationUI" name="Delegate Validation UI" schema="schema/DelegateValidationUI.exsd"/>
4
5
5
    
6
    
6
<!-- ============================================== -->
7
<!-- ============================================== -->
Lines 31-37 Link Here
31
         point="org.eclipse.ui.preferencePages">
32
         point="org.eclipse.ui.preferencePages">
32
      <page
33
      <page
33
            name="%VBF_TITLE_PREFERENCE"
34
            name="%VBF_TITLE_PREFERENCE"
34
            class="org.eclipse.wst.validation.internal.ui.ValidationPreferencePage"
35
            class="org.eclipse.wst.validation.internal.ui.DelegatingPreferencePage"
35
            id="ValidationPreferencePage">
36
            id="ValidationPreferencePage">
36
      </page>
37
      </page>
37
   </extension>
38
   </extension>
Lines 44-50 Link Here
44
         point="org.eclipse.ui.propertyPages">
45
         point="org.eclipse.ui.propertyPages">
45
      <page
46
      <page
46
            name="%VBF_TITLE_PROPERTIES"
47
            name="%VBF_TITLE_PROPERTIES"
47
            class="org.eclipse.wst.validation.internal.ui.ValidationPropertiesPage"
48
            class="org.eclipse.wst.validation.internal.ui.DelegatingPropertiesPage"
48
            id="ValidationPropertiesPage">
49
            id="ValidationPropertiesPage">
49
         <enabledWhen>
50
         <enabledWhen>
50
	         <adapt type="org.eclipse.core.resources.IProject"/>
51
	         <adapt type="org.eclipse.core.resources.IProject"/>
(-)validateui/org/eclipse/wst/validation/internal/ui/ValidationMenuAction.java (-3 / +14 lines)
Lines 58-63 Link Here
58
import org.eclipse.wst.validation.internal.operations.ValidatorManager;
58
import org.eclipse.wst.validation.internal.operations.ValidatorManager;
59
import org.eclipse.wst.validation.internal.plugin.ValidationPlugin;
59
import org.eclipse.wst.validation.internal.plugin.ValidationPlugin;
60
import org.eclipse.wst.validation.internal.ui.plugin.ValidationUIPlugin;
60
import org.eclipse.wst.validation.internal.ui.plugin.ValidationUIPlugin;
61
import org.eclipse.wst.validation.ui.ExtensionManger;
61
62
62
/**
63
/**
63
 * This class implements the pop-up menu item "Run Validation" When the item is selected, this
64
 * This class implements the pop-up menu item "Run Validation" When the item is selected, this
Lines 274-279 Link Here
274
	 *            the desktop window passed by the action proxy
275
	 *            the desktop window passed by the action proxy
275
	 */
276
	 */
276
	public void run(IAction action) {
277
	public void run(IAction action) {
278
		IViewActionDelegate delegate = ExtensionManger.instance().getPopupMenu();
279
		if (delegate != null){
280
			delegate.run(action);
281
			return;
282
		}
283
277
		// TODO: Insert dirty file check here.
284
		// TODO: Insert dirty file check here.
278
		ValidateAction vaction = null;
285
		ValidateAction vaction = null;
279
		if (action instanceof ValidateAction) {
286
		if (action instanceof ValidateAction) {
Lines 497-502 Link Here
497
	 *            current selection in the desktop
504
	 *            current selection in the desktop
498
	 */
505
	 */
499
	public void selectionChanged(IAction action, ISelection selection) {
506
	public void selectionChanged(IAction action, ISelection selection) {
507
		IViewActionDelegate delegate = ExtensionManger.instance().getPopupMenu();
508
		if (delegate != null){
509
			delegate.selectionChanged(action, selection);
510
			return;
511
		}
500
		_currentSelection = selection;
512
		_currentSelection = selection;
501
		int count = 0;
513
		int count = 0;
502
		boolean fwkActivated = (ValidationPlugin.isActivated() && ValidationRegistryReader.isActivated());
514
		boolean fwkActivated = (ValidationPlugin.isActivated() && ValidationRegistryReader.isActivated());
Lines 575-581 Link Here
575
	 * @see org.eclipse.ui.IActionDelegate2#init(org.eclipse.jface.action.IAction)
587
	 * @see org.eclipse.ui.IActionDelegate2#init(org.eclipse.jface.action.IAction)
576
	 */
588
	 */
577
	public void init(IAction action) {
589
	public void init(IAction action) {
578
		//init
579
	}
590
	}
580
591
581
	/*
592
	/*
Lines 591-598 Link Here
591
	 * @see org.eclipse.ui.IViewActionDelegate#init(org.eclipse.ui.IViewPart)
602
	 * @see org.eclipse.ui.IViewActionDelegate#init(org.eclipse.ui.IViewPart)
592
	 */
603
	 */
593
	public void init(IViewPart view) { 
604
	public void init(IViewPart view) { 
594
		//init
605
		IViewActionDelegate delegate = ExtensionManger.instance().getPopupMenu();
595
		
606
		if (delegate != null)delegate.init(view);
596
	}
607
	}
597
	
608
	
598
	/**
609
	/**
(-)META-INF/MANIFEST.MF (-1 / +2 lines)
Lines 7-13 Link Here
7
Bundle-Vendor: %Bundle-Vendor.0
7
Bundle-Vendor: %Bundle-Vendor.0
8
Bundle-Localization: plugin
8
Bundle-Localization: plugin
9
Export-Package: org.eclipse.wst.validation.internal.ui;x-internal:=true,
9
Export-Package: org.eclipse.wst.validation.internal.ui;x-internal:=true,
10
 org.eclipse.wst.validation.internal.ui.plugin;x-internal:=true
10
 org.eclipse.wst.validation.internal.ui.plugin;x-internal:=true,
11
 org.eclipse.wst.validation.ui
11
Require-Bundle: org.eclipse.ui.ide;bundle-version="[3.2.0,4.0.0)",
12
Require-Bundle: org.eclipse.ui.ide;bundle-version="[3.2.0,4.0.0)",
12
 org.eclipse.core.resources;bundle-version="[3.2.0,4.0.0)",
13
 org.eclipse.core.resources;bundle-version="[3.2.0,4.0.0)",
13
 org.eclipse.ui;bundle-version="[3.2.0,4.0.0)",
14
 org.eclipse.ui;bundle-version="[3.2.0,4.0.0)",
(-)validateui/org/eclipse/wst/validation/ui/ExtensionManger.java (+105 lines)
Added Link Here
1
/*******************************************************************************
2
 * Copyright (c) 2007 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
 *******************************************************************************/
11
package org.eclipse.wst.validation.ui;
12
13
import org.eclipse.core.runtime.CoreException;
14
import org.eclipse.core.runtime.IConfigurationElement;
15
import org.eclipse.core.runtime.IExtension;
16
import org.eclipse.core.runtime.IExtensionPoint;
17
import org.eclipse.core.runtime.IExtensionRegistry;
18
import org.eclipse.core.runtime.Platform;
19
import org.eclipse.ui.IViewActionDelegate;
20
import org.eclipse.ui.IWorkbenchPreferencePage;
21
import org.eclipse.ui.IWorkbenchPropertyPage;
22
import org.eclipse.wst.validation.internal.ui.plugin.ValidationUIPlugin;
23
24
25
/** Manage the extension points for this plug-in. */
26
public class ExtensionManger {
27
	private static ExtensionManger _me;
28
	
29
	private interface Extension{
30
		/** DelegateValidationUI - extension point name. */
31
		String DelegateValidationUI = "DelegateValidationUI";
32
		
33
		/** class - the attribute that provides the implementation class. */
34
		String clazz	= "class";
35
	}
36
	
37
	private IDelegateValidationUI _delegate;
38
	
39
	public static ExtensionManger instance(){
40
		if (_me == null)_me = new ExtensionManger();
41
		return _me;
42
	}
43
	
44
	private ExtensionManger(){
45
		loadExtensions();
46
	}
47
	
48
	/**
49
	 * We can only have one delegate so the first (whatever first means) extension wins. 
50
	 */
51
	private void loadExtensions() {
52
		IExtensionRegistry registry = Platform.getExtensionRegistry();
53
		IExtensionPoint extensionPoint = registry.getExtensionPoint(ValidationUIPlugin.VALIDATION_PLUGIN_ID, Extension.DelegateValidationUI);
54
		if (extensionPoint == null)return;
55
		
56
		IExtension[] exts = extensionPoint.getExtensions();
57
		for (int i=0; i<exts.length; i++){
58
			IExtension ext = exts[i];
59
			IConfigurationElement[] delegate = ext.getConfigurationElements();
60
			for (int j=0; j<delegate.length; j++){
61
				try {
62
					_delegate = (IDelegateValidationUI)delegate[j].createExecutableExtension(Extension.clazz);
63
				}
64
				catch (CoreException e){
65
					_delegate = null;
66
					ValidationUIPlugin.log(e);
67
				}
68
				return;
69
			}
70
		}		
71
	}
72
73
	/**
74
	 * Answer the delegate if there is one. Answer null if no one is delegating the UI.
75
	 * @return
76
	 */
77
	public IDelegateValidationUI getDelegate() {
78
		return _delegate;
79
	}
80
	
81
	/**
82
	 * Answer the delegated popup menu, or null if it is not being delegated.
83
	 */
84
	public IViewActionDelegate getPopupMenu(){
85
		if (_delegate == null)return null;
86
		return _delegate.getPopupMenu();
87
	}
88
	
89
	/**
90
	 * Answer the delegated preference page, or null if it is not being delegated.
91
	 */
92
	public IWorkbenchPreferencePage getPreferencePage(){
93
		if (_delegate == null)return null;
94
		return _delegate.getPreferencePage();
95
	}
96
	
97
	/**
98
	 * Answer the delegated properties page, or null if it is not being delegated.
99
	 */
100
	public IWorkbenchPropertyPage getPropertyPage(){
101
		if (_delegate == null)return null;
102
		return _delegate.getPropertyPage();
103
	}
104
105
}
(-)schema/DelegateValidationUI.exsd (+120 lines)
Added Link Here
1
<?xml version='1.0' encoding='UTF-8'?>
2
<!-- Schema file written by PDE -->
3
<schema targetNamespace="org.eclipse.wst.validation.ui">
4
<annotation>
5
      <appInfo>
6
         <meta.schema plugin="org.eclipse.wst.validation.ui" id="DelegateValidationUI" name="Delegate Validation UI"/>
7
      </appInfo>
8
      <documentation>
9
         This allows other plug-ins to take over the UI of the Validation framework. Other products don&apos;t want to remove this plug-in, but yet they don&apos;t want to have duplicate Validation preference or property pages, or a duplicate Validate menu item in the main context menu. This extension point allows the other product to get control of these UI touch points.
10
      </documentation>
11
   </annotation>
12
13
   <element name="extension">
14
      <complexType>
15
         <sequence>
16
            <element ref="delegate"/>
17
         </sequence>
18
         <attribute name="point" type="string" use="required">
19
            <annotation>
20
               <documentation>
21
                  
22
               </documentation>
23
            </annotation>
24
         </attribute>
25
         <attribute name="id" type="string">
26
            <annotation>
27
               <documentation>
28
                  
29
               </documentation>
30
            </annotation>
31
         </attribute>
32
         <attribute name="name" type="string">
33
            <annotation>
34
               <documentation>
35
                  
36
               </documentation>
37
               <appInfo>
38
                  <meta.attribute translatable="true"/>
39
               </appInfo>
40
            </annotation>
41
         </attribute>
42
      </complexType>
43
   </element>
44
45
   <element name="delegate">
46
      <annotation>
47
         <documentation>
48
            This is a singleton extension point. The first (whatever first means) extension wins, and becomes the delegating UI for the Validation framework.
49
         </documentation>
50
      </annotation>
51
      <complexType>
52
         <attribute name="class" type="string" use="required">
53
            <annotation>
54
               <documentation>
55
                  The class that will get delegated to for any top level UI operation.
56
               </documentation>
57
               <appInfo>
58
                  <meta.attribute kind="java" basedOn="org.eclipse.wst.validation.ui.IDelegateValidationUI"/>
59
               </appInfo>
60
            </annotation>
61
         </attribute>
62
      </complexType>
63
   </element>
64
65
   <annotation>
66
      <appInfo>
67
         <meta.section type="since"/>
68
      </appInfo>
69
      <documentation>
70
         &lt;b&gt;This extension point is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.&lt;/b&gt;
71
      </documentation>
72
   </annotation>
73
74
   <annotation>
75
      <appInfo>
76
         <meta.section type="examples"/>
77
      </appInfo>
78
      <documentation>
79
            &lt;extension
80
         point=&quot;org.eclipse.wst.validation.ui.DelegateValidationUI&quot;&gt;
81
      &lt;delegate
82
            class=&quot;com.ibm.vf.ui.internal.DelegateValidationUIImpl&quot;&gt;
83
      &lt;/delegate&gt;
84
   &lt;/extension&gt;
85
86
      </documentation>
87
   </annotation>
88
89
   <annotation>
90
      <appInfo>
91
         <meta.section type="apiInfo"/>
92
      </appInfo>
93
      <documentation>
94
         Provisional
95
      </documentation>
96
   </annotation>
97
98
   <annotation>
99
      <appInfo>
100
         <meta.section type="implementation"/>
101
      </appInfo>
102
      <documentation>
103
         
104
      </documentation>
105
   </annotation>
106
107
   <annotation>
108
      <appInfo>
109
         <meta.section type="copyright"/>
110
      </appInfo>
111
      <documentation>
112
         Copyright (c) 2007 IBM Corporation and others.&lt;br&gt;
113
All rights reserved. This program and the accompanying materials are made 
114
available under the terms of the Eclipse Public License v1.0 which accompanies 
115
this distribution, and is available at &lt;a
116
href=&quot;http://www.eclipse.org/legal/epl-v10.html&quot;&gt;http://www.eclipse.org/legal/epl-v10.html&lt;/a&gt;
117
      </documentation>
118
   </annotation>
119
120
</schema>
(-)validateui/org/eclipse/wst/validation/ui/IDelegateValidationUI.java (+41 lines)
Added Link Here
1
/*******************************************************************************
2
 * Copyright (c) 2007 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
 *******************************************************************************/
11
package org.eclipse.wst.validation.ui;
12
13
import org.eclipse.ui.IViewActionDelegate;
14
import org.eclipse.ui.IWorkbenchPreferencePage;
15
import org.eclipse.ui.IWorkbenchPropertyPage;
16
17
/**
18
 * This interface allows other plug-ins to supply the validation UI. It is used as part of the 
19
 * DelegateValidationUI extension point.
20
 * 
21
 * @author karasiuk
22
 *
23
 */
24
public interface IDelegateValidationUI {
25
	
26
	/** Answer the delegated pop up menu, i.e. the action that handles the Validate menu item. */
27
	IViewActionDelegate 		getPopupMenu();
28
	
29
	/** Answer the Validation Preference Page. */
30
	IWorkbenchPreferencePage	getPreferencePage();
31
	
32
	/** This needs to be called when the preference page is disposed. */
33
	void disposePreferencePage();
34
	
35
	/** Answer the Validation project level property page. */
36
	IWorkbenchPropertyPage		getPropertyPage();
37
	
38
	/** This needs to be called when the property page is disposed. */
39
	void disposePropertiesPage();
40
41
}
(-)validateui/org/eclipse/wst/validation/internal/ui/DelegatingPreferencePage.java (+157 lines)
Added Link Here
1
/*******************************************************************************
2
 * Copyright (c) 2007 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
 *******************************************************************************/
11
package org.eclipse.wst.validation.internal.ui;
12
13
import org.eclipse.jface.preference.IPreferencePageContainer;
14
import org.eclipse.jface.resource.ImageDescriptor;
15
import org.eclipse.swt.graphics.Image;
16
import org.eclipse.swt.graphics.Point;
17
import org.eclipse.swt.widgets.Composite;
18
import org.eclipse.swt.widgets.Control;
19
import org.eclipse.ui.IWorkbench;
20
import org.eclipse.ui.IWorkbenchPreferencePage;
21
import org.eclipse.wst.validation.ui.ExtensionManger;
22
23
/**
24
 * This is used to allow other plug-ins to take over the validation preference page. It provides
25
 * delegated methods, for each of the methods in the IWorkbenchPreferencePage interface.
26
 * @author karasiuk
27
 *
28
 */
29
public class DelegatingPreferencePage extends ValidationPreferencePage {
30
	
31
	public void init(IWorkbench workbench) {
32
		IWorkbenchPreferencePage delegate = ExtensionManger.instance().getPreferencePage();
33
		if (delegate != null)delegate.init(workbench);
34
		else super.init(workbench);		
35
	}
36
37
	public Point computeSize() {
38
		IWorkbenchPreferencePage delegate = ExtensionManger.instance().getPreferencePage();
39
		if (delegate != null)return delegate.computeSize();
40
		return super.computeSize();
41
	}
42
43
	public boolean isValid() {
44
		IWorkbenchPreferencePage delegate = ExtensionManger.instance().getPreferencePage();
45
		if (delegate != null)return delegate.isValid();
46
		return super.isValid();
47
	}
48
49
	public boolean okToLeave() {
50
		IWorkbenchPreferencePage delegate = ExtensionManger.instance().getPreferencePage();
51
		if (delegate != null)return delegate.okToLeave();
52
		return super.okToLeave();
53
	}
54
55
	public boolean performCancel() {
56
		IWorkbenchPreferencePage delegate = ExtensionManger.instance().getPreferencePage();
57
		if (delegate != null)return delegate.performCancel();
58
		return super.performCancel();
59
	}
60
61
	public boolean performOk() {
62
		IWorkbenchPreferencePage delegate = ExtensionManger.instance().getPreferencePage();
63
		if (delegate != null)return delegate.performOk();
64
		return super.performOk();
65
	}
66
67
	public void setContainer(IPreferencePageContainer preferencePageContainer) {
68
		IWorkbenchPreferencePage delegate = ExtensionManger.instance().getPreferencePage();
69
		if (delegate != null)delegate.setContainer(preferencePageContainer);
70
		else super.setContainer(preferencePageContainer);		
71
	}
72
73
	public void setSize(Point size) {
74
		IWorkbenchPreferencePage delegate = ExtensionManger.instance().getPreferencePage();
75
		if (delegate != null)delegate.setSize(size);
76
		else super.setSize(size);
77
	}
78
79
	public void createControl(Composite parent) {
80
		IWorkbenchPreferencePage delegate = ExtensionManger.instance().getPreferencePage();
81
		if (delegate != null)delegate.createControl(parent);
82
		else super.createControl(parent);
83
	}
84
85
	public void dispose() {
86
		IWorkbenchPreferencePage delegate = ExtensionManger.instance().getPreferencePage();
87
		if (delegate != null)delegate.dispose();
88
		else super.dispose();		
89
	}
90
91
	public Control getControl() {
92
		IWorkbenchPreferencePage delegate = ExtensionManger.instance().getPreferencePage();
93
		if (delegate != null)return delegate.getControl();
94
		return super.getControl();
95
	}
96
97
	public String getDescription() {
98
		IWorkbenchPreferencePage delegate = ExtensionManger.instance().getPreferencePage();
99
		if (delegate != null)return delegate.getDescription();
100
		return super.getDescription();
101
	}
102
103
	public String getErrorMessage() {
104
		IWorkbenchPreferencePage delegate = ExtensionManger.instance().getPreferencePage();
105
		if (delegate != null)return delegate.getErrorMessage();
106
		return super.getErrorMessage();
107
	}
108
109
	public Image getImage() {
110
		IWorkbenchPreferencePage delegate = ExtensionManger.instance().getPreferencePage();
111
		if (delegate != null)return delegate.getImage();
112
		return super.getImage();
113
	}
114
115
	public String getMessage() {
116
		IWorkbenchPreferencePage delegate = ExtensionManger.instance().getPreferencePage();
117
		if (delegate != null)return delegate.getMessage();
118
		return super.getMessage();
119
	}
120
121
	public String getTitle() {
122
		IWorkbenchPreferencePage delegate = ExtensionManger.instance().getPreferencePage();
123
		if (delegate != null)return delegate.getTitle();
124
		return super.getTitle();
125
	}
126
127
	public void performHelp() {
128
		IWorkbenchPreferencePage delegate = ExtensionManger.instance().getPreferencePage();
129
		if (delegate != null)delegate.performHelp();
130
		else super.performHelp();		
131
	}
132
133
	public void setDescription(String description) {
134
		IWorkbenchPreferencePage delegate = ExtensionManger.instance().getPreferencePage();
135
		if (delegate != null)delegate.setDescription(description);
136
		else super.setDescription(description);		
137
	}
138
139
	public void setImageDescriptor(ImageDescriptor image) {
140
		IWorkbenchPreferencePage delegate = ExtensionManger.instance().getPreferencePage();
141
		if (delegate != null)delegate.setImageDescriptor(image);
142
		else super.setImageDescriptor(image);		
143
	}
144
145
	public void setTitle(String title) {
146
		IWorkbenchPreferencePage delegate = ExtensionManger.instance().getPreferencePage();
147
		if (delegate != null)delegate.setTitle(title);
148
		else super.setTitle(title);		
149
	}
150
151
	public void setVisible(boolean visible) {
152
		IWorkbenchPreferencePage delegate = ExtensionManger.instance().getPreferencePage();
153
		if (delegate != null)delegate.setVisible(visible);
154
		else super.setVisible(visible);		
155
	}
156
157
}
(-)validateui/org/eclipse/wst/validation/internal/ui/DelegatingPropertiesPage.java (+163 lines)
Added Link Here
1
/*******************************************************************************
2
 * Copyright (c) 2007 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
 *******************************************************************************/
11
package org.eclipse.wst.validation.internal.ui;
12
13
import org.eclipse.core.runtime.IAdaptable;
14
import org.eclipse.jface.preference.IPreferencePageContainer;
15
import org.eclipse.jface.resource.ImageDescriptor;
16
import org.eclipse.swt.graphics.Image;
17
import org.eclipse.swt.graphics.Point;
18
import org.eclipse.swt.widgets.Composite;
19
import org.eclipse.swt.widgets.Control;
20
import org.eclipse.ui.IWorkbenchPropertyPage;
21
import org.eclipse.wst.validation.ui.ExtensionManger;
22
23
/**
24
 * This is used to allow other plug-ins to take over the validation preference page. It provides
25
 * delegated methods, for each of the methods in the IWorkbenchPreferencePage interface.
26
 * @author karasiuk
27
 *
28
 */
29
public class DelegatingPropertiesPage extends ValidationPropertiesPage {
30
31
	public IAdaptable getElement() {
32
		IWorkbenchPropertyPage delegate = ExtensionManger.instance().getPropertyPage();
33
		if (delegate != null)return delegate.getElement();
34
		return super.getElement();
35
	}
36
37
	public void setElement(IAdaptable element) {
38
		IWorkbenchPropertyPage delegate = ExtensionManger.instance().getPropertyPage();
39
		if (delegate != null)delegate.setElement(element);
40
		else super.setElement(element);		
41
	}
42
43
	public Point computeSize() {
44
		IWorkbenchPropertyPage delegate = ExtensionManger.instance().getPropertyPage();
45
		if (delegate != null)return delegate.computeSize();
46
		return super.computeSize();
47
	}
48
49
	public boolean isValid() {
50
		IWorkbenchPropertyPage delegate = ExtensionManger.instance().getPropertyPage();
51
		if (delegate != null)return delegate.isValid();
52
		return super.isValid();
53
	}
54
55
	public boolean okToLeave() {
56
		IWorkbenchPropertyPage delegate = ExtensionManger.instance().getPropertyPage();
57
		if (delegate != null)return delegate.okToLeave();
58
		return super.okToLeave();
59
	}
60
61
	public boolean performCancel() {
62
		IWorkbenchPropertyPage delegate = ExtensionManger.instance().getPropertyPage();
63
		if (delegate != null)return delegate.performCancel();
64
		return super.performCancel();
65
	}
66
67
	public boolean performOk() {
68
		IWorkbenchPropertyPage delegate = ExtensionManger.instance().getPropertyPage();
69
		if (delegate != null)return delegate.performOk();
70
		return super.performOk();
71
	}
72
73
	public void setContainer(IPreferencePageContainer preferencePageContainer) {
74
		IWorkbenchPropertyPage delegate = ExtensionManger.instance().getPropertyPage();
75
		if (delegate != null)delegate.setContainer(preferencePageContainer);
76
		else super.setContainer(preferencePageContainer);		
77
	}
78
79
	public void setSize(Point size) {
80
		IWorkbenchPropertyPage delegate = ExtensionManger.instance().getPropertyPage();
81
		if (delegate != null)delegate.setSize(size);
82
		else super.setSize(size);
83
	}
84
85
	public void createControl(Composite parent) {
86
		IWorkbenchPropertyPage delegate = ExtensionManger.instance().getPropertyPage();
87
		if (delegate != null)delegate.createControl(parent);
88
		else super.createControl(parent);
89
	}
90
91
	public void dispose() {
92
		IWorkbenchPropertyPage delegate = ExtensionManger.instance().getPropertyPage();
93
		if (delegate != null)delegate.dispose();
94
		else super.dispose();		
95
	}
96
97
	public Control getControl() {
98
		IWorkbenchPropertyPage delegate = ExtensionManger.instance().getPropertyPage();
99
		if (delegate != null)return delegate.getControl();
100
		return super.getControl();
101
	}
102
103
	public String getDescription() {
104
		IWorkbenchPropertyPage delegate = ExtensionManger.instance().getPropertyPage();
105
		if (delegate != null)return delegate.getDescription();
106
		return super.getDescription();
107
	}
108
109
	public String getErrorMessage() {
110
		IWorkbenchPropertyPage delegate = ExtensionManger.instance().getPropertyPage();
111
		if (delegate != null)return delegate.getErrorMessage();
112
		return super.getErrorMessage();
113
	}
114
115
	public Image getImage() {
116
		IWorkbenchPropertyPage delegate = ExtensionManger.instance().getPropertyPage();
117
		if (delegate != null)return delegate.getImage();
118
		return super.getImage();
119
	}
120
121
	public String getMessage() {
122
		IWorkbenchPropertyPage delegate = ExtensionManger.instance().getPropertyPage();
123
		if (delegate != null)return delegate.getMessage();
124
		return super.getMessage();
125
	}
126
127
	public String getTitle() {
128
		IWorkbenchPropertyPage delegate = ExtensionManger.instance().getPropertyPage();
129
		if (delegate != null)return delegate.getTitle();
130
		return super.getTitle();
131
	}
132
133
	public void performHelp() {
134
		IWorkbenchPropertyPage delegate = ExtensionManger.instance().getPropertyPage();
135
		if (delegate != null)delegate.performHelp();
136
		else super.performHelp();		
137
	}
138
139
	public void setDescription(String description) {
140
		IWorkbenchPropertyPage delegate = ExtensionManger.instance().getPropertyPage();
141
		if (delegate != null)delegate.setDescription(description);
142
		else super.setDescription(description);		
143
	}
144
145
	public void setImageDescriptor(ImageDescriptor image) {
146
		IWorkbenchPropertyPage delegate = ExtensionManger.instance().getPropertyPage();
147
		if (delegate != null)delegate.setImageDescriptor(image);
148
		else super.setImageDescriptor(image);		
149
	}
150
151
	public void setTitle(String title) {
152
		IWorkbenchPropertyPage delegate = ExtensionManger.instance().getPropertyPage();
153
		if (delegate != null)delegate.setTitle(title);
154
		else super.setTitle(title);		
155
	}
156
157
	public void setVisible(boolean visible) {
158
		IWorkbenchPropertyPage delegate = ExtensionManger.instance().getPropertyPage();
159
		if (delegate != null)delegate.setVisible(visible);
160
		else super.setVisible(visible);		
161
	}
162
163
}

Return to bug 187193