A massive organize imports and formatting of the sources using default Eclipse code...
[phpeclipse.git] / net.sourceforge.phpeclipse.xml.ui / src / net / sourceforge / phpeclipse / xml / ui / internal / editor / DTDEditor.java
index e5de102..43f76d7 100644 (file)
@@ -8,22 +8,21 @@
  * Contributors:
  *     Igor Malinin - initial contribution
  *
- * $Id: DTDEditor.java,v 1.1 2004-09-02 18:28:04 jsurfer Exp $
+ * $Id: DTDEditor.java,v 1.3 2006-10-21 23:14:14 pombredanne Exp $
  */
 
 package net.sourceforge.phpeclipse.xml.ui.internal.editor;
 
-import org.eclipse.jface.action.IAction;
-import org.eclipse.jface.util.PropertyChangeEvent;
-import org.eclipse.ui.editors.text.TextEditor;
-import org.eclipse.ui.texteditor.ContentAssistAction;
-import org.eclipse.ui.texteditor.ITextEditorActionDefinitionIds;
-
 import net.sourceforge.phpeclipse.xml.ui.XMLPlugin;
 import net.sourceforge.phpeclipse.xml.ui.internal.text.DTDConfiguration;
 import net.sourceforge.phpeclipse.xml.ui.internal.text.DTDDocumentProvider;
 import net.sourceforge.phpeclipse.xml.ui.text.DTDTextTools;
 
+import org.eclipse.jface.action.IAction;
+import org.eclipse.jface.util.PropertyChangeEvent;
+import org.eclipse.ui.editors.text.TextEditor;
+import org.eclipse.ui.texteditor.ContentAssistAction;
+import org.eclipse.ui.texteditor.ITextEditorActionDefinitionIds;
 
 /**
  * DTD Editor.
@@ -52,23 +51,24 @@ public class DTDEditor extends TextEditor {
        protected boolean affectsTextPresentation(PropertyChangeEvent event) {
                return XMLPlugin.getDefault().getDTDTextTools().affectsBehavior(event);
        }
+
        protected void createActions() {
                super.createActions();
 
-               IAction action = new ContentAssistAction(XMLEditorMessages.getResourceBundle(),
-               "ContentAssistProposal.", this); //$NON-NLS-1$
-           action
-               .setActionDefinitionId(ITextEditorActionDefinitionIds.CONTENT_ASSIST_PROPOSALS);
-           setAction("ContentAssistProposal", action); //$NON-NLS-1$
-           markAsStateDependentAction("ContentAssistProposal", true); //$NON-NLS-1$
-           
-//             IAction action= new TextOperationAction(
-//                             TemplateMessages.getResourceBundle(),
-//                             "Editor." + TEMPLATE_PROPOSALS + ".", //$NON-NLS-1$ //$NON-NLS-2$
-//                             this,
-//                             ISourceViewer.CONTENTASSIST_PROPOSALS);
-//             action.setActionDefinitionId(ITextEditorActionDefinitionIds.CONTENT_ASSIST_PROPOSALS);
-//             setAction(TEMPLATE_PROPOSALS, action);
-//             markAsStateDependentAction(TEMPLATE_PROPOSALS, true);
+               IAction action = new ContentAssistAction(XMLEditorMessages
+                               .getResourceBundle(), "ContentAssistProposal.", this); //$NON-NLS-1$
+               action
+                               .setActionDefinitionId(ITextEditorActionDefinitionIds.CONTENT_ASSIST_PROPOSALS);
+               setAction("ContentAssistProposal", action); //$NON-NLS-1$
+               markAsStateDependentAction("ContentAssistProposal", true); //$NON-NLS-1$
+
+               // IAction action= new TextOperationAction(
+               // TemplateMessages.getResourceBundle(),
+               // "Editor." + TEMPLATE_PROPOSALS + ".", //$NON-NLS-1$ //$NON-NLS-2$
+               // this,
+               // ISourceViewer.CONTENTASSIST_PROPOSALS);
+               // action.setActionDefinitionId(ITextEditorActionDefinitionIds.CONTENT_ASSIST_PROPOSALS);
+               // setAction(TEMPLATE_PROPOSALS, action);
+               // markAsStateDependentAction(TEMPLATE_PROPOSALS, true);
        }
 }