Search in sources :

Example 1 with UndoablePropertySheetEntry

use of org.eclipse.gef.ui.properties.UndoablePropertySheetEntry in project knime-core by knime.

the class WorkflowEditor method getPropertySheetPage.

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

Example 2 with UndoablePropertySheetEntry

use of org.eclipse.gef.ui.properties.UndoablePropertySheetEntry 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 3 with UndoablePropertySheetEntry

use of org.eclipse.gef.ui.properties.UndoablePropertySheetEntry 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 4 with UndoablePropertySheetEntry

use of org.eclipse.gef.ui.properties.UndoablePropertySheetEntry 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

UndoablePropertySheetEntry (org.eclipse.gef.ui.properties.UndoablePropertySheetEntry)4 IPropertySheetPage (org.eclipse.ui.views.properties.IPropertySheetPage)4 PropertySheetPage (org.eclipse.ui.views.properties.PropertySheetPage)4 ISaveablePart (org.eclipse.ui.ISaveablePart)1