/** * Installs this model, which includes registering as document * listener on all involved documents and storing global information about * this model. If there is another model installed on the * document(s) targeted by the receiver that conflicts with it, installation * may fail. * <p> * The return value states whether installation was * successful; if not, the model is not installed and will not work. * </p> * * @return <code>true</code> if installation was successful, * <code>false</code> otherwise * @throws BadLocationException if some of the positions of this model * were not valid positions on their respective documents */ public boolean tryInstall() throws BadLocationException { return install(false); }
/** * Installs this model, which includes registering as document * listener on all involved documents and storing global information about * this model. If there is another model installed on the * document(s) targeted by the receiver that conflicts with it, installation * may fail. * <p> * The return value states whether installation was * successful; if not, the model is not installed and will not work. * </p> * * @return <code>true</code> if installation was successful, * <code>false</code> otherwise * @throws BadLocationException if some of the positions of this model * were not valid positions on their respective documents */ public boolean tryInstall() throws BadLocationException { return install(false); }
/** * Installs this model, which includes registering as document * listener on all involved documents and storing global information about * this model. Any conflicting model already present will be * closed. * <p> * If an exception is thrown, the installation failed and * the model is unusable. * </p> * * @throws BadLocationException if some of the positions of this model * were not valid positions on their respective documents */ public void forceInstall() throws BadLocationException { if (!install(true)) Assert.isTrue(false); }
/** * Installs this model, which includes registering as document * listener on all involved documents and storing global information about * this model. Any conflicting model already present will be * closed. * <p> * If an exception is thrown, the installation failed and * the model is unusable. * </p> * * @throws BadLocationException if some of the positions of this model * were not valid positions on their respective documents */ public void forceInstall() throws BadLocationException { if (!install(true)) Assert.isTrue(false); }