/** * The <code>MultiPageEditorExample</code> implementation of this method * checks that the input is an instance of <code>IFileEditorInput</code>. */ public void init(IEditorSite site, IEditorInput editorInput) throws PartInitException { if (!(editorInput instanceof IFileEditorInput)) throw new PartInitException( "Invalid Input: Must be IFileEditorInput"); super.init(site, editorInput); }
/** * The <code>MultiPageEditorExample</code> implementation of this method * checks that the input is an instance of <code>IFileEditorInput</code>. */ public void init(IEditorSite site, IEditorInput editorInput) throws PartInitException { if (!(editorInput instanceof IFileEditorInput)) throw new PartInitException( "Invalid Input: Must be IFileEditorInput"); super.init(site, editorInput); }
public void init(IEditorSite site, IEditorInput input) throws PartInitException { super.init(site, input); site.setSelectionProvider(new PostMultiPageSelectionProvider(this)); }
public void init(IEditorSite site, IEditorInput input) throws PartInitException { try { super.init(site, input); // we want to listen for our own activation fActivationListener = new ActivationListener(site.getWorkbenchWindow().getPartService()); } catch (Exception e) { Logger.logException("exception initializing " + getClass().getName(), e); //$NON-NLS-1$ } setPartName(input.getName()); }
/** * The <code>MultiPageEditorExample</code> implementation of this method * checks that the input is an instance of <code>IFileEditorInput</code>. */ public void init(IEditorSite site, IEditorInput editorInput) throws PartInitException { // if (!(editorInput instanceof IFileEditorInput)) // throw new PartInitException("Invalid Input: Must be IFileEditorInput"); //$NON-NLS-1$ super.init(site, editorInput); getCommandStack().addCommandStackListener(this); initializeActionRegistry(); String title = null; if (getEditorInput() != null) { title = getEditorInput().getName(); } setPartName(title); fActivationListener = new CommonActivationListener(site.getWorkbenchWindow().getPartService()); }
public void init(IEditorSite site, IEditorInput input) throws PartInitException { commandManager = GlobalCommandManager.getInstance(); super.init(site, input);