Search in sources :

Example 31 with IInputValidator

use of org.eclipse.jface.dialogs.IInputValidator in project tmdm-studio-se by Talend.

the class SelectImportedModulesDialog method createDialogArea.

@Override
protected Control createDialogArea(Composite parent) {
    parent.getShell().setText(this.title);
    Composite composite = (Composite) super.createDialogArea(parent);
    GridLayout layout = (GridLayout) composite.getLayout();
    layout.numColumns = 2;
    SashForm form = new SashForm(composite, SWT.HORIZONTAL);
    GridData data = new GridData(GridData.FILL, GridData.FILL, true, true, 1, 1);
    data.widthHint = 400;
    data.heightHint = 300;
    form.setLayoutData(data);
    entityViewer = createTableViewer(form, "Entities", entityprovider, new XSDTreeLabelProvider());
    typeViewer = createTableViewer(form, "Types", typeprovider, new TypesLabelProvider());
    form.setWeights(new int[] { 3, 5 });
    Composite compositeBtn = new Composite(composite, SWT.FILL);
    compositeBtn.setLayoutData(new GridData(SWT.FILL, SWT.NONE, false, false, 1, 1));
    compositeBtn.setLayout(new GridLayout(1, false));
    Button addXSDFromLocal = new Button(compositeBtn, SWT.PUSH | SWT.FILL);
    addXSDFromLocal.setLayoutData(new GridData(SWT.FILL, SWT.NONE, false, false, 1, 1));
    addXSDFromLocal.setText(Messages.AddXsdFromlocal);
    addXSDFromLocal.setToolTipText(Messages.AddXsdSchemaFromlocal);
    addXSDFromLocal.addSelectionListener(new SelectionListener() {

        @Override
        public void widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent e) {
        }

        @Override
        public void widgetSelected(org.eclipse.swt.events.SelectionEvent e) {
            FileDialog fd = new FileDialog(shell.getShell(), SWT.SAVE);
            // $NON-NLS-1$
            fd.setFilterExtensions(new String[] { "*.xsd" });
            fd.setText(Messages.ImportXSDSchema);
            String filename = fd.open();
            if (filename == null) {
                return;
            }
            URL url = getSourceURL("file:///" + filename);
            addSchema(url, true);
        }
    });
    if (exAdapter != null) {
        exAdapter.createDialogArea(compositeBtn);
    }
    Button impXSDFromExchange = new Button(compositeBtn, SWT.PUSH | SWT.FILL);
    impXSDFromExchange.setLayoutData(new GridData(SWT.FILL, SWT.NONE, false, false, 1, 1));
    impXSDFromExchange.setText(Messages.ImportFromExchangeServer);
    impXSDFromExchange.setToolTipText(Messages.ImportSchemaFromServer);
    impXSDFromExchange.addSelectionListener(new SelectionListener() {

        @Override
        public void widgetDefaultSelected(SelectionEvent e) {
        }

        @Override
        public void widgetSelected(SelectionEvent e) {
            StringBuffer repository = new StringBuffer();
            ImportExchangeOptionsDialog dlg = new ImportExchangeOptionsDialog(shell.getShell(), null, false, repository);
            dlg.setBlockOnOpen(true);
            int ret = dlg.open();
            if (ret == Window.OK) {
                File dir = new File(repository.toString());
                File[] fs = dir.listFiles(new FileFilter() {

                    @Override
                    public boolean accept(File pathname) {
                        return pathname.getName().endsWith(".xsd");
                    }
                });
                if (null == fs || fs.length == 0) {
                    MessageDialog.openWarning(getShell(), Messages.import_schema_failed, Messages.no_schema_available);
                    return;
                }
                for (File file : fs) {
                    URL url = getSourceURL("file:///" + file.getPath());
                    addSchema(url, true);
                }
            }
        }
    });
    Button addXSDFromInputDlg = new Button(compositeBtn, SWT.PUSH | SWT.FILL);
    addXSDFromInputDlg.setLayoutData(new GridData(SWT.FILL, SWT.NONE, false, false, 1, 1));
    addXSDFromInputDlg.setText(Messages.AddXsdFromOther);
    addXSDFromInputDlg.setToolTipText(Messages.AddFromOtherSite);
    addXSDFromInputDlg.addSelectionListener(new SelectionListener() {

        @Override
        public void widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent e) {
        }

        @Override
        public void widgetSelected(org.eclipse.swt.events.SelectionEvent e) {
            InputDialog id = new InputDialog(shell.getShell(), Messages.AddXsdFromOther, Messages.EnterTextUrl, "", new // $NON-NLS-1$
            IInputValidator() {

                @Override
                public String isValid(String newText) {
                    if ((newText == null) || "".equals(newText)) {
                        return Messages.NameNotEmpty;
                    }
                    return null;
                }
            });
            id.setBlockOnOpen(true);
            int ret = id.open();
            if (ret == Window.CANCEL) {
                return;
            }
            URL url = getSourceURL(id.getValue());
            addSchema(url, true);
        }
    });
    entityViewer.setInput(addContent);
    typeViewer.setInput(addContent);
    return composite;
}
Also used : InputDialog(org.eclipse.jface.dialogs.InputDialog) Composite(org.eclipse.swt.widgets.Composite) XSDTreeLabelProvider(com.amalto.workbench.providers.XSDTreeLabelProvider) TypesLabelProvider(com.amalto.workbench.providers.TypesLabelProvider) URL(java.net.URL) SashForm(org.eclipse.swt.custom.SashForm) GridLayout(org.eclipse.swt.layout.GridLayout) Button(org.eclipse.swt.widgets.Button) GridData(org.eclipse.swt.layout.GridData) SelectionEvent(org.eclipse.swt.events.SelectionEvent) SelectionEvent(org.eclipse.swt.events.SelectionEvent) FileFilter(java.io.FileFilter) FileDialog(org.eclipse.swt.widgets.FileDialog) File(java.io.File) SelectionListener(org.eclipse.swt.events.SelectionListener) IInputValidator(org.eclipse.jface.dialogs.IInputValidator)

