Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 


Quellcode-Bibliothek

© Kompilation durch diese Firma

[Weder Korrektheit noch Funktionsfähigkeit der Software werden zugesichert.]

Datei:   Sprache: Unknown

Haftungsausschluß.bsh KontaktC {C[79] Abap[181] [0]}diese Dinge liegen außhalb unserer Verantwortung

/*
* Cut_Lines.bsh - a BeanShell macro for jEdit
* which cuts either the selected text, or the current line 
* if no text is selected, to the clipboard.
*
* Copyright (C) 2003 Ollie Rutherfurd <[email protected]>
* Copyright (c) 2008 [email protected]
*
* $Id: Cut_Lines.bsh 24764 2017-10-15 12:20:28Z ezust $
*/


cutLines(){
 if (buffer.getLength() == 0)
  return;
 selections = textArea.getSelectedLines();
 
 if(selections.length == 0){
  selections = new int [] {textArea.getCaretLine()};
 }
 start = textArea.getLineStartOffset(selections[0]);
 stop = textArea.getLineEndOffset(selections[selections.length-1]);

 if (stop > textArea.getBufferLength()) stop = textArea.getBufferLength();

 textArea.setSelection(new Selection.Range(start,stop));
 Registers.cut(textArea,'$');
}

 cutLines();

/*
Macro index data (in DocBook format)

<listitem>
<para><filename>Cut_Selection_or_Line.bsh</filename>
<abstract><para>
If no text is selected, the current line is cut to the clipboard,
otherwise, all lines that contain the selection are cut to the clipboard.
</para></abstract>
</listitem>

*/



[ Seitenstruktur0.120Drucken  ]

                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Software

     Produkte
     Quellcodebibliothek

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik