P
- the supported IOProvider
typepublic class URLSource<P extends ImportProvider> extends AbstractProviderSource<P>
ImportSource.SourceConfiguration<P extends ImportProvider>
Constructor and Description |
---|
URLSource() |
Modifier and Type | Method and Description |
---|---|
void |
createControls(org.eclipse.swt.widgets.Composite parent)
Create the controls that enable the user to define the import source.
|
void |
dispose()
Dispose any resources when the source page is disposed.
|
protected LocatableInputSupplier<? extends InputStream> |
getSource()
Get the source to configure the import provider with.
|
protected boolean |
isValidSource()
Determines if the current page state will result in a valid source for
the import provider.
|
void |
onActivate()
Method that is called when the source page is activated.
|
protected void |
updateContentType()
Update the content type.
The default implementation only calls AbstractProviderSource.updateProvider() . |
protected void |
updateState(boolean updateContentType)
Update the page state.
|
createProviders, getProviders, onProviderSelectionChanged, updateConfiguration, updateProvider
getConfiguration, getPage, setConfiguration, setPage
public void createControls(org.eclipse.swt.widgets.Composite parent)
ImportSource
ImportSource.setPage(WizardPage)
and
ImportSource.setConfiguration(SourceConfiguration)
must have been called
before calling this method.parent
- the parent composite, implementors may assign a custom
layout to this compositeImportSource.createControls(Composite)
protected void updateContentType()
AbstractProviderSource
AbstractProviderSource.updateProvider()
.
Subclasses may add logic to change the content type in the source
configuration.updateContentType
in class AbstractProviderSource<P extends ImportProvider>
AbstractProviderSource.updateContentType()
protected void updateState(boolean updateContentType)
AbstractProviderSource
ImportSource.createControls(Composite)
to initialize
the page state.updateState
in class AbstractProviderSource<P extends ImportProvider>
updateContentType
- if true
the content type and the
supported providers will be updated before updating the page
stateAbstractProviderSource.updateState(boolean)
protected boolean isValidSource()
AbstractProviderSource
isValidSource
in class AbstractProviderSource<P extends ImportProvider>
AbstractProviderSource.isValidSource()
protected LocatableInputSupplier<? extends InputStream> getSource()
AbstractProviderSource
getSource
in class AbstractProviderSource<P extends ImportProvider>
null
if no valid source can be createdAbstractProviderSource.getSource()
public void dispose()
ImportSource
dispose
in interface ImportSource<P extends ImportProvider>
dispose
in class AbstractSource<P extends ImportProvider>
AbstractSource.dispose()
public void onActivate()
AbstractSource
onActivate
in interface ImportSource<P extends ImportProvider>
onActivate
in class AbstractSource<P extends ImportProvider>
AbstractSource.onActivate()
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a