org.eclipse.ui.part.Page Java Examples

The following examples show how to use org.eclipse.ui.part.Page. 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: ReportXMLSourceEditorFormPage.java    From birt with Eclipse Public License 1.0 6 votes vote down vote up
protected void registerOutlineSwitchAction( )
{
	if ( registered == true )
		return;
	// Register the switch action onto outline page
	Page reportMultiBookPage = (Page) ( (MultiPageReportEditor) getEditor( ) ).getOutlinePage( );
	if ( reportMultiBookPage.getSite( ) != null )
	{
		if ( reportMultiBookPage.getSite( )
				.getActionBars( )
				.getMenuManager( )
				.find( getOutlineSwitchAction( ).getId( ) ) == null )
			reportMultiBookPage.getSite( )
					.getActionBars( )
					.getMenuManager( )
					.add( getOutlineSwitchAction( ) );
		registered = true;
	}
}
 
Example #2
Source File: ReportXMLSourceEditorFormPage.java    From birt with Eclipse Public License 1.0 5 votes vote down vote up
private void removeOutlineSwitchAction( )
{
	Page reportMultiBookPage = (Page) ( (MultiPageReportEditor) getEditor( ) ).getOutlinePage( );
	if ( reportMultiBookPage.getSite( ) != null )
	{
		reportMultiBookPage.getSite( )
				.getActionBars( )
				.getMenuManager( )
				.remove( switchAction_ID );
		registered = false;
	}
}
 
Example #3
Source File: SVNHistoryPageSource.java    From APICloud-Studio with GNU General Public License v3.0 4 votes vote down vote up
public Page createPage(Object object) {
  SVNHistoryPage page = new SVNHistoryPage(object);
  return page;
}
 
Example #4
Source File: TypeScriptSearchActionGroup.java    From typescript.java with MIT License 2 votes vote down vote up
/**
 * Creates a new <code>JavaSearchActionGroup</code>. The group 
 * requires that the selection provided by the page's selection provider 
 * is of type <code>org.eclipse.jface.viewers.IStructuredSelection</code>.
 * 
 * @param page the page that owns this action group
 */
public TypeScriptSearchActionGroup(Page page) {
	this(page.getSite());
}
 
Example #5
Source File: JavaSearchActionGroup.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 2 votes vote down vote up
/**
 * Creates a new <code>JavaSearchActionGroup</code>. The group
 * requires that the selection provided by the page's selection provider
 * is of type <code>org.eclipse.jface.viewers.IStructuredSelection</code>.
 *
 * @param page the page that owns this action group
 */
public JavaSearchActionGroup(Page page) {
	this(page.getSite());
}
 
Example #6
Source File: CCPActionGroup.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 2 votes vote down vote up
/**
 * Creates a new <code>CCPActionGroup</code>.  The group requires that
 * the selection provided by the page's selection provider is of type
 * <code>org.eclipse.jface.viewers.IStructuredSelection</code>.
 *
 * @param page the page that owns this action group
 */
public CCPActionGroup(Page page) {
	this(page.getSite(), null, false);
}
 
Example #7
Source File: OpenViewActionGroup.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 2 votes vote down vote up
/**
 * Creates a new <code>OpenActionGroup</code>. The group requires
 * that the selection provided by the page's selection provider is
 * of type {@link IStructuredSelection}.
 *
 * @param page the page that owns this action group
 */
public OpenViewActionGroup(Page page) {
	createSiteActions(page.getSite(), null);
}
 
Example #8
Source File: OpenViewActionGroup.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 2 votes vote down vote up
/**
 * Creates a new <code>OpenActionGroup</code>. The group requires
 * that the selection provided by the given selection provider is
 * of type {@link IStructuredSelection}.
 *
 * @param page the page that owns this action group
 * @param selectionProvider the selection provider used instead of the
 *  page selection provider.
 *
 * @since 3.2
 */
public OpenViewActionGroup(Page page, ISelectionProvider selectionProvider) {
	createSiteActions(page.getSite(), selectionProvider);
}
 
Example #9
Source File: FindOccurrencesInFileAction.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 2 votes vote down vote up
/**
 * Creates a new <code>FindOccurrencesInFileAction</code>. The action requires
 * that the selection provided by the page's selection provider is of type <code>
 * org.eclipse.jface.viewers.IStructuredSelection</code>.
 *
 * @param page the page providing context information for this action
 */
public FindOccurrencesInFileAction(Page page) {
	this(page.getSite());
}
 
Example #10
Source File: GenerateActionGroup.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 2 votes vote down vote up
/**
 * Creates a new <code>GenerateActionGroup</code>. The group
 * requires that the selection provided by the page's selection provider
 * is of type <code>org.eclipse.jface.viewers.IStructuredSelection</code>.
 *
 * @param page the page that owns this action group
 */
public GenerateActionGroup(Page page) {
	this(page.getSite(), null);

	installQuickAccessAction();
}
 
Example #11
Source File: ShowActionGroup.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 2 votes vote down vote up
/**
 * Creates a new <code>ShowActionGroup</code>. The action requires
 * that the selection provided by the page's selection provider is of type
 * <code>org.eclipse.jface.viewers.IStructuredSelection</code>.
 *
 * @param page the page that owns this action group
 */
public ShowActionGroup(Page page) {
	this(page.getSite());
}
 
Example #12
Source File: RefactorActionGroup.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 2 votes vote down vote up
/**
 * Creates a new <code>RefactorActionGroup</code>. The action requires
 * that the selection provided by the page's selection provider is of type <code>
 * org.eclipse.jface.viewers.IStructuredSelection</code>.
 *
 * @param page the page that owns this action group
 */
public RefactorActionGroup(Page page) {
	this(page.getSite(), null);

	installQuickAccessAction();
}
 
Example #13
Source File: GenerateBuildPathActionGroup.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 2 votes vote down vote up
/**
   * Creates a new <code>GenerateActionGroup</code>. The group
   * requires that the selection provided by the page's selection provider
   * is of type <code>org.eclipse.jface.viewers.IStructuredSelection</code>.
   *
   * @param page the page that owns this action group
   */
  public GenerateBuildPathActionGroup(Page page) {
this(page.getSite(), page.getSite().getSelectionProvider());
  }