mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-03 15:15:25 +02:00
Rename extension point to ftpFileEntryParsers and add to ISV Docs
This commit is contained in:
parent
cacf25a6ee
commit
95eb3ec719
5 changed files with 22 additions and 19 deletions
|
@ -17,6 +17,8 @@
|
|||
<li><a href="org_eclipse_rse_core_systemTypeProviders.html">org.eclipse.rse.core.systemTypeProviders</a></li>
|
||||
<li><a href="org_eclipse_rse_core_subsystemConfigurations.html">org.eclipse.rse.core.subsystemConfigurations</a></li>
|
||||
<li><a href="org_eclipse_rse_services_archivehandlers.html">org.eclipse.rse.services.archivehandlers</a></li>
|
||||
<li><a href="org_eclipse_rse_services_archivehandlers.html">org.eclipse.rse.services.archivehandlers</a></li>
|
||||
<li><a href="org_eclipse_rse_subsystems_files_ftp_ftpFileEntryParsers.html">org.eclipse.rse.subsystems.files.ftp.ftpFileEntryParsers</a></li>
|
||||
<!-- TODODeferred after RSE 1.0
|
||||
<li><a href="org_eclipse_rse_ui_compile.html">org.eclipse.rse.ui.compile</a></li>
|
||||
-->
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
<topic label="org.eclipse.rse.core.keystoreProviders" href="reference/extension-points/org_eclipse_rse_core_keystoreProviders.html" />
|
||||
<topic label="org.eclipse.rse.core.persistenceProviders" href="reference/extension-points/org_eclipse_rse_core_persistenceProviders.html" />
|
||||
<topic label="org.eclipse.rse.services.archivehandlers" href="reference/extension-points/org_eclipse_rse_services_archivehandlers.html" />
|
||||
<topic label="org.eclipse.rse.subsystems.files.ftp.ftpFileEntryParsers" href="reference/extension-points/org_eclipse_rse_subsystems_files_ftp_ftpFileEntryParsers.html" />
|
||||
<!-- TODODeferred after RSE 1.0
|
||||
<topic label="org.eclipse.rse.ui.compile" href="reference/extension-points/org_eclipse_rse_ui_compile.html" />
|
||||
-->
|
||||
|
|
|
@ -46,9 +46,9 @@ Javier Montalvo Orus (Symbian) - improved autodetection of FTPListingParser
|
|||
</configuration>
|
||||
</extension>
|
||||
|
||||
<extension-point id="ftpFileEntryParser" name="ftpFileEntryParser" schema="schema/ftpFileEntryParser.exsd"/>
|
||||
<extension-point id="ftpFileEntryParsers" name="ftpFileEntryParsers" schema="schema/ftpFileEntryParsers.exsd"/>
|
||||
|
||||
<extension point="org.eclipse.rse.subsystems.files.ftp.ftpFileEntryParser">
|
||||
<extension point="org.eclipse.rse.subsystems.files.ftp.ftpFileEntryParsers">
|
||||
<parser
|
||||
class="org.apache.commons.net.ftp.parser.UnixFTPEntryParser"
|
||||
id="org.eclipse.rse.ftp.parser.Unix"
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<schema targetNamespace="org.eclipse.rse.subsystems.files.ftp">
|
||||
<annotation>
|
||||
<appInfo>
|
||||
<meta.schema plugin="org.eclipse.rse.subsystems.files.ftp" id="ftpFileEntryParser" name="ftpFileEntryParser"/>
|
||||
<meta.schema plugin="org.eclipse.rse.subsystems.files.ftp" id="ftpFileEntryParsers" name="ftpFileEntryParsers"/>
|
||||
</appInfo>
|
||||
<documentation>
|
||||
Extension point that allows providing extra parsers for the FTP LIST command output.
|
||||
|
@ -235,7 +235,7 @@ If no priority is specified, the default value will be <code>Integer.MAX_V
|
|||
<meta.section type="copyright"/>
|
||||
</appInfo>
|
||||
<documentation>
|
||||
Copyright (c) 2007 Symbian Software Ltd. All rights reserved.
|
||||
Copyright (c) 2007 Symbian Software Ltd. 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
|
|
@ -31,9 +31,9 @@ public class FTPClientConfigFactory implements IFTPClientConfigFactory {
|
|||
|
||||
private Hashtable ftpConfigProxyById = new Hashtable();
|
||||
|
||||
private Hashtable ftpConfig = new Hashtable();
|
||||
private Hashtable ftpFileEntryParser = new Hashtable();
|
||||
private IExtensionPoint ep = Platform.getExtensionRegistry().getExtensionPoint("org.eclipse.rse.subsystems.files.ftp","ftpFileEntryParser"); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
private Hashtable ftpConfigs = new Hashtable();
|
||||
private Hashtable ftpParsers = new Hashtable();
|
||||
private IExtensionPoint ep = Platform.getExtensionRegistry().getExtensionPoint("org.eclipse.rse.subsystems.files.ftp","ftpFileEntryParsers"); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
|
||||
/**
|
||||
* Constructor of the parser factory
|
||||
|
@ -118,7 +118,7 @@ public class FTPClientConfigFactory implements IFTPClientConfigFactory {
|
|||
{
|
||||
FTPClientConfig config = null;
|
||||
|
||||
if(!ftpFileEntryParser.containsKey(foundProxy.getClassName()))
|
||||
if(!ftpParsers.containsKey(foundProxy.getClassName()))
|
||||
{
|
||||
FTPFileEntryParser entryParser = null;
|
||||
try {
|
||||
|
@ -130,7 +130,7 @@ public class FTPClientConfigFactory implements IFTPClientConfigFactory {
|
|||
} catch (ClassNotFoundException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
ftpFileEntryParser.put(foundProxy.getClassName(), entryParser);
|
||||
ftpParsers.put(foundProxy.getClassName(), entryParser);
|
||||
}
|
||||
|
||||
config = new FTPClientConfig(foundProxy.getClassName());
|
||||
|
@ -151,10 +151,10 @@ public class FTPClientConfigFactory implements IFTPClientConfigFactory {
|
|||
|
||||
if(ftpClientConfig==null)
|
||||
{
|
||||
if(ftpConfig.containsKey(parser))
|
||||
if(ftpConfigs.containsKey(parser))
|
||||
{
|
||||
//restore parser from hashtable
|
||||
ftpClientConfig = (FTPClientConfig)ftpConfig.get(parser);
|
||||
ftpClientConfig = (FTPClientConfig)ftpConfigs.get(parser);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -169,7 +169,7 @@ public class FTPClientConfigFactory implements IFTPClientConfigFactory {
|
|||
{
|
||||
FTPClientConfig config = null;
|
||||
|
||||
if(!ftpFileEntryParser.containsKey(proxy.getClassName()))
|
||||
if(!ftpParsers.containsKey(proxy.getClassName()))
|
||||
{
|
||||
FTPFileEntryParser entryParser = null;
|
||||
try {
|
||||
|
@ -181,7 +181,7 @@ public class FTPClientConfigFactory implements IFTPClientConfigFactory {
|
|||
} catch (ClassNotFoundException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
ftpFileEntryParser.put(proxy.getClassName(), entryParser);
|
||||
ftpParsers.put(proxy.getClassName(), entryParser);
|
||||
}
|
||||
|
||||
config = new FTPClientConfig(proxy.getClassName());
|
||||
|
@ -193,8 +193,8 @@ public class FTPClientConfigFactory implements IFTPClientConfigFactory {
|
|||
config.setShortMonthNames(proxy.getShortMonthNames());
|
||||
config.setServerTimeZoneId(proxy.getServerTimeZoneId());
|
||||
|
||||
ftpConfig.put(parser, config);
|
||||
ftpClientConfig = (FTPClientConfig)ftpConfig.get(parser);
|
||||
ftpConfigs.put(parser, config);
|
||||
ftpClientConfig = (FTPClientConfig)ftpConfigs.get(parser);
|
||||
|
||||
break;
|
||||
|
||||
|
@ -223,10 +223,10 @@ public class FTPClientConfigFactory implements IFTPClientConfigFactory {
|
|||
public FTPFileEntryParser createFileEntryParser(String key) throws ParserInitializationException {
|
||||
|
||||
//
|
||||
// the hashtable "ftpFileEntryParser" will be populated previously by getFTPClientConfig()
|
||||
// the hashtable "ftpParsers" will be populated previously by getFTPClientConfig()
|
||||
// but in case the execution flow gets modified it's worth checking and populating it if required
|
||||
//
|
||||
if(!ftpFileEntryParser.containsKey(key))
|
||||
if(!ftpParsers.containsKey(key))
|
||||
{
|
||||
FTPClientConfigProxy proxy = (FTPClientConfigProxy)ftpConfigProxyById.get(key);
|
||||
|
||||
|
@ -240,11 +240,11 @@ public class FTPClientConfigFactory implements IFTPClientConfigFactory {
|
|||
} catch (ClassNotFoundException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
ftpFileEntryParser.put(proxy.getClassName(), entryParser);
|
||||
ftpParsers.put(proxy.getClassName(), entryParser);
|
||||
}
|
||||
|
||||
|
||||
return (FTPFileEntryParser)ftpFileEntryParser.get(key);
|
||||
return (FTPFileEntryParser)ftpParsers.get(key);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Reference in a new issue