/** * Creates a line delimiter conversion action. * * @param bundle the resource bundle * @param prefix the prefix for the resource bundle lookup * @param editor the editor * @param lineDelimiter the target line delimiter to convert the editor's document to */ public ConvertLineDelimitersAction(ResourceBundle bundle, String prefix, ITextEditor editor, String lineDelimiter) { super(bundle, prefix, editor); fLineDelimiter= lineDelimiter; String platformLineDelimiter= System.getProperty("line.separator"); //$NON-NLS-1$ setText(getString(getLabelKey(fLineDelimiter, platformLineDelimiter))); update(); }
/** * Creates a line delimiter conversion action. * * @param bundle the resource bundle * @param prefix the prefix for the resource bundle lookup * @param editor the editor * @param lineDelimiter the target line delimiter to convert the editor's document to */ public ConvertLineDelimitersAction(ResourceBundle bundle, String prefix, ITextEditor editor, String lineDelimiter) { super(bundle, prefix, editor); fLineDelimiter= lineDelimiter; String platformLineDelimiter= System.getProperty("line.separator"); //$NON-NLS-1$ setText(getString(getLabelKey(fLineDelimiter, platformLineDelimiter))); update(); }
/** * Creates a line delimiter conversion action. * * @param bundle the resource bundle * @param prefix the prefix for the resource bundle lookup * @param editor the editor * @param lineDelimiter the target line delimiter to convert the editor's document to */ public ConvertLineDelimitersAction(ResourceBundle bundle, String prefix, ITextEditor editor, String lineDelimiter) { super(bundle, prefix, editor); fLineDelimiter= lineDelimiter; String platformLineDelimiter= System.getProperty("line.separator"); //$NON-NLS-1$ setText(getString(getLabelKey(fLineDelimiter, platformLineDelimiter))); update(); }