|
Lines 31-36
Link Here
|
| 31 |
import org.eclipse.core.runtime.IStatus; |
31 |
import org.eclipse.core.runtime.IStatus; |
| 32 |
import org.eclipse.core.runtime.MultiStatus; |
32 |
import org.eclipse.core.runtime.MultiStatus; |
| 33 |
import org.eclipse.core.runtime.Platform; |
33 |
import org.eclipse.core.runtime.Platform; |
|
|
34 |
import org.eclipse.core.runtime.SafeRunner; |
| 34 |
import org.eclipse.core.runtime.Status; |
35 |
import org.eclipse.core.runtime.Status; |
| 35 |
import org.eclipse.core.runtime.SubProgressMonitor; |
36 |
import org.eclipse.core.runtime.SubProgressMonitor; |
| 36 |
import org.eclipse.core.runtime.dynamichelpers.IExtensionChangeHandler; |
37 |
import org.eclipse.core.runtime.dynamichelpers.IExtensionChangeHandler; |
|
Lines 77-82
Link Here
|
| 77 |
import org.eclipse.ui.IViewPart; |
78 |
import org.eclipse.ui.IViewPart; |
| 78 |
import org.eclipse.ui.IWorkbenchPage; |
79 |
import org.eclipse.ui.IWorkbenchPage; |
| 79 |
import org.eclipse.ui.IWorkbenchPart; |
80 |
import org.eclipse.ui.IWorkbenchPart; |
|
|
81 |
import org.eclipse.ui.IWorkbenchPart3; |
| 80 |
import org.eclipse.ui.IWorkbenchPartReference; |
82 |
import org.eclipse.ui.IWorkbenchPartReference; |
| 81 |
import org.eclipse.ui.IWorkbenchWindow; |
83 |
import org.eclipse.ui.IWorkbenchWindow; |
| 82 |
import org.eclipse.ui.PartInitException; |
84 |
import org.eclipse.ui.PartInitException; |
|
Lines 1574-1580
Link Here
|
| 1574 |
return; |
1576 |
return; |
| 1575 |
} |
1577 |
} |
| 1576 |
|
1578 |
|
| 1577 |
Platform.run(new SafeRunnable() { |
1579 |
SafeRunner.run(new SafeRunnable() { |
| 1578 |
public void run() { |
1580 |
public void run() { |
| 1579 |
// Get the input. |
1581 |
// Get the input. |
| 1580 |
IEditorInput input = editor.getEditorInput(); |
1582 |
IEditorInput input = editor.getEditorInput(); |
|
Lines 1597-1602
Link Here
|
| 1597 |
|
1599 |
|
| 1598 |
editorMem.putString(IWorkbenchConstants.TAG_PART_NAME, |
1600 |
editorMem.putString(IWorkbenchConstants.TAG_PART_NAME, |
| 1599 |
editorRef.getPartName()); |
1601 |
editorRef.getPartName()); |
|
|
1602 |
|
| 1603 |
if (editor instanceof IWorkbenchPart3) { |
| 1604 |
Map properties = ((IWorkbenchPart3) editor).getPartProperties(); |
| 1605 |
Iterator i = properties.entrySet().iterator(); |
| 1606 |
while (i.hasNext()) { |
| 1607 |
Map.Entry entry = (Map.Entry) i.next(); |
| 1608 |
IMemento p = editorMem |
| 1609 |
.createChild(IWorkbenchConstants.TAG_PROPERTY); |
| 1610 |
p.putString(IWorkbenchConstants.TAG_KEY, (String) entry |
| 1611 |
.getKey()); |
| 1612 |
p.putString(IWorkbenchConstants.TAG_VALUE, |
| 1613 |
(String) entry.getValue()); |
| 1614 |
} |
| 1615 |
} |
| 1600 |
|
1616 |
|
| 1601 |
if (editorRef.isPinned()) { |
1617 |
if (editorRef.isPinned()) { |
| 1602 |
editorMem.putString(IWorkbenchConstants.TAG_PINNED, "true"); //$NON-NLS-1$ |
1618 |
editorMem.putString(IWorkbenchConstants.TAG_PINNED, "true"); //$NON-NLS-1$ |