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 89418 Details for
Bug 218524
[api][breaking] Remove deprecated ISystemViewInputProvider#getShell()
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Patch for the API change
bug218524_remove_getShell.diff.txt (text/plain), 10.02 KB, created by
Martin Oberhuber
on 2008-02-11 11:43:14 EST
(
hide
)
Description:
Patch for the API change
Filename:
MIME Type:
Creator:
Martin Oberhuber
Created:
2008-02-11 11:43:14 EST
Size:
10.02 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.rse.ui >Index: UI/org/eclipse/rse/internal/ui/view/SystemViewAPIProviderForFilters.java >=================================================================== >RCS file: /cvsroot/dsdp/org.eclipse.tm.rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/internal/ui/view/SystemViewAPIProviderForFilters.java,v >retrieving revision 1.9 >diff -u -r1.9 SystemViewAPIProviderForFilters.java >--- UI/org/eclipse/rse/internal/ui/view/SystemViewAPIProviderForFilters.java 5 Jun 2007 20:59:59 -0000 1.9 >+++ UI/org/eclipse/rse/internal/ui/view/SystemViewAPIProviderForFilters.java 11 Feb 2008 16:42:25 -0000 >@@ -1,5 +1,5 @@ > /******************************************************************************** >- * Copyright (c) 2002, 2007 IBM Corporation and others. All rights reserved. >+ * Copyright (c) 2002, 2008 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 >@@ -17,6 +17,7 @@ > * Martin Oberhuber (Wind River) - [186773] split ISystemRegistryUI from ISystemRegistry > * Tobias Schwarz (Wind River) - [173267] "empty list" should not be displayed > * Martin Oberhuber (Wind River) - [190271] Move ISystemViewInputProvider to Core >+ * Martin Oberhuber (Wind River) - [218524][api] Remove deprecated ISystemViewInputProvider#getShell() > ********************************************************************************/ > > package org.eclipse.rse.internal.ui.view; >@@ -142,7 +143,7 @@ > children = new SystemMessageObject[1]; > try { > ISubSystemConfigurationAdapter adapter = (ISubSystemConfigurationAdapter)ssf.getAdapter(ISubSystemConfigurationAdapter.class); >- ISystemFilter newFilter = adapter.createFilterByPrompting(ssf, fRef, (Shell)getShell()); >+ ISystemFilter newFilter = adapter.createFilterByPrompting(ssf, fRef, RSEUIPlugin.getTheSystemRegistryUI().getShell()); > if (newFilter == null) > { > children[0] = new SystemMessageObject(RSEUIPlugin.getPluginMessage(ISystemMessages.MSG_EXPAND_CANCELLED), >Index: UI/org/eclipse/rse/internal/ui/view/SystemAbstractAPIProvider.java >=================================================================== >RCS file: /cvsroot/dsdp/org.eclipse.tm.rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/internal/ui/view/SystemAbstractAPIProvider.java,v >retrieving revision 1.7 >diff -u -r1.7 SystemAbstractAPIProvider.java >--- UI/org/eclipse/rse/internal/ui/view/SystemAbstractAPIProvider.java 5 Jun 2007 20:59:59 -0000 1.7 >+++ UI/org/eclipse/rse/internal/ui/view/SystemAbstractAPIProvider.java 11 Feb 2008 16:42:16 -0000 >@@ -1,5 +1,5 @@ > /******************************************************************************** >- * Copyright (c) 2002, 2007 IBM Corporation and others. All rights reserved. >+ * Copyright (c) 2002, 2008 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 >@@ -14,6 +14,7 @@ > * Martin Oberhuber (Wind River) - [186773] split ISystemRegistryUI from ISystemRegistry > * Tobias Schwarz (Wind River) - [173267] "empty list" should not be displayed > * Martin Oberhuber (Wind River) - [190271] Move ISystemViewInputProvider to Core >+ * Martin Oberhuber (Wind River) - [218524][api] Remove deprecated ISystemViewInputProvider#getShell() > ********************************************************************************/ > > package org.eclipse.rse.internal.ui.view; >@@ -42,9 +43,6 @@ > public abstract class SystemAbstractAPIProvider > implements ISystemViewInputProvider > { >- >- >- protected Shell shell; > protected Viewer viewer; > protected ISystemRegistry sr; > >@@ -80,24 +78,6 @@ > > /* > * (non-Javadoc) >- * @see org.eclipse.rse.ui.view.ISystemViewInputProvider#setShell(java.lang.Object) >- */ >- public void setShell(Object shell) >- { >- this.shell = (Shell)shell; >- } >- >- /* >- * (non-Javadoc) >- * @see org.eclipse.rse.ui.view.ISystemViewInputProvider#getShell() >- */ >- public Object getShell() >- { >- return shell; >- } >- >- /* >- * (non-Javadoc) > * @see org.eclipse.rse.ui.view.ISystemViewInputProvider#setViewer(java.lang.Object) > */ > public void setViewer(Object viewer) >Index: UI/org/eclipse/rse/internal/ui/view/SystemView.java >=================================================================== >RCS file: /cvsroot/dsdp/org.eclipse.tm.rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/internal/ui/view/SystemView.java,v >retrieving revision 1.160 >diff -u -r1.160 SystemView.java >--- UI/org/eclipse/rse/internal/ui/view/SystemView.java 3 Jan 2008 19:36:18 -0000 1.160 >+++ UI/org/eclipse/rse/internal/ui/view/SystemView.java 11 Feb 2008 16:42:25 -0000 >@@ -1,5 +1,5 @@ > /******************************************************************************** >- * Copyright (c) 2002, 2007 IBM Corporation and others. All rights reserved. >+ * Copyright (c) 2002, 2008 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 >@@ -47,6 +47,7 @@ > * Xuan Chen (IBM) - [160775] [api] rename (at least within a zip) blocks UI thread > * David McKnight (IBM) - [199424] api to create tree items after query complete > * David McKnight (IBM) - [187711] expandTo to handle filters specially >+ * Martin Oberhuber (Wind River) - [218524][api] Remove deprecated ISystemViewInputProvider#getShell() > ********************************************************************************/ > > package org.eclipse.rse.internal.ui.view; >@@ -298,7 +299,6 @@ > assert shell == parent.getShell(); > this.shell = shell; > this.inputProvider = inputProvider; >- this.inputProvider.setShell(shell); // DY: defect 44544 > this.messageLine = msgLine; > init(); > } >@@ -317,7 +317,6 @@ > assert shell == parent.getShell(); > this.shell = shell; > this.inputProvider = inputProvider; >- this.inputProvider.setShell(shell); // DY: defect 44544 > this.messageLine = msgLine; > init(); > } >@@ -337,7 +336,6 @@ > assert shell == parent.getShell(); > this.shell = shell; > this.inputProvider = inputProvider; >- this.inputProvider.setShell(shell); // DY: defect 44544 > this.messageLine = msgLine; > this.initViewerFilters = initViewerFilters; > init(); >@@ -356,7 +354,6 @@ > assert shell == tree.getShell(); > this.shell = shell; > this.inputProvider = inputProvider; >- this.inputProvider.setShell(shell); // DY: defect 44544 > this.messageLine = msgLine; > init(); > } >@@ -368,9 +365,6 @@ > public void setInputProvider(ISystemViewInputProvider inputProvider) { > this.inputProvider = inputProvider; > inputProvider.setViewer(this); >- inputProvider.setShell(getShell()); // DY: Defect 44544, shell was not being set for Test dialogs, when they >- // tried to connect there was not shell for the password prompt >- // and an error message (expand failed) occurred. > setInput(inputProvider); > } > >@@ -642,7 +636,6 @@ > */ > public ISystemViewInputProvider getInputProvider() { > inputProvider.setViewer(this); // just in case. Added by Phil in V5.0 >- inputProvider.setShell(getShell()); // just in case. Added by Phil > return inputProvider; > } > >#P org.eclipse.rse.core >Index: src/org/eclipse/rse/core/model/ISystemViewInputProvider.java >=================================================================== >RCS file: /cvsroot/dsdp/org.eclipse.tm.rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/model/ISystemViewInputProvider.java,v >retrieving revision 1.1 >diff -u -r1.1 ISystemViewInputProvider.java >--- src/org/eclipse/rse/core/model/ISystemViewInputProvider.java 5 Jun 2007 20:59:51 -0000 1.1 >+++ src/org/eclipse/rse/core/model/ISystemViewInputProvider.java 11 Feb 2008 16:42:28 -0000 >@@ -1,5 +1,5 @@ > /******************************************************************************** >- * Copyright (c) 2002, 2007 IBM Corporation and others. All rights reserved. >+ * Copyright (c) 2002, 2008 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 >@@ -13,6 +13,7 @@ > * Contributors: > * Martin Oberhuber (Wind River) - [186773] split SystemRegistryUI from SystemRegistry implementation > * Martin Oberhuber (Wind River) - [190271] Move ISystemViewInputProvider to Core from org.eclipse.rse.ui.view >+ * Martin Oberhuber (Wind River) - [218524][api] Remove deprecated ISystemViewInputProvider#getShell() > ********************************************************************************/ > > package org.eclipse.rse.core.model; >@@ -63,22 +64,6 @@ > public Object getAdapter(Class adapterType); > > /** >- * Set the shell in case it is needed for anything. >- * The label and content provider will call this. >- * @param shell an {@link org.eclipse.swt.widgets.Shell shell} object, >- * being used by the viewer using this provider >- */ >- public void setShell(Object shell); >- >- /** >- * @return the {@link org.eclipse.swt.widgets.Shell shell} of the viewer >- * we are currently associated with. >- * @deprecated use other methods for getting the active workbench shell, >- * e.g. {@link org.eclipse.rse.ui.RSEUIPlugin#getActiveWorkbenchShell()} >- */ >- public Object getShell(); >- >- /** > * Set the viewer in case it is needed for anything. > * The label and content provider will call this. > * @param viewer the {@link org.eclipse.jface.viewers.Viewer viewer}
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 218524
: 89418 |
89527