Example 32 with IInputValidator

use of org.eclipse.jface.dialogs.IInputValidator in project tmdm-studio-se by Talend.

the class TransformerMainPage method rename.

public void rename(Object arg) {
    if (arg != null && (arg == stepsList || arg == stepWidget.inputViewer || arg == stepWidget.outputViewer)) {
        int index = stepsList.getSelectionIndices()[0];
        String stepName = stepsList.getItem(index);
        InputDialog id = new InputDialog(this.getSite().getShell(), Messages.TransformerMainPage_Rename, Messages.TransformerMainPage_InputDialogTitle, stepName, new IInputValidator() {

            public String isValid(String newText) {
                if ((newText == null) || newText.length() == 0) {
                    return Messages.TransformerMainPage_NameCannotbeEmpty;
                }
                return null;
            }
        });
        if (id.open() == Window.OK) {
            transformer.getProcessSteps().get(stepsList.getSelectionIndex()).setDescription(id.getValue());
            refreshData();
            markDirtyWithoutCommit();
        }
    }
}
Also used : InputDialog(org.eclipse.jface.dialogs.InputDialog) IInputValidator(org.eclipse.jface.dialogs.IInputValidator)

Example 33 with IInputValidator

use of org.eclipse.jface.dialogs.IInputValidator in project eclipse.platform.ui by eclipse-platform.

the class CopyFilesAndFoldersOperation method getNewNameFor.

/**
 * Returns a new name for a copy of the resource at the given path in the
 * given workspace.
 *
 * @param originalName
 *            the full path of the resource
 * @param workspace
 *            the workspace
 * @return the new full path for the copy, or <code>null</code> if the
 *         resource should not be copied
 */
private IPath getNewNameFor(final IPath originalName, final IWorkspace workspace) {
    final IResource resource = workspace.getRoot().findMember(originalName);
    final IPath prefix = resource.getFullPath().removeLastSegments(1);
    // $NON-NLS-1$
    final String[] returnValue = { "" };
    messageShell.getDisplay().syncExec(() -> {
        IInputValidator validator = new IInputValidator() {

            @Override
            public String isValid(String string) {
                if (resource.getName().equals(string)) {
                    return IDEWorkbenchMessages.CopyFilesAndFoldersOperation_nameMustBeDifferent;
                }
                IStatus status = workspace.validateName(string, resource.getType());
                if (!status.isOK()) {
                    return status.getMessage();
                }
                if (workspace.getRoot().exists(prefix.append(string))) {
                    return IDEWorkbenchMessages.CopyFilesAndFoldersOperation_nameExists;
                }
                return null;
            }
        };
        final String initial = getAutoNewNameFor(originalName, workspace).lastSegment();
        InputDialog dialog = new InputDialog(messageShell, IDEWorkbenchMessages.CopyFilesAndFoldersOperation_inputDialogTitle, NLS.bind(IDEWorkbenchMessages.CopyFilesAndFoldersOperation_inputDialogMessage, resource.getName()), initial, validator) {

            @Override
            protected Control createContents(Composite parent) {
                Control contents = super.createContents(parent);
                int lastIndexOfDot = initial.lastIndexOf('.');
                if (resource instanceof IFile && lastIndexOfDot > 0) {
                    getText().setSelection(0, lastIndexOfDot);
                }
                return contents;
            }
        };
        dialog.setBlockOnOpen(true);
        dialog.open();
        if (dialog.getReturnCode() == Window.CANCEL) {
            returnValue[0] = null;
        } else {
            returnValue[0] = dialog.getValue();
        }
    });
    if (returnValue[0] == null) {
        throw new OperationCanceledException();
    }
    return prefix.append(returnValue[0]);
}
Also used : IStatus(org.eclipse.core.runtime.IStatus) Control(org.eclipse.swt.widgets.Control) InputDialog(org.eclipse.jface.dialogs.InputDialog) IFile(org.eclipse.core.resources.IFile) IPath(org.eclipse.core.runtime.IPath) Composite(org.eclipse.swt.widgets.Composite) OperationCanceledException(org.eclipse.core.runtime.OperationCanceledException) IResource(org.eclipse.core.resources.IResource) IInputValidator(org.eclipse.jface.dialogs.IInputValidator)

Example 34 with IInputValidator

use of org.eclipse.jface.dialogs.IInputValidator in project cicada by aquariusStudio.

the class ParseMovieAction method run.

/**
 * {@inheritDoc}}
 */
@Override
public void run() {
    if (this.window != null) {
        IInputValidator validator = new UrlInputValidator();
        String content = ClipboardUtil.getStringFromClipboard();
        if (StringUtils.isNotBlank(validator.isValid(content))) {
            content = "";
        }
        DownloadExternalUrlDialog dialog = new DownloadExternalUrlDialog(this.window.getShell(), Messages.ParseMovieAction_DownloadDialogTitle, Messages.ParseMovieAction_DownloadDialogMessage, content, validator);
        if (dialog.open() == Dialog.OK) {
            String[] urlStrings = StringUtil.toLines(dialog.getValue());
            List<String> urlStringList = CollectionUtil.removeDuplicated(urlStrings);
            ParseMovieJob job = new ParseMovieJob(Messages.ParseMovieAction_ParseMovie, dialog.isDirectDownload(), urlStringList);
            job.setUser(true);
            job.schedule();
        }
    }
}
Also used : ParseMovieJob(org.aquarius.cicada.workbench.job.ParseMovieJob) UrlInputValidator(org.aquarius.ui.validator.UrlInputValidator) DownloadExternalUrlDialog(org.aquarius.cicada.workbench.dialog.DownloadExternalUrlDialog) IInputValidator(org.eclipse.jface.dialogs.IInputValidator)

Example 35 with IInputValidator

use of org.eclipse.jface.dialogs.IInputValidator in project portfolio by buchen.

the class QuotesContextMenu method menuAboutToShow.

public void menuAboutToShow(IMenuManager parent, final Security security) {
    IMenuManager manager = new MenuManager(Messages.SecurityMenuQuotes);
    parent.add(manager);
    Action action = new Action(Messages.SecurityMenuUpdateQuotes) {

        @Override
        public void run() {
            new UpdateQuotesJob(owner.getClient(), security).schedule();
        }
    };
    // enable only if online updates are configured
    action.setEnabled(!QuoteFeed.MANUAL.equals(security.getFeed()) || (security.getLatestFeed() != null && !QuoteFeed.MANUAL.equals(security.getLatestFeed())));
    manager.add(action);
    action = new SimpleAction(Messages.SecurityMenuDebugGetHistoricalQuotes, a -> {
        try {
            new ProgressMonitorDialog(Display.getDefault().getActiveShell()).run(true, true, m -> {
                if (QuoteFeed.MANUAL.equals(security.getFeed()))
                    return;
                QuoteFeed feed = Factory.getQuoteFeedProvider(security.getFeed());
                if (feed == null)
                    return;
                QuoteFeedData data = feed.getHistoricalQuotes(security, true);
                PortfolioPlugin.log(data.getErrors());
                Display.getDefault().asyncExec(() -> {
                    if (!data.getResponses().isEmpty() || data.getErrors().isEmpty()) {
                        new RawResponsesDialog(Display.getDefault().getActiveShell(), data.getResponses()).open();
                    } else {
                        MultiStatus status = new MultiStatus(PortfolioPlugin.PLUGIN_ID, IStatus.ERROR, security.getName(), null);
                        data.getErrors().forEach(e -> status.add(new Status(IStatus.ERROR, PortfolioPlugin.PLUGIN_ID, e.getMessage())));
                        ErrorDialog.openError(Display.getDefault().getActiveShell(), Messages.LabelError, security.getName(), status);
                    }
                });
            });
        } catch (InvocationTargetException e) {
            PortfolioPlugin.log(e);
            MessageDialog.openError(Display.getDefault().getActiveShell(), Messages.LabelError, e.getCause().getMessage());
        } catch (InterruptedException e) {
            Thread.currentThread().interrupt();
        }
    });
    action.setEnabled(!QuoteFeed.MANUAL.equals(security.getFeed()));
    manager.add(action);
    manager.add(new Action(Messages.SecurityMenuConfigureOnlineUpdate) {

        @Override
        public void run() {
            EditSecurityDialog dialog = owner.make(EditSecurityDialog.class, security);
            dialog.setShowQuoteConfigurationInitially(true);
            if (dialog.open() != Window.OK)
                return;
            owner.markDirty();
            owner.notifyModelUpdated();
        }
    });
    manager.add(new Separator());
    manager.add(new Action(Messages.SecurityMenuImportCSV) {

        @Override
        public void run() {
            FileDialog fileDialog = new FileDialog(Display.getDefault().getActiveShell(), SWT.OPEN);
            fileDialog.setFilterNames(new String[] { Messages.CSVImportLabelFileCSV, Messages.CSVImportLabelFileAll });
            // $NON-NLS-1$ //$NON-NLS-2$
            fileDialog.setFilterExtensions(new String[] { "*.csv", "*.*" });
            String fileName = fileDialog.open();
            if (fileName == null)
                return;
            CSVImportWizard wizard = new CSVImportWizard(owner.getClient(), owner.getPreferenceStore(), new File(fileName));
            owner.inject(wizard);
            wizard.setTarget(security);
            Dialog dialog = new WizardDialog(Display.getDefault().getActiveShell(), wizard);
            if (dialog.open() != Window.OK)
                return;
            owner.markDirty();
            owner.notifyModelUpdated();
        }
    });
    manager.add(new Action(Messages.SecurityMenuImportHTML) {

        @Override
        public void run() {
            Dialog dialog = new WizardDialog(Display.getDefault().getActiveShell(), new ImportQuotesWizard(security));
            if (dialog.open() != Window.OK)
                return;
            owner.markDirty();
            owner.notifyModelUpdated();
        }
    });
    manager.add(new Action(Messages.SecurityMenuCreateManually) {

        @Override
        public void run() {
            Dialog dialog = new SecurityPriceDialog(Display.getDefault().getActiveShell(), owner.getClient(), security);
            if (dialog.open() != Window.OK)
                return;
            owner.markDirty();
            owner.notifyModelUpdated();
        }
    });
    manager.add(new Separator());
    manager.add(new Action(Messages.SecurityMenuExportCSV) {

        @Override
        public void run() {
            FileDialog fileDialog = new FileDialog(Display.getDefault().getActiveShell(), SWT.SAVE);
            // $NON-NLS-1$
            fileDialog.setFileName(TextUtil.sanitizeFilename(security.getName() + ".csv"));
            fileDialog.setOverwrite(true);
            String fileName = fileDialog.open();
            if (fileName == null)
                return;
            try {
                new CSVExporter().exportSecurityPrices(new File(fileName), security);
            } catch (IOException e) {
                PortfolioPlugin.log(e);
                MessageDialog.openError(Display.getDefault().getActiveShell(), Messages.LabelError, e.getMessage());
            }
        }
    });
    manager.add(new Separator());
    if (security.getCurrencyCode() != null) {
        manager.add(new Action(Messages.SecurityMenuCreateQuotesFromTransactions) {

            @Override
            public void run() {
                ExchangeRateProviderFactory factory = owner.getFromContext(ExchangeRateProviderFactory.class);
                CurrencyConverter converter = new CurrencyConverterImpl(factory, security.getCurrencyCode());
                QuoteFromTransactionExtractor qte = new QuoteFromTransactionExtractor(owner.getClient(), converter);
                if (qte.extractQuotes(security)) {
                    owner.markDirty();
                    owner.notifyModelUpdated();
                }
            }
        });
    }
    if (security.getLatest() != null) {
        manager.add(new SimpleAction(Messages.SecurityMenuDeleteLatestQuote, a -> {
            security.setLatest(null);
            owner.markDirty();
            owner.notifyModelUpdated();
        }));
    }
    manager.add(new SimpleAction(Messages.SecurityMenuRoundToXDecimalPlaces, a -> {
        IInputValidator validator = newText -> {
            try {
                int decimalPlaces = Integer.parseInt(newText);
                if (decimalPlaces < 0 || decimalPlaces > Values.Quote.precision())
                    return MessageFormat.format(Messages.SecurityMenuErrorMessageRoundingMustBeBetween0AndX, Values.Quote.precision());
                return null;
            } catch (NumberFormatException e) {
                return String.format(Messages.CellEditor_NotANumber, newText);
            }
        };
        InputDialog dialog = new InputDialog(Display.getCurrent().getActiveShell(), Messages.SecurityMenuRoundToXDecimalPlaces, Messages.SecurityMenuLabelNumberOfDecimalPlaces, String.valueOf(4), validator);
        if (dialog.open() != Window.OK)
            return;
        int newPrecision = Integer.parseInt(dialog.getValue());
        boolean isDirty = false;
        for (SecurityPrice price : security.getPrices()) {
            final long oldValue = price.getValue();
            final long newValue = BigDecimal.valueOf(oldValue).movePointLeft(Values.Quote.precision()).setScale(newPrecision, Values.MC.getRoundingMode()).movePointRight(Values.Quote.precision()).longValue();
            if (oldValue != newValue) {
                price.setValue(newValue);
                isDirty = true;
            }
        }
        if (isDirty) {
            owner.markDirty();
            owner.notifyModelUpdated();
        }
    }));
}
Also used : InputDialog(org.eclipse.jface.dialogs.InputDialog) ImportQuotesWizard(name.abuchen.portfolio.ui.wizards.datatransfer.ImportQuotesWizard) MultiStatus(org.eclipse.core.runtime.MultiStatus) Values(name.abuchen.portfolio.money.Values) QuoteFromTransactionExtractor(name.abuchen.portfolio.util.QuoteFromTransactionExtractor) CurrencyConverterImpl(name.abuchen.portfolio.money.CurrencyConverterImpl) RawResponsesDialog(name.abuchen.portfolio.ui.wizards.security.RawResponsesDialog) CSVExporter(name.abuchen.portfolio.datatransfer.csv.CSVExporter) ErrorDialog(org.eclipse.jface.dialogs.ErrorDialog) BigDecimal(java.math.BigDecimal) IStatus(org.eclipse.core.runtime.IStatus) MessageFormat(com.ibm.icu.text.MessageFormat) TextUtil(name.abuchen.portfolio.util.TextUtil) SecurityPriceDialog(name.abuchen.portfolio.ui.dialogs.SecurityPriceDialog) Messages(name.abuchen.portfolio.ui.Messages) Factory(name.abuchen.portfolio.online.Factory) MessageDialog(org.eclipse.jface.dialogs.MessageDialog) AbstractFinanceView(name.abuchen.portfolio.ui.editor.AbstractFinanceView) CSVImportWizard(name.abuchen.portfolio.ui.wizards.datatransfer.CSVImportWizard) Separator(org.eclipse.jface.action.Separator) ExchangeRateProviderFactory(name.abuchen.portfolio.money.ExchangeRateProviderFactory) FileDialog(org.eclipse.swt.widgets.FileDialog) MenuManager(org.eclipse.jface.action.MenuManager) ProgressMonitorDialog(org.eclipse.jface.dialogs.ProgressMonitorDialog) SimpleAction(name.abuchen.portfolio.ui.util.SimpleAction) Status(org.eclipse.core.runtime.Status) IOException(java.io.IOException) Action(org.eclipse.jface.action.Action) Security(name.abuchen.portfolio.model.Security) Display(org.eclipse.swt.widgets.Display) File(java.io.File) InvocationTargetException(java.lang.reflect.InvocationTargetException) PortfolioPlugin(name.abuchen.portfolio.ui.PortfolioPlugin) UpdateQuotesJob(name.abuchen.portfolio.ui.jobs.UpdateQuotesJob) Window(org.eclipse.jface.window.Window) EditSecurityDialog(name.abuchen.portfolio.ui.wizards.security.EditSecurityDialog) IMenuManager(org.eclipse.jface.action.IMenuManager) Dialog(org.eclipse.jface.dialogs.Dialog) WizardDialog(org.eclipse.jface.wizard.WizardDialog) CurrencyConverter(name.abuchen.portfolio.money.CurrencyConverter) QuoteFeedData(name.abuchen.portfolio.online.QuoteFeedData) IInputValidator(org.eclipse.jface.dialogs.IInputValidator) SWT(org.eclipse.swt.SWT) SecurityPrice(name.abuchen.portfolio.model.SecurityPrice) QuoteFeed(name.abuchen.portfolio.online.QuoteFeed) SimpleAction(name.abuchen.portfolio.ui.util.SimpleAction) Action(org.eclipse.jface.action.Action) CSVImportWizard(name.abuchen.portfolio.ui.wizards.datatransfer.CSVImportWizard) MultiStatus(org.eclipse.core.runtime.MultiStatus) UpdateQuotesJob(name.abuchen.portfolio.ui.jobs.UpdateQuotesJob) CurrencyConverter(name.abuchen.portfolio.money.CurrencyConverter) CSVExporter(name.abuchen.portfolio.datatransfer.csv.CSVExporter) InputDialog(org.eclipse.jface.dialogs.InputDialog) RawResponsesDialog(name.abuchen.portfolio.ui.wizards.security.RawResponsesDialog) ErrorDialog(org.eclipse.jface.dialogs.ErrorDialog) SecurityPriceDialog(name.abuchen.portfolio.ui.dialogs.SecurityPriceDialog) MessageDialog(org.eclipse.jface.dialogs.MessageDialog) FileDialog(org.eclipse.swt.widgets.FileDialog) ProgressMonitorDialog(org.eclipse.jface.dialogs.ProgressMonitorDialog) EditSecurityDialog(name.abuchen.portfolio.ui.wizards.security.EditSecurityDialog) Dialog(org.eclipse.jface.dialogs.Dialog) WizardDialog(org.eclipse.jface.wizard.WizardDialog) SecurityPrice(name.abuchen.portfolio.model.SecurityPrice) QuoteFeedData(name.abuchen.portfolio.online.QuoteFeedData) QuoteFeed(name.abuchen.portfolio.online.QuoteFeed) MultiStatus(org.eclipse.core.runtime.MultiStatus) IStatus(org.eclipse.core.runtime.IStatus) Status(org.eclipse.core.runtime.Status) SecurityPriceDialog(name.abuchen.portfolio.ui.dialogs.SecurityPriceDialog) InputDialog(org.eclipse.jface.dialogs.InputDialog) ProgressMonitorDialog(org.eclipse.jface.dialogs.ProgressMonitorDialog) RawResponsesDialog(name.abuchen.portfolio.ui.wizards.security.RawResponsesDialog) IOException(java.io.IOException) SimpleAction(name.abuchen.portfolio.ui.util.SimpleAction) EditSecurityDialog(name.abuchen.portfolio.ui.wizards.security.EditSecurityDialog) ExchangeRateProviderFactory(name.abuchen.portfolio.money.ExchangeRateProviderFactory) InvocationTargetException(java.lang.reflect.InvocationTargetException) CurrencyConverterImpl(name.abuchen.portfolio.money.CurrencyConverterImpl) QuoteFromTransactionExtractor(name.abuchen.portfolio.util.QuoteFromTransactionExtractor) ImportQuotesWizard(name.abuchen.portfolio.ui.wizards.datatransfer.ImportQuotesWizard) MenuManager(org.eclipse.jface.action.MenuManager) IMenuManager(org.eclipse.jface.action.IMenuManager) IMenuManager(org.eclipse.jface.action.IMenuManager) FileDialog(org.eclipse.swt.widgets.FileDialog) File(java.io.File) WizardDialog(org.eclipse.jface.wizard.WizardDialog) Separator(org.eclipse.jface.action.Separator) IInputValidator(org.eclipse.jface.dialogs.IInputValidator)

Aggregations

IInputValidator (org.eclipse.jface.dialogs.IInputValidator)101 InputDialog (org.eclipse.jface.dialogs.InputDialog)88 Composite (org.eclipse.swt.widgets.Composite)20 IStatus (org.eclipse.core.runtime.IStatus)16 SelectionEvent (org.eclipse.swt.events.SelectionEvent)13 ArrayList (java.util.ArrayList)12 Button (org.eclipse.swt.widgets.Button)12 GridData (org.eclipse.swt.layout.GridData)11 GridLayout (org.eclipse.swt.layout.GridLayout)10 FacetsListInputDialog (com.amalto.workbench.dialogs.FacetsListInputDialog)9 List (java.util.List)8 IStructuredSelection (org.eclipse.jface.viewers.IStructuredSelection)8 Label (org.eclipse.swt.widgets.Label)8 SelectionListener (org.eclipse.swt.events.SelectionListener)7 Control (org.eclipse.swt.widgets.Control)7 Display (org.eclipse.swt.widgets.Display)7 IResource (org.eclipse.core.resources.IResource)6 CoreException (org.eclipse.core.runtime.CoreException)6 Window (org.eclipse.jface.window.Window)6 Event (org.eclipse.swt.widgets.Event)6