Class PrintWizardParser


  • public class PrintWizardParser
    extends Object
    Parse object manager module and commands modules
    • Method Detail

      • parse

        public static List<PrintWizardParser.ParseResult> parse​(org.eclipse.emf.ecore.EObject object)
        Parse manager module, command mobule and template
        Parameters:
        object - - parent MD object
        Returns:
        parse result
      • findFeature

        public static org.eclipse.emf.ecore.EReference findFeature​(org.eclipse.emf.ecore.EObject object,
                                                                   String name)
        Find feature in EObject
        Parameters:
        object - - EObject
        name - - feature name
        Returns:
        feature. Return null if feature not found.
      • compareQueries

        public static boolean compareQueries​(String defaultQuery,
                                             QuerySchema defaultQuerySchema,
                                             String query,
                                             QuerySchema querySchema,
                                             org.eclipse.core.resources.IProject poject)
        Compare queries for print wizard
        Parameters:
        defaultQuery - - default print wizard query
        defaultQuerySchema - - default QuerySchema
        query - - query for compare
        querySchema - - QuerySchema
        poject - - project
        Returns:
        true if queries equals for print wizard
      • getAllTemplates

        public static List<?> getAllTemplates​(org.eclipse.emf.ecore.EObject parent)
        Get all templates from object
        Parameters:
        parent - - parent object
        Returns:
        templates collection