org.eclipse.ui.views.properties.PropertySheetPage Java Examples

The following examples show how to use org.eclipse.ui.views.properties.PropertySheetPage. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CrossflowEditor.java    From scava with Eclipse Public License 2.0 6 votes vote down vote up
/**
 * <!-- 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();
}
 
Example #2
Source File: VisualInterfaceEditor.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * 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 )
        {
            VisualInterfaceEditor.this.setSelectionToViewer ( selection );
            VisualInterfaceEditor.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;
}
 
Example #3
Source File: OsgiEditor.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * This accesses a cached version of the property sheet.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public IPropertySheetPage getPropertySheetPage ()
{
    PropertySheetPage propertySheetPage = new ExtendedPropertySheetPage ( editingDomain, ExtendedPropertySheetPage.Decoration.MANUAL) {
        @Override
        public void setSelectionToViewer ( List<?> selection )
        {
            OsgiEditor.this.setSelectionToViewer ( selection );
            OsgiEditor.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;
}
 
Example #4
Source File: SetupEditor.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * This accesses a cached version of the property sheet.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public IPropertySheetPage getPropertySheetPage ()
{
    PropertySheetPage propertySheetPage = new ExtendedPropertySheetPage ( editingDomain, ExtendedPropertySheetPage.Decoration.MANUAL) {
        @Override
        public void setSelectionToViewer ( List<?> selection )
        {
            SetupEditor.this.setSelectionToViewer ( selection );
            SetupEditor.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;
}
 
Example #5
Source File: ChartEditor.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * This accesses a cached version of the property sheet.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * 
 * @generated
 */
public IPropertySheetPage getPropertySheetPage ()
{
    final PropertySheetPage propertySheetPage = new ExtendedPropertySheetPage (
            this.editingDomain ) {
        @Override
        public void setSelectionToViewer ( final List<?> selection )
        {
            ChartEditor.this.setSelectionToViewer ( selection );
            ChartEditor.this.setFocus ();
        }

        @Override
        public void setActionBars ( final IActionBars actionBars )
        {
            super.setActionBars ( actionBars );
            getActionBarContributor ().shareGlobalActions ( this, actionBars );
        }
    };
    propertySheetPage
            .setPropertySourceProvider ( new AdapterFactoryContentProvider (
                    this.adapterFactory ) );
    this.propertySheetPages.add ( propertySheetPage );

    return propertySheetPage;
}
 
