Changeset 4069


Ignore:
Timestamp:
Feb 5, 2009, 3:53:34 PM (12 years ago)
Author:
yura
Message:
Location:
devel-tools/trunk/eclipse/org.refal.rfpdt.ui/src/org/refal/rfpdt/ui/actions
Files:
2 edited
2 moved

Legend:

Unmodified
Added
Removed
  • devel-tools/trunk/eclipse/org.refal.rfpdt.ui/src/org/refal/rfpdt/ui/actions/GotoMatchingBracketAction.java

    r4067 r4069  
    77import org.eclipse.swt.custom.StyledText;
    88import org.refal.rfpdt.editor.BracketMatcher;
    9 import org.refal.rfpdt.editor.RfpEditorMessages;
    109
    1110public class GotoMatchingBracketAction extends RfpEditorActionDelegate {
     
    1918        int modelOffset = editor.widgetOffset2ModelOffset(text.getCaretOffset());
    2019        if (!BracketMatcher.isBracket(document, modelOffset)) {
    21             editor.statusLineErrorMessage(RfpEditorMessages.GotoMatchingBracketAction_error_invalidSelection);
     20            editor.statusLineErrorMessage(RfpEditorActionMessages.GotoMatchingBracketAction_error_invalidSelection);
    2221            text.getDisplay().beep();
    2322            return;
     
    2524        IRegion region = editor.getBracketMatcher().match(document, modelOffset);
    2625        if (region == null) {
    27             editor.statusLineErrorMessage(RfpEditorMessages.GotoMatchingBracketAction_error_noMatchingBracket);
     26            editor.statusLineErrorMessage(RfpEditorActionMessages.GotoMatchingBracketAction_error_noMatchingBracket);
    2827            text.getDisplay().beep();
    2928            return;
  • devel-tools/trunk/eclipse/org.refal.rfpdt.ui/src/org/refal/rfpdt/ui/actions/OpenDeclarationAction.java

    r4067 r4069  
    77import org.refal.rfpdt.ast.AstNode;
    88import org.refal.rfpdt.editor.RfpEditor;
    9 import org.refal.rfpdt.editor.RfpEditorMessages;
    109import org.refal.rfpdt.ui.RfpUI;
    1110
     
    1716        AstNode astNode = editor.astInfo.getDeclaration(getSelection().getOffset());
    1817        if (astNode == null) {
    19             editor.statusLineErrorMessage(RfpEditorMessages.OpenDeclarationAction_error_invalidSelection);
     18            editor.statusLineErrorMessage(RfpEditorActionMessages.OpenDeclarationAction_error_invalidSelection);
    2019            sourceViewer.getTextWidget().getDisplay().beep();
    2120            return;
  • devel-tools/trunk/eclipse/org.refal.rfpdt.ui/src/org/refal/rfpdt/ui/actions/RfpEditorActionMessages.java

    r4067 r4069  
    1 package org.refal.rfpdt.editor;
    2 
    3 import java.util.ResourceBundle;
     1package org.refal.rfpdt.ui.actions;
    42
    53import org.eclipse.osgi.util.NLS;
    64
    7 public class RfpEditorMessages extends NLS {
    8 
    9     private static final String BUNDLE_FOR_CONSTRUCTED_KEYS = "org.refal.rfpdt.editor.ConstructedRfpEditorMessages"; //$NON-NLS-1$
    10     private static ResourceBundle bundleForConstructedKeys = ResourceBundle.getBundle(BUNDLE_FOR_CONSTRUCTED_KEYS);
    11 
    12     public static ResourceBundle getBundleForConstructedKeys() {
    13         return bundleForConstructedKeys;
    14     }
    15 
    16     private RfpEditorMessages() {
     5public class RfpEditorActionMessages extends NLS {
     6    private RfpEditorActionMessages() {
    177        // Do not instantiate
    188    }
    199
    2010    static {
    21         NLS.initializeMessages(RfpEditorMessages.class.getName(), RfpEditorMessages.class);
     11        NLS.initializeMessages(RfpEditorActionMessages.class.getName(), RfpEditorActionMessages.class);
    2212    }
    2313
Note: See TracChangeset for help on using the changeset viewer.