/** * Checks whether there is already a model installed on <code>document</code>. * * @param document the <code>IDocument</code> of interest * @return <code>true</code> if there is an existing model, <code>false</code> * otherwise */ public static boolean hasInstalledModel(IDocument document) { // if there is a manager, there also is a model return LinkedModeManager.hasManager(document); }
/** * Checks whether there is already a linked mode model installed on any of * the <code>documents</code>. * * @param documents the <code>IDocument</code>s of interest * @return <code>true</code> if there is an existing model, <code>false</code> * otherwise */ public static boolean hasInstalledModel(IDocument[] documents) { // if there is a manager, there also is a model return LinkedModeManager.hasManager(documents); }
/** * Checks whether there is already a model installed on <code>document</code>. * * @param document the <code>IDocument</code> of interest * @return <code>true</code> if there is an existing model, <code>false</code> * otherwise */ public static boolean hasInstalledModel(IDocument document) { // if there is a manager, there also is a model return LinkedModeManager.hasManager(document); }
/** * Returns whether there exists a <code>LinkedModeManager</code> on any of the <code>documents</code>. * * @param documents the documents of interest * @return <code>true</code> if there exists a <code>LinkedModeManager</code> on any of the <code>documents</code>, <code>false</code> otherwise */ public static boolean hasManager(IDocument[] documents) { for (int i= 0; i < documents.length; i++) { if (hasManager(documents[i])) return true; } return false; }
/** * Checks whether there is already a linked mode model installed on any of * the <code>documents</code>. * * @param documents the <code>IDocument</code>s of interest * @return <code>true</code> if there is an existing model, <code>false</code> * otherwise */ public static boolean hasInstalledModel(IDocument[] documents) { // if there is a manager, there also is a model return LinkedModeManager.hasManager(documents); }
/** * Returns whether there exists a <code>LinkedModeManager</code> on any of the <code>documents</code>. * * @param documents the documents of interest * @return <code>true</code> if there exists a <code>LinkedModeManager</code> on any of the <code>documents</code>, <code>false</code> otherwise */ public static boolean hasManager(IDocument[] documents) { for (IDocument document : documents) { if (hasManager(document)) return true; } return false; }