public abstract class SelectionAdapterFileDialog<T>
extends org.eclipse.swt.events.SelectionAdapter
Constructor and Description |
---|
SelectionAdapterFileDialog(LogChannelInterface log,
T textWidget,
AbstractMeta meta,
SelectionAdapterOptions options) |
SelectionAdapterFileDialog(LogChannelInterface log,
T textWidget,
AbstractMeta meta,
SelectionAdapterOptions options,
RepositoryUtility repositoryUtility,
ExtensionPointWrapper extensionPointWrapper) |
Modifier and Type | Method and Description |
---|---|
protected String |
concat(String path,
String name) |
protected abstract String |
getText()
Get text of widget.
|
T |
getTextWidget()
Get underlying widget that will get text assigned.
|
protected boolean |
isUrl(String path) |
protected String |
resolveFile(AbstractMeta abstractMeta,
String unresolvedPath) |
protected void |
setFilter(FileDialogOperation fileDialogOperation,
String[] filters)
Helper function for
FileDialogOperation.setFilter(java.lang.String) . |
protected abstract void |
setText(String text)
Set text for widget.
|
void |
widgetSelected(org.eclipse.swt.events.SelectionEvent selectionEvent) |
public SelectionAdapterFileDialog(LogChannelInterface log, T textWidget, AbstractMeta meta, SelectionAdapterOptions options, RepositoryUtility repositoryUtility, ExtensionPointWrapper extensionPointWrapper)
public SelectionAdapterFileDialog(LogChannelInterface log, T textWidget, AbstractMeta meta, SelectionAdapterOptions options)
public void widgetSelected(org.eclipse.swt.events.SelectionEvent selectionEvent)
widgetSelected
in interface org.eclipse.swt.events.SelectionListener
widgetSelected
in class org.eclipse.swt.events.SelectionAdapter
public T getTextWidget()
protected abstract String getText()
protected abstract void setText(String text)
text
- text to be setprotected String resolveFile(AbstractMeta abstractMeta, String unresolvedPath)
protected void setFilter(FileDialogOperation fileDialogOperation, String[] filters)
FileDialogOperation.setFilter(java.lang.String)
. Blank entries in filters
will be removed.
If an "blank" array is entered, the less restrictive filters option {FilterType.ALL} will be applied.fileDialogOperation
- filters
- protected boolean isUrl(String path)
Copyright © 2020 Hitachi Vantara. All rights reserved.