/** * @see IViewPart#init(IViewSite, IMemento) */ @Override public void init(IViewSite site, IMemento memento) throws PartInitException { super.init(site, memento); //store the memento to be used when this view is created. setMemento(memento); }
@Override public void init(IViewSite site) throws PartInitException { super.init(site); fPartState = new DummyPart(site); }
public void init(IViewSite site) throws PartInitException { site.getPage().addSelectionListener(this); super.init(site); }
@Override public void init(IViewSite site) throws PartInitException { site.getPage().addPostSelectionListener(this); super.init(site); }
@Override public void init(IViewSite site) throws PartInitException { site.getPage().addPostSelectionListener(this); super.init(site); }
@Override public void init(IViewSite site, IMemento memento) throws PartInitException { super.init(site, memento); IMenuManager menuManager= site.getActionBars().getMenuManager(); createViewMenuGroups(menuManager); fPageState= memento; }
public void init(IViewSite site, IMemento memento) throws PartInitException { super.init(site, memento); IMenuManager menuManager= site.getActionBars().getMenuManager(); createViewMenuGroups(menuManager); fPageState= memento; IWorkbenchSiteProgressService progressService= getProgressService(); if (progressService != null) progressService.showBusyForFamily(InternalSearchUI.FAMILY_SEARCH); }
@Override public void init(IViewSite site) throws PartInitException { super.init(site); ISelection selection= getSite().getPage().getSelection(); if (selection instanceof IStructuredSelection) { //Always take the first element - this is not intended to work with multiple selection lastSelectedElement= ((IStructuredSelection)selection).getFirstElement(); } // Use active editor as fallback if (lastSelectedElement == null) lastSelectedElement= getSite().getPage().getActiveEditor(); }
@Override public void init(IViewSite site, IMemento memento) throws PartInitException { super.init(site, memento); fPartCalleesList = new DummyPart(site); fPartCalleesTree = new DummyPart(site); fPartCallersList = new DummyPart(site); fPartCallersTree = new DummyPart(site); if (memento == null) return; String id = memento.getString(MEMENTO_KEY_INPUT); if (id != null) { IPluginModelBase plugin = PluginRegistry.findModel(id); if (plugin != null) { fInput = plugin; addHistoryEntry(id); findLoops(); } } }