1 11 package org.eclipse.core.internal.resources; 12 13 import java.util.Properties ; 14 import org.eclipse.core.resources.ResourcesPlugin; 15 16 22 public class TestingSupport { 23 26 public static Properties getMasterTable() { 27 return ((Workspace) ResourcesPlugin.getWorkspace()).getSaveManager().getMasterTable(); 28 } 29 30 34 public static void waitForSnapshot() { 35 try { 36 ((Workspace) ResourcesPlugin.getWorkspace()).getSaveManager().snapshotJob.join(); 37 } catch (InterruptedException e) { 38 e.printStackTrace(); 39 throw new RuntimeException ("Interrupted while waiting for snapshot"); } 41 } 42 43 46 private TestingSupport() { 47 } 49 } 50 | Popular Tags |