Example #6
Source File: DeploymentEditor.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * This accesses a cached version of the property sheet.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public IPropertySheetPage getPropertySheetPage ()
{
    PropertySheetPage propertySheetPage = new ExtendedPropertySheetPage ( editingDomain, ExtendedPropertySheetPage.Decoration.MANUAL) {
        @Override
        public void setSelectionToViewer ( List<?> selection )
        {
            DeploymentEditor.this.setSelectionToViewer ( selection );
            DeploymentEditor.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;
}
 
Example #7
Source File: WorldEditor.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * This accesses a cached version of the property sheet.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public IPropertySheetPage getPropertySheetPage ()
{
    PropertySheetPage propertySheetPage = new ExtendedPropertySheetPage ( editingDomain, ExtendedPropertySheetPage.Decoration.MANUAL) {
        @Override
        public void setSelectionToViewer ( List<?> selection )
        {
            WorldEditor.this.setSelectionToViewer ( selection );
            WorldEditor.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;
}
 
Example #8
Source File: MemoryEditor.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * 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 )
        {
            MemoryEditor.this.setSelectionToViewer ( selection );
            MemoryEditor.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;
}
 
Example #9
Source File: RecipeEditor.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * This accesses a cached version of the property sheet.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public IPropertySheetPage getPropertySheetPage ()
{
    PropertySheetPage propertySheetPage = new ExtendedPropertySheetPage ( editingDomain, ExtendedPropertySheetPage.Decoration.MANUAL) {
        @Override
        public void setSelectionToViewer ( List<?> selection )
        {
            RecipeEditor.this.setSelectionToViewer ( selection );
            RecipeEditor.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;
}
 
Example #10
Source File: InfrastructureEditor.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * This accesses a cached version of the property sheet.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 *
 * @generated NOT
 */
public IPropertySheetPage getPropertySheetPage ()
{
    final PropertySheetPage propertySheetPage = new ExtendedPropertySheetPage ( this.editingDomain, ExtendedPropertySheetPage.Decoration.MANUAL, InfrastructureEditorPlugin.getPlugin ().getDialogSettings () ) {
        @Override
        public void setSelectionToViewer ( final List<?> selection )
        {
            InfrastructureEditor.this.setSelectionToViewer ( selection );
            InfrastructureEditor.this.setFocus ();
        }

        @Override
        public void setActionBars ( final IActionBars actionBars )
        {
            super.setActionBars ( actionBars );
            getActionBarContributor ().shareGlobalActions ( this, actionBars );
        }
    };
    propertySheetPage.setPropertySourceProvider ( new ExtendedAdapterFactoryContentProvider ( this.adapterFactory ) );
    this.propertySheetPages.add ( propertySheetPage );

    return propertySheetPage;
}
 
Example #11
Source File: SecurityEditor.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * 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 )
                {
                    SecurityEditor.this.setSelectionToViewer ( selection );
                    SecurityEditor.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;
}
 
Example #12
Source File: GlobalizeEditor.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * 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 )
        {
            GlobalizeEditor.this.setSelectionToViewer ( selection );
            GlobalizeEditor.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;
}
 
Example #13
Source File: ItemEditor.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * 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 )
                {
                    ItemEditor.this.setSelectionToViewer ( selection );
                    ItemEditor.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;
}
 
Example #14
Source File: ConfigurationEditor.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * 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 )
                {
                    ConfigurationEditor.this.setSelectionToViewer ( selection );
                    ConfigurationEditor.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;
}
 
Example #15
Source File: CrossflowEditor.java    From scava with Eclipse Public License 2.0 6 votes vote down vote up
/**
 * This accesses a cached version of the property sheet.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public IPropertySheetPage getPropertySheetPage() {
	PropertySheetPage propertySheetPage =
		new ExtendedPropertySheetPage(editingDomain, ExtendedPropertySheetPage.Decoration.NONE, null, 0, false) {
			@Override
			public void setSelectionToViewer(List<?> selection) {
				CrossflowEditor.this.setSelectionToViewer(selection);
				CrossflowEditor.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;
}
 
Example #16
Source File: ProtocolEditor.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * 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 )
                {
                    ProtocolEditor.this.setSelectionToViewer ( selection );
                    ProtocolEditor.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;
}
 
Example #17
Source File: GenconfEditor.java    From M2Doc with Eclipse Public License 1.0 6 votes vote down vote up
public void commandStackChanged(final EventObject event) {
    getContainer().getDisplay().asyncExec(new Runnable() {
        public void run() {
            firePropertyChange(IEditorPart.PROP_DIRTY);

            // Try to select the affected objects.
            //
            Command mostRecentCommand = ((CommandStack) event.getSource()).getMostRecentCommand();
            if (mostRecentCommand != null) {
                setSelectionToViewer(mostRecentCommand.getAffectedObjects());
            }
            for (Iterator<PropertySheetPage> i = propertySheetPages.iterator(); i.hasNext();) {
                PropertySheetPage propertySheetPage = i.next();
                if (propertySheetPage.getControl().isDisposed()) {
                    i.remove();
                } else {
                    propertySheetPage.refresh();
                }
            }
        }
    });
}
 
Example #18
Source File: GenconfEditor.java    From M2Doc with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * 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) {
            GenconfEditor.this.setSelectionToViewer(selection);
            GenconfEditor.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;
}
 
Example #19
Source File: BeansEditor.java    From hybris-commerce-eclipse-plugin with Apache License 2.0 6 votes vote down vote up
/**
 * 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) {
				BeansEditor.this.setSelectionToViewer(selection);
				BeansEditor.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;
}
 
Example #20
Source File: BeansEditor.java    From hybris-commerce-eclipse-plugin with Apache License 2.0 6 votes vote down vote up
/**
 * <!-- 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();
}
 
Example #21
Source File: EipEditor.java    From eip-designer with Apache License 2.0 6 votes vote down vote up
/**
   * 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) {
              EipEditor.this.setSelectionToViewer(selection);
              EipEditor.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;
  }
 
Example #22
Source File: EipEditor.java    From eip-designer with Apache License 2.0 6 votes vote down vote up
/**
   * <!-- 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();
  }
 
Example #23
Source File: MainDiagramEditor.java    From erflute with Apache License 2.0 6 votes vote down vote up
public MainDiagramEditor(ERDiagram diagram, ERDiagramEditPartFactory editPartFactory,
        ZoomComboContributionItem zoomComboContributionItem, ERDiagramOutlinePage outlinePage) {
    Activator.debug(this, "constructor", "...Creating diagram editor: " + diagram);
    this.diagram = diagram;
    this.editPartFactory = editPartFactory;
    this.zoomComboContributionItem = zoomComboContributionItem;
    this.propertySheetPage = new PropertySheetPage();
    this.propertySheetPage.setPropertySourceProvider(new ERDiagramPropertySourceProvider());
    try {
        this.extensionLoader = new ExtensionLoader(this);
    } catch (final CoreException e) {
        Activator.showExceptionDialog(e);
    }
    setEditDomain(new DefaultEditDomain(this));
    initializeOutlinePage(outlinePage);
}
 
Example #24
Source File: BibtexEditor.java    From slr-toolkit with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * 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) {
			BibtexEditor.this.setFocus();
		}

		@Override
		public void setActionBars(IActionBars actionBars) {
			super.setActionBars(actionBars);
		}
	};
	propertySheetPage.setPropertySourceProvider(contentProvider);
	propertySheetPages.add(propertySheetPage);
	propertySheetPage.handleEntrySelection(getSelection());
	propertySheetPage.setRootEntry(null);
	return propertySheetPage;
}
 
Example #25
Source File: CoreEditor.java    From ifml-editor with MIT License 6 votes vote down vote up
/**
 * 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) {
				CoreEditor.this.setSelectionToViewer(selection);
				CoreEditor.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;
}
 
Example #26
Source File: CoreEditor.java    From ifml-editor with MIT License 6 votes vote down vote up
/**
 * <!-- 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();
}
 
Example #27
Source File: ExtensionsEditor.java    From ifml-editor with MIT License 6 votes vote down vote up
/**
 * 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) {
				ExtensionsEditor.this.setSelectionToViewer(selection);
				ExtensionsEditor.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;
}
 
Example #28
Source File: ExtensionsEditor.java    From ifml-editor with MIT License 6 votes vote down vote up
/**
 * <!-- 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();
}
 
Example #29
Source File: AdvancedPropertySection.java    From bonita-studio with GNU General Public License v2.0 6 votes vote down vote up
@Override
public void createControls(Composite parent,
		final TabbedPropertySheetPage atabbedPropertySheetPage) {
	super.createControls(parent, atabbedPropertySheetPage);
	Composite composite = getWidgetFactory()
		.createFlatFormComposite(parent);
	page = new PropertySheetPage();

	page.createControl(composite);
	FormData data = new FormData();
	data.left = new FormAttachment(0, 0);
	data.right = new FormAttachment(100, 0);
	data.top = new FormAttachment(0, 0);
	data.bottom = new FormAttachment(100, 0);
	page.getControl().setLayoutData(data);

	page.getControl().addControlListener(new ControlAdapter() {

		@Override
		public void controlResized(ControlEvent e) {
			atabbedPropertySheetPage.resizeScrolledComposite();
		}
	});
}
 
Example #30
Source File: ERDiagramEditor.java    From ermaster-b with Apache License 2.0 6 votes vote down vote up
/**
	 * �R���X�g���N�^.
	 *
	 * @param diagram
	 *            ERDiagram
	 * @param editPartFactory
	 *            ERDiagramEditPartFactory
	 * @param zoomComboContributionItem
	 *            ZoomComboContributionItem
	 * @param outlinePage
	 *            ERDiagramOutlinePage
	 */
	public ERDiagramEditor(ERDiagram diagram,
			ERDiagramEditPartFactory editPartFactory,
			ZoomComboContributionItem zoomComboContributionItem,
			ERDiagramOutlinePage outlinePage) {
		DefaultEditDomain domain = new DefaultEditDomain(this);
		this.setEditDomain(domain);

		this.diagram = diagram;
		this.editPartFactory = editPartFactory;
		this.zoomComboContributionItem = zoomComboContributionItem;
		this.outlinePage = outlinePage;

		this.propertySheetPage = new PropertySheetPage();
		this.propertySheetPage
				.setPropertySourceProvider(new ERDiagramPropertySourceProvider());

		try {
			this.extensionLoader = new ExtensionLoader(this);
		} catch (CoreException e) {
			Activator.showExceptionDialog(e);
		}

//		setAction(ACTION_OUTLINE, new QuickOutlineAction());

	}