Search in sources :

Example 31 with PropertySheetPage

use of org.eclipse.ui.views.properties.PropertySheetPage in project gemoc-studio by eclipse.

the class GexpressionsEditor 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 32 with PropertySheetPage

use of org.eclipse.ui.views.properties.PropertySheetPage in project gemoc-studio by eclipse.

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

use of org.eclipse.ui.views.properties.PropertySheetPage in project dbeaver by serge-rider.

the class ERDEditorPart method getPropertySheetPage.

/**
     * Returns the undoable <code>PropertySheetPage</code> for this editor.
     *
     * @return the undoable <code>PropertySheetPage</code>
     */
protected PropertySheetPage getPropertySheetPage() {
    if (null == undoablePropertySheetPage) {
        undoablePropertySheetPage = new PropertySheetPage();
        undoablePropertySheetPage.setRootEntry(new UndoablePropertySheetEntry(getCommandStack()));
    }
    return undoablePropertySheetPage;
}
Also used : PropertySheetPage(org.eclipse.ui.views.properties.PropertySheetPage) IPropertySheetPage(org.eclipse.ui.views.properties.IPropertySheetPage) UndoablePropertySheetEntry(org.eclipse.gef.ui.properties.UndoablePropertySheetEntry)

Example 34 with PropertySheetPage

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

the class ERDEditorPart method getPropertySheetPage.

/**
 * Returns the undoable <code>PropertySheetPage</code> for this editor.
 *
 * @return the undoable <code>PropertySheetPage</code>
 */
protected PropertySheetPage getPropertySheetPage() {
    if (null == undoablePropertySheetPage) {
        undoablePropertySheetPage = new PropertySheetPage();
        undoablePropertySheetPage.setRootEntry(new UndoablePropertySheetEntry(getCommandStack()));
    }
    return undoablePropertySheetPage;
}
Also used : PropertySheetPage(org.eclipse.ui.views.properties.PropertySheetPage) IPropertySheetPage(org.eclipse.ui.views.properties.IPropertySheetPage) UndoablePropertySheetEntry(org.eclipse.gef.ui.properties.UndoablePropertySheetEntry)

Example 35 with PropertySheetPage

use of org.eclipse.ui.views.properties.PropertySheetPage in project yamcs-studio by yamcs.

the class OPIEditor method getPropertySheetPage.

/**
 * Returns the undoable <code>PropertySheetPage</code> for this editor.
 *
 * @return the undoable <code>PropertySheetPage</code>
 */
protected PropertySheetPage getPropertySheetPage() {
    if (undoablePropertySheetPage == null) {
        undoablePropertySheetPage = new PropertySheetPage() {

            @Override
            protected ISaveablePart getSaveablePart() {
                return null;
            }
        };
        undoablePropertySheetPage.setRootEntry(new UndoablePropertySheetEntry(getCommandStack()));
    }
    return undoablePropertySheetPage;
}
Also used : PropertySheetPage(org.eclipse.ui.views.properties.PropertySheetPage) IPropertySheetPage(org.eclipse.ui.views.properties.IPropertySheetPage) UndoablePropertySheetEntry(org.eclipse.gef.ui.properties.UndoablePropertySheetEntry) ISaveablePart(org.eclipse.ui.ISaveablePart)

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