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 77497 Details for
Bug 190613
[remotecdt] NPE in Remote CDT launch config when no connections except Local
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
patch to initialize the SystemRegistry before using it
patch-190613.txt (text/plain), 1.96 KB, created by
Yufen Kuo
on 2007-08-31 14:27:55 EDT
(
hide
)
Description:
patch to initialize the SystemRegistry before using it
Filename:
MIME Type:
Creator:
Yufen Kuo
Created:
2007-08-31 14:27:55 EDT
Size:
1.96 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.rse.remotecdt >Index: src/org/eclipse/rse/internal/remotecdt/RemoteCMainTab.java >=================================================================== >RCS file: /cvsroot/dsdp/org.eclipse.tm.rse/examples/org.eclipse.rse.remotecdt/src/org/eclipse/rse/internal/remotecdt/RemoteCMainTab.java,v >retrieving revision 1.6 >diff -u -r1.6 RemoteCMainTab.java >--- src/org/eclipse/rse/internal/remotecdt/RemoteCMainTab.java 18 Jul 2007 10:54:12 -0000 1.6 >+++ src/org/eclipse/rse/internal/remotecdt/RemoteCMainTab.java 31 Aug 2007 18:21:14 -0000 >@@ -27,6 +27,7 @@ > import org.eclipse.rse.files.ui.dialogs.SystemRemoteFileDialog; > import org.eclipse.rse.subsystems.files.core.subsystems.IRemoteFile; > import org.eclipse.rse.ui.RSESystemTypeAdapter; >+import org.eclipse.rse.ui.RSEUIPlugin; > import org.eclipse.rse.ui.actions.SystemNewConnectionAction; > import org.eclipse.swt.SWT; > import org.eclipse.swt.events.ModifyEvent; >@@ -328,8 +329,12 @@ > } > > protected void updateConnectionPulldown() { >- connectionCombo.removeAll(); >- IHost[] connections = RSECorePlugin.getTheSystemRegistry().getHostsBySubSystemConfigurationCategory("shells"); //$NON-NLS-1$ >+ connectionCombo.removeAll(); >+ // start RSEUIPlugin to make sure the SystemRegistry is initialized. >+ boolean isRegistryActive = RSEUIPlugin.isTheSystemRegistryActive(); >+ if (isRegistryActive) { >+ IHost[] connections = RSECorePlugin.getTheSystemRegistry() >+ .getHosts(); > for(int i = 0; i < connections.length; i++) { > IRSESystemType sysType = connections[i].getSystemType(); > RSESystemTypeAdapter a = (RSESystemTypeAdapter)sysType.getAdapter(RSESystemTypeAdapter.class); >@@ -340,6 +345,7 @@ > > if(connections.length > 0) > connectionCombo.select(connections.length - 1); >+ } > } > > protected void updateTargetProgFromConfig(ILaunchConfiguration config) {
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
Flags:
mober.at+eclipse
:
iplog+
Actions:
View
|
Diff
Attachments on
bug 190613
: 77497