Community
Participate
Working Groups
IWorkbenchConfigurer.RESTORE_CODE_RESET, msg, null);
}
final IStatus result[] = { new Status(IStatus.OK,
final IStatus result[] = { Status.OK_STATUS };
WorkbenchPlugin.PI_WORKBENCH, IStatus.OK, "", null) }; //$NON-NLS-1$
SafeRunner.run(new SafeRunnable(WorkbenchMessages.ErrorReadingState) {
public void run() throws Exception {
FileInputStream input = new FileInputStream(stateFile);
//for dynamic UI - add the next line to replace subsequent code that is commented out
restoreViewState(mem[i]);
return new Status(IStatus.OK, PlatformUI.PLUGIN_ID, 0, "", null); //$NON-NLS-1$
return Status.OK_STATUS;
/**
import org.eclipse.ui.IWorkbenchPartReference;
import org.eclipse.ui.IWorkbenchPreferenceConstants;
import org.eclipse.ui.PartInitException;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.XMLMemento;
import org.eclipse.ui.internal.StartupThreading.StartupRunnable;
import org.eclipse.ui.internal.dnd.AbstractDropTarget;
/* (non-Javadoc)
protected WorkbenchPage getPage() {
public IStatus restoreState() {
Assert.isTrue(!isRestored());
Status result = new Status(IStatus.OK, PlatformUI.PLUGIN_ID, 0,
IStatus result = Status.OK_STATUS;
"", null); //$NON-NLS-1$
IMemento memento = this.memento;
this.memento = null;
.getToolTipText());
import org.eclipse.ui.IEditorDescriptor;
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IMemento;
* This class is used to record "open editor" actions as they
add(item, fifoList.size());
item.saveState(itemMemento);
}});
*/
if (this.memento == null) {
MultiStatus result = new MultiStatus(
import org.eclipse.ui.IPerspectiveFactory;
import org.eclipse.ui.IPluginContribution;
import org.eclipse.ui.ISharedImages;
import org.eclipse.ui.internal.IWorkbenchConstants;
import org.eclipse.ui.internal.WorkbenchImages;
import org.eclipse.ui.internal.WorkbenchPlugin;
image = descriptor.getImageDescriptor();
if (singleton) {
childMem.putInteger(IWorkbenchConstants.TAG_SINGLETON, 1);