Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 67359 Details for
Bug 187193
Provide a way for third parties to control the Validation UI
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Add a new extension point for overriding the Validation UI
val-ui-ep.patch (text/plain), 27.45 KB, created by
Gary Karasiuk
on 2007-05-16 03:30:06 EDT
(
hide
)
Description:
Add a new extension point for overriding the Validation UI
Filename:
MIME Type:
Creator:
Gary Karasiuk
Created:
2007-05-16 03:30:06 EDT
Size:
27.45 KB
patch
obsolete
>Index: plugin.xml >=================================================================== >RCS file: /cvsroot/webtools/wst/components/validation/plugins/org.eclipse.wst.validation.ui/plugin.xml,v >retrieving revision 1.20 >diff -u -r1.20 plugin.xml >--- plugin.xml 23 Feb 2007 05:05:06 -0000 1.20 >+++ plugin.xml 16 May 2007 07:18:04 -0000 >@@ -1,6 +1,7 @@ > <?xml version="1.0" encoding="UTF-8"?> > <?eclipse version="3.0"?> > <plugin> >+ <extension-point id="DelegateValidationUI" name="Delegate Validation UI" schema="schema/DelegateValidationUI.exsd"/> > > > <!-- ============================================== --> >@@ -31,7 +32,7 @@ > point="org.eclipse.ui.preferencePages"> > <page > name="%VBF_TITLE_PREFERENCE" >- class="org.eclipse.wst.validation.internal.ui.ValidationPreferencePage" >+ class="org.eclipse.wst.validation.internal.ui.DelegatingPreferencePage" > id="ValidationPreferencePage"> > </page> > </extension> >@@ -44,7 +45,7 @@ > point="org.eclipse.ui.propertyPages"> > <page > name="%VBF_TITLE_PROPERTIES" >- class="org.eclipse.wst.validation.internal.ui.ValidationPropertiesPage" >+ class="org.eclipse.wst.validation.internal.ui.DelegatingPropertiesPage" > id="ValidationPropertiesPage"> > <enabledWhen> > <adapt type="org.eclipse.core.resources.IProject"/> >Index: validateui/org/eclipse/wst/validation/internal/ui/ValidationMenuAction.java >=================================================================== >RCS file: /cvsroot/webtools/wst/components/validation/plugins/org.eclipse.wst.validation.ui/validateui/org/eclipse/wst/validation/internal/ui/ValidationMenuAction.java,v >retrieving revision 1.27 >diff -u -r1.27 ValidationMenuAction.java >--- validateui/org/eclipse/wst/validation/internal/ui/ValidationMenuAction.java 10 Apr 2007 00:44:09 -0000 1.27 >+++ validateui/org/eclipse/wst/validation/internal/ui/ValidationMenuAction.java 16 May 2007 07:18:04 -0000 >@@ -274,6 +274,12 @@ > * the desktop window passed by the action proxy > */ > public void run(IAction action) { >+ IViewActionDelegate delegate = ExtensionManger.instance().getPopupMenu(); >+ if (delegate != null){ >+ delegate.run(action); >+ return; >+ } >+ > // TODO: Insert dirty file check here. > ValidateAction vaction = null; > if (action instanceof ValidateAction) { >@@ -497,6 +503,11 @@ > * current selection in the desktop > */ > public void selectionChanged(IAction action, ISelection selection) { >+ IViewActionDelegate delegate = ExtensionManger.instance().getPopupMenu(); >+ if (delegate != null){ >+ delegate.selectionChanged(action, selection); >+ return; >+ } > _currentSelection = selection; > int count = 0; > boolean fwkActivated = (ValidationPlugin.isActivated() && ValidationRegistryReader.isActivated()); >@@ -575,7 +586,6 @@ > * @see org.eclipse.ui.IActionDelegate2#init(org.eclipse.jface.action.IAction) > */ > public void init(IAction action) { >- //init > } > > /* >@@ -591,8 +601,8 @@ > * @see org.eclipse.ui.IViewActionDelegate#init(org.eclipse.ui.IViewPart) > */ > public void init(IViewPart view) { >- //init >- >+ IViewActionDelegate delegate = ExtensionManger.instance().getPopupMenu(); >+ if (delegate != null)delegate.init(view); > } > > /** >Index: META-INF/MANIFEST.MF >=================================================================== >RCS file: /cvsroot/webtools/wst/components/validation/plugins/org.eclipse.wst.validation.ui/META-INF/MANIFEST.MF,v >retrieving revision 1.17 >diff -u -r1.17 MANIFEST.MF >--- META-INF/MANIFEST.MF 31 Mar 2007 21:05:53 -0000 1.17 >+++ META-INF/MANIFEST.MF 16 May 2007 07:18:04 -0000 >@@ -7,7 +7,8 @@ > Bundle-Vendor: %Bundle-Vendor.0 > Bundle-Localization: plugin > Export-Package: org.eclipse.wst.validation.internal.ui;x-internal:=true, >- org.eclipse.wst.validation.internal.ui.plugin;x-internal:=true >+ org.eclipse.wst.validation.internal.ui.plugin;x-internal:=true, >+ org.eclipse.wst.validation.ui > Require-Bundle: org.eclipse.ui.ide;bundle-version="[3.2.0,4.0.0)", > org.eclipse.core.resources;bundle-version="[3.2.0,4.0.0)", > org.eclipse.ui;bundle-version="[3.2.0,4.0.0)", >Index: schema/DelegateValidationUI.exsd >=================================================================== >RCS file: schema/DelegateValidationUI.exsd >diff -N schema/DelegateValidationUI.exsd >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ schema/DelegateValidationUI.exsd 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,120 @@ >+<?xml version='1.0' encoding='UTF-8'?> >+<!-- Schema file written by PDE --> >+<schema targetNamespace="org.eclipse.wst.validation.ui"> >+<annotation> >+ <appInfo> >+ <meta.schema plugin="org.eclipse.wst.validation.ui" id="DelegateValidationUI" name="Delegate Validation UI"/> >+ </appInfo> >+ <documentation> >+ This allows other plug-ins to take over the UI of the Validation framework. Other products don't want to remove this plug-in, but yet they don'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. >+ </documentation> >+ </annotation> >+ >+ <element name="extension"> >+ <complexType> >+ <sequence> >+ <element ref="delegate"/> >+ </sequence> >+ <attribute name="point" type="string" use="required"> >+ <annotation> >+ <documentation> >+ >+ </documentation> >+ </annotation> >+ </attribute> >+ <attribute name="id" type="string"> >+ <annotation> >+ <documentation> >+ >+ </documentation> >+ </annotation> >+ </attribute> >+ <attribute name="name" type="string"> >+ <annotation> >+ <documentation> >+ >+ </documentation> >+ <appInfo> >+ <meta.attribute translatable="true"/> >+ </appInfo> >+ </annotation> >+ </attribute> >+ </complexType> >+ </element> >+ >+ <element name="delegate"> >+ <annotation> >+ <documentation> >+ This is a singleton extension point. The first (whatever first means) extension wins, and becomes the delegating UI for the Validation framework. >+ </documentation> >+ </annotation> >+ <complexType> >+ <attribute name="class" type="string" use="required"> >+ <annotation> >+ <documentation> >+ The class that will get delegated to for any top level UI operation. >+ </documentation> >+ <appInfo> >+ <meta.attribute kind="java" basedOn="org.eclipse.wst.validation.ui.IDelegateValidationUI"/> >+ </appInfo> >+ </annotation> >+ </attribute> >+ </complexType> >+ </element> >+ >+ <annotation> >+ <appInfo> >+ <meta.section type="since"/> >+ </appInfo> >+ <documentation> >+ <b>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.</b> >+ </documentation> >+ </annotation> >+ >+ <annotation> >+ <appInfo> >+ <meta.section type="examples"/> >+ </appInfo> >+ <documentation> >+ <extension >+ point="org.eclipse.wst.validation.ui.DelegateValidationUI"> >+ <delegate >+ class="com.ibm.vf.ui.internal.DelegateValidationUIImpl"> >+ </delegate> >+ </extension> >+ >+ </documentation> >+ </annotation> >+ >+ <annotation> >+ <appInfo> >+ <meta.section type="apiInfo"/> >+ </appInfo> >+ <documentation> >+ Provisional >+ </documentation> >+ </annotation> >+ >+ <annotation> >+ <appInfo> >+ <meta.section type="implementation"/> >+ </appInfo> >+ <documentation> >+ >+ </documentation> >+ </annotation> >+ >+ <annotation> >+ <appInfo> >+ <meta.section type="copyright"/> >+ </appInfo> >+ <documentation> >+ Copyright (c) 2007 IBM Corporation and others.<br> >+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 <a >+href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a> >+ </documentation> >+ </annotation> >+ >+</schema> >Index: validateui/org/eclipse/wst/validation/ui/IDelegateValidationUI.java >=================================================================== >RCS file: validateui/org/eclipse/wst/validation/ui/IDelegateValidationUI.java >diff -N validateui/org/eclipse/wst/validation/ui/IDelegateValidationUI.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ validateui/org/eclipse/wst/validation/ui/IDelegateValidationUI.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,35 @@ >+/******************************************************************************* >+ * Copyright (c) 2007 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.wst.validation.ui; >+ >+import org.eclipse.ui.IViewActionDelegate; >+import org.eclipse.ui.IWorkbenchPreferencePage; >+import org.eclipse.ui.IWorkbenchPropertyPage; >+ >+/** >+ * This interface allows other plug-ins to supply the validation UI. It is used as part of the >+ * DelegateValidationUI extension point. >+ * >+ * @author karasiuk >+ * >+ */ >+public interface IDelegateValidationUI { >+ >+ /** Answer the delegated pop up menu, i.e. the action that handles the Validate menu item. */ >+ IViewActionDelegate getPopupMenu(); >+ >+ /** Answer the Validation Preference Page. */ >+ IWorkbenchPreferencePage getPreferencePage(); >+ >+ /** Answer the Validation project level property page. */ >+ IWorkbenchPropertyPage getPropertyPage(); >+ >+} >Index: validateui/org/eclipse/wst/validation/internal/ui/DelegatingPreferencePage.java >=================================================================== >RCS file: validateui/org/eclipse/wst/validation/internal/ui/DelegatingPreferencePage.java >diff -N validateui/org/eclipse/wst/validation/internal/ui/DelegatingPreferencePage.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ validateui/org/eclipse/wst/validation/internal/ui/DelegatingPreferencePage.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,156 @@ >+/******************************************************************************* >+ * Copyright (c) 2007 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.wst.validation.internal.ui; >+ >+import org.eclipse.jface.preference.IPreferencePageContainer; >+import org.eclipse.jface.resource.ImageDescriptor; >+import org.eclipse.swt.graphics.Image; >+import org.eclipse.swt.graphics.Point; >+import org.eclipse.swt.widgets.Composite; >+import org.eclipse.swt.widgets.Control; >+import org.eclipse.ui.IWorkbench; >+import org.eclipse.ui.IWorkbenchPreferencePage; >+ >+/** >+ * This is used to allow other plug-ins to take over the validation preference page. It provides >+ * delegated methods, for each of the methods in the IWorkbenchPreferencePage interface. >+ * @author karasiuk >+ * >+ */ >+public class DelegatingPreferencePage extends ValidationPreferencePage { >+ >+ public void init(IWorkbench workbench) { >+ IWorkbenchPreferencePage delegate = ExtensionManger.instance().getPreferencePage(); >+ if (delegate != null)delegate.init(workbench); >+ else super.init(workbench); >+ } >+ >+ public Point computeSize() { >+ IWorkbenchPreferencePage delegate = ExtensionManger.instance().getPreferencePage(); >+ if (delegate != null)return delegate.computeSize(); >+ return super.computeSize(); >+ } >+ >+ public boolean isValid() { >+ IWorkbenchPreferencePage delegate = ExtensionManger.instance().getPreferencePage(); >+ if (delegate != null)return delegate.isValid(); >+ return super.isValid(); >+ } >+ >+ public boolean okToLeave() { >+ IWorkbenchPreferencePage delegate = ExtensionManger.instance().getPreferencePage(); >+ if (delegate != null)return delegate.isValid(); >+ return super.isValid(); >+ } >+ >+ public boolean performCancel() { >+ IWorkbenchPreferencePage delegate = ExtensionManger.instance().getPreferencePage(); >+ if (delegate != null)return delegate.isValid(); >+ return super.isValid(); >+ } >+ >+ public boolean performOk() { >+ IWorkbenchPreferencePage delegate = ExtensionManger.instance().getPreferencePage(); >+ if (delegate != null)return delegate.isValid(); >+ return super.isValid(); >+ } >+ >+ public void setContainer(IPreferencePageContainer preferencePageContainer) { >+ IWorkbenchPreferencePage delegate = ExtensionManger.instance().getPreferencePage(); >+ if (delegate != null)delegate.setContainer(preferencePageContainer); >+ else super.setContainer(preferencePageContainer); >+ } >+ >+ public void setSize(Point size) { >+ IWorkbenchPreferencePage delegate = ExtensionManger.instance().getPreferencePage(); >+ if (delegate != null)delegate.setSize(size); >+ else super.setSize(size); >+ } >+ >+ public void createControl(Composite parent) { >+ IWorkbenchPreferencePage delegate = ExtensionManger.instance().getPreferencePage(); >+ if (delegate != null)delegate.createControl(parent); >+ else super.createControl(parent); >+ } >+ >+ public void dispose() { >+ IWorkbenchPreferencePage delegate = ExtensionManger.instance().getPreferencePage(); >+ if (delegate != null)delegate.dispose(); >+ else super.dispose(); >+ } >+ >+ public Control getControl() { >+ IWorkbenchPreferencePage delegate = ExtensionManger.instance().getPreferencePage(); >+ if (delegate != null)return delegate.getControl(); >+ return super.getControl(); >+ } >+ >+ public String getDescription() { >+ IWorkbenchPreferencePage delegate = ExtensionManger.instance().getPreferencePage(); >+ if (delegate != null)return delegate.getDescription(); >+ return super.getDescription(); >+ } >+ >+ public String getErrorMessage() { >+ IWorkbenchPreferencePage delegate = ExtensionManger.instance().getPreferencePage(); >+ if (delegate != null)return delegate.getErrorMessage(); >+ return super.getErrorMessage(); >+ } >+ >+ public Image getImage() { >+ IWorkbenchPreferencePage delegate = ExtensionManger.instance().getPreferencePage(); >+ if (delegate != null)return delegate.getImage(); >+ return super.getImage(); >+ } >+ >+ public String getMessage() { >+ IWorkbenchPreferencePage delegate = ExtensionManger.instance().getPreferencePage(); >+ if (delegate != null)return delegate.getMessage(); >+ return super.getMessage(); >+ } >+ >+ public String getTitle() { >+ IWorkbenchPreferencePage delegate = ExtensionManger.instance().getPreferencePage(); >+ if (delegate != null)return delegate.getTitle(); >+ return super.getTitle(); >+ } >+ >+ public void performHelp() { >+ IWorkbenchPreferencePage delegate = ExtensionManger.instance().getPreferencePage(); >+ if (delegate != null)delegate.performHelp(); >+ else super.performHelp(); >+ } >+ >+ public void setDescription(String description) { >+ IWorkbenchPreferencePage delegate = ExtensionManger.instance().getPreferencePage(); >+ if (delegate != null)delegate.setDescription(description); >+ else super.setDescription(description); >+ } >+ >+ public void setImageDescriptor(ImageDescriptor image) { >+ IWorkbenchPreferencePage delegate = ExtensionManger.instance().getPreferencePage(); >+ if (delegate != null)delegate.setImageDescriptor(image); >+ else super.setImageDescriptor(image); >+ } >+ >+ public void setTitle(String title) { >+ IWorkbenchPreferencePage delegate = ExtensionManger.instance().getPreferencePage(); >+ if (delegate != null)delegate.setTitle(title); >+ else super.setTitle(title); >+ } >+ >+ public void setVisible(boolean visible) { >+ IWorkbenchPreferencePage delegate = ExtensionManger.instance().getPreferencePage(); >+ if (delegate != null)delegate.setVisible(visible); >+ else super.setVisible(visible); >+ } >+ >+} >Index: validateui/org/eclipse/wst/validation/internal/ui/ExtensionManger.java >=================================================================== >RCS file: validateui/org/eclipse/wst/validation/internal/ui/ExtensionManger.java >diff -N validateui/org/eclipse/wst/validation/internal/ui/ExtensionManger.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ validateui/org/eclipse/wst/validation/internal/ui/ExtensionManger.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,106 @@ >+/******************************************************************************* >+ * Copyright (c) 2007 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.wst.validation.internal.ui; >+ >+import org.eclipse.core.runtime.CoreException; >+import org.eclipse.core.runtime.IConfigurationElement; >+import org.eclipse.core.runtime.IExtension; >+import org.eclipse.core.runtime.IExtensionPoint; >+import org.eclipse.core.runtime.IExtensionRegistry; >+import org.eclipse.core.runtime.Platform; >+import org.eclipse.ui.IViewActionDelegate; >+import org.eclipse.ui.IWorkbenchPreferencePage; >+import org.eclipse.ui.IWorkbenchPropertyPage; >+import org.eclipse.wst.validation.internal.ui.plugin.ValidationUIPlugin; >+import org.eclipse.wst.validation.ui.IDelegateValidationUI; >+ >+ >+/** Manage the extension points for this plug-in. */ >+public class ExtensionManger { >+ private static ExtensionManger _me; >+ >+ private interface Extension{ >+ /** DelegateValidationUI - extension point name. */ >+ String DelegateValidationUI = "DelegateValidationUI"; >+ >+ /** class - the attribute that provides the implementation class. */ >+ String clazz = "class"; >+ } >+ >+ private IDelegateValidationUI _delegate; >+ >+ public static ExtensionManger instance(){ >+ if (_me == null)_me = new ExtensionManger(); >+ return _me; >+ } >+ >+ private ExtensionManger(){ >+ loadExtensions(); >+ } >+ >+ /** >+ * We can only have one delegate so the first (whatever first means) extension wins. >+ */ >+ private void loadExtensions() { >+ IExtensionRegistry registry = Platform.getExtensionRegistry(); >+ IExtensionPoint extensionPoint = registry.getExtensionPoint(ValidationUIPlugin.VALIDATION_PLUGIN_ID, Extension.DelegateValidationUI); >+ if (extensionPoint == null)return; >+ >+ IExtension[] exts = extensionPoint.getExtensions(); >+ for (int i=0; i<exts.length; i++){ >+ IExtension ext = exts[i]; >+ IConfigurationElement[] delegate = ext.getConfigurationElements(); >+ for (int j=0; j<delegate.length; j++){ >+ try { >+ _delegate = (IDelegateValidationUI)delegate[j].createExecutableExtension(Extension.clazz); >+ } >+ catch (CoreException e){ >+ _delegate = null; >+ ValidationUIPlugin.log(e); >+ } >+ return; >+ } >+ } >+ } >+ >+ /** >+ * Answer the delegate if there is one. Answer null if no one is delegating the UI. >+ * @return >+ */ >+ public IDelegateValidationUI getDelegate() { >+ return _delegate; >+ } >+ >+ /** >+ * Answer the delegated popup menu, or null if it is not being delegated. >+ */ >+ public IViewActionDelegate getPopupMenu(){ >+ if (_delegate == null)return null; >+ return _delegate.getPopupMenu(); >+ } >+ >+ /** >+ * Answer the delegated preference page, or null if it is not being delegated. >+ */ >+ public IWorkbenchPreferencePage getPreferencePage(){ >+ if (_delegate == null)return null; >+ return _delegate.getPreferencePage(); >+ } >+ >+ /** >+ * Answer the delegated properties page, or null if it is not being delegated. >+ */ >+ public IWorkbenchPropertyPage getPropertyPage(){ >+ if (_delegate == null)return null; >+ return _delegate.getPropertyPage(); >+ } >+ >+} >Index: validateui/org/eclipse/wst/validation/internal/ui/DelegatingPropertiesPage.java >=================================================================== >RCS file: validateui/org/eclipse/wst/validation/internal/ui/DelegatingPropertiesPage.java >diff -N validateui/org/eclipse/wst/validation/internal/ui/DelegatingPropertiesPage.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ validateui/org/eclipse/wst/validation/internal/ui/DelegatingPropertiesPage.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,162 @@ >+/******************************************************************************* >+ * Copyright (c) 2007 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.wst.validation.internal.ui; >+ >+import org.eclipse.core.runtime.IAdaptable; >+import org.eclipse.jface.preference.IPreferencePageContainer; >+import org.eclipse.jface.resource.ImageDescriptor; >+import org.eclipse.swt.graphics.Image; >+import org.eclipse.swt.graphics.Point; >+import org.eclipse.swt.widgets.Composite; >+import org.eclipse.swt.widgets.Control; >+import org.eclipse.ui.IWorkbenchPropertyPage; >+ >+/** >+ * This is used to allow other plug-ins to take over the validation preference page. It provides >+ * delegated methods, for each of the methods in the IWorkbenchPreferencePage interface. >+ * @author karasiuk >+ * >+ */ >+public class DelegatingPropertiesPage extends ValidationPropertiesPage { >+ >+ public IAdaptable getElement() { >+ IWorkbenchPropertyPage delegate = ExtensionManger.instance().getPropertyPage(); >+ if (delegate != null)return delegate.getElement(); >+ return super.getElement(); >+ } >+ >+ public void setElement(IAdaptable element) { >+ IWorkbenchPropertyPage delegate = ExtensionManger.instance().getPropertyPage(); >+ if (delegate != null)delegate.setElement(element); >+ else super.setElement(element); >+ } >+ >+ public Point computeSize() { >+ IWorkbenchPropertyPage delegate = ExtensionManger.instance().getPropertyPage(); >+ if (delegate != null)return delegate.computeSize(); >+ return super.computeSize(); >+ } >+ >+ public boolean isValid() { >+ IWorkbenchPropertyPage delegate = ExtensionManger.instance().getPropertyPage(); >+ if (delegate != null)return delegate.isValid(); >+ return super.isValid(); >+ } >+ >+ public boolean okToLeave() { >+ IWorkbenchPropertyPage delegate = ExtensionManger.instance().getPropertyPage(); >+ if (delegate != null)return delegate.isValid(); >+ return super.isValid(); >+ } >+ >+ public boolean performCancel() { >+ IWorkbenchPropertyPage delegate = ExtensionManger.instance().getPropertyPage(); >+ if (delegate != null)return delegate.isValid(); >+ return super.isValid(); >+ } >+ >+ public boolean performOk() { >+ IWorkbenchPropertyPage delegate = ExtensionManger.instance().getPropertyPage(); >+ if (delegate != null)return delegate.isValid(); >+ return super.isValid(); >+ } >+ >+ public void setContainer(IPreferencePageContainer preferencePageContainer) { >+ IWorkbenchPropertyPage delegate = ExtensionManger.instance().getPropertyPage(); >+ if (delegate != null)delegate.setContainer(preferencePageContainer); >+ else super.setContainer(preferencePageContainer); >+ } >+ >+ public void setSize(Point size) { >+ IWorkbenchPropertyPage delegate = ExtensionManger.instance().getPropertyPage(); >+ if (delegate != null)delegate.setSize(size); >+ else super.setSize(size); >+ } >+ >+ public void createControl(Composite parent) { >+ IWorkbenchPropertyPage delegate = ExtensionManger.instance().getPropertyPage(); >+ if (delegate != null)delegate.createControl(parent); >+ else super.createControl(parent); >+ } >+ >+ public void dispose() { >+ IWorkbenchPropertyPage delegate = ExtensionManger.instance().getPropertyPage(); >+ if (delegate != null)delegate.dispose(); >+ else super.dispose(); >+ } >+ >+ public Control getControl() { >+ IWorkbenchPropertyPage delegate = ExtensionManger.instance().getPropertyPage(); >+ if (delegate != null)return delegate.getControl(); >+ return super.getControl(); >+ } >+ >+ public String getDescription() { >+ IWorkbenchPropertyPage delegate = ExtensionManger.instance().getPropertyPage(); >+ if (delegate != null)return delegate.getDescription(); >+ return super.getDescription(); >+ } >+ >+ public String getErrorMessage() { >+ IWorkbenchPropertyPage delegate = ExtensionManger.instance().getPropertyPage(); >+ if (delegate != null)return delegate.getErrorMessage(); >+ return super.getErrorMessage(); >+ } >+ >+ public Image getImage() { >+ IWorkbenchPropertyPage delegate = ExtensionManger.instance().getPropertyPage(); >+ if (delegate != null)return delegate.getImage(); >+ return super.getImage(); >+ } >+ >+ public String getMessage() { >+ IWorkbenchPropertyPage delegate = ExtensionManger.instance().getPropertyPage(); >+ if (delegate != null)return delegate.getMessage(); >+ return super.getMessage(); >+ } >+ >+ public String getTitle() { >+ IWorkbenchPropertyPage delegate = ExtensionManger.instance().getPropertyPage(); >+ if (delegate != null)return delegate.getTitle(); >+ return super.getTitle(); >+ } >+ >+ public void performHelp() { >+ IWorkbenchPropertyPage delegate = ExtensionManger.instance().getPropertyPage(); >+ if (delegate != null)delegate.performHelp(); >+ else super.performHelp(); >+ } >+ >+ public void setDescription(String description) { >+ IWorkbenchPropertyPage delegate = ExtensionManger.instance().getPropertyPage(); >+ if (delegate != null)delegate.setDescription(description); >+ else super.setDescription(description); >+ } >+ >+ public void setImageDescriptor(ImageDescriptor image) { >+ IWorkbenchPropertyPage delegate = ExtensionManger.instance().getPropertyPage(); >+ if (delegate != null)delegate.setImageDescriptor(image); >+ else super.setImageDescriptor(image); >+ } >+ >+ public void setTitle(String title) { >+ IWorkbenchPropertyPage delegate = ExtensionManger.instance().getPropertyPage(); >+ if (delegate != null)delegate.setTitle(title); >+ else super.setTitle(title); >+ } >+ >+ public void setVisible(boolean visible) { >+ IWorkbenchPropertyPage delegate = ExtensionManger.instance().getPropertyPage(); >+ if (delegate != null)delegate.setVisible(visible); >+ else super.setVisible(visible); >+ } >+ >+}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 187193
:
67359
|
67645