Search in sources :

Example 1 with ToolboxFilterDialog

use of com.centurylink.mdw.plugin.designer.dialogs.ToolboxFilterDialog in project mdw-designer by CenturyLinkCloud.

the class ToolboxView method handleFilter.

public void handleFilter() {
    if (isDirty()) {
        MessageDialog.openWarning(getSite().getShell(), MSG_SAVE, "Please save or abandon outstanding changes before filtering");
        return;
    }
    WorkflowProject project = getProject();
    try {
        ToolboxFilterDialog filterDlg = new ToolboxFilterDialog(getSite().getShell(), project, project.getSuppressedActivityImplementors());
        int res = filterDlg.open();
        if (res == Dialog.OK) {
            project.setSuppressedActivityImplementors(filterDlg.getSuppressedImplementors());
            toolboxWrapper.update();
            actionGroup.getDeleteAction().setEnabled(false);
        }
    } catch (IOException ex) {
        PluginMessages.uiError(ex, "Filter Implementors", project);
    }
}
Also used : WorkflowProject(com.centurylink.mdw.plugin.project.model.WorkflowProject) ToolboxFilterDialog(com.centurylink.mdw.plugin.designer.dialogs.ToolboxFilterDialog) IOException(java.io.IOException)

Aggregations

ToolboxFilterDialog (com.centurylink.mdw.plugin.designer.dialogs.ToolboxFilterDialog)1 WorkflowProject (com.centurylink.mdw.plugin.project.model.WorkflowProject)1 IOException (java.io.IOException)1