IndexDatabase.java revision 207
0N/A * See LICENSE.txt included in this distribution for the specific
0N/A * file and include the License file at LICENSE.txt.
226N/Apublic class IndexDatabase {
0N/A private boolean interrupted;
0N/A initialize();
0N/A initialize();
235N/A throw new FileNotFoundException("Failed to create root directory [" + indexDir.getAbsolutePath() + "]");
235N/A throw new FileNotFoundException("Failed to create root directory [" + spellDir.getAbsolutePath() + "]");
226N/A interrupted = false;
234N/A sourceRoot = new File(RuntimeEnvironment.getInstance().getSourceRootFile(), project.getPath());
0N/A while (uidIter.term() != null && uidIter.term().field().equals("u") && uidIter.term().text().startsWith(startuid)) {
0N/A removeFile();
0N/A } catch (IOException e) {
4N/A } catch (IOException e) {
0N/A } catch (IOException e) {
234N/A } catch (IOException e) {
0N/A public void createSpellingSuggestions() {
0N/A } catch (IOException e) {
0N/A } catch (IOException e) {
0N/A if (interrupted) {
String uid = Util.uid(path, DateTools.timeToString(file.lastModified(), DateTools.Resolution.MILLISECOND)); // construct uid for doc
removeFile();
public void interrupt() {
interrupted = true;
} catch (Exception e) {
} catch (Exception e) {
} catch (Exception e) {
} catch (Exception e) {