Search in sources :

Example 21 with PropertySheetPage

use of org.eclipse.ui.views.properties.PropertySheetPage in project InformationSystem by ObeoNetwork.

the class ViewEditor method dispose.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void dispose() {
    updateProblemIndication = false;
    ResourcesPlugin.getWorkspace().removeResourceChangeListener(resourceChangeListener);
    getSite().getPage().removePartListener(partListener);
    adapterFactory.dispose();
    if (getActionBarContributor().getActiveEditor() == this) {
        getActionBarContributor().setActiveEditor(null);
    }
    for (PropertySheetPage propertySheetPage : propertySheetPages) {
        propertySheetPage.dispose();
    }
    if (contentOutlinePage != null) {
        contentOutlinePage.dispose();
    }
    super.dispose();
}
Also used : PropertySheetPage(org.eclipse.ui.views.properties.PropertySheetPage) IPropertySheetPage(org.eclipse.ui.views.properties.IPropertySheetPage) ExtendedPropertySheetPage(org.eclipse.emf.edit.ui.view.ExtendedPropertySheetPage)

Example 22 with PropertySheetPage

use of org.eclipse.ui.views.properties.PropertySheetPage in project InformationSystem by ObeoNetwork.

the class FlowEditor method dispose.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void dispose() {
    updateProblemIndication = false;
    ResourcesPlugin.getWorkspace().removeResourceChangeListener(resourceChangeListener);
    getSite().getPage().removePartListener(partListener);
    adapterFactory.dispose();
    if (getActionBarContributor().getActiveEditor() == this) {
        getActionBarContributor().setActiveEditor(null);
    }
    for (PropertySheetPage propertySheetPage : propertySheetPages) {
        propertySheetPage.dispose();
    }
    if (contentOutlinePage != null) {
        contentOutlinePage.dispose();
    }
    super.dispose();
}
Also used : PropertySheetPage(org.eclipse.ui.views.properties.PropertySheetPage) IPropertySheetPage(org.eclipse.ui.views.properties.IPropertySheetPage) ExtendedPropertySheetPage(org.eclipse.emf.edit.ui.view.ExtendedPropertySheetPage)

Example 23 with PropertySheetPage

use of org.eclipse.ui.views.properties.PropertySheetPage in project InformationSystem by ObeoNetwork.

the class FlowEditor 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) {
            FlowEditor.this.setSelectionToViewer(selection);
            FlowEditor.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 24 with PropertySheetPage

use of org.eclipse.ui.views.properties.PropertySheetPage in project InformationSystem by ObeoNetwork.

the class EntityEditor method dispose.

/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
@Override
public void dispose() {
    updateProblemIndication = false;
    ResourcesPlugin.getWorkspace().removeResourceChangeListener(resourceChangeListener);
    getSite().getPage().removePartListener(partListener);
    adapterFactory.dispose();
    if (getActionBarContributor().getActiveEditor() == this) {
        getActionBarContributor().setActiveEditor(null);
    }
    for (PropertySheetPage propertySheetPage : propertySheetPages) {
        propertySheetPage.dispose();
    }
    if (contentOutlinePage != null) {
        contentOutlinePage.dispose();
    }
    super.dispose();
}
Also used : PropertySheetPage(org.eclipse.ui.views.properties.PropertySheetPage) IPropertySheetPage(org.eclipse.ui.views.properties.IPropertySheetPage) ExtendedPropertySheetPage(org.eclipse.emf.edit.ui.view.ExtendedPropertySheetPage) TabbedPropertySheetPage(org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage)

Example 25 with PropertySheetPage

use of org.eclipse.ui.views.properties.PropertySheetPage in project InformationSystem by ObeoNetwork.

the class ApplicationEditor method dispose.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void dispose() {
    updateProblemIndication = false;
    ResourcesPlugin.getWorkspace().removeResourceChangeListener(resourceChangeListener);
    getSite().getPage().removePartListener(partListener);
    adapterFactory.dispose();
    if (getActionBarContributor().getActiveEditor() == this) {
        getActionBarContributor().setActiveEditor(null);
    }
    for (PropertySheetPage propertySheetPage : propertySheetPages) {
        propertySheetPage.dispose();
    }
    if (contentOutlinePage != null) {
        contentOutlinePage.dispose();
    }
    super.dispose();
}
Also used : PropertySheetPage(org.eclipse.ui.views.properties.PropertySheetPage) IPropertySheetPage(org.eclipse.ui.views.properties.IPropertySheetPage) ExtendedPropertySheetPage(org.eclipse.emf.edit.ui.view.ExtendedPropertySheetPage)

Aggregations

PropertySheetPage (org.eclipse.ui.views.properties.PropertySheetPage)63 IPropertySheetPage (org.eclipse.ui.views.properties.IPropertySheetPage)59 ExtendedPropertySheetPage (org.eclipse.emf.edit.ui.view.ExtendedPropertySheetPage)51 ArrayList (java.util.ArrayList)15 EventObject (java.util.EventObject)15 HashMap (java.util.HashMap)15 LinkedHashMap (java.util.LinkedHashMap)15 List (java.util.List)15 BasicCommandStack (org.eclipse.emf.common.command.BasicCommandStack)15 Command (org.eclipse.emf.common.command.Command)15 CommandStack (org.eclipse.emf.common.command.CommandStack)15 CommandStackListener (org.eclipse.emf.common.command.CommandStackListener)15 AdapterFactoryEditingDomain (org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain)15 ComposedAdapterFactory (org.eclipse.emf.edit.provider.ComposedAdapterFactory)15 ReflectiveItemProviderAdapterFactory (org.eclipse.emf.edit.provider.ReflectiveItemProviderAdapterFactory)15 ResourceItemProviderAdapterFactory (org.eclipse.emf.edit.provider.resource.ResourceItemProviderAdapterFactory)15 AdapterFactoryContentProvider (org.eclipse.emf.edit.ui.provider.AdapterFactoryContentProvider)15 IActionBars (org.eclipse.ui.IActionBars)15 TabbedPropertySheetPage (org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage)8 TechnicalIDItemProviderAdapterFactory (org.obeonetwork.dsl.technicalid.provider.TechnicalIDItemProviderAdapterFactory)8