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 / +13 lines)
Lines 274-279 Link Here
274
	 *            the desktop window passed by the action proxy
274
	 *            the desktop window passed by the action proxy
275
	 */
275
	 */
276
	public void run(IAction action) {
276
	public void run(IAction action) {
277
		IViewActionDelegate delegate = ExtensionManger.instance().getPopupMenu();
278
		if (delegate != null){
279
			delegate.run(action);
280
			return;
281
		}
282
277
		// TODO: Insert dirty file check here.
283
		// TODO: Insert dirty file check here.
278
		ValidateAction vaction = null;
284
		ValidateAction vaction = null;
279
		if (action instanceof ValidateAction) {
285
		if (action instanceof ValidateAction) {
Lines 497-502 Link Here
497
	 *            current selection in the desktop
503
	 *            current selection in the desktop
498
	 */
504
	 */
499
	public void selectionChanged(IAction action, ISelection selection) {
505
	public void selectionChanged(IAction action, ISelection selection) {
506
		IViewActionDelegate delegate = ExtensionManger.instance().getPopupMenu();
507
		if (delegate != null){
508
			delegate.selectionChanged(action, selection);
509
			return;
510
		}
500
		_currentSelection = selection;
511
		_currentSelection = selection;
501
		int count = 0;
512
		int count = 0;
502
		boolean fwkActivated = (ValidationPlugin.isActivated() && ValidationRegistryReader.isActivated());
513
		boolean fwkActivated = (ValidationPlugin.isActivated() && ValidationRegistryReader.isActivated());
Lines 575-581 Link Here
575
	 * @see org.eclipse.ui.IActionDelegate2#init(org.eclipse.jface.action.IAction)
586
	 * @see org.eclipse.ui.IActionDelegate2#init(org.eclipse.jface.action.IAction)
576
	 */
587
	 */
577
	public void init(IAction action) {
588
	public void init(IAction action) {
578
		//init
579
	}
589
	}
580
590
581
	/*
591
	/*
Lines 591-598 Link Here
591
	 * @see org.eclipse.ui.IViewActionDelegate#init(org.eclipse.ui.IViewPart)
601
	 * @see org.eclipse.ui.IViewActionDelegate#init(org.eclipse.ui.IViewPart)
592
	 */
602
	 */
593
	public void init(IViewPart view) { 
603
	public void init(IViewPart view) { 
594
		//init
604
		IViewActionDelegate delegate = ExtensionManger.instance().getPopupMenu();
595
		
605
		if (delegate != null)delegate.init(view);
596
	}
606
	}
597
	
607
	
598
	/**
608
	/**
(-)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)",
(-)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 (+35 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
	/** Answer the Validation project level property page. */
33
	IWorkbenchPropertyPage		getPropertyPage();
34
35
}
(-)validateui/org/eclipse/wst/validation/internal/ui/DelegatingPreferencePage.java (+156 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
22
/**
23
 * This is used to allow other plug-ins to take over the validation preference page. It provides
24
 * delegated methods, for each of the methods in the IWorkbenchPreferencePage interface.
25
 * @author karasiuk
26
 *
27
 */
28
public class DelegatingPreferencePage extends ValidationPreferencePage {
29
30
	public void init(IWorkbench workbench) {
31
		IWorkbenchPreferencePage delegate = ExtensionManger.instance().getPreferencePage();
32
		if (delegate != null)delegate.init(workbench);
33
		else super.init(workbench);		
34
	}
35
36
	public Point computeSize() {
37
		IWorkbenchPreferencePage delegate = ExtensionManger.instance().getPreferencePage();
38
		if (delegate != null)return delegate.computeSize();
39
		return super.computeSize();
40
	}
41
42
	public boolean isValid() {
43
		IWorkbenchPreferencePage delegate = ExtensionManger.instance().getPreferencePage();
44
		if (delegate != null)return delegate.isValid();
45
		return super.isValid();
46
	}
47
48
	public boolean okToLeave() {
49
		IWorkbenchPreferencePage delegate = ExtensionManger.instance().getPreferencePage();
50
		if (delegate != null)return delegate.isValid();
51
		return super.isValid();
52
	}
53
54
	public boolean performCancel() {
55
		IWorkbenchPreferencePage delegate = ExtensionManger.instance().getPreferencePage();
56
		if (delegate != null)return delegate.isValid();
57
		return super.isValid();
58
	}
59
60
	public boolean performOk() {
61
		IWorkbenchPreferencePage delegate = ExtensionManger.instance().getPreferencePage();
62
		if (delegate != null)return delegate.isValid();
63
		return super.isValid();
64
	}
65
66
	public void setContainer(IPreferencePageContainer preferencePageContainer) {
67
		IWorkbenchPreferencePage delegate = ExtensionManger.instance().getPreferencePage();
68
		if (delegate != null)delegate.setContainer(preferencePageContainer);
69
		else super.setContainer(preferencePageContainer);		
70
	}
71
72
	public void setSize(Point size) {
73
		IWorkbenchPreferencePage delegate = ExtensionManger.instance().getPreferencePage();
74
		if (delegate != null)delegate.setSize(size);
75
		else super.setSize(size);
76
	}
77
78
	public void createControl(Composite parent) {
79
		IWorkbenchPreferencePage delegate = ExtensionManger.instance().getPreferencePage();
80
		if (delegate != null)delegate.createControl(parent);
81
		else super.createControl(parent);
82
	}
83
84
	public void dispose() {
85
		IWorkbenchPreferencePage delegate = ExtensionManger.instance().getPreferencePage();
86
		if (delegate != null)delegate.dispose();
87
		else super.dispose();		
88
	}
89
90
	public Control getControl() {
91
		IWorkbenchPreferencePage delegate = ExtensionManger.instance().getPreferencePage();
92
		if (delegate != null)return delegate.getControl();
93
		return super.getControl();
94
	}
95
96
	public String getDescription() {
97
		IWorkbenchPreferencePage delegate = ExtensionManger.instance().getPreferencePage();
98
		if (delegate != null)return delegate.getDescription();
99
		return super.getDescription();
100
	}
101
102
	public String getErrorMessage() {
103
		IWorkbenchPreferencePage delegate = ExtensionManger.instance().getPreferencePage();
104
		if (delegate != null)return delegate.getErrorMessage();
105
		return super.getErrorMessage();
106
	}
107
108
	public Image getImage() {
109
		IWorkbenchPreferencePage delegate = ExtensionManger.instance().getPreferencePage();
110
		if (delegate != null)return delegate.getImage();
111
		return super.getImage();
112
	}
113
114
	public String getMessage() {
115
		IWorkbenchPreferencePage delegate = ExtensionManger.instance().getPreferencePage();
116
		if (delegate != null)return delegate.getMessage();
117
		return super.getMessage();
118
	}
119
120
	public String getTitle() {
121
		IWorkbenchPreferencePage delegate = ExtensionManger.instance().getPreferencePage();
122
		if (delegate != null)return delegate.getTitle();
123
		return super.getTitle();
124
	}
125
126
	public void performHelp() {
127
		IWorkbenchPreferencePage delegate = ExtensionManger.instance().getPreferencePage();
128
		if (delegate != null)delegate.performHelp();
129
		else super.performHelp();		
130
	}
131
132
	public void setDescription(String description) {
133
		IWorkbenchPreferencePage delegate = ExtensionManger.instance().getPreferencePage();
134
		if (delegate != null)delegate.setDescription(description);
135
		else super.setDescription(description);		
136
	}
137
138
	public void setImageDescriptor(ImageDescriptor image) {
139
		IWorkbenchPreferencePage delegate = ExtensionManger.instance().getPreferencePage();
140
		if (delegate != null)delegate.setImageDescriptor(image);
141
		else super.setImageDescriptor(image);		
142
	}
143
144
	public void setTitle(String title) {
145
		IWorkbenchPreferencePage delegate = ExtensionManger.instance().getPreferencePage();
146
		if (delegate != null)delegate.setTitle(title);
147
		else super.setTitle(title);		
148
	}
149
150
	public void setVisible(boolean visible) {
151
		IWorkbenchPreferencePage delegate = ExtensionManger.instance().getPreferencePage();
152
		if (delegate != null)delegate.setVisible(visible);
153
		else super.setVisible(visible);		
154
	}
155
156
}
(-)validateui/org/eclipse/wst/validation/internal/ui/ExtensionManger.java (+106 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.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
import org.eclipse.wst.validation.ui.IDelegateValidationUI;
24
25
26
/** Manage the extension points for this plug-in. */
27
public class ExtensionManger {
28
	private static ExtensionManger _me;
29
	
30
	private interface Extension{
31
		/** DelegateValidationUI - extension point name. */
32
		String DelegateValidationUI = "DelegateValidationUI";
33
		
34
		/** class - the attribute that provides the implementation class. */
35
		String clazz	= "class";
36
	}
37
	
38
	private IDelegateValidationUI _delegate;
39
	
40
	public static ExtensionManger instance(){
41
		if (_me == null)_me = new ExtensionManger();
42
		return _me;
43
	}
44
	
45
	private ExtensionManger(){
46
		loadExtensions();
47
	}
48
	
49
	/**
50
	 * We can only have one delegate so the first (whatever first means) extension wins. 
51
	 */
52
	private void loadExtensions() {
53
		IExtensionRegistry registry = Platform.getExtensionRegistry();
54
		IExtensionPoint extensionPoint = registry.getExtensionPoint(ValidationUIPlugin.VALIDATION_PLUGIN_ID, Extension.DelegateValidationUI);
55
		if (extensionPoint == null)return;
56
		
57
		IExtension[] exts = extensionPoint.getExtensions();
58
		for (int i=0; i<exts.length; i++){
59
			IExtension ext = exts[i];
60
			IConfigurationElement[] delegate = ext.getConfigurationElements();
61
			for (int j=0; j<delegate.length; j++){
62
				try {
63
					_delegate = (IDelegateValidationUI)delegate[j].createExecutableExtension(Extension.clazz);
64
				}
65
				catch (CoreException e){
66
					_delegate = null;
67
					ValidationUIPlugin.log(e);
68
				}
69
				return;
70
			}
71
		}		
72
	}
73
74
	/**
75
	 * Answer the delegate if there is one. Answer null if no one is delegating the UI.
76
	 * @return
77
	 */
78
	public IDelegateValidationUI getDelegate() {
79
		return _delegate;
80
	}
81
	
82
	/**
83
	 * Answer the delegated popup menu, or null if it is not being delegated.
84
	 */
85
	public IViewActionDelegate getPopupMenu(){
86
		if (_delegate == null)return null;
87
		return _delegate.getPopupMenu();
88
	}
89
	
90
	/**
91
	 * Answer the delegated preference page, or null if it is not being delegated.
92
	 */
93
	public IWorkbenchPreferencePage getPreferencePage(){
94
		if (_delegate == null)return null;
95
		return _delegate.getPreferencePage();
96
	}
97
	
98
	/**
99
	 * Answer the delegated properties page, or null if it is not being delegated.
100
	 */
101
	public IWorkbenchPropertyPage getPropertyPage(){
102
		if (_delegate == null)return null;
103
		return _delegate.getPropertyPage();
104
	}
105
106
}
(-)validateui/org/eclipse/wst/validation/internal/ui/DelegatingPropertiesPage.java (+162 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
22
/**
23
 * This is used to allow other plug-ins to take over the validation preference page. It provides
24
 * delegated methods, for each of the methods in the IWorkbenchPreferencePage interface.
25
 * @author karasiuk
26
 *
27
 */
28
public class DelegatingPropertiesPage extends ValidationPropertiesPage {
29
30
	public IAdaptable getElement() {
31
		IWorkbenchPropertyPage delegate = ExtensionManger.instance().getPropertyPage();
32
		if (delegate != null)return delegate.getElement();
33
		return super.getElement();
34
	}
35
36
	public void setElement(IAdaptable element) {
37
		IWorkbenchPropertyPage delegate = ExtensionManger.instance().getPropertyPage();
38
		if (delegate != null)delegate.setElement(element);
39
		else super.setElement(element);		
40
	}
41
42
	public Point computeSize() {
43
		IWorkbenchPropertyPage delegate = ExtensionManger.instance().getPropertyPage();
44
		if (delegate != null)return delegate.computeSize();
45
		return super.computeSize();
46
	}
47
48
	public boolean isValid() {
49
		IWorkbenchPropertyPage delegate = ExtensionManger.instance().getPropertyPage();
50
		if (delegate != null)return delegate.isValid();
51
		return super.isValid();
52
	}
53
54
	public boolean okToLeave() {
55
		IWorkbenchPropertyPage delegate = ExtensionManger.instance().getPropertyPage();
56
		if (delegate != null)return delegate.isValid();
57
		return super.isValid();
58
	}
59
60
	public boolean performCancel() {
61
		IWorkbenchPropertyPage delegate = ExtensionManger.instance().getPropertyPage();
62
		if (delegate != null)return delegate.isValid();
63
		return super.isValid();
64
	}
65
66
	public boolean performOk() {
67
		IWorkbenchPropertyPage delegate = ExtensionManger.instance().getPropertyPage();
68
		if (delegate != null)return delegate.isValid();
69
		return super.isValid();
70
	}
71
72
	public void setContainer(IPreferencePageContainer preferencePageContainer) {
73
		IWorkbenchPropertyPage delegate = ExtensionManger.instance().getPropertyPage();
74
		if (delegate != null)delegate.setContainer(preferencePageContainer);
75
		else super.setContainer(preferencePageContainer);		
76
	}
77
78
	public void setSize(Point size) {
79
		IWorkbenchPropertyPage delegate = ExtensionManger.instance().getPropertyPage();
80
		if (delegate != null)delegate.setSize(size);
81
		else super.setSize(size);
82
	}
83
84
	public void createControl(Composite parent) {
85
		IWorkbenchPropertyPage delegate = ExtensionManger.instance().getPropertyPage();
86
		if (delegate != null)delegate.createControl(parent);
87
		else super.createControl(parent);
88
	}
89
90
	public void dispose() {
91
		IWorkbenchPropertyPage delegate = ExtensionManger.instance().getPropertyPage();
92
		if (delegate != null)delegate.dispose();
93
		else super.dispose();		
94
	}
95
96
	public Control getControl() {
97
		IWorkbenchPropertyPage delegate = ExtensionManger.instance().getPropertyPage();
98
		if (delegate != null)return delegate.getControl();
99
		return super.getControl();
100
	}
101
102
	public String getDescription() {
103
		IWorkbenchPropertyPage delegate = ExtensionManger.instance().getPropertyPage();
104
		if (delegate != null)return delegate.getDescription();
105
		return super.getDescription();
106
	}
107
108
	public String getErrorMessage() {
109
		IWorkbenchPropertyPage delegate = ExtensionManger.instance().getPropertyPage();
110
		if (delegate != null)return delegate.getErrorMessage();
111
		return super.getErrorMessage();
112
	}
113
114
	public Image getImage() {
115
		IWorkbenchPropertyPage delegate = ExtensionManger.instance().getPropertyPage();
116
		if (delegate != null)return delegate.getImage();
117
		return super.getImage();
118
	}
119
120
	public String getMessage() {
121
		IWorkbenchPropertyPage delegate = ExtensionManger.instance().getPropertyPage();
122
		if (delegate != null)return delegate.getMessage();
123
		return super.getMessage();
124
	}
125
126
	public String getTitle() {
127
		IWorkbenchPropertyPage delegate = ExtensionManger.instance().getPropertyPage();
128
		if (delegate != null)return delegate.getTitle();
129
		return super.getTitle();
130
	}
131
132
	public void performHelp() {
133
		IWorkbenchPropertyPage delegate = ExtensionManger.instance().getPropertyPage();
134
		if (delegate != null)delegate.performHelp();
135
		else super.performHelp();		
136
	}
137
138
	public void setDescription(String description) {
139
		IWorkbenchPropertyPage delegate = ExtensionManger.instance().getPropertyPage();
140
		if (delegate != null)delegate.setDescription(description);
141
		else super.setDescription(description);		
142
	}
143
144
	public void setImageDescriptor(ImageDescriptor image) {
145
		IWorkbenchPropertyPage delegate = ExtensionManger.instance().getPropertyPage();
146
		if (delegate != null)delegate.setImageDescriptor(image);
147
		else super.setImageDescriptor(image);		
148
	}
149
150
	public void setTitle(String title) {
151
		IWorkbenchPropertyPage delegate = ExtensionManger.instance().getPropertyPage();
152
		if (delegate != null)delegate.setTitle(title);
153
		else super.setTitle(title);		
154
	}
155
156
	public void setVisible(boolean visible) {
157
		IWorkbenchPropertyPage delegate = ExtensionManger.instance().getPropertyPage();
158
		if (delegate != null)delegate.setVisible(visible);
159
		else super.setVisible(visible);		
160
	}
161
162
}

Return to bug 187193