Author: sflanigan
Date: 2009-07-09 03:53:28 -0400 (Thu, 09 Jul 2009)
New Revision: 16509
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar/format/AlignLeftFormatController.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar/format/AlignRightFormatController.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar/format/AttributeFormatController.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar/format/css/MultiPropertyValue.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar/format/css/StyleAttribute.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar/format/css/StyleProperty.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar/format/handler/BlockFormatHandler.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar/format/handler/FormatHandler.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar/format/handler/SimpleTagHandler.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/FileUtil.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/VpeDebugUtil.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/VpeStyleUtil.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/xpl/SashForm.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/resref/VpeResourcesDialog.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/selbar/SelectionBar.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-3557 Externalize English strings
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar/format/AlignLeftFormatController.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar/format/AlignLeftFormatController.java 2009-07-09
07:46:26 UTC (rev 16508)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar/format/AlignLeftFormatController.java 2009-07-09
07:53:28 UTC (rev 16509)
@@ -20,7 +20,7 @@
*/
public class AlignLeftFormatController extends ToolItemFormatController {
- public static String TYPE = "AlignLeftFormat";
+ public static String TYPE = "AlignLeftFormat"; //$NON-NLS-1$
/**
* @param manager
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar/format/AlignRightFormatController.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar/format/AlignRightFormatController.java 2009-07-09
07:46:26 UTC (rev 16508)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar/format/AlignRightFormatController.java 2009-07-09
07:53:28 UTC (rev 16509)
@@ -20,7 +20,7 @@
*/
public class AlignRightFormatController extends ToolItemFormatController {
- public static String TYPE = "AlignRightFormat";
+ public static String TYPE = "AlignRightFormat"; //$NON-NLS-1$
/**
* @param manager
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar/format/AttributeFormatController.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar/format/AttributeFormatController.java 2009-07-09
07:46:26 UTC (rev 16508)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar/format/AttributeFormatController.java 2009-07-09
07:53:28 UTC (rev 16509)
@@ -140,7 +140,7 @@
}
protected Attr getStyleAttributeFromSelectedNode(boolean ignoreCase) {
- return getAttributeFromSelectedNode("style", ignoreCase);
+ return getAttributeFromSelectedNode("style", ignoreCase); //$NON-NLS-1$
}
protected static Attr createAttribute(Node node, FormatAttributeData data) {
@@ -151,7 +151,7 @@
String message = "Wrong vpe template for tag " + node.getNodeName() +
". Attribute 'name' or 'type' of <vpe:formatAttribute> must be
set.";
VpePlugin.getDefault().getLog().log(new Status(Status.ERROR, VpePlugin.PLUGIN_ID,
Status.OK, message, new Exception(message)));
}
- element.setAttribute(name, "");
+ element.setAttribute(name, ""); //$NON-NLS-1$
return element.getAttributeNode(name);
}
return null;
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar/format/css/MultiPropertyValue.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar/format/css/MultiPropertyValue.java 2009-07-09
07:46:26 UTC (rev 16508)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar/format/css/MultiPropertyValue.java 2009-07-09
07:53:28 UTC (rev 16509)
@@ -32,10 +32,10 @@
}
private void parse(String value) {
- StringTokenizer tokenizer = new StringTokenizer(value, " ", true);
+ StringTokenizer tokenizer = new StringTokenizer(value, " ", true);
//$NON-NLS-1$
while(tokenizer.hasMoreTokens()) {
String token = tokenizer.nextToken();
- if(token.equals(" ")) {
+ if(token.equals(" ")) { //$NON-NLS-1$
tokens.add(new Token(token));
} else {
tokens.add(new SinglePropertyValue(token));
@@ -80,8 +80,8 @@
SinglePropertyValue propertyValue = getSinglePropertyValue(value);
if(propertyValue==null) {
String newValue = value;
- if(!((Token)tokens.get(tokens.size()-1)).getDirtyValue().endsWith(" ")) {
- newValue = " " + newValue;
+ if(!((Token)tokens.get(tokens.size()-1)).getDirtyValue().endsWith(" ")) {
//$NON-NLS-1$
+ newValue = " " + newValue; //$NON-NLS-1$
}
return tokens.add(new SinglePropertyValue(newValue));
}
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar/format/css/StyleAttribute.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar/format/css/StyleAttribute.java 2009-07-09
07:46:26 UTC (rev 16508)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar/format/css/StyleAttribute.java 2009-07-09
07:53:28 UTC (rev 16509)
@@ -40,10 +40,10 @@
private void parse(String value) {
tokens.clear();
- StringTokenizer tokenizer = new StringTokenizer(value, ";", true);
+ StringTokenizer tokenizer = new StringTokenizer(value, ";", true);
//$NON-NLS-1$
while(tokenizer.hasMoreTokens()) {
String token = tokenizer.nextToken();
- if(token.equals(";")) {
+ if(token.equals(";")) { //$NON-NLS-1$
tokens.add(new Token(token));
} else {
tokens.add(new StyleProperty(token));
@@ -58,14 +58,14 @@
public boolean addStyleProperty(String name, String value) {
StyleProperty property = getProperty(name);
if(property==null) {
- String space = "";
+ String space = ""; //$NON-NLS-1$
if(tokens.size()>0) {
Token token = (Token)tokens.get(0);
- if(!token.toString().startsWith(" ")) {
- space = " ";
+ if(!token.toString().startsWith(" ")) { //$NON-NLS-1$
+ space = " "; //$NON-NLS-1$
}
}
- StyleProperty newProperty = new StyleProperty(name + ": " + value +
";" + space);
+ StyleProperty newProperty = new StyleProperty(name + ": " + value +
";" + space); //$NON-NLS-1$ //$NON-NLS-2$
tokens.add(0, newProperty);
} else {
SinglePropertyValue propertyValue = property.getSinglePropertyValue(value);
@@ -122,7 +122,7 @@
int index = tokens.indexOf(property) + 1;
if(index<tokens.size()) {
Token nextToken = (Token)tokens.get(index);
- if(nextToken.getDirtyValue().equals(";")) {
+ if(nextToken.getDirtyValue().equals(";")) { //$NON-NLS-1$
tokens.remove(index);
}
}
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar/format/css/StyleProperty.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar/format/css/StyleProperty.java 2009-07-09
07:46:26 UTC (rev 16508)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar/format/css/StyleProperty.java 2009-07-09
07:53:28 UTC (rev 16509)
@@ -37,10 +37,10 @@
}
private void parse(String value) {
- StringTokenizer tokenizer = new StringTokenizer(value, ":", true);
+ StringTokenizer tokenizer = new StringTokenizer(value, ":", true);
//$NON-NLS-1$
while(tokenizer.hasMoreTokens()) {
String token = tokenizer.nextToken();
- if(token.equals(":")) {
+ if(token.equals(":")) { //$NON-NLS-1$
tokens.add(new Token(token));
} else if(name==null) {
name = new Token(token);
@@ -124,7 +124,7 @@
if(singlePropertyValue==null) {
MultiPropertyValue propertyValue = getPropertyValue();
if(propertyValue==null) {
- MultiPropertyValue newPropertyValue = new MultiPropertyValue(" " + value);
+ MultiPropertyValue newPropertyValue = new MultiPropertyValue(" " + value);
//$NON-NLS-1$
tokens.add(newPropertyValue);
return true;
}
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar/format/handler/BlockFormatHandler.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar/format/handler/BlockFormatHandler.java 2009-07-09
07:46:26 UTC (rev 16508)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar/format/handler/BlockFormatHandler.java 2009-07-09
07:53:28 UTC (rev 16509)
@@ -44,7 +44,7 @@
}
boolean normal = false;
- if ("normal".equals(tagName)) {
+ if ("normal".equals(tagName)) { //$NON-NLS-1$
normal = true;
}
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar/format/handler/FormatHandler.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar/format/handler/FormatHandler.java 2009-07-09
07:46:26 UTC (rev 16508)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar/format/handler/FormatHandler.java 2009-07-09
07:53:28 UTC (rev 16509)
@@ -107,19 +107,19 @@
Properties p = new Properties();
p.setProperty(PaletteInsertHelper.PROPOPERTY_TAG_NAME, elementName);
- p.setProperty(PaletteInsertHelper.PROPOPERTY_START_TEXT, "<" + elementName
+ ">");
- p.setProperty(PaletteInsertHelper.PROPOPERTY_END_TEXT, "</" + elementName
+ ">");
+ p.setProperty(PaletteInsertHelper.PROPOPERTY_START_TEXT, "<" + elementName
+ ">"); //$NON-NLS-1$ //$NON-NLS-2$
+ p.setProperty(PaletteInsertHelper.PROPOPERTY_END_TEXT, "</" + elementName
+ ">"); //$NON-NLS-1$ //$NON-NLS-2$
if(format) {
- p.setProperty(PaletteInsertHelper.PROPOPERTY_REFORMAT_BODY, "yes");
+ p.setProperty(PaletteInsertHelper.PROPOPERTY_REFORMAT_BODY, "yes");
//$NON-NLS-1$
}
- p.setProperty(PaletteInsertHelper.PROPOPERTY_TAGLIBRARY_URI,
"http://www.w3.org/TR/REC-html40");
- p.setProperty(PaletteInsertHelper.PROPOPERTY_DEFAULT_PREFIX, "");
+ p.setProperty(PaletteInsertHelper.PROPOPERTY_TAGLIBRARY_URI,
"http://www.w3.org/TR/REC-html40"); //$NON-NLS-1$
+ p.setProperty(PaletteInsertHelper.PROPOPERTY_DEFAULT_PREFIX, "");
//$NON-NLS-1$
ITextSelection sel = new TextSelection(startOffcet, length);
ISelectionProvider selProvider = viewer.getSelectionProvider();
selProvider.setSelection(sel);
- p.put("selectionProvider", selProvider);
+ p.put("selectionProvider", selProvider); //$NON-NLS-1$
PaletteInsertHelper.insertIntoEditor(viewer, p);
@@ -165,7 +165,7 @@
if(element!=selectedNode) {
newStartOffset = newStartOffset + body.indexOf(selectedSource);
}
- if(body.startsWith("\r\n") || body.startsWith("\n")) {
+ if(body.startsWith("\r\n") || body.startsWith("\n")) {
//$NON-NLS-1$ //$NON-NLS-2$
//most probably, in this case white spaces were used
//for formatting inside parent tag, and this formatting must be removed
body = body.trim();
@@ -173,7 +173,7 @@
try {
document.replace(element.getStartOffset(), length, body);
} catch (BadLocationException e) {
- VpePlugin.getPluginLog().logError("Can't format text", e);
+ VpePlugin.getPluginLog().logError("Can't format text", e);
//$NON-NLS-1$
}
viewer.setSelectedRange(newStartOffset, 0);
@@ -185,7 +185,7 @@
IDocument document = viewer.getDocument();
// Append start part - "<tag";
- StringBuffer resultNode = new StringBuffer("<").append(newName);
+ StringBuffer resultNode = new StringBuffer("<").append(newName);
//$NON-NLS-1$
int endOffcet = element.getEndOffset() - element.getStartOffset();
int startEndOffcet = element.getStartEndOffset() - element.getStartOffset();
@@ -202,7 +202,7 @@
String endtagName = element.getEndTagName();
if(endtagName!=null) {
// Append - "</tag";
- resultNode.append("</").append(newName);
+ resultNode.append("</").append(newName); //$NON-NLS-1$
// Append - ">";
resultNode.append(source.substring(endStartOffcet + 2 + endtagName.length()));
}
@@ -216,7 +216,7 @@
try {
document.replace(element.getStartOffset(), length, newElement);
} catch (BadLocationException e) {
- VpePlugin.getPluginLog().logError("Can't format text", e);
+ VpePlugin.getPluginLog().logError("Can't format text", e);
//$NON-NLS-1$
}
viewer.setSelectedRange(newStartOffset, 0);
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar/format/handler/SimpleTagHandler.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar/format/handler/SimpleTagHandler.java 2009-07-09
07:46:26 UTC (rev 16508)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar/format/handler/SimpleTagHandler.java 2009-07-09
07:53:28 UTC (rev 16509)
@@ -62,9 +62,9 @@
return null;
if (parentNode instanceof ElementImpl) {
ElementImpl element = (ElementImpl) parentNode;
- String attr = element.getAttribute("style");
+ String attr = element.getAttribute("style"); //$NON-NLS-1$
if (attr != null) {
- attr = attr.replaceAll(" ", "");
+ attr = attr.replaceAll(" ", ""); //$NON-NLS-1$ //$NON-NLS-2$
if(equalsWrappingTagStyle(attr)) {
return parentNode;
}
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/FileUtil.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/FileUtil.java 2009-07-09
07:46:26 UTC (rev 16508)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/FileUtil.java 2009-07-09
07:53:28 UTC (rev 16509)
@@ -19,7 +19,6 @@
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.Path;
-import org.eclipse.jst.j2ee.web.componentcore.util.WebArtifactEdit;
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IFileEditorInput;
import org.eclipse.ui.IWorkbenchPage;
@@ -69,7 +68,7 @@
if(project != null && project.isOpen()) {
IModelNature modelNature = EclipseResourceUtil.getModelNature(project);
XModel model = (modelNature == null) ? null : modelNature.getModel();
- XModelObject webRoot = (model == null) ? null :
model.getByPath("FileSystems/WEB-ROOT");
+ XModelObject webRoot = (model == null) ? null :
model.getByPath("FileSystems/WEB-ROOT"); //$NON-NLS-1$
IResource webRootResource = (webRoot == null) ? null :
EclipseResourceUtil.getResource(webRoot);
return (webRootResource instanceof IContainer) ? (IContainer)webRootResource : null;
}
@@ -100,7 +99,7 @@
return null;
}
IVirtualFolder webRootFolder = com.getRootFolder().getFolder(
- new Path("/"));
+ new Path("/")); //$NON-NLS-1$
IContainer folder = webRootFolder.getUnderlyingFolder();
IPath path = folder.getFullPath().append(fileName);
file = ResourcesPlugin.getWorkspace().getRoot().getFile(path);
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/VpeDebugUtil.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/VpeDebugUtil.java 2009-07-09
07:46:26 UTC (rev 16508)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/VpeDebugUtil.java 2009-07-09
07:53:28 UTC (rev 16509)
@@ -24,7 +24,7 @@
private static final SimpleDateFormat formatter = new SimpleDateFormat();
static {
- formatter.applyPattern("hh:mm:ss.SSS");
+ formatter.applyPattern("hh:mm:ss.SSS"); //$NON-NLS-1$
}
/**
* Prints debug info on console
@@ -34,7 +34,7 @@
if(Platform.inDebugMode()) {
- System.out.print(formatter.format(new Date())+":"+ msg);
+ System.out.print(formatter.format(new Date())+":"+ msg); //$NON-NLS-1$
}
}
/**
@@ -43,7 +43,7 @@
public static void debugVPEDnDEvents(String msg) {
if(VpeDebug.PRINT_VISUAL_DRAGDROP_EVENT) {
- System.out.println(formatter.format(new Date())+":"+ msg);
+ System.out.println(formatter.format(new Date())+":"+ msg); //$NON-NLS-1$
}
}
}
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/VpeStyleUtil.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/VpeStyleUtil.java 2009-07-09
07:46:26 UTC (rev 16508)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/VpeStyleUtil.java 2009-07-09
07:53:28 UTC (rev 16509)
@@ -800,9 +800,9 @@
Path path = new Path(resolvedValue);
- if (resolvedValue.startsWith("/")
+ if (resolvedValue.startsWith("/") //$NON-NLS-1$
&& path.segment(0).equals(file.getProject().getName())) {
- resolvedValue = "/"
+ resolvedValue = "/" //$NON-NLS-1$
+ path.removeFirstSegments(1).toPortableString();
}
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/xpl/SashForm.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/xpl/SashForm.java 2009-07-09
07:46:26 UTC (rev 16508)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/xpl/SashForm.java 2009-07-09
07:53:28 UTC (rev 16509)
@@ -34,8 +34,8 @@
private Control[] controls = new Control[0];
private Control maxControl = null;
private Listener sashListener;
- private final static String LAYOUT_RATIO = "layout ratio";
- private final static String WEIGHTS = "weights";
+ private final static String LAYOUT_RATIO = "layout ratio"; //$NON-NLS-1$
+ private final static String WEIGHTS = "weights"; //$NON-NLS-1$
protected PropertyChangeSupport listeners = new PropertyChangeSupport(this);
public SashForm(Composite parent, int style) {
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/resref/VpeResourcesDialog.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/resref/VpeResourcesDialog.java 2009-07-09
07:46:26 UTC (rev 16508)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/resref/VpeResourcesDialog.java 2009-07-09
07:53:28 UTC (rev 16509)
@@ -22,9 +22,9 @@
public static boolean run(IFile file) {
VpeResourcesDialog dialog = new VpeResourcesDialog();
Properties p = new Properties();
- p.setProperty("help", "VpeResourcesDialog");
- p.put("file", file);
- p.put("model", PreferenceModelUtilities.getPreferenceModel());
+ p.setProperty("help", "VpeResourcesDialog"); //$NON-NLS-1$
//$NON-NLS-2$
+ p.put("file", file); //$NON-NLS-1$
+ p.put("model", PreferenceModelUtilities.getPreferenceModel()); //$NON-NLS-1$
dialog.setObject(p);
int code = dialog.execute();
return code == 0;
@@ -33,9 +33,9 @@
public static boolean run(IPath path) {
VpeResourcesDialog dialog = new VpeResourcesDialog();
Properties p = new Properties();
- p.setProperty("help", "VpeResourcesDialog");
- p.put("path", path);
- p.put("model", PreferenceModelUtilities.getPreferenceModel());
+ p.setProperty("help", "VpeResourcesDialog"); //$NON-NLS-1$
//$NON-NLS-2$
+ p.put("path", path); //$NON-NLS-1$
+ p.put("model", PreferenceModelUtilities.getPreferenceModel()); //$NON-NLS-1$
dialog.setObject(p);
int code = dialog.execute();
return code == 0;
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/selbar/SelectionBar.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/selbar/SelectionBar.java 2009-07-09
07:46:26 UTC (rev 16508)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/selbar/SelectionBar.java 2009-07-09
07:53:28 UTC (rev 16509)
@@ -475,11 +475,11 @@
}
public String toString() {
- StringBuffer st = new StringBuffer("CountItem: ");
+ StringBuffer st = new StringBuffer("CountItem: "); //$NON-NLS-1$
st.append(itemCount);
- st.append(" Parent Composite: " + cmpToolBar.getBounds().width);
- st.append(" Midle composite: " + cmpBar.getBounds().width);
- st.append(" Bar : " + selBar.getBounds().width);
+ st.append(" Parent Composite: " + cmpToolBar.getBounds().width);
//$NON-NLS-1$
+ st.append(" Midle composite: " + cmpBar.getBounds().width); //$NON-NLS-1$
+ st.append(" Bar : " + selBar.getBounds().width); //$NON-NLS-1$
return st.toString();
}
}