Java Code Examples for org.eclipse.ui.part.Page#getSite()
The following examples show how to use
org.eclipse.ui.part.Page#getSite() .
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 |
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 |
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: TypeScriptSearchActionGroup.java From typescript.java with MIT License | 2 votes |
/** * 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 4
Source File: JavaSearchActionGroup.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 2 votes |
/** * 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 5
Source File: CCPActionGroup.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 2 votes |
/** * 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 6
Source File: FindOccurrencesInFileAction.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 2 votes |
/** * 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 7
Source File: GenerateActionGroup.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 2 votes |
/** * 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 8
Source File: ShowActionGroup.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 2 votes |
/** * 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 9
Source File: RefactorActionGroup.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 2 votes |
/** * 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 10
Source File: GenerateBuildPathActionGroup.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 2 votes |
/** * 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()); }