Class FormAttributeTreeViewer

    • Constructor Detail

      • FormAttributeTreeViewer

        public FormAttributeTreeViewer​(org.eclipse.swt.widgets.Composite parent,
                                       int style,
                                       IBmEditingContext editingContext,
                                       Form model,
                                       IV8Project v8project,
                                       IDataSourceInfoAssociationService associationService,
                                       IUseAlwaysAttributeService useAlwaysAttributeService,
                                       ISaveDataAttributeService saveDataAttributeService,
                                       boolean isReadOnly)
        Creates a new form attribute tree viewer.
        Parameters:
        parent - the parent control.
        style - the SWT style bits used to create the tree.
        editingContext - the BM editing context, cannot be null.
        model - the form model.
        v8project - the V8 project.
        associationService - the data source info association service.
        useAlwaysAttributeService - the "use always" value service.
        saveDataAttributeService - the "save data" value service.
        isReadOnly - flag to indicate that form is in read-only mode.
    • Method Detail

      • createComparator

        public static Comparator<PropertyInfo> createComparator()
        Creates a new comparator for the elements of PropertyInfo class.
        Returns:
        the new comparator, never null.
      • init

        public void init()
        Initializes tree viewer columns and content provider
      • getDomainSelection

        public com._1c.g5.v8.dt.form.internal.ui.editor.DomainSelection getDomainSelection()
        Description copied from interface: com._1c.g5.v8.dt.form.internal.ui.editor.IDomainSelectionProvider
        Returns current domain selection.
        Specified by:
        getDomainSelection in interface com._1c.g5.v8.dt.form.internal.ui.editor.IDomainSelectionProvider
        Overrides:
        getDomainSelection in class com._1c.g5.v8.dt.form.internal.ui.editor.FormTreeViewer
        Returns:
        current domain selection
      • preservingSelection

        protected void preservingSelection​(Runnable updateCode)
        Description copied from class: com._1c.g5.v8.dt.form.internal.ui.editor.AutoSelectionFormTreeViewer
        Overrides:
        preservingSelection in class com._1c.g5.v8.dt.form.internal.ui.editor.AutoSelectionFormTreeViewer
      • createContentProvider

        protected FormAttributesContentProvider createContentProvider()
        Creates content provider.
        Returns:
        content provider, never null
      • getContentProviderInternal

        protected FormAttributesContentProvider getContentProviderInternal()
        Returns form attribute content provider.
        Returns:
        content provider, can be null
      • getModel

        protected Form getModel()
        Returns form model.
        Returns:
        form model
      • getBoldFont

        protected org.eclipse.swt.graphics.Font getBoldFont()
        Returns bold font.
        Returns:
        bold font
      • createColumnLabelProvider

        protected CellLabelProvider createColumnLabelProvider​(org.eclipse.swt.graphics.Font font)
        Creates column label provider.
        Parameters:
        font - font for label provider, can be null
        Returns:
        column label provider, never null