|
@@ -21,6 +21,7 @@ import org.netbeans.spi.editor.hints.ErrorDescription;
|
|
|
import org.netbeans.spi.editor.hints.ErrorDescriptionFactory;
|
|
|
import org.netbeans.spi.editor.hints.Fix;
|
|
|
import org.openide.awt.StatusDisplayer;
|
|
|
+import org.openide.util.NbBundle;
|
|
|
|
|
|
public class UpdateHint extends AbstractHint {
|
|
|
|
|
@@ -86,19 +87,22 @@ public class UpdateHint extends AbstractHint {
|
|
|
//Message that the user sees in the left sidebar:
|
|
|
@Override
|
|
|
public String getDisplayName() {
|
|
|
- return "Updating is not needed in jME3, check your update order if you need to call this.";
|
|
|
+ //return "Updating is not needed in jME3, check your update order if you need to call this.";
|
|
|
+ return NbBundle.getMessage(UpdateHint.class, "UpdateHint.display-name");
|
|
|
}
|
|
|
|
|
|
//Name of the hint in the Options window:
|
|
|
@Override
|
|
|
public String getId() {
|
|
|
- return "Update States / Bound";
|
|
|
+ //return "Update States / Bound";
|
|
|
+ return NbBundle.getMessage(UpdateHint.class, "UpdateHint.id");
|
|
|
}
|
|
|
|
|
|
//Description of the hint in the Options window:
|
|
|
@Override
|
|
|
public String getDescription() {
|
|
|
- return "Checks for calls to updateGeometricState(), updateLogicalState() and updateModelBound().";
|
|
|
+ //return "Checks for calls to updateGeometricState(), updateLogicalState() and updateModelBound().";
|
|
|
+ return NbBundle.getMessage(UpdateHint.class, "UpdateHint.description");
|
|
|
}
|
|
|
|
|
|
class MessagesFix implements EnhancedFix {
|
|
@@ -120,7 +124,8 @@ public class UpdateHint extends AbstractHint {
|
|
|
|
|
|
@Override
|
|
|
public String getText() {
|
|
|
- return "Remove this call";
|
|
|
+ //return "Remove this call";
|
|
|
+ return NbBundle.getMessage(UpdateHint.class, "UpdateHint.fix-text");
|
|
|
}
|
|
|
|
|
|
@Override
|