[108170] wsdl.ui and xsd.ui compile warnings
diff --git a/bundles/org.eclipse.wst.xsd.ui/src/org/eclipse/wst/xsd/ui/internal/XSDEditor.java b/bundles/org.eclipse.wst.xsd.ui/src/org/eclipse/wst/xsd/ui/internal/XSDEditor.java
index 413487b..ad8f877 100644
--- a/bundles/org.eclipse.wst.xsd.ui/src/org/eclipse/wst/xsd/ui/internal/XSDEditor.java
+++ b/bundles/org.eclipse.wst.xsd.ui/src/org/eclipse/wst/xsd/ui/internal/XSDEditor.java
@@ -41,7 +41,7 @@
import org.eclipse.wst.sse.core.internal.provisional.INodeNotifier;
import org.eclipse.wst.sse.core.internal.provisional.IStructuredModel;
import org.eclipse.wst.sse.core.internal.provisional.events.IStructuredDocumentListener;
-//import org.eclipse.wst.sse.core.internal.undo.IStructuredTextUndoManager;
+import org.eclipse.wst.sse.core.internal.undo.IStructuredTextUndoManager;
import org.eclipse.wst.sse.ui.StructuredTextEditor;
import org.eclipse.wst.xml.core.internal.provisional.document.IDOMModel;
import org.eclipse.wst.xsd.ui.internal.graph.XSDGraphViewer;
@@ -62,6 +62,8 @@
XSDSelectionManager xsdSelectionManager;
XSDModelAdapter schemalNodeAdapter;
+ private IStructuredModel result;
+
public XSDEditor()
{
super();
@@ -187,7 +189,7 @@
{
if (commandStackListener == null)
{
-// IStructuredTextUndoManager undoManager = getModel().getUndoManager();
+ IStructuredTextUndoManager undoManager = getModel().getUndoManager();
commandStackListener = new CommandStackListener()
{
/**
@@ -201,7 +203,7 @@
BasicCommandStack stack = (BasicCommandStack) obj;
Command recentCommand = stack.getMostRecentCommand();
Command redoCommand = stack.getRedoCommand();
- stack.getUndoCommand();
+ Command undoCommand = stack.getUndoCommand();
if (recentCommand == redoCommand)
{
// there must have been an undo reset info tasks
@@ -225,7 +227,7 @@
{
if (commandStackListener != null)
{
-// IStructuredTextUndoManager undoManager = getModel().getUndoManager();
+ IStructuredTextUndoManager undoManager = getModel().getUndoManager();
//TODO WTP Port undoManager.getCommandStack().removeCommandStackListener(commandStackListener);
}
}
@@ -306,6 +308,7 @@
resourceFile = null;
xsdSelectionManager = null;
schemalNodeAdapter = null;
+ result = null;
partListener = null;
commandStackListener = null;
preferenceStoreListener = null;