Search in sources :

Example 1 with ProviderFilterType

use of org.pentaho.di.ui.core.events.dialog.ProviderFilterType in project pentaho-kettle by pentaho.

the class JobEntryTransDialog method selectTransformation.

private void selectTransformation(ProviderFilterType providerFilterType) {
    SelectionAdapterFileDialogTextVar selectionAdapterFileDialogTextVar = new SelectionAdapterFileDialogTextVar(log, wPath, jobMeta, new SelectionAdapterOptions(SelectionOperation.FILE, new FilterType[] { FilterType.KTR, FilterType.XML, FilterType.ALL }, FilterType.KTR, new ProviderFilterType[] { providerFilterType }));
    selectionAdapterFileDialogTextVar.widgetSelected(null);
    if (wPath.getText() != null && Const.isWindows()) {
        wPath.setText(wPath.getText().replace('\\', '/'));
    }
}
Also used : FilterType(org.pentaho.di.ui.core.events.dialog.FilterType) ProviderFilterType(org.pentaho.di.ui.core.events.dialog.ProviderFilterType) ProviderFilterType(org.pentaho.di.ui.core.events.dialog.ProviderFilterType) SelectionAdapterOptions(org.pentaho.di.ui.core.events.dialog.SelectionAdapterOptions) SelectionAdapterFileDialogTextVar(org.pentaho.di.ui.core.events.dialog.SelectionAdapterFileDialogTextVar)

Example 2 with ProviderFilterType

use of org.pentaho.di.ui.core.events.dialog.ProviderFilterType in project pentaho-kettle by pentaho.

the class JobEntryJobDialog method selectJob.

private void selectJob(ProviderFilterType providerFilterType) {
    SelectionAdapterFileDialogTextVar selectionAdapterFileDialogTextVar = new SelectionAdapterFileDialogTextVar(log, wPath, jobMeta, new SelectionAdapterOptions(SelectionOperation.FILE, new FilterType[] { FilterType.KJB, FilterType.XML, FilterType.ALL }, FilterType.KJB, new ProviderFilterType[] { providerFilterType }));
    selectionAdapterFileDialogTextVar.widgetSelected(null);
    if (wPath.getText() != null && Const.isWindows()) {
        wPath.setText(wPath.getText().replace('\\', '/'));
    }
}
Also used : FilterType(org.pentaho.di.ui.core.events.dialog.FilterType) ProviderFilterType(org.pentaho.di.ui.core.events.dialog.ProviderFilterType) ProviderFilterType(org.pentaho.di.ui.core.events.dialog.ProviderFilterType) SelectionAdapterOptions(org.pentaho.di.ui.core.events.dialog.SelectionAdapterOptions) SelectionAdapterFileDialogTextVar(org.pentaho.di.ui.core.events.dialog.SelectionAdapterFileDialogTextVar)

Aggregations

FilterType (org.pentaho.di.ui.core.events.dialog.FilterType)2 ProviderFilterType (org.pentaho.di.ui.core.events.dialog.ProviderFilterType)2 SelectionAdapterFileDialogTextVar (org.pentaho.di.ui.core.events.dialog.SelectionAdapterFileDialogTextVar)2 SelectionAdapterOptions (org.pentaho.di.ui.core.events.dialog.SelectionAdapterOptions)2