[jboss-cvs] jbosside/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/editors ...
Robert Stryker
rawblem at gmail.com
Wed Sep 20 17:03:41 EDT 2006
User: rawb
Date: 06/09/20 17:03:41
Modified: as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/editors
ServiceXMLCorrectionAssistantProvider.java
ServiceXMLOutlineConfiguration.java
ServiceXMLEditorConfiguration.java
Log:
NLS moved messages
Revision Changes Path
1.2 +7 -4 jbosside/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/editors/ServiceXMLCorrectionAssistantProvider.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: ServiceXMLCorrectionAssistantProvider.java
===================================================================
RCS file: /cvsroot/jboss/jbosside/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/editors/ServiceXMLCorrectionAssistantProvider.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- ServiceXMLCorrectionAssistantProvider.java 12 Aug 2006 05:04:44 -0000 1.1
+++ ServiceXMLCorrectionAssistantProvider.java 20 Sep 2006 21:03:41 -0000 1.2
@@ -23,7 +23,6 @@
import java.util.ArrayList;
import java.util.Arrays;
-import java.util.List;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.jdt.core.IMethod;
@@ -34,6 +33,7 @@
import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
import org.eclipse.jface.text.contentassist.IContentAssistant;
import org.eclipse.jface.text.source.ISourceViewer;
+import org.eclipse.swt.graphics.Image;
import org.eclipse.wst.sse.ui.internal.StructuredTextViewer;
import org.eclipse.wst.sse.ui.internal.contentassist.ContentAssistUtils;
import org.eclipse.wst.sse.ui.internal.correction.IQuickAssistProcessor;
@@ -45,7 +45,10 @@
import org.eclipse.wst.xml.ui.internal.correction.CorrectionProcessorXML;
import org.eclipse.wst.xml.ui.internal.correction.QuickAssistProcessorXML;
import org.eclipse.wst.xml.ui.internal.correction.QuickFixProcessorXML;
+import org.eclipse.wst.xml.ui.internal.editor.XMLEditorPluginImageHelper;
+import org.eclipse.wst.xml.ui.internal.editor.XMLEditorPluginImages;
import org.jboss.ide.eclipse.as.core.util.ASDebug;
+import org.jboss.ide.eclipse.as.ui.Messages;
import org.jboss.ide.eclipse.as.ui.util.ServiceXMLEditorUtil;
import org.w3c.dom.NamedNodeMap;
import org.w3c.dom.Node;
@@ -55,7 +58,6 @@
public ServiceXMLCorrectionAssistantProvider() {
super();
- ASDebug.p("999 constructor", this);
}
public IContentAssistant getCorrectionAssistant(ISourceViewer sourceViewer) {
@@ -204,9 +206,10 @@
int endOffset = lastChild.getEndOffset();
+ Image elImage = XMLEditorPluginImageHelper.getInstance().getImage(XMLEditorPluginImages.IMG_OBJ_ELEMENT);
proposals.add( new CompletionProposal(buf.toString(), endOffset, 0, 0,
- null, "Add missing attribute tags", null, null) );
+ elImage, Messages.ServiceXMLAddAttributeTags, null, null) );
}
}
1.2 +0 -1 jbosside/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/editors/ServiceXMLOutlineConfiguration.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: ServiceXMLOutlineConfiguration.java
===================================================================
RCS file: /cvsroot/jboss/jbosside/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/editors/ServiceXMLOutlineConfiguration.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- ServiceXMLOutlineConfiguration.java 31 Jul 2006 19:43:42 -0000 1.1
+++ ServiceXMLOutlineConfiguration.java 20 Sep 2006 21:03:41 -0000 1.2
@@ -200,7 +200,6 @@
}
public IMenuListener getMenuListener(TreeViewer viewer) {
- ASDebug.p("Here I am: getMenuListener", this);
if (fContextMenuFiller == null) {
fContextMenuFiller = new ActionManagerMenuListener(viewer);
}
1.6 +0 -3 jbosside/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/editors/ServiceXMLEditorConfiguration.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: ServiceXMLEditorConfiguration.java
===================================================================
RCS file: /cvsroot/jboss/jbosside/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/editors/ServiceXMLEditorConfiguration.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- ServiceXMLEditorConfiguration.java 30 Aug 2006 16:21:13 -0000 1.5
+++ ServiceXMLEditorConfiguration.java 20 Sep 2006 21:03:41 -0000 1.6
@@ -78,20 +78,17 @@
public ServiceXMLEditorConfiguration() {
super();
- ASDebug.p("constructor", this);
}
protected IContentAssistProcessor[] getContentAssistProcessors(ISourceViewer sourceViewer, String partitionType) {
IContentAssistProcessor[] processors = null;
if ((partitionType == IStructuredPartitionTypes.DEFAULT_PARTITION) || (partitionType == IXMLPartitions.XML_DEFAULT)) {
- ASDebug.p("I'm here", this);
processors = new IContentAssistProcessor[] { new ServiceXMLContentAssistProcessor() };
//processors = new IContentAssistProcessor[]{new CFGXMLContentAssistProcessor()};
}
else if (partitionType == IStructuredPartitionTypes.UNKNOWN_PARTITION) {
processors = new IContentAssistProcessor[]{new NoRegionContentAssistProcessor()};
- ASDebug.p("in the else", this);
}
return processors;
More information about the jboss-cvs-commits
mailing list