/** * @see org.eclipse.ui.IWorkbenchPart#dispose() */ @Override public void dispose() { super.dispose(); }
@Override public void init(IViewSite site, IMemento memento) throws PartInitException { super.init(site, memento); fMemento = memento; }
@Override public Object getAdapter(@SuppressWarnings("rawtypes") Class adapter) { if (adapter == IShowInTargetList.class) { return new IShowInTargetList() { public String[] getShowInTargetIds() { return new String[] { "org.eclipse.team.ui.GenericHistoryView" }; //$NON-NLS-1$ } }; } else if (adapter == IShowInSource.class) { return new IShowInSource() { public ShowInContext getShowInContext() { return new ShowInContext(getViewer().getInput(), getViewer().getSelection()); } }; } return super.getAdapter(adapter); }
@Override public void init(IViewSite site, IMemento memento) throws PartInitException { /* * Initializes this view with the given view site. A memento is passed to * the view which contains a snapshot of the views state from a previous * session. Where possible, the view should try to recreate that state * within the part controls. * <p> * This implementation will ignore the memento and initialize the view in * a fresh state. Subclasses may override the implementation to perform any * state restoration as needed. */ init(site); }
@Override public void saveState ( final IMemento memento ) { if ( this.initItem != null ) { super.saveState ( memento ); this.initItem.saveTo ( memento ); } }
@Override public void saveState ( final IMemento memento ) { if ( this.initItem != null ) { super.saveState ( memento ); this.initItem.saveTo ( memento ); } }
@Override public void dispose() { super.dispose(); parentControl = null; }
@Override public void init(IViewSite site, IMemento memento) throws PartInitException { super.init(site, memento); fMemento= memento; }
@Override public <T> T getAdapter(Class<T> adapter) { if (ImageElement.class.equals(adapter)) { return adapter.cast(imageElement); } return super.getAdapter(adapter); }
/** * * <p> * Note: This method is for internal use only. Clients should not call this * method. * </p> * * @see org.eclipse.ui.part.ViewPart#saveState(org.eclipse.ui.IMemento) */ public void saveState(IMemento aMemento) { aMemento.putInteger(LINKING_ENABLED, (isLinkingEnabled) ? 1 : 0); super.saveState(aMemento); commonManager.saveState(aMemento); commonViewer.getNavigatorContentService().saveState(aMemento); }
@Override public void dispose() { disposePackageExplorerDependencies(); if (this.relationsListener != null) { this.relationsListener = null; } super.dispose(); }
@Override public void init(IViewSite site, IMemento memento) throws PartInitException { super.init(site, memento); this.memento = memento; }
@Override public <T> T getAdapter(Class<T> clazz) { if (ILabelProvider.class.equals(clazz)) { return clazz.cast(fLabelProvider); } if (IContentProvider.class.equals(clazz)) { return clazz.cast(fContentProvider); } return super.getAdapter(clazz); }
@Override public void saveState(IMemento memento) { super.saveState(memento); if (buildStatusFilter != null) { Set<BuildStatus> statuses = buildStatusFilter.getFiltered(); if (statuses.size() > 0) { IMemento child = memento.createChild("statusFilter"); for (BuildStatus status : statuses) { child.putBoolean(status.name(), true); } } } IMemento child = memento.createChild("presentation"); child.putString("id", getContentProvider().getPresentation().name()); }
public void dispose() { toolkit.dispose(); super.dispose(); }
@Override public void init(IViewSite site, IMemento memento) throws PartInitException { super.init(site, memento); fMemento= memento; }
public Object getAdapter(Class adapter) { if (adapter.equals(IPropertySheetPage.class)) { return getPropertySheet(); } return super.getAdapter(adapter); } }
@Override public void saveState(IMemento m) { super.saveState(m); m.putString(TAG_PART_NAME, getPartName()); if (generator != null) {
/** * {@inheritDoc} */ @Override public void dispose() { managerView.dispose(); super.dispose(); }
@Override public void init(IViewSite site, IMemento memento) throws PartInitException { super.init(site, memento); fMemento = memento; }