1 11 package org.eclipse.ui.application; 12 13 import org.eclipse.core.runtime.IAdaptable; 14 import org.eclipse.core.runtime.IStatus; 15 import org.eclipse.jface.resource.ImageDescriptor; 16 import org.eclipse.jface.window.WindowManager; 17 import org.eclipse.ui.IMemento; 18 import org.eclipse.ui.IWorkbench; 19 import org.eclipse.ui.IWorkbenchWindow; 20 import org.eclipse.ui.WorkbenchException; 21 22 35 public interface IWorkbenchConfigurer { 36 37 44 public static final int RESTORE_CODE_RESET = 1; 45 46 52 public static final int RESTORE_CODE_EXIT = 2; 53 54 59 public IWorkbench getWorkbench(); 60 61 71 public boolean getSaveAndRestore(); 72 73 80 public void setSaveAndRestore(boolean enabled); 81 82 91 public IWorkbenchWindowConfigurer restoreWorkbenchWindow(IMemento memento) 92 throws WorkbenchException; 93 94 102 public WindowManager getWorkbenchWindowManager(); 103 104 130 public void declareImage(String symbolicName, ImageDescriptor descriptor, 131 boolean shared); 132 133 147 public void emergencyClose(); 148 149 159 public boolean emergencyClosing(); 160 161 167 public IWorkbenchWindowConfigurer getWindowConfigurer( 168 IWorkbenchWindow window); 169 170 177 public Object getData(String key); 178 179 185 public void setData(String key, Object data); 186 187 202 public IStatus restoreState(); 203 204 214 public void openFirstTimeWindow(); 215 216 242 public boolean getExitOnLastWindowClose(); 243 244 258 public void setExitOnLastWindowClose(boolean enabled); 259 } 260 | Popular Tags |