Search in sources :

Example 11 with ExtendedPropertySheetPage

use of org.eclipse.emf.edit.ui.view.ExtendedPropertySheetPage in project Malai by arnobl.

the class EventEditor method getPropertySheetPage.

/**
 * This accesses a cached version of the property sheet.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public IPropertySheetPage getPropertySheetPage() {
    if (propertySheetPage == null) {
        propertySheetPage = new ExtendedPropertySheetPage(editingDomain) {

            @Override
            public void setSelectionToViewer(List<?> selection) {
                EventEditor.this.setSelectionToViewer(selection);
                EventEditor.this.setFocus();
            }

            @Override
            public void setActionBars(IActionBars actionBars) {
                super.setActionBars(actionBars);
                getActionBarContributor().shareGlobalActions(this, actionBars);
            }
        };
        propertySheetPage.setPropertySourceProvider(new AdapterFactoryContentProvider(adapterFactory));
    }
    return propertySheetPage;
}
Also used : AdapterFactoryContentProvider(org.eclipse.emf.edit.ui.provider.AdapterFactoryContentProvider) ExtendedPropertySheetPage(org.eclipse.emf.edit.ui.view.ExtendedPropertySheetPage) IActionBars(org.eclipse.ui.IActionBars)

Example 12 with ExtendedPropertySheetPage

use of org.eclipse.emf.edit.ui.view.ExtendedPropertySheetPage in project Malai by arnobl.

the class InstrumentEditor method getPropertySheetPage.

/**
 * This accesses a cached version of the property sheet.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public IPropertySheetPage getPropertySheetPage() {
    if (propertySheetPage == null) {
        propertySheetPage = new ExtendedPropertySheetPage(editingDomain) {

            @Override
            public void setSelectionToViewer(List<?> selection) {
                InstrumentEditor.this.setSelectionToViewer(selection);
                InstrumentEditor.this.setFocus();
            }

            @Override
            public void setActionBars(IActionBars actionBars) {
                super.setActionBars(actionBars);
                getActionBarContributor().shareGlobalActions(this, actionBars);
            }
        };
        propertySheetPage.setPropertySourceProvider(new AdapterFactoryContentProvider(adapterFactory));
    }
    return propertySheetPage;
}
Also used : AdapterFactoryContentProvider(org.eclipse.emf.edit.ui.provider.AdapterFactoryContentProvider) ExtendedPropertySheetPage(org.eclipse.emf.edit.ui.view.ExtendedPropertySheetPage) IActionBars(org.eclipse.ui.IActionBars)

Example 13 with ExtendedPropertySheetPage

use of org.eclipse.emf.edit.ui.view.ExtendedPropertySheetPage in project Malai by arnobl.

the class InteractionEditor method getPropertySheetPage.

/**
 * This accesses a cached version of the property sheet.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public IPropertySheetPage getPropertySheetPage() {
    if (propertySheetPage == null) {
        propertySheetPage = new ExtendedPropertySheetPage(editingDomain) {

            @Override
            public void setSelectionToViewer(List<?> selection) {
                InteractionEditor.this.setSelectionToViewer(selection);
                InteractionEditor.this.setFocus();
            }

            @Override
            public void setActionBars(IActionBars actionBars) {
                super.setActionBars(actionBars);
                getActionBarContributor().shareGlobalActions(this, actionBars);
            }
        };
        propertySheetPage.setPropertySourceProvider(new AdapterFactoryContentProvider(adapterFactory));
    }
    return propertySheetPage;
}
Also used : AdapterFactoryContentProvider(org.eclipse.emf.edit.ui.provider.AdapterFactoryContentProvider) ExtendedPropertySheetPage(org.eclipse.emf.edit.ui.view.ExtendedPropertySheetPage) IActionBars(org.eclipse.ui.IActionBars)

Example 14 with ExtendedPropertySheetPage

use of org.eclipse.emf.edit.ui.view.ExtendedPropertySheetPage in project InformationSystem by ObeoNetwork.

the class ApplicationEditor method getPropertySheetPage.

/**
 * This accesses a cached version of the property sheet.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public IPropertySheetPage getPropertySheetPage() {
    PropertySheetPage propertySheetPage = new ExtendedPropertySheetPage(editingDomain) {

        @Override
        public void setSelectionToViewer(List<?> selection) {
            ApplicationEditor.this.setSelectionToViewer(selection);
            ApplicationEditor.this.setFocus();
        }

        @Override
        public void setActionBars(IActionBars actionBars) {
            super.setActionBars(actionBars);
            getActionBarContributor().shareGlobalActions(this, actionBars);
        }
    };
    propertySheetPage.setPropertySourceProvider(new AdapterFactoryContentProvider(adapterFactory));
    propertySheetPages.add(propertySheetPage);
    return propertySheetPage;
}
Also used : PropertySheetPage(org.eclipse.ui.views.properties.PropertySheetPage) IPropertySheetPage(org.eclipse.ui.views.properties.IPropertySheetPage) ExtendedPropertySheetPage(org.eclipse.emf.edit.ui.view.ExtendedPropertySheetPage) AdapterFactoryContentProvider(org.eclipse.emf.edit.ui.provider.AdapterFactoryContentProvider) ArrayList(java.util.ArrayList) List(java.util.List) ExtendedPropertySheetPage(org.eclipse.emf.edit.ui.view.ExtendedPropertySheetPage) IActionBars(org.eclipse.ui.IActionBars)

Example 15 with ExtendedPropertySheetPage

use of org.eclipse.emf.edit.ui.view.ExtendedPropertySheetPage in project InformationSystem by ObeoNetwork.

the class ToolkitsEditor method getPropertySheetPage.

/**
 * This accesses a cached version of the property sheet.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public IPropertySheetPage getPropertySheetPage() {
    PropertySheetPage propertySheetPage = new ExtendedPropertySheetPage(editingDomain) {

        @Override
        public void setSelectionToViewer(List<?> selection) {
            ToolkitsEditor.this.setSelectionToViewer(selection);
            ToolkitsEditor.this.setFocus();
        }

        @Override
        public void setActionBars(IActionBars actionBars) {
            super.setActionBars(actionBars);
            getActionBarContributor().shareGlobalActions(this, actionBars);
        }
    };
    propertySheetPage.setPropertySourceProvider(new AdapterFactoryContentProvider(adapterFactory));
    propertySheetPages.add(propertySheetPage);
    return propertySheetPage;
}
Also used : PropertySheetPage(org.eclipse.ui.views.properties.PropertySheetPage) IPropertySheetPage(org.eclipse.ui.views.properties.IPropertySheetPage) ExtendedPropertySheetPage(org.eclipse.emf.edit.ui.view.ExtendedPropertySheetPage) AdapterFactoryContentProvider(org.eclipse.emf.edit.ui.provider.AdapterFactoryContentProvider) ArrayList(java.util.ArrayList) List(java.util.List) ExtendedPropertySheetPage(org.eclipse.emf.edit.ui.view.ExtendedPropertySheetPage) IActionBars(org.eclipse.ui.IActionBars)

Aggregations

AdapterFactoryContentProvider (org.eclipse.emf.edit.ui.provider.AdapterFactoryContentProvider)21 ExtendedPropertySheetPage (org.eclipse.emf.edit.ui.view.ExtendedPropertySheetPage)21 IActionBars (org.eclipse.ui.IActionBars)21 ArrayList (java.util.ArrayList)15 List (java.util.List)15 IPropertySheetPage (org.eclipse.ui.views.properties.IPropertySheetPage)15 PropertySheetPage (org.eclipse.ui.views.properties.PropertySheetPage)15