JBoss Tools SVN: r37542 - trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/refactoring.
by jbosstools-commits@lists.jboss.org
Author: dazarov
Date: 2011-12-22 18:53:59 -0500 (Thu, 22 Dec 2011)
New Revision: 37542
Modified:
trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/refactoring/MarkerResolutionUtils.java
Log:
Java Seam and CDI quick fixes: after quick fix, editor is scrolled to the beginning. If Undo/Redo commands are used, the entire file content gets selected https://issues.jboss.org/browse/JBIDE-10536
Modified: trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/refactoring/MarkerResolutionUtils.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/refactoring/MarkerResolutionUtils.java 2011-12-22 23:53:41 UTC (rev 37541)
+++ trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/refactoring/MarkerResolutionUtils.java 2011-12-22 23:53:59 UTC (rev 37542)
@@ -335,6 +335,13 @@
c = buffer.getChar(position);
}
}
+ while(position < buffer.getLength()-1){
+ char c = buffer.getChar(position);
+ if(c != '\r' && c != '\n' && c != ' ' && c != '\t'){
+ break;
+ }
+ position++;
+ }
}
if(!(workingCopyMember instanceof ILocalVariable)){
13 years, 2 months
JBoss Tools SVN: r37541 - trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/marker.
by jbosstools-commits@lists.jboss.org
Author: dazarov
Date: 2011-12-22 18:53:41 -0500 (Thu, 22 Dec 2011)
New Revision: 37541
Modified:
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/marker/AddSuppressWarningsMarkerResolution.java
Log:
Add @SuppressWarnings quick fix https://issues.jboss.org/browse/JBIDE-10187
Modified: trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/marker/AddSuppressWarningsMarkerResolution.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/marker/AddSuppressWarningsMarkerResolution.java 2011-12-22 22:57:24 UTC (rev 37540)
+++ trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/marker/AddSuppressWarningsMarkerResolution.java 2011-12-22 23:53:41 UTC (rev 37541)
@@ -307,6 +307,13 @@
c = buffer.getChar(position);
}
}
+ while(position < buffer.getLength()-1){
+ char c = buffer.getChar(position);
+ if(c != '\r' && c != '\n' && c != ' ' && c != '\t'){
+ break;
+ }
+ position++;
+ }
}
String str = AT+name;
13 years, 2 months
JBoss Tools SVN: r37540 - trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/perspective.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2011-12-22 17:57:24 -0500 (Thu, 22 Dec 2011)
New Revision: 37540
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/perspective/CDIPerspectiveTest.java
Log:
https://issues.jboss.org/browse/JBIDE-10394 JBoss Perspective: Add Package Explorer
Modified: trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/perspective/CDIPerspectiveTest.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/perspective/CDIPerspectiveTest.java 2011-12-22 22:37:59 UTC (rev 37539)
+++ trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/perspective/CDIPerspectiveTest.java 2011-12-22 22:57:24 UTC (rev 37540)
@@ -65,8 +65,8 @@
assertTrue("Have not found org.jboss.tools.cdi.ui.wizard.NewInterceptorBindingCreationWizard in org.eclipse.jst.j2ee.J2EEPerspective.", shortcutSet.contains("org.jboss.tools.cdi.ui.wizard.NewInterceptorBindingCreationWizard"));
assertTrue("Have not found org.jboss.tools.cdi.ui.wizard.NewInterceptorCreationWizard in org.eclipse.jst.j2ee.J2EEPerspective.", shortcutSet.contains("org.jboss.tools.cdi.ui.wizard.NewInterceptorCreationWizard"));
assertTrue("Have not found org.jboss.tools.cdi.ui.wizard.NewDecoratorCreationWizard in org.eclipse.jst.j2ee.J2EEPerspective.", shortcutSet.contains("org.jboss.tools.cdi.ui.wizard.NewDecoratorCreationWizard"));
- assertTrue("Have not found org.jboss.tools.cdi.ui.wizard.NewAnnotationLiteralCreationWizard in org.eclipse.jst.j2ee.J2EEPerspective.", shortcutSet.contains("org.jboss.tools.cdi.ui.wizard.NewAnnotationLiteralCreationWizard"));
- assertTrue("Have not found org.jboss.tools.cdi.ui.wizard.NewBeansXMLCreationWizard in org.eclipse.jst.j2ee.J2EEPerspective.", shortcutSet.contains("org.jboss.tools.cdi.ui.wizard.NewBeansXMLCreationWizard"));
+// assertTrue("Have not found org.jboss.tools.cdi.ui.wizard.NewAnnotationLiteralCreationWizard in org.eclipse.jst.j2ee.J2EEPerspective.", shortcutSet.contains("org.jboss.tools.cdi.ui.wizard.NewAnnotationLiteralCreationWizard"));
+// assertTrue("Have not found org.jboss.tools.cdi.ui.wizard.NewBeansXMLCreationWizard in org.eclipse.jst.j2ee.J2EEPerspective.", shortcutSet.contains("org.jboss.tools.cdi.ui.wizard.NewBeansXMLCreationWizard"));
// IViewReference[] viewReferences = page.getViewReferences();
// Set<String> viewIds = new HashSet<String>();
// for (IViewReference viewReference : viewReferences) {
13 years, 2 months
JBoss Tools SVN: r37539 - trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/refactoring.
by jbosstools-commits@lists.jboss.org
Author: dazarov
Date: 2011-12-22 17:37:59 -0500 (Thu, 22 Dec 2011)
New Revision: 37539
Modified:
trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/refactoring/MarkerResolutionUtils.java
Log:
Java Seam and CDI quick fixes: after quick fix, editor is scrolled to the beginning. If Undo/Redo commands are used, the entire file content gets selected https://issues.jboss.org/browse/JBIDE-10536
Modified: trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/refactoring/MarkerResolutionUtils.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/refactoring/MarkerResolutionUtils.java 2011-12-22 22:18:27 UTC (rev 37538)
+++ trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/refactoring/MarkerResolutionUtils.java 2011-12-22 22:37:59 UTC (rev 37539)
@@ -330,7 +330,7 @@
if(elementNode instanceof BodyDeclaration && ((BodyDeclaration)elementNode).getJavadoc() != null){
position += ((BodyDeclaration)elementNode).getJavadoc().getLength();
char c = buffer.getChar(position);
- while((c == '\r' || c == '\n') && position < buffer.getLength()-2 ){
+ while((c == C_CARRIAGE_RETURN || c == C_NEW_LINE) && position < buffer.getLength()-2 ){
position++;
c = buffer.getChar(position);
}
13 years, 2 months
JBoss Tools SVN: r37538 - trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/refactoring.
by jbosstools-commits@lists.jboss.org
Author: dazarov
Date: 2011-12-22 17:18:27 -0500 (Thu, 22 Dec 2011)
New Revision: 37538
Modified:
trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/refactoring/MarkerResolutionUtils.java
Log:
Java Seam and CDI quick fixes: after quick fix, editor is scrolled to the beginning. If Undo/Redo commands are used, the entire file content gets selected https://issues.jboss.org/browse/JBIDE-10536
Modified: trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/refactoring/MarkerResolutionUtils.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/refactoring/MarkerResolutionUtils.java 2011-12-22 20:05:38 UTC (rev 37537)
+++ trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/refactoring/MarkerResolutionUtils.java 2011-12-22 22:18:27 UTC (rev 37538)
@@ -31,6 +31,7 @@
import org.eclipse.jdt.core.ITypeParameter;
import org.eclipse.jdt.core.JavaModelException;
import org.eclipse.jdt.core.dom.ASTNode;
+import org.eclipse.jdt.core.dom.BodyDeclaration;
import org.eclipse.jdt.core.dom.CompilationUnit;
import org.eclipse.jdt.internal.core.JavaElement;
import org.eclipse.jpt.common.core.internal.utility.jdt.ASTTools;
@@ -326,6 +327,14 @@
if(elementNode != null){
position = elementNode.getStartPosition();
+ if(elementNode instanceof BodyDeclaration && ((BodyDeclaration)elementNode).getJavadoc() != null){
+ position += ((BodyDeclaration)elementNode).getJavadoc().getLength();
+ char c = buffer.getChar(position);
+ while((c == '\r' || c == '\n') && position < buffer.getLength()-2 ){
+ position++;
+ c = buffer.getChar(position);
+ }
+ }
}
if(!(workingCopyMember instanceof ILocalVariable)){
13 years, 2 months
JBoss Tools SVN: r37537 - in trunk: common/plugins/org.jboss.tools.common.ui and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2011-12-22 15:05:38 -0500 (Thu, 22 Dec 2011)
New Revision: 37537
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.ui/plugin.xml
trunk/common/plugins/org.jboss.tools.common.ui/plugin.xml
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/JBossPerspectiveFactory.java
Log:
https://issues.jboss.org/browse/JBIDE-10394 JBoss Perspective: Add Package Explorer
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.ui/plugin.xml
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.ui/plugin.xml 2011-12-22 20:04:33 UTC (rev 37536)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.ui/plugin.xml 2011-12-22 20:05:38 UTC (rev 37537)
@@ -382,12 +382,12 @@
<newWizardShortcut
id="org.jboss.tools.cdi.ui.wizard.NewDecoratorCreationWizard">
</newWizardShortcut>
- <newWizardShortcut
+ <!--newWizardShortcut
id="org.jboss.tools.cdi.ui.wizard.NewAnnotationLiteralCreationWizard">
</newWizardShortcut>
<newWizardShortcut
id="org.jboss.tools.cdi.ui.wizard.NewBeansXMLCreationWizard">
- </newWizardShortcut>
+ </newWizardShortcut-->
</perspectiveExtension>
<perspectiveExtension
Modified: trunk/common/plugins/org.jboss.tools.common.ui/plugin.xml
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.ui/plugin.xml 2011-12-22 20:04:33 UTC (rev 37536)
+++ trunk/common/plugins/org.jboss.tools.common.ui/plugin.xml 2011-12-22 20:05:38 UTC (rev 37537)
@@ -54,10 +54,24 @@
id="org.jboss.tools.common.ui.JBossPerspective"
name="%perspective.name">
</perspective>
+ <extension
+ point="org.eclipse.ui.perspectiveExtensions">
+ <perspectiveExtension
+ targetID="org.jboss.tools.common.ui.JBossPerspective">
+ <perspectiveShortcut
+ id="org.eclipse.jdt.ui.JavaPerspective">
+ </perspectiveShortcut>
+ <perspectiveShortcut
+ id="org.eclipse.jdt.ui.JavaBrowsingPerspective">
+ </perspectiveShortcut>
+ <perspectiveShortcut
+ id="org.eclipse.debug.ui.DebugPerspective">
+ </perspectiveShortcut>
+ </perspectiveExtension>
</extension>
+ </extension>
<extension point="org.eclipse.ui.ide.markerResolution">
<markerResolutionGenerator
class="org.jboss.tools.common.ui.marker.ConfigureProblemSeverityResolutionGenerator"/>
- </extension>
-
+ </extension>
</plugin>
Modified: trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/JBossPerspectiveFactory.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/JBossPerspectiveFactory.java 2011-12-22 20:04:33 UTC (rev 37536)
+++ trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/JBossPerspectiveFactory.java 2011-12-22 20:05:38 UTC (rev 37537)
@@ -39,6 +39,7 @@
public void createInitialLayout(IPageLayout layout) {
layout.addActionSet("org.eclipse.jst.j2ee.J2eeMainActionSet"); //$NON-NLS-1$
layout.addActionSet(JavaUI.ID_ACTION_SET);
+ layout.addActionSet(JavaUI.ID_ELEMENT_CREATION_ACTION_SET);
layout.addActionSet(IDebugUIConstants.LAUNCH_ACTION_SET);
layout.addActionSet(IDebugUIConstants.DEBUG_ACTION_SET);
@@ -46,6 +47,9 @@
layout.addActionSet(IPageLayout.ID_NAVIGATE_ACTION_SET);
layout.addShowViewShortcut(ProjectExplorer.VIEW_ID);
+ layout.addShowViewShortcut(JavaUI.ID_PACKAGES);
+ layout.addShowViewShortcut(JavaUI.ID_TYPE_HIERARCHY);
+ layout.addShowViewShortcut(JavaUI.ID_SOURCE_VIEW);
layout.addShowViewShortcut(ID_SERVERS_VIEW);
layout.addShowViewShortcut(IPageLayout.ID_BOOKMARKS);
layout.addShowViewShortcut(IPageLayout.ID_OUTLINE);
@@ -53,6 +57,7 @@
layout.addShowViewShortcut(IPageLayout.ID_RES_NAV);
layout.addShowViewShortcut(IPageLayout.ID_PROBLEM_VIEW);
+
// views - search
layout.addShowViewShortcut(ID_SEARCH_VIEW);
// views - debugging
@@ -65,6 +70,7 @@
// Top left.
IFolderLayout topLeft = layout.createFolder("topLeft", IPageLayout.LEFT, 0.25f, editorArea);//$NON-NLS-1$
topLeft.addView(ProjectExplorer.VIEW_ID);
+ topLeft.addView(JavaUI.ID_PACKAGES);
topLeft.addPlaceholder(IPageLayout.ID_RES_NAV);
topLeft.addPlaceholder(JavaUI.ID_TYPE_HIERARCHY);
topLeft.addPlaceholder(JavaUI.ID_PACKAGES_VIEW);
@@ -88,5 +94,14 @@
// to make placeholder working it should be removed first
((PageLayout)layout).removePlaceholder(ICheatSheetResource.CHEAT_SHEET_VIEW_ID);
topRight.addPlaceholder(ICheatSheetResource.CHEAT_SHEET_VIEW_ID);
+
+ // new actions - Java project creation wizard
+ layout.addNewWizardShortcut("org.eclipse.jdt.ui.wizards.NewPackageCreationWizard"); //$NON-NLS-1$
+ layout.addNewWizardShortcut("org.eclipse.jdt.ui.wizards.NewClassCreationWizard"); //$NON-NLS-1$
+ layout.addNewWizardShortcut("org.eclipse.jdt.ui.wizards.NewInterfaceCreationWizard"); //$NON-NLS-1$
+ layout.addNewWizardShortcut("org.eclipse.jdt.ui.wizards.NewSourceFolderCreationWizard"); //$NON-NLS-1$
+ layout.addNewWizardShortcut("org.eclipse.jdt.ui.wizards.NewSnippetFileCreationWizard"); //$NON-NLS-1$
+ layout.addNewWizardShortcut("org.eclipse.ui.wizards.new.folder");//$NON-NLS-1$
+ layout.addNewWizardShortcut("org.eclipse.ui.wizards.new.file");//$NON-NLS-1$
}
}
\ No newline at end of file
13 years, 2 months
JBoss Tools SVN: r37536 - trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/jsf2/bean/model/impl.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2011-12-22 15:04:33 -0500 (Thu, 22 Dec 2011)
New Revision: 37536
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/jsf2/bean/model/impl/AbstractMemberDefinition.java
Log:
https://issues.jboss.org/browse/JBIDE-10187 Add support for a @SuppressWarnings
Modified: trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/jsf2/bean/model/impl/AbstractMemberDefinition.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/jsf2/bean/model/impl/AbstractMemberDefinition.java 2011-12-22 19:34:52 UTC (rev 37535)
+++ trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/jsf2/bean/model/impl/AbstractMemberDefinition.java 2011-12-22 20:04:33 UTC (rev 37536)
@@ -24,9 +24,9 @@
import org.jboss.tools.common.java.IAnnotated;
import org.jboss.tools.common.java.IAnnotationDeclaration;
import org.jboss.tools.common.java.IJavaAnnotation;
+import org.jboss.tools.common.java.IJavaSourceReference;
import org.jboss.tools.common.java.impl.AnnotationDeclaration;
import org.jboss.tools.common.java.impl.JavaAnnotation;
-import org.jboss.tools.common.text.ITextSourceReference;
import org.jboss.tools.jsf.JSFModelPlugin;
import org.jboss.tools.jsf.jsf2.bean.model.JSF2Constants;
@@ -104,7 +104,7 @@
return annotationsByType.get(typeName);
}
- public ITextSourceReference getAnnotationPosition(String annotationTypeName) {
+ public IJavaSourceReference getAnnotationPosition(String annotationTypeName) {
return getAnnotation(annotationTypeName);
}
@@ -119,5 +119,4 @@
public IResource getResource() {
return resource;
}
-
}
\ No newline at end of file
13 years, 2 months
JBoss Tools SVN: r37535 - in trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui: marker and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: dazarov
Date: 2011-12-22 14:34:52 -0500 (Thu, 22 Dec 2011)
New Revision: 37535
Modified:
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/CommonUIMessages.java
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/marker/AddSuppressWarningsMarkerResolution.java
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/messages.properties
Log:
Add @SuppressWarnings quick fix https://issues.jboss.org/browse/JBIDE-10187
Modified: trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/CommonUIMessages.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/CommonUIMessages.java 2011-12-22 18:02:11 UTC (rev 37534)
+++ trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/CommonUIMessages.java 2011-12-22 19:34:52 UTC (rev 37535)
@@ -79,6 +79,10 @@
public static String ADD_SUPPRESS_WARNINGS_MESSAGE;
public static String ADD_SUPPRESS_WARNINGS_QUESTION1;
public static String ADD_SUPPRESS_WARNINGS_QUESTION2;
+ public static String ADD_SUPPRESS_WARNINGS_CANCEL;
+ public static String ADD_SUPPRESS_WARNINGS_PROJECT;
+ public static String ADD_SUPPRESS_WARNINGS_WORKSPACE;
+ public static String ADD_SUPPRESS_WARNINGS_DISABLE;
static {
NLS.initializeMessages(BUNDLE_NAME, CommonUIMessages.class);
Modified: trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/marker/AddSuppressWarningsMarkerResolution.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/marker/AddSuppressWarningsMarkerResolution.java 2011-12-22 18:02:11 UTC (rev 37534)
+++ trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/marker/AddSuppressWarningsMarkerResolution.java 2011-12-22 19:34:52 UTC (rev 37535)
@@ -29,6 +29,7 @@
import org.eclipse.jdt.core.JavaCore;
import org.eclipse.jdt.core.JavaModelException;
import org.eclipse.jdt.core.dom.ASTNode;
+import org.eclipse.jdt.core.dom.BodyDeclaration;
import org.eclipse.jdt.core.dom.CompilationUnit;
import org.eclipse.jdt.core.refactoring.CompilationUnitChange;
import org.eclipse.jdt.internal.core.JavaElement;
@@ -171,7 +172,7 @@
CommonUIMessages.ADD_SUPPRESS_WARNINGS_MESSAGE+
CommonUIMessages.ADD_SUPPRESS_WARNINGS_QUESTION1,
MessageDialog.QUESTION_WITH_CANCEL,
- new String[]{"Cancel", "Disable"},
+ new String[]{CommonUIMessages.ADD_SUPPRESS_WARNINGS_CANCEL, CommonUIMessages.ADD_SUPPRESS_WARNINGS_DISABLE},
0);
int result = dialog.open();
if(result == 1){
@@ -188,7 +189,7 @@
CommonUIMessages.ADD_SUPPRESS_WARNINGS_MESSAGE+
NLS.bind(CommonUIMessages.ADD_SUPPRESS_WARNINGS_QUESTION2, file.getProject().getName()),
MessageDialog.QUESTION_WITH_CANCEL,
- new String[]{"Cancel", "Workspace", "Project"},
+ new String[]{CommonUIMessages.ADD_SUPPRESS_WARNINGS_CANCEL, CommonUIMessages.ADD_SUPPRESS_WARNINGS_WORKSPACE, CommonUIMessages.ADD_SUPPRESS_WARNINGS_PROJECT},
0);
int result = dialog.open();
if(result == 1){
@@ -298,6 +299,14 @@
if(node != null){
position = node.getStartPosition();
+ if(node instanceof BodyDeclaration && ((BodyDeclaration)node).getJavadoc() != null){
+ position += ((BodyDeclaration)node).getJavadoc().getLength();
+ char c = buffer.getChar(position);
+ while((c == '\r' || c == '\n') && position < buffer.getLength()-2 ){
+ position++;
+ c = buffer.getChar(position);
+ }
+ }
}
String str = AT+name;
@@ -314,7 +323,7 @@
index--;
}
index++;
- if(index != position){
+ if(index < position){
String spaces = buffer.getText(index, position-index);
str += spaces;
}
Modified: trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/messages.properties
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/messages.properties 2011-12-22 18:02:11 UTC (rev 37534)
+++ trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/messages.properties 2011-12-22 19:34:52 UTC (rev 37535)
@@ -37,4 +37,8 @@
ADD_SUPPRESS_WARNINGS_TITLE=Add @SuppressWarnings ''{0}'' to ''{1}''
ADD_SUPPRESS_WARNINGS_MESSAGE=This quick fix uses warning names that are not supported by The Java Validator and will cause \"Unsupported @SuppressWarning\" problem message.\n\n
ADD_SUPPRESS_WARNINGS_QUESTION1=Do you want to disable 'Unsupported @SuppressWarnings' validation?
-ADD_SUPPRESS_WARNINGS_QUESTION2=Do you want to disable 'Unsupported @SuppressWarnings' validation on the Workspace or on the project ''{0}''?
\ No newline at end of file
+ADD_SUPPRESS_WARNINGS_QUESTION2=Do you want to disable 'Unsupported @SuppressWarnings' validation on the Workspace or on the project ''{0}''?
+ADD_SUPPRESS_WARNINGS_CANCEL=Cancel
+ADD_SUPPRESS_WARNINGS_PROJECT=Project
+ADD_SUPPRESS_WARNINGS_WORKSPACE=Workspace
+ADD_SUPPRESS_WARNINGS_DISABLE=Disable
\ No newline at end of file
13 years, 2 months