100+ results for 'php gettext'
Not the results you expected?
Alignment.php (https://gitlab.com/ptisky/API_prestashop) PHP · 409 lines
22 * @package PHPExcel_Style
23 * @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)
24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
25 * @version 1.7.9, 2013-06-02
34 * @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)
35 */
36 class PHPExcel_Style_Alignment extends PHPExcel_Style_Supervisor implements PHPExcel_IComparable
37 {
38 /* Horizontal alignment styles */
151 *
152 * @param array $pStyles Array containing style information
153 * @throws PHPExcel_Exception
154 * @return PHPExcel_Style_Alignment
180 }
181 } else {
182 throw new PHPExcel_Exception("Invalid style array passed.");
183 }
184 return $this;
Alignment.php (https://gitlab.com/dmsapiens/physicians) PHP · 409 lines
22 * @package PHPExcel_Style
23 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
25 * @version ##VERSION##, ##DATE##
34 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
35 */
36 class PHPExcel_Style_Alignment extends PHPExcel_Style_Supervisor implements PHPExcel_IComparable
37 {
38 /* Horizontal alignment styles */
151 *
152 * @param array $pStyles Array containing style information
153 * @throws PHPExcel_Exception
154 * @return PHPExcel_Style_Alignment
180 }
181 } else {
182 throw new PHPExcel_Exception("Invalid style array passed.");
183 }
184 return $this;
Form.class.php (https://github.com/bassta/onphp-framework.git) PHP · 498 lines
1 <?php
2 /****************************************************************************
3 * Copyright (C) 2004-2009 by Konstantin V. Arkhipov, Anton E. Lebedevich *
16 * @ingroup Module
17 *
18 * @see http://onphp.org/examples.Form.en.html
19 **/
20 final class Form extends RegulatedForm
186 * Returns plain list of error's labels
187 **/
188 public function getTextualErrors()
189 {
190 $list = array();
192 foreach (array_keys($this->labels) as $name) {
193 if ($label = $this->getTextualErrorFor($name))
194 $list[] = $label;
195 }
BindingScopeTests.vb (https://gitlab.com/sharadag/TestProject2) Visual Basic · 300 lines
14 expectedScope As XElement)
15 Dim tree As SyntaxTree = CompilationUtils.GetTree(comp, treeName)
16 Dim treeText As String = tree.GetText().ToString()
17 Dim expectedScopeText As String = expectedScope.Value.Replace(vbLf, vbCrLf)
18 Dim expectedStart As Integer = treeText.IndexOf(expectedScopeText, StringComparison.Ordinal)
WebElement.php (https://github.com/dextercowley/joomla-cms.git) PHP · 255 lines
1 <?php
2 // Copyright 2012-present Nearsoft, Inc
45 * @return String
46 */
47 public function getText() { return $this->_driver->webElementGetText($this->_elementId); }
49 /**
184 /**
185 * Wait until current element's text has changed
186 * @param String $targetText
187 * @param Integer $timeOutSeconds
188 * @throws WebDriverWaitTimeoutException
189 * @return \SeleniumClient\WebElement
190 */
191 public function waitForElementUntilTextIsChanged($targetText, $timeOutSeconds = 5)
192 {
193 //We have to validate that timeOutSeconds is int, we have to add a new exception into the selenium exceptions and not use the exceptions that are outsite of the library
shared.php (https://github.com/aimakun/odlib.git) PHP · 115 lines
28 <a href="../catalog/biblio_hold_list.php?bibid=<?php echo HURL($bibid);?>" class="alt1"><?php echo $navLoc->getText("catalogHolds");?></a><br>
29 <a href="../catalog/biblio_del_confirm.php?bibid=<?php echo HURL($bibid);?>&title=<?php echo HURL($title);?>" class="alt1"><?php echo $navLoc->getText("catalogDelete");?></a><br>
30 <?php } ?>
66 <a href="../catalog/biblio_hold_list.php?bibid=<?php echo HURL($bibid);?>" class="alt1"><?php echo $navLoc->getText("catalogHolds");?></a><br>
67 <a href="../catalog/biblio_del_confirm.php?bibid=<?php echo HURL($bibid);?>&title=<?php echo HURL($title);?>" class="alt1"><?php echo $navLoc->getText("catalogDelete");?></a><br>
68 <?php } ?>
76 <a href="../catalog/biblio_hold_list.php?bibid=<?php echo HURL($bibid);?>" class="alt1"><?php echo $navLoc->getText("catalogHolds");?></a><br>
77 <a href="../catalog/biblio_del_confirm.php?bibid=<?php echo HURL($bibid);?>&title=<?php echo HURL($title);?>" class="alt1"><?php echo $navLoc->getText("catalogDelete");?></a><br>
78 <?php } ?>
86 <a href="../catalog/biblio_hold_list.php?bibid=<?php echo HURL($bibid);?>" class="alt1"><?php echo $navLoc->getText("catalogHolds");?></a><br>
87 <a href="../catalog/biblio_del_confirm.php?bibid=<?php echo HURL($bibid);?>&title=<?php echo HURL($title);?>" class="alt1"><?php echo $navLoc->getText("catalogDelete");?></a><br>
88 <?php } ?>
95 » <?php echo $navLoc->getText("catalogHolds");?><br>
96 <a href="../catalog/biblio_del_confirm.php?bibid=<?php echo HURL($bibid);?>&title=<?php echo HURL($title);?>" class="alt1"><?php echo $navLoc->getText("catalogDelete");?></a><br>
97 <?php } ?>
TextExtractionTest.java (https://github.com/virasak/iText-4.2.0.git) Java · 253 lines
46 PdfTextExtractor ex = new PdfTextExtractor(new PdfReader(bytes));
48 Assert.assertEquals(TEXT1 + TEXT2, ex.getTextFromPage(1));
49 }
56 //saveBytesToFile(bytes, new File("c:/temp/test.pdf"));
58 Assert.assertEquals(TEXT1 + " " + TEXT2, ex.getTextFromPage(1));
59 }
68 //saveBytesToFile(bytes, new File("c:/temp/test.pdf"));
70 Assert.assertEquals(TEXT1 + TEXT2, ex.getTextFromPage(1));
72 }
class.gmagickdraw.html (https://github.com/cue-taro/emacs-setting-files.git) HTML · 461 lines
108 )</div>
109 <div class="methodsynopsis dc-description">
110 <span class="modifier">public</span> <span class="type">int</span> <span class="methodname"><a href="gmagickdraw.gettextdecoration.html" class="methodname">gettextdecoration</a></span>
111 ( <span class="methodparam">void</span>
112 )</div>
113 <div class="methodsynopsis dc-description">
114 <span class="modifier">public</span> <span class="type">string</span> <span class="methodname"><a href="gmagickdraw.gettextencoding.html" class="methodname">gettextencoding</a></span>
115 ( <span class="methodparam">void</span>
116 )</div>
454 <h2>目次</h2><ul class="chunklist chunklist_reference"><li><a href="gmagickdraw.annotate.html">GmagickDraw::annotate</a> — Draws text on the image</li><li><a href="gmagickdraw.arc.html">GmagickDraw::arc</a> — Draws an arc</li><li><a href="gmagickdraw.bezier.html">GmagickDraw::bezier</a> — Draws a bezier curve</li><li><a href="gmagickdraw.ellipse.html">GmagickDraw::ellipse</a> — Draws an ellipse on the image</li><li><a href="gmagickdraw.getfillcolor.html">GmagickDraw::getfillcolor</a> — Returns the fill color</li><li><a href="gmagickdraw.getfillopacity.html">GmagickDraw::getfillopacity</a> — Returns the opacity used when drawing</li><li><a href="gmagickdraw.getfont.html">GmagickDraw::getfont</a> — Returns the font</li><li><a href="gmagickdraw.getfontsize.html">GmagickDraw::getfontsize</a> — Returns the font pointsize</li><li><a href="gmagickdraw.getfontstyle.html">GmagickDraw::getfontstyle</a> — Returns the font style</li><li><a href="gmagickdraw.getfontweight.html">GmagickDraw::getfontweight</a> — Returns the font weight</li><li><a href="gmagickdraw.getstrokecolor.html">GmagickDraw::getstrokecolor</a> — Returns the color used for stroking object outlines</li><li><a href="gmagickdraw.getstrokeopacity.html">GmagickDraw::getstrokeopacity</a> — Returns the opacity of stroked object outlines</li><li><a href="gmagickdraw.getstrokewidth.html">GmagickDraw::getstrokewidth</a> — Returns the width of the stroke used to draw object outlines</li><li><a href="gmagickdraw.gettextdecoration.html">GmagickDraw::gettextdecoration</a> — Returns the text decoration</li><li><a href="gmagickdraw.gettextencoding.html">GmagickDraw::gettextencoding</a> — Returns the code set used for text annotations</li><li><a href="gmagickdraw.line.html">GmagickDraw::line</a> — The line purpose</li><li><a href="gmagickdraw.point.html">GmagickDraw::point</a> — Draws a point</li><li><a href="gmagickdraw.polygon.html">GmagickDraw::polygon</a> — Draws a polygon</li><li><a href="gmagickdraw.polyline.html">GmagickDraw::polyline</a> — Draws a polyline</li><li><a href="gmagickdraw.rectangle.html">GmagickDraw::rectangle</a> — Draws a rectangle</li><li><a href="gmagickdraw.rotate.html">GmagickDraw::rotate</a> — Applies the specified rotation to the current coordinate space</li><li><a href="gmagickdraw.roundrectangle.html">GmagickDraw::roundrectangle</a> — Draws a rounded rectangle</li><li><a href="gmagickdraw.scale.html">GmagickDraw::scale</a> — Adjusts the scaling factor</li><li><a href="gmagickdraw.setfillcolor.html">GmagickDraw::setfillcolor</a> — Sets the fill color to be used for drawing filled objects.</li><li><a href="gmagickdraw.setfillopacity.html">GmagickDraw::setfillopacity</a> — The setfillopacity purpose</li><li><a href="gmagickdraw.setfont.html">GmagickDraw::setfont</a> — Sets the fully-specified font to use when annotating with text.</li><li><a href="gmagickdraw.setfontsize.html">GmagickDraw::setfontsize</a> — Sets the font pointsize to use when annotating with text.</li><li><a href="gmagickdraw.setfontstyle.html">GmagickDraw::setfontstyle</a> — Sets the font style to use when annotating with text</li><li><a href="gmagickdraw.setfontweight.html">GmagickDraw::setfontweight</a> — Sets the font weight</li><li><a href="gmagickdraw.setstrokecolor.html">GmagickDraw::setstrokecolor</a> — Sets the color used for stroking object outlines.</li><li><a href="gmagickdraw.setstrokeopacity.html">GmagickDraw::setstrokeopacity</a> — Specifies the opacity of stroked object outlines.</li><li><a href="gmagickdraw.setstrokewidth.html">GmagickDraw::setstrokewidth</a> — Sets the width of the stroke used to draw object outlines.</li><li><a href="gmagickdraw.settextdecoration.html">GmagickDraw::settextdecoration</a> — Specifies a decoration</li><li><a href="gmagickdraw.settextencoding.html">GmagickDraw::settextencoding</a> — Specifies specifies the text code set</li></ul>
455 </div>
456 <hr /><div class="manualnavbar" style="text-align: center;">
Label.class.php (https://bitbucket.org/jstechnologies/cats.git) PHP · 679 lines
1 <?php
2 /*
3 * This work is hereby released into the Public Domain.
411 * @return Text
412 */
413 public function getText($key) {
415 if(is_array($this->texts) and array_key_exists($key, $this->texts)) {
454 public function getMaxWidth(awDrawer $drawer) {
456 return $this->getMax($drawer, 'getTextWidth');
458 }
466 public function getMaxHeight(awDrawer $drawer) {
468 return $this->getMax($drawer, 'getTextHeight');
470 }
Supplier.php (https://github.com/corneliusweiss/Tine-2.0-Open-Source-Groupware-and-CRM.git) PHP · 262 lines
PasswordConfirmWidgetTest.php (https://gitlab.com/andecode/theme-spark) PHP · 179 lines
1 <?php
3 namespace Drupal\Tests\user\FunctionalJavascript;
72 // input.
73 $this->assertTrue($password_parent_item->has('css', '.password-strength > [data-drupal-selector="password-strength-meter"] + .password-strength__title:last-child > [data-drupal-selector="password-strength-text"]'));
74 $this->assertEmpty($password_parent_item->find('css', '.password-strength > [data-drupal-selector="password-strength-meter"] + .password-strength__title:last-child > [data-drupal-selector="password-strength-text"]')->getText());
76 // Check the elements of the password confirm item.
dkpLootTable.php (https://github.com/lukas89/WebDKP.git) PHP · 206 lines
1 <?php
2 /*===========================================================
3 CLASS DESCRIPTION
6 */
8 include_once("dkpLootTableSection.php");
9 include_once("dkpLootTableEntry.php");
10 include_once("lib/stats/wowstats.php");
12 class dkpLootTable {
115 foreach($this->loot as $loot){
116 $loot->name = wowstats::GetTextLink($loot->name);
117 }
118 foreach($this->sections as $section) {
SmoothProgressAdapter.java (https://bitbucket.org/nbargnesi/idea.git) Java · 191 lines
Item.php (https://bitbucket.org/pastor399/newcastleunifc.git) PHP · 658 lines
1 <?php
2 /**
3 * @version $Id$
201 * @return RokSprocket_Item_Field[]
202 */
203 public function getTextFields()
204 {
205 return $this->textFields;
211 * @return null|\RokSprocket_Item_Field
212 */
213 public function getTextField($identifier)
214 {
215 if (isset($this->textFields[$identifier])) {
293 * @return string
294 */
295 public function getText()
296 {
297 return $this->text;
Review.php (https://gitlab.com/LisovyiEvhenii/ismextensions) PHP · 257 lines
1 <?php
2 /**
3 * Magento
8 * that is bundled with this package in the file LICENSE.txt.
9 * It is also available through the world-wide-web at this URL:
10 * http://opensource.org/licenses/osl-3.0.php
11 * If you did not receive a copy of the license and are unable to
12 * obtain it through the world-wide-web, please send an email
22 * @package Tests_Functional
23 * @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25 */
150 foreach ($ratingsElements as $itemRating) {
151 $ratings[] = [
152 'title' => strtolower($itemRating->getText()),
153 'rating' => $this->getRatingValue($itemRating)
154 ];
ValidateTest.php (https://gitlab.com/svillegas/magento2) PHP · 174 lines
1 <?php
2 /**
3 * Copyright © 2016 Magento. All rights reserved.
9 * Class ValidateTest
10 *
11 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
12 */
13 class ValidateTest extends \PHPUnit_Framework_TestCase
14 {
15 /**
16 * @var \Magento\Variable\Model\Variable|\PHPUnit_Framework_MockObject_MockObject
17 */
18 protected $variableMock;
20 /**
21 * @var \Magento\Framework\View\LayoutInterface|\PHPUnit_Framework_MockObject_MockObject
22 */
23 protected $layoutMock;
module.config.php (https://bitbucket.org/phaikawl/pknewsboard.git) PHP · 169 lines
make.bat (https://github.com/phpbb-de/documentation.git) Batch · 242 lines
32 echo. man to make manual pages
33 echo. texinfo to make Texinfo files
34 echo. gettext to make PO message catalogs
35 echo. changes to make an overview over all changed/added/deprecated items
36 echo. xml to make Docutils-native XML files
116 echo.Build finished; now you can run "qcollectiongenerator" with the ^
117 .qhcp project file in %BUILDDIR%/qthelp, like this:
118 echo.^> qcollectiongenerator %BUILDDIR%\qthelp\phpBB.qhcp
119 echo.To view the help file:
120 echo.^> assistant -collectionFile %BUILDDIR%\qthelp\phpBB.ghc
190 )
192 if "%1" == "gettext" (
193 %SPHINXBUILD% -b gettext %I18NSPHINXOPTS% %BUILDDIR%/locale
ElggMenuItem.php (https://github.com/wangaiying/elgg4ysu.git) PHP · 568 lines
email.php (https://bitbucket.org/sirestudios/fortis-wellness.git) PHP · 408 lines
1 <?php
2 /**
3 * Email
37 /**
38 * Send an email using a Transactional email service
39 * or native PHP as a fallback.
40 *
41 * @param array $attributes A list of attributes for sending
133 /*
134 |--------------------------------------------------------------------------
135 | Native PHP Mail
136 |--------------------------------------------------------------------------
137 |
138 | We're utilizing the popular PHPMailer class to handle the messy
139 | email headers and do-dads. Emailing from PHP in general isn't the best
code_error.cpp (https://gitlab.com/alvinahmadov2/hhvm) C++ · 237 lines
1 /*
2 +----------------------------------------------------------------------+
3 | HipHop for PHP |
4 +----------------------------------------------------------------------+
5 | Copyright (c) 2010-2015 Facebook, Inc. (http://www.facebook.com) |
6 +----------------------------------------------------------------------+
7 | This source file is subject to version 3.01 of the PHP license, |
8 | that is bundled with this package in the file LICENSE, and is |
9 | available through the world-wide-web at the following url: |
10 | http://www.php.net/license/3_01.txt |
11 | If you did not receive a copy of the PHP license and are unable to |
12 | obtain it through the world-wide-web, please send a note to |
13 | license@php.net so we can mail you a copy immediately. |
14 +----------------------------------------------------------------------+
15 */
ReferencePanel.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 209 lines
✨ Summary
This Java code defines a ReferencePanel
class that extends a default tool panel for a LaTeX editor. It displays a list of references and allows users to insert cross-references into their document. The panel also provides functionality to visit labels, expand folds, and set the current cursor position. It is designed to work with the jEdit text editor.
This Java code defines a ReferencePanel
class that extends a default tool panel for a LaTeX editor. It displays a list of references and allows users to insert cross-references into their document. The panel also provides functionality to visit labels, expand folds, and set the current cursor position. It is designed to work with the jEdit text editor.
147 buffer.insert(currentCursorPosn, ref);
148 view.getTextArea().setCaretPosition(currentCursorPosn + ref.length());
149 }
150 }
193 int line = buffer.getLineOfOffset(asset.start.getOffset());
195 JEditTextArea textArea = view.getTextArea();
196 FoldVisibilityManager fvm = textArea.getFoldVisibilityManager();
197 fvm.expandFold(line,false);
200 textArea.setFirstLine(virtualLine);
202 int lineStart = view.getTextArea().getLineStartOffset(line);
203 int lineEnd = view.getTextArea().getLineEndOffset(line);
204 Selection.Range sel = new Selection.Range(lineStart, lineEnd);
205 view.getTextArea().setSelection(sel);
206 }
207 }
Add_Prefix_and_Suffix.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 161 lines
JCompilerOptionPaneGeneral.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 188 lines
✨ Summary
This Java code defines a GUI option pane for JCompiler, a plugin for jEdit. It displays various options for general settings, such as autosave behavior and error parsing rules, allowing users to configure these settings through a graphical interface. The changes are then saved back to the jEdit configuration when the user clicks “Save”.
This Java code defines a GUI option pane for JCompiler, a plugin for jEdit. It displays various options for general settings, such as autosave behavior and error parsing rules, allowing users to configure these settings through a graphical interface. The changes are then saved back to the jEdit configuration when the user clicks “Save”.
165 jEdit.setBooleanProperty("jcompiler.showcommandline", showCommandLine.isSelected());
166 jEdit.setBooleanProperty("jcompiler.parseaccentchar", parseAccentChar.isSelected());
167 jEdit.setProperty("jcompiler.regexp", regexp.getText());
168 jEdit.setProperty("jcompiler.regexp.filename", regexpFilename.getText());
169 jEdit.setProperty("jcompiler.regexp.lineno", regexpLineNo.getText());
170 jEdit.setProperty("jcompiler.regexp.message", regexpMessage.getText());
171 jEdit.setProperty("jcompiler.regexp.warning", regexpWarning.getText());
173 String s1 = "no";
DefaultSessionPropertyPane.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 116 lines
✨ Summary
This Java code defines a class DefaultSessionPropertyPane
that extends another class, implementing an interface. It creates a graphical user interface (GUI) for editing session properties in a text editor. The GUI allows users to set a base directory and select a preferred mode for the session. When the “Browse” button is clicked, it opens a file chooser dialog to select a directory.
This Java code defines a class DefaultSessionPropertyPane
that extends another class, implementing an interface. It creates a graphical user interface (GUI) for editing session properties in a text editor. The GUI allows users to set a base directory and select a preferred mode for the session. When the “Browse” button is clicked, it opens a file chooser dialog to select a directory.
SVNAction.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 194 lines
✨ Summary
This Java code defines a class SVNAction
that extends projectviewer.action.Action
. It creates a context menu for Project Viewer with subversion commands, retrieves user credentials and updates action listeners to execute commands based on the currently selected node in the PV tree. The menu is populated dynamically from properties stored in the JEdit configuration file.
This Java code defines a class SVNAction
that extends projectviewer.action.Action
. It creates a context menu for Project Viewer with subversion commands, retrieves user credentials and updates action listeners to execute commands based on the currently selected node in the PV tree. The menu is populated dynamically from properties stored in the JEdit configuration file.
editor.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 50 lines
TrangGUITest.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 181 lines
✨ Summary
This Java code is a unit test for a GUI application called Trang Translator, which converts XML files to XSD files. The test class contains two tests: one that checks the conversion of a DTD file to an XSD file with inline attribute lists enabled and disabled, and another that tests changing the input format from XML to RNC.
This Java code is a unit test for a GUI application called Trang Translator, which converts XML files to XSD files. The test class contains two tests: one that checks the conversion of a DTD file to an XSD file with inline attribute lists enabled and disabled, and another that tests changing the input format from XML to RNC.
109 assertNotNull(outB);
110 //inline-attlist
111 assertFalse(outB.getText(0,outB.getLength())
112 .contains("<xs:attributeGroup ref=\"ns1:attlist.rewriteURI\"/>"));
129 clickT.waitForClick();
131 assertTrue(outB.getText(0,outB.getLength())
132 .contains("<xs:attributeGroup ref=\"ns1:attlist.rewriteURI\"/>"));
LFont.java
(http://loon-simple.googlecode.com/svn/trunk/)
Java · 308 lines
✨ Summary
This Java code defines a class LFont
that represents a font used for rendering text on an Android screen. It provides methods to create and manipulate fonts, including getting font metrics, measuring text width, and setting font styles. The class is designed to work with the Android system’s font management system.
This Java code defines a class LFont
that represents a font used for rendering text on an Android screen. It provides methods to create and manipulate fonts, including getting font metrics, measuring text width, and setting font styles. The class is designed to work with the Android system’s font management system.
BibTeXPanel.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 428 lines
✨ Summary
This Java code is a part of a LaTeX bibliography management system for a text editor. It loads and processes bibliographic data from LaTeX files, extracting references and titles to create a list of citations that can be used in the document. The code also allows users to add referenced BibTeX files to a list and sorts them alphabetically by reference title.
This Java code is a part of a LaTeX bibliography management system for a text editor. It loads and processes bibliographic data from LaTeX files, extracting references and titles to create a list of citations that can be used in the document. The code also allows users to add referenced BibTeX files to a list and sorts them alphabetically by reference title.
plugin-implement.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 1130 lines
sodipodi.spec (git://github.com/repoforge/rpms.git) Unknown · 102 lines
JCompilerPlugin.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 145 lines
✨ Summary
This Java code defines a plugin for the jEdit text editor, specifically for compiling and executing Java commands. It provides methods to compile and execute arbitrary commands in a shared JCompiler shell instance, allowing users to run Java development tools within the editor. The plugin also handles errors and exceptions related to missing tools.jar files.
This Java code defines a plugin for the jEdit text editor, specifically for compiling and executing Java commands. It provides methods to compile and execute arbitrary commands in a shared JCompiler shell instance, allowing users to run Java development tools within the editor. The plugin also handles errors and exceptions related to missing tools.jar files.
RegisterViewer.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 321 lines
✨ Summary
This Java code defines a RegisterViewer
class, which is a dockable view of register contents in an editor application. It displays a list of registers and allows users to select one, edit its value, and insert new registers into the current text area. The class also handles various events, such as selection changes and focus gains/losses, to update the display accordingly.
This Java code defines a RegisterViewer
class, which is a dockable view of register contents in an editor application. It displays a list of registers and allows users to select one, edit its value, and insert new registers into the current text area. The class also handles various events, such as selection changes and focus gains/losses, to update the display accordingly.
180 return;
181 Registers.Register reg = Registers.getRegister(((Character)o).charValue());
182 view.getTextArea().setSelectedText(reg.toString());
183 view.getTextArea().requestFocus();
300 return;
301 char name = ((Character)value).charValue();
302 Registers.setRegister(name,contentTextArea.getText());
303 }
304 } //}}}
Duplicate_Lines_Above.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 70 lines
BSHSwitchStatement.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 137 lines
✨ Summary
This Java code implements a BSHSwitchStatement
class that extends SimpleNode
and implements the ParserConstants
. It evaluates a switch statement in a scripting language, executing corresponding blocks of code based on a switch value. The code traverses child nodes, comparing the switch value to labels and executing matching blocks until a return control is reached or all cases are exhausted.
This Java code implements a BSHSwitchStatement
class that extends SimpleNode
and implements the ParserConstants
. It evaluates a switch statement in a scripting language, executing corresponding blocks of code based on a switch value. The code traverses child nodes, comparing the switch value to labels and executing matching blocks until a return control is reached or all cases are exhausted.
WordTypedListener.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 342 lines
✨ Summary
This Java class, WordTypedListener
, observes changes to a typed word and notifies observers when the word is modified. It filters out non-word characters from the typed text and provides an interface for customizing the word separator filter. The class also manages the state of the last typed word and resets it when necessary.
This Java class, WordTypedListener
, observes changes to a typed word and notifies observers when the word is modified. It filters out non-word characters from the typed text and provides an interface for customizing the word separator filter. The class also manages the state of the last typed word and resets it when necessary.
105 if (offset > 0)
106 {
107 char precedingChar = buffer.getText(offset - 1, 1).charAt(0);
108 // Is the preceding character a non-word character or not?
109 isWordStart = ! checkIsWord.accept(emptyWord, precedingChar);
133 {
134 lastCaret = offset + length; // move to the end of the insertion
135 insertion = buffer.getText(offset, length);
137 if (checkIsWord.accept(word, insertion.charAt(0)))
ReferencePanel.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 193 lines
✨ Summary
This Java code defines a ReferencePanel
class that extends an Abstract Tool Panel. It provides functionality for inserting cross-references in LaTeX documents, allowing users to browse and select references from a list. The panel updates dynamically as the user types, and allows users to insert the selected reference into their document with a single click.
This Java code defines a ReferencePanel
class that extends an Abstract Tool Panel. It provides functionality for inserting cross-references in LaTeX documents, allowing users to browse and select references from a list. The panel updates dynamically as the user types, and allows users to insert the selected reference into their document with a single click.
170 view.setBuffer(currentBuffer);
171 currentBuffer.insert(currentCursorPosn, ref);
172 view.getTextArea().setCaretPosition(
173 currentCursorPosn + ref.length());
174 }
181 view.setBuffer(goToBuff);
182 int line = goToBuff.getLineOfOffset(asset.start.getOffset());
183 JEditTextArea textArea = view.getTextArea();
184 DisplayManager fvm = textArea.getDisplayManager();
185 fvm.expandFold(line, false);
186 textArea.setFirstPhysicalLine(line);
187 int lineStart = view.getTextArea().getLineStartOffset(line);
188 int lineEnd = view.getTextArea().getLineEndOffset(line);
189 Selection.Range sel = new Selection.Range(lineStart, lineEnd);
190 view.getTextArea().setSelection(sel);
191 }
192 }
BaseTextCommentCellAppearance.java (https://bitbucket.org/nbargnesi/idea.git) Java · 71 lines
PropertyParser.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 150 lines
✨ Summary
This Java code defines a PropertyParser
class that extends SideKickParser
. It parses properties from a given buffer and converts them to a tree data structure, which can be used in a text editor. The parser handles errors and sends error messages to an ErrorSource
object. It uses regular expressions to extract location information from exception messages.
This Java code defines a PropertyParser
class that extends SideKickParser
. It parses properties from a given buffer and converts them to a tree data structure, which can be used in a text editor. The parser handles errors and sends error messages to an ErrorSource
object. It uses regular expressions to extract location information from exception messages.
NavHistoryPopup.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 415 lines
✨ Summary
This Java code is part of a text editor’s navigator component, responsible for displaying line numbers and syntax highlighted code snippets. It uses a custom CellRenderer
to render each line in the navigator, which includes highlighting the line with proper syntax coloring based on the surrounding code. The renderer also displays additional information such as file paths and line numbers.
This Java code is part of a text editor’s navigator component, responsible for displaying line numbers and syntax highlighted code snippets. It uses a custom CellRenderer
to render each line in the navigator, which includes highlighting the line with proper syntax coloring based on the surrounding code. The renderer also displays additional information such as file paths and line numbers.
135 */
136 public void setLocation() {
137 JEditTextArea textArea = view.getTextArea();
139 int caretLine = textArea.getCaretLine();
178 view.setKeyEventInterceptor( null );
179 setVisible( false );
180 view.getTextArea().requestFocus();
181 }
363 Code2HTML c2h = new Code2HTML(
364 buffer,
365 editPane.getTextArea().getPainter().getStyles(),
366 selections
367 );
JTextAreaDestination.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 255 lines
✨ Summary
This Java class, JTextAreaDestination
, extends OutputDestinationComponent
and provides a text area for appending log messages. It allows for word wrap, auto-positioning of the caret, and searching for specific words within the text area. The class also includes methods for clearing the text area and printing or appending new lines to it.
This Java class, JTextAreaDestination
, extends OutputDestinationComponent
and provides a text area for appending log messages. It allows for word wrap, auto-positioning of the caret, and searching for specific words within the text area. The class also includes methods for clearing the text area and printing or appending new lines to it.
131 }
132 try {
133 String doc = jTextArea_.getDocument().getText(0, jTextArea_.getDocument().getLength());
134 Pattern pattern = Pattern.compile(toFind, Pattern.DOTALL);
135 Matcher matcher = pattern.matcher(doc);
158 int initial_caret = jTextArea_.getCaretPosition();
159 int caret = initial_caret;
160 String doc = jTextArea_.getDocument().getText(0, jTextArea_.getDocument().getLength());
161 Pattern pattern = Pattern.compile(toFind, Pattern.DOTALL);
162 Matcher matcher = pattern.matcher(doc);
BeanShell.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 815 lines
✨ Summary
This Java code is part of a BeanShell implementation, a JavaScript-like scripting language for Java. It provides a framework for executing scripts and managing class loading, exception handling, and other runtime operations. The code defines various classes and methods that work together to provide a robust and flexible scripting environment.
This Java code is part of a BeanShell implementation, a JavaScript-like scripting language for Java. It provides a framework for executing scripts and managing class loading, exception handling, and other runtime operations. The code defines various classes and methods that work together to provide a robust and flexible scripting environment.
131 String command = GUIUtilities.input(view,"beanshell-eval-line",null);
133 JEditTextArea textArea = view.getTextArea();
134 Buffer buffer = view.getBuffer();
154 + "start = buffer.getLineStartOffset(line);\n"
155 + "end = buffer.getLineEndOffset(line);\n"
156 + "text = buffer.getText(start,end - start - 1);\n"
157 + "newText = " + command + "\n"
158 + "if(newText != null)\n"
330 VFSManager.waitForRequests();
332 in = new StringReader(buffer.getText(0,
333 buffer.getLength()));
334 }
Gutter.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 761 lines
✨ Summary
This Java code defines a custom text editor component with features such as folding, bracket highlighting, and mouse event handling. It includes a MouseHandler
class that handles mouse events for the text area, including dragging and collapsing/expandning folds. The code also sets up tooltips and handles keyboard shortcuts.
This Java code defines a custom text editor component with features such as folding, bracket highlighting, and mouse event handling. It includes a MouseHandler
class that handles mouse events for the text area, including dragging and collapsing/expandning folds. The code also sets up tooltips and handles keyboard shortcuts.
LoginDialog.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 334 lines
✨ Summary
This Java code creates a GUI application for managing FTP connections. It allows users to input host, user, and password information, as well as select private keys for secure connections. The application also includes features like auto-completion and file selection for private key management.
This Java code creates a GUI application for managing FTP connections. It allows users to input host, user, and password information, as well as select private keys for secure connections. The application also includes features like auto-completion and file selection for private key management.
102 jEdit.setBooleanProperty("vfs.ftp.passive",passive.isSelected());
104 if(hostField.hasFocus() && userField.getText().length() == 0)
105 userField.requestFocus();
106 else if(userField.hasFocus() && passwordField.getPassword().length == 0)
108 else if (privateKeyField == null && passwordField.getPassword().length == 0)
109 return;
110 else if (passwordField.getPassword().length == 0 && privateKeyField != null && privateKeyField.getText().length() == 0)
111 return;
112 else
113 {
114 host = hostField.getText();
115 user = userField.getText();
116 if (privateKeyField!=null && privateKeyField.getText().length() > 0) {
117 try{
118 SshPrivateKeyFile file = SshPrivateKeyFile.parse(new File(privateKeyField.getText()));
BSHParserTokenManager.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 2655 lines
✨ Summary
This Java code is part of a lexical analyzer for a programming language, specifically designed to parse strings with various characters such as quotes, parentheses, and special characters. It uses a finite state machine (FSM) approach to recognize patterns in input strings and generate output tokens. The FSM has multiple states and transitions based on the input character.
This Java code is part of a lexical analyzer for a programming language, specifically designed to parse strings with various characters such as quotes, parentheses, and special characters. It uses a finite state machine (FSM) approach to recognize patterns in input strings and generate output tokens. The FSM has multiple states and transitions based on the input character.
Selection.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 766 lines
✨ Summary
This Java class appears to be a part of an editor’s text selection functionality, managing the start and end positions of a selected text range within a buffer (likely a text document). It handles insertion, removal, and movement of content within the buffer, updating the selection boundaries accordingly. The class seems to be designed for efficient and accurate text selection management in an editor.
This Java class appears to be a part of an editor’s text selection functionality, managing the start and end positions of a selected text range within a buffer (likely a text document). It handles insertion, removal, and movement of content within the buffer, updating the selection boundaries accordingly. The class seems to be designed for efficient and accurate text selection management in an editor.
173 // should the next two be public, maybe?
174 abstract void getText(JEditBuffer buffer, StringBuilder buf);
176 /**
253 //{{{ Package-private members
255 //{{{ getText() method
256 @Override
257 void getText(JEditBuffer buffer, StringBuilder buf)
258 {
259 buf.append(buffer.getText(start,end - start));
260 } //}}}
Delegate.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 573 lines
✨ Summary
This Java code is part of a text editor’s plugin system, responsible for managing various menus and actions. It defines classes for handling recent files, macros, and new views, as well as actions to show files in the Finder. The code provides a framework for plugins to interact with the text editor, allowing users to customize its behavior through menu options and keyboard shortcuts.
This Java code is part of a text editor’s plugin system, responsible for managing various menus and actions. It defines classes for handling recent files, macros, and new views, as well as actions to show files in the Finder. The code provides a framework for plugins to interact with the text editor, allowing users to customize its behavior through menu options and keyboard shortcuts.
JEditTextArea.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 643 lines
✨ Summary
This Java code defines a text area component with various features, including folding, popup menus, and caret management. It handles user interactions such as right-clicking, scrolling, and keyboard input to provide a customizable editing experience. The code also integrates with other plugins and services, allowing for advanced functionality like syntax highlighting and code completion.
This Java code defines a text area component with various features, including folding, popup menus, and caret management. It handles user interactions such as right-clicking, scrolling, and keyboard input to provide a customizable editing experience. The code also integrates with other plugins and services, allowing for advanced functionality like syntax highlighting and code completion.
TaskListPVAction.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 78 lines
✨ Summary
This Java code defines a custom action for a project viewer application, specifically to search for tasks related to a selected file or directory in the PV context menu. When clicked, it opens a new window displaying task list results. The action is tied to a specific node in the PV tree and retrieves a task list plugin instance from the current view.
This Java code defines a custom action for a project viewer application, specifically to search for tasks related to a selected file or directory in the PV context menu. When clicked, it opens a new window displaying task list results. The action is tied to a specific node in the PV tree and retrieves a task list plugin instance from the current view.
VimageActions.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 381 lines
✨ Summary
This Java code is part of a text editor implementation, specifically handling user interactions such as scrolling, selecting text, and moving the caret position. It updates the text area’s display to reflect these changes, including scrolling to specific lines based on the caret position and selection options. The code appears to be designed for a graphical user interface (GUI) application.
This Java code is part of a text editor implementation, specifically handling user interactions such as scrolling, selecting text, and moving the caret position. It updates the text area’s display to reflect these changes, including scrolling to specific lines based on the caret position and selection options. The code appears to be designed for a graphical user interface (GUI) application.
90 if(endOffset >= buffer.getLength())
91 len--;
92 text = view.getTextArea().getText(caret+1,len);
93 index = text.indexOf(ch);
94 }
95 else
96 {
97 text = view.getTextArea().getText(startOffset,caret-startOffset);
98 index = text.lastIndexOf(ch);
99 }
155 public static void cut(View view, VimageInputHandler mode, TextArea text_area, char reg_name)
156 {
157 Selection ds = view.getTextArea().getSelectionAtOffset(view.getTextArea().getCaretPosition());
158 if (ds == null) {
159 return;
XmlDaemon.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 172 lines
✨ Summary
This Java code is an XML parser that runs in a separate thread, parsing an XML string and creating a tree structure to represent its elements. It uses a custom Handler
class to process the XML, handling start and end tags, errors, and resolving entities. The parsed tree is then sent to an “Edit Bus” for further processing or display.
This Java code is an XML parser that runs in a separate thread, parsing an XML string and creating a tree structure to represent its elements. It uses a custom Handler
class to process the XML, handling start and end tags, errors, and resolving entities. The parsed tree is then sent to an “Edit Bus” for further processing or display.
ExtensionConfigPane.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 242 lines
✨ Summary
This Java code creates a configuration pane for managing available extensions in a project viewer application. It allows users to enable or disable extensions, and saves these settings when the user closes the pane. The extension list is displayed with checkboxes, which can be used to toggle their enabled state.
This Java code creates a configuration pane for managing available extensions in a project viewer application. It allows users to enable or disable extensions, and saves these settings when the user closes the pane. The extension list is displayed with checkboxes, which can be used to toggle their enabled state.
SystemShell.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 1202 lines
✨ Summary
This Java code defines a SystemShell class that provides functionality for interacting with the operating system, including navigating directories and executing commands. It uses a ConsoleState singleton to store information about the current process and directory stack. The code also includes methods for changing drives, setting the current directory, and handling errors.
This Java code defines a SystemShell class that provides functionality for interacting with the operating system, including navigating directories and executing commands. It uses a ConsoleState singleton to store information about the current process and directory stack. The code also includes methods for changing drives, setting the current directory, and handling errors.
Insert_Buffer_Properties.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 251 lines
45 this.view = view;
46 buffer = view.getTextArea().getBuffer();
47 mode = buffer.getMode().name;
199 // and if that's not defined, look for comment start and end
200 // properties -- use context senstive properties
201 caret = view.getTextArea().getCaretPosition();
202 comment = buffer.getContextSensitiveProperty(caret,"lineComment");
203 if(comment != null && comment.length() > 0)
212 buffer.insert(caret,properties);
214 line = view.getTextArea().getCaretLine();
215 if(line >= 10 && line < (buffer.getLineCount()-10))
216 Macros.message(view, "Note: Buffer Local properties must in the first or last 10 lines of a buffer to be recognized by jEdit.");
FormatterImpl.java (https://bitbucket.org/nbargnesi/idea.git) Java · 807 lines
437 if (!whiteSpace.equalsToString(newWS)) {
438 try {
439 model.replaceWhiteSpace(whiteSpace.getTextRange(), newWS);
440 }
441 finally {
457 private static boolean hasContentAfterLineBreak(final FormattingDocumentModel documentModel, final int offset, final WhiteSpace whiteSpace) {
458 return documentModel.getLineNumber(offset) == documentModel.getLineNumber(whiteSpace.getEndOffset()) &&
459 documentModel.getTextLength() != offset;
460 }
502 private static CharSequence getCharSequence(final FormattingDocumentModel documentModel) {
503 return documentModel.getText(new TextRange(0, documentModel.getTextLength()));
504 }
ToolBarOptionPane.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 114 lines
✨ Summary
This Java code defines a custom ToolBarOptionPane
class that extends AbstractOptionPane
. It creates a graphical user interface (GUI) for managing toolbar options in an integrated development environment (IDE). The GUI allows users to enable or disable individual commands and save the changes to the IDE’s settings.
This Java code defines a custom ToolBarOptionPane
class that extends AbstractOptionPane
. It creates a graphical user interface (GUI) for managing toolbar options in an integrated development environment (IDE). The GUI allows users to enable or disable individual commands and save the changes to the IDE’s settings.
SearchBar.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 320 lines
✨ Summary
This Java code implements a search functionality for an editor, allowing users to find and highlight occurrences of a specified string within a document. It includes features such as incremental searching, highlighting, and beep notifications when no matches are found. The interface is customizable through checkboxes for ignoring case and using regular expressions.
This Java code implements a search functionality for an editor, allowing users to find and highlight occurrences of a specified string within a document. It includes features such as incremental searching, highlighting, and beep notifications when no matches are found. The interface is customizable through checkboxes for ignoring case and using regular expressions.
114 private void find(boolean reverse)
115 {
116 String text = find.getText();
117 if(text.length() == 0)
118 {
133 // of current match to find next one
134 int start;
135 JEditTextArea textArea = view.getTextArea();
136 Selection s = textArea.getSelectionAtOffset(
137 textArea.getCaretPosition());
165 * in the current buffer. */
166 SearchAndReplace.setSearchFileSet(new CurrentBufferSet());
167 SearchAndReplace.setSearchString(find.getText());
168 SearchAndReplace.setReverseSearch(reverse);
VFSFileNameField.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 271 lines
✨ Summary
This Java class, VFSFileNameField
, extends HistoryTextField
to provide a file name field with completion functionality for a VFS (Virtual File System) browser. It processes key events and provides autocompletion based on directory paths, allowing users to navigate the file system interactively.
This Java class, VFSFileNameField
, extends HistoryTextField
to provide a file name field with completion functionality for a VFS (Virtual File System) browser. It processes key events and provides autocompletion based on directory paths, allowing users to navigate the file system interactively.
Greedy_Right.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 87 lines
18 void greedyRight(View view, boolean onlyFullTabs)
19 {
20 JEditTextArea textArea = view.getTextArea();
21 JEditBuffer buffer = textArea.getBuffer();
22 int caret = textArea.getCaretPosition();
56 String chunk = "";
57 if((caret + toTabStop) <= buffer.getLength())
58 chunk = buffer.getText(caret,toTabStop);
59 int count = 0;
60 for(int i=0; i < chunk.length(); i++)
InputHandler.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 519 lines
✨ Summary
This Java code is part of a text editor’s input handling mechanism. It processes user input, such as keyboard characters, and executes a series of actions based on the current repeat count. The actions include invoking an action, recording a macro, and executing a BeanShell script to perform additional operations. The code also handles compound editing and macro recording for repeated inputs.
This Java code is part of a text editor’s input handling mechanism. It processes user input, such as keyboard characters, and executes a series of actions based on the current repeat count. The actions include invoking an action, recording a macro, and executing a BeanShell script to perform additional operations. The code also handles compound editing and macro recording for repeated inputs.
91 }
93 if(view.getTextArea().hasFocus() && from == View.VIEW)
94 return;
125 else if(from == View.ACTION_BAR
126 || isPrefixActive()
127 || view.getTextArea().hasFocus())
128 {
129 processKeyEventKeyStrokeHandling(evt,from,"type ",global);
231 {
232 view.setPrefixFocusOwner(focusOwner);
233 view.getTextArea().requestFocus();
234 }
235 else if(focusOnTextArea)
JavaI18nUtil.java (https://bitbucket.org/nbargnesi/idea.git) Java · 344 lines
65 PsiElement psiElement = psiFile.findElementAt(editor.getCaretModel().getOffset());
66 if (psiElement==null || psiElement instanceof PsiWhiteSpace) return null;
67 return psiElement.getTextRange();
68 }
270 PsiType varType = var.getType();
271 if (type == null || type.isAssignableFrom(varType)) {
272 result.add(var.getNameIdentifier().getText());
273 }
274 }
276 PsiExpression[] expressions = MacroUtil.getStandardExpressionsOfType(context, type);
277 for (PsiExpression expression : expressions) {
278 result.add(expression.getText());
279 }
280 if (type != null) {
catalog (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 546 lines
InstallMacrosDialog.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 532 lines
✨ Summary
This Java code is for a graphical user interface (GUI) dialog box that allows users to manage and download macros from a database. It provides features such as sorting, searching, and selecting macros to download. The GUI includes buttons, text fields, and lists to display the available macros and their properties.
This Java code is for a graphical user interface (GUI) dialog box that allows users to manage and download macros from a database. It provides features such as sorting, searching, and selecting macros to download. The GUI includes buttons, text fields, and lists to display the available macros and their properties.
270 {
271 if(installCustom.isSelected())
272 jEdit.setProperty("intall-macors.custom.directory", customDir.getText());
273 else
274 jEdit.unsetProperty("intall-macors.custom.directory");
312 else
313 {
314 installDirectory = customDir.getText();
315 }
409 String sortLabel = jEdit.getProperty("install-macros.sort-by-date");
410 int constraint;
411 if(sort.getText().equals(sortLabel))
412 {
413 constraint = MacroList.SORT_BY_DATE;
TaskList.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 399 lines
✨ Summary
This Java code defines a TaskList
class that displays tasks in a table format, with features like editing and displaying task buffers. It interacts with an “EditBus” system to receive messages and updates about tasks. The class provides methods for adding and removing notifications, handling messages, and accessing its components (view, table, data model).
This Java code defines a TaskList
class that displays tasks in a table format, with features like editing and displaying task buffers. It interacts with an “EditBus” system to receive messages and updates about tasks. The class provides methods for adding and removing notifications, handling messages, and accessing its components (view, table, data model).
SelectLineRange.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 185 lines
✨ Summary
This Java code defines a GUI dialog for selecting a line range in a text editor. It allows users to input two line numbers and, when “OK” is clicked, selects the specified lines in the current document. If invalid input is provided, it beeps and cancels the operation. The dialog also includes a “Cancel” button to exit without making any changes.
This Java code defines a GUI dialog for selecting a line range in a text editor. It allows users to input two line numbers and, when “OK” is clicked, selects the specified lines in the current document. If invalid input is provided, it beeps and cancels the operation. The dialog also includes a “Cancel” button to exit without making any changes.
DiffTextAreaModel.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 128 lines
✨ Summary
This Java class, DiffTextAreaModel
, is used to manage a text area that displays differences between two files. It initializes the model with a DualDiff
object and populates its data structures with information about the edits made to each file. The model provides access to this data through various getter methods, allowing other parts of the application to use it.
This Java class, DiffTextAreaModel
, is used to manage a text area that displays differences between two files. It initializes the model with a DualDiff
object and populates its data structures with information about the edits made to each file. The model provides access to this data through various getter methods, allowing other parts of the application to use it.
CodeObjectType.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 178 lines
✨ Summary
This Java class, CodeObjectType
, represents a type of object in a database schema. It provides methods to retrieve text and statement purpose information about code objects, such as their creation prefix and purpose for loading object code. The class is part of a larger SQL plugin system.
This Java class, CodeObjectType
, represents a type of object in a database schema. It provides methods to retrieve text and statement purpose information about code objects, such as their creation prefix and purpose for loading object code. The class is part of a larger SQL plugin system.
JavaScriptShell.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 114 lines
✨ Summary
This Java code implements a JavaScript shell for an integrated development environment (IDE). It allows users to execute JavaScript commands, print output, and run scripts from files. The shell uses a ScriptEngineManager to manage the JavaScript engine and provides a way to set global variables and interact with the IDE’s view and text area.
This Java code implements a JavaScript shell for an integrated development environment (IDE). It allows users to execute JavaScript commands, print output, and run scripts from files. The shell uses a ScriptEngineManager to manage the JavaScript engine and provides a way to set global variables and interact with the IDE’s view and text area.
BeanShell.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 799 lines
✨ Summary
This Java code is part of a BeanShell implementation, a JavaScript-like scripting language for Java. It provides an interface to interact with a Java application’s UI components and perform operations on them. The code sets up default variables for a script, handles exceptions, and creates an interpreter instance. It also manages class loading and listener registration for the interpreter.
This Java code is part of a BeanShell implementation, a JavaScript-like scripting language for Java. It provides an interface to interact with a Java application’s UI components and perform operations on them. The code sets up default variables for a script, handles exceptions, and creates an interpreter instance. It also manages class loading and listener registration for the interpreter.
127 String command = GUIUtilities.input(view,"beanshell-eval-line",null);
129 JEditTextArea textArea = view.getTextArea();
130 Buffer buffer = view.getBuffer();
150 + "start = buffer.getLineStartOffset(line);\n"
151 + "end = buffer.getLineEndOffset(line);\n"
152 + "text = buffer.getText(start,end - start - 1);\n"
153 + "newText = " + command + "\n"
154 + "if(newText != null)\n"
335 VFSManager.waitForRequests();
337 in = new StringReader(buffer.getText(0,
338 buffer.getLength()));
339 }
tsql.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 1020 lines
commandoFILE_ENTRY.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 41 lines
P4GlobalOptionPane.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 76 lines
✨ Summary
This Java code defines a plugin configuration pane for a Perforce version control system. It displays and allows editing of global settings, including the Perforce path, editor command, and file monitoring options. The changes are saved to a configuration object when the user clicks “save”. The code is part of a larger plugin for the JEdit text editor.
This Java code defines a plugin configuration pane for a Perforce version control system. It displays and allows editing of global settings, including the Perforce path, editor command, and file monitoring options. The changes are saved to a configuration object when the user clicks “save”. The code is part of a larger plugin for the JEdit text editor.
Utils.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 99 lines
✨ Summary
This Java code provides utility methods for inserting relative paths into a text buffer within the JEdit editor. It allows users to choose a file and insert its relative path into the current buffer, using a dialog box to select the file from the file system. The getRelativePath
method calculates the relative URL based on the directory structure of the chosen file.
This Java code provides utility methods for inserting relative paths into a text buffer within the JEdit editor. It allows users to choose a file and insert its relative path into the current buffer, using a dialog box to select the file from the file system. The getRelativePath
method calculates the relative URL based on the directory structure of the chosen file.
Makefile.in.in (https://freespeech.svn.sourceforge.net/svnroot/freespeech) Unknown · 250 lines
4 # This file file be copied and used freely without restrictions. It can
5 # be used in projects which are not available under the GNU Public License
6 # but which still want to provide support for the GNU gettext functionality.
7 # Please note that the actual code is *not* freely available.
22 localedir = $(datadir)/locale
23 gnulocaledir = $(prefix)/share/locale
24 gettextsrcdir = $(prefix)/share/gettext/po
25 subdir = po
33 GMSGFMT = PATH=../src:$$PATH @GMSGFMT@
34 MSGFMT = @MSGFMT@
35 XGETTEXT = PATH=../src:$$PATH @XGETTEXT@
36 MSGMERGE = PATH=../src:$$PATH msgmerge
RubyParser.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 234 lines
✨ Summary
This Java code is a Ruby parser for the JEdit text editor. It parses Ruby files and provides information about their syntax, structure, and errors. The parser can be used to analyze Ruby code in real-time, providing warnings and errors as it parses the file. It also keeps track of the last successful parse and can be used to check if a file has been modified since its last successful parsing.
This Java code is a Ruby parser for the JEdit text editor. It parses Ruby files and provides information about their syntax, structure, and errors. The parser can be used to analyze Ruby code in real-time, providing warnings and errors as it parses the file. It also keeps track of the last successful parse and can be used to check if a file has been modified since its last successful parsing.
CCScale9Sprite.cpp (https://bitbucket.org/Tsiannian/cocos2d-x.git) C++ · 670 lines
88 {
89 // Get the texture size as original
90 CCSize textureSize = scale9Image->getTextureAtlas()->getTexture()->getContentSize();
92 rect = CCRectMake(0, 0, textureSize.width, textureSize.height);
122 // Centre
123 centre = CCSprite::createWithTexture(scale9Image->getTexture(), m_capInsetsInternal);
124 scale9Image->addChild(centre, 0, pCentre);
126 // Top
127 top = CCSprite::createWithTexture(scale9Image->getTexture(), CCRectMake(m_capInsetsInternal.origin.x,
128 t,
129 m_capInsetsInternal.size.width,
TagHighlight.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 370 lines
✨ Summary
This Java code is a part of an editor plugin that highlights matching XML tags in a text editor. It uses a combination of buffer changes and caret updates to detect when a tag is being edited, and then updates the highlighting accordingly. The plugin also handles cases where a tag is inserted or removed from the buffer.
This Java code is a part of an editor plugin that highlights matching XML tags in a text editor. It uses a combination of buffer changes and caret updates to detect when a tag is being edited, and then updates the highlighting accordingly. The plugin also handles cases where a tag is inserted or removed from the buffer.
qpixmapdata_symbiangl.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 836 lines
SubversionOptions.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 141 lines
✨ Summary
This Java code defines a plugin option pane for Subversion version control system. It creates a GUI with checkboxes, spinners, and combo boxes to configure settings such as using tsvn template, maximum log entries, and file format. The settings are saved when the user clicks “save” or closes the panel.
This Java code defines a plugin option pane for Subversion version control system. It creates a GUI with checkboxes, spinners, and combo boxes to configure settings such as using tsvn template, maximum log entries, and file format. The settings are saved when the user clicks “save” or closes the panel.
67 int logRows = jEdit.getIntegerProperty( "ise.plugin.svn.logRows", 1000 );
68 ( ( JSpinner.NumberEditor ) maxLogs.getEditor() ).getModel().setValue( logRows );
69 ( ( JSpinner.NumberEditor ) maxLogs.getEditor() ).getTextField().setForeground( jEdit.getColorProperty( "view.fgColor", Color.BLACK ) );
70 ( ( JSpinner.NumberEditor ) maxLogs.getEditor() ).getTextField().setBackground( jEdit.getColorProperty( "view.bgColor", Color.WHITE ) );
SideKickCompletionPopup.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 197 lines
✨ Summary
This Java code defines a popup completion window for a text editor, specifically designed for the SideKick plugin. It provides auto-completion functionality based on user input, allowing users to select from a list of suggested completions and insert them into their text. The popup is customizable and can be updated dynamically as the user types.
This Java code defines a popup completion window for a text editor, specifically designed for the SideKick plugin. It provides auto-completion functionality based on user input, allowing users to select from a list of suggested completions and insert them into their text. The popup is customizable and can be updated dynamically as the user types.
38 int caret, SideKickCompletion complete)
39 {
40 super(view, getLocation(view.getTextArea(), caret, complete));
42 this.view = view;
158 if(selected == -1)
159 {
160 view.getTextArea().userInput(ch);
161 updateCompletion();
162 }
175 SideKickCompletion newComplete = complete;
176 EditPane editPane = view.getEditPane();
177 JEditTextArea textArea = editPane.getTextArea();
178 int caret = textArea.getCaretPosition();
179 if(!newComplete.updateInPlace(editPane, caret))
AnySoftKeyboard.java
(http://softkeyboard.googlecode.com/svn/)
Java · 2062 lines
✨ Summary
This Java code is part of a keyboard application, handling various user interactions such as inputting text, deleting characters, and displaying toast messages. It also manages shared preferences, handles low memory situations, and performs lengthy operations like loading settings and updating dictionaries. The code appears to be designed for an Android application, utilizing various Android APIs and classes.
This Java code is part of a keyboard application, handling various user interactions such as inputting text, deleting characters, and displaying toast messages. It also manages shared preferences, handles low memory situations, and performs lengthy operations like loading settings and updating dictionaries. The code appears to be designed for an Android application, utilizing various Android APIs and classes.
472 CompletionInfo ci = completions[i];
473 if (ci != null)
474 stringList.add(ci.getText());
475 }
476 if (DEBUG) Log.v(TAG, "Received completions: setting to suggestions view "+stringList.size()+ " completions.");
893 if (ic == null)
894 return;
895 CharSequence lastTwo = ic.getTextBeforeCursor(2, 0);
896 if (lastTwo != null && lastTwo.length() == 2
897 && lastTwo.charAt(0) == KEYCODE_SPACE
912 if (ic == null)
913 return;
914 CharSequence lastThree = ic.getTextBeforeCursor(3, 0);
915 if (lastThree != null && lastThree.length() == 3
916 && Character.isLetterOrDigit(lastThree.charAt(0))
aclocal.m4
(https://bitbucket.org/freebsd/freebsd-head/)
m4 · 905 lines
✨ Summary
This M4 code is a collection of configuration and build scripts for a C library, likely the GNU Binutils. It sets up various macros and functions for building and testing the library, including support for different tar formats, gettext, and other dependencies. The script also includes several external M4 files that provide additional functionality.
This M4 code is a collection of configuration and build scripts for a C library, likely the GNU Binutils. It sets up various macros and functions for building and testing the library, including support for different tar formats, gettext, and other dependencies. The script also includes several external M4 files that provide additional functionality.
SideKickPlugin.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 435 lines
✨ Summary
This Java code is part of a text editor’s plugin that provides features like syntax highlighting, auto-completion, and parsing. It creates a background thread to parse buffers in real-time, updates the UI with parsed data, and manages toolbars and caret handlers for editing. The code also handles buffer parsing, parsing cancellation, and cleanup of resources when the view is stopped or removed.
This Java code is part of a text editor’s plugin that provides features like syntax highlighting, auto-completion, and parsing. It creates a background thread to parse buffers in real-time, updates the UI with parsed data, and manages toolbars and caret handlers for editing. The code also handles buffer parsing, parsing cancellation, and cleanup of resources when the view is stopped or removed.
95 EditPane[] panes = view.getEditPanes();
96 for(int i = 0; i < panes.length; i++)
97 initTextArea(panes[i].getTextArea());
98 view = view.getNext();
99 }
116 EditPane[] panes = view.getEditPanes();
117 for(int i = 0; i < panes.length; i++)
118 uninitTextArea(panes[i].getTextArea());
119 view = view.getNext();
120 }
153 if(epu.getWhat() == EditPaneUpdate.CREATED)
154 initTextArea(editPane.getTextArea());
155 else if(epu.getWhat() == EditPaneUpdate.DESTROYED)
156 uninitTextArea(editPane.getTextArea());
ProjectPropertiesPane.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 336 lines
✨ Summary
This Java code defines a GUI dialog for managing project settings, including name, root path, URL root (for web projects), and parent group. The dialog has buttons to choose the root path and select a parent group from a list of available groups. When the user clicks “OK”, the dialog validates the input and updates the project settings accordingly.
This Java code defines a GUI dialog for managing project settings, including name, root path, URL root (for web projects), and parent group. The dialog has buttons to choose the root path and select a parent group from a list of available groups. When the user clicks “OK”, the dialog validates the input and updates the project settings accordingly.
111 chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
113 String root = projRoot.getText().trim();
114 if (root.length() > 0) {
115 chooser.setSelectedFile(new File(root));
132 projRoot.setToolTipText(projRoot.getText());
134 if (projName.getText() != null && projName.getText().length() == 0) {
135 String name = root.substring(root.lastIndexOf(File.separator) + 1, root.length());
136 projName.setText(name);
157 /** Updates the project with the info supplied by the user. */
158 protected void _save() {
159 String name = projName.getText().trim();
160 ok = true;
changes-4.7.0 (https://bitbucket.org/ultra_iter/qt-vtl.git) Unknown · 514 lines
CompletionRequest.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 219 lines
✨ Summary
This Java class, CompletionRequest
, is part of a CSS editor’s auto-completion feature. It analyzes user input and suggests possible completions based on CSS properties, units, and values. The class uses regular expressions to parse the input text and determine whether it matches certain patterns, allowing it to provide relevant suggestions for completion.
This Java class, CompletionRequest
, is part of a CSS editor’s auto-completion feature. It analyzes user input and suggests possible completions based on CSS properties, units, and values. The class uses regular expressions to parse the input text and determine whether it matches certain patterns, allowing it to provide relevant suggestions for completion.
OracleTableObjectType.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 84 lines
✨ Summary
This Java code defines a class OracleTableObjectType
that extends TableObjectType
. It provides an action to extract DDL (Data Definition Language) for Oracle tables, which is used in a SQL plugin. The ExtractToDDLAction
class implements this functionality, connecting to the database and retrieving the table’s DDL using the selectTableDDL
query.
This Java code defines a class OracleTableObjectType
that extends TableObjectType
. It provides an action to extract DDL (Data Definition Language) for Oracle tables, which is used in a SQL plugin. The ExtractToDDLAction
class implements this functionality, connecting to the database and retrieving the table’s DDL using the selectTableDDL
query.
InfoViewer.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 1362 lines
✨ Summary
This Java code implements a plugin for the JEdit text editor, specifically an InfoViewer plugin that provides features such as bookmarking, history management, and URL editing. It creates a dockable window with various actions and menus, allowing users to navigate and interact with web pages within the editor. The plugin also handles keyboard shortcuts and mouse events to provide a seamless user experience.
This Java code implements a plugin for the JEdit text editor, specifically an InfoViewer plugin that provides features such as bookmarking, history management, and URL editing. It creates a dockable window with various actions and menus, allowing users to navigate and interact with web pages within the editor. The plugin also handles keyboard shortcuts and mouse events to provide a seamless user experience.
302 String url = urlField.getText();
303 if (url == null || url.length() < 1) return null;
304 currentURL = new TitledURLEntry(title.getText(), urlField.getText());
305 int scrollBarPos = scrViewer.getVerticalScrollBar().getValue();
306 currentURL.setScrollBarPos(scrollBarPos);
879 public void actionPerformed(ActionEvent evt)
880 {
881 gotoURL(urlField.getText(), true,-1);
882 }
883 });
Interpreter.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 992 lines
✨ Summary
This is a Java class that implements an interpreter for the BeanShell scripting language. It provides methods for loading and executing scripts, interacting with a parser, and customizing its behavior through configuration options such as debugging and output redirection. The class also manages a global namespace and provides access to external classes and resources.
This is a Java class that implements an interpreter for the BeanShell scripting language. It provides methods for loading and executing scripts, interacting with a parser, and customizing its behavior through configuration options such as debugging and output redirection. The class also manages a global namespace and provides access to external classes and resources.
MergeIfAndIntention.java (https://bitbucket.org/nbargnesi/idea.git) Java · 79 lines
51 if (ParenthesesUtils.getPrecedence(childCondition)
52 > ParenthesesUtils.AND_PRECEDENCE) {
53 childConditionText = '(' + childCondition.getText() + ')';
54 }
55 else {
56 childConditionText = childCondition.getText();
57 }
64 if (ParenthesesUtils.getPrecedence(parentCondition)
65 > ParenthesesUtils.AND_PRECEDENCE) {
66 parentConditionText = '(' + parentCondition.getText() + ')';
67 }
68 else {
UsersFilterAction.java (https://bitbucket.org/nbargnesi/idea.git) Java · 242 lines
json.jj (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 763 lines
ReplaceForEachLoopWithIndexedForLoopIntention.java (https://bitbucket.org/nbargnesi/idea.git) Java · 272 lines
94 for (int i = 1; i < children.length - 1; i++) {
95 //skip the braces
96 newStatement.append(children[i].getText());
97 }
98 }
99 else {
100 newStatement.append(body.getText());
101 }
102 newStatement.append('}');
179 final String referenceName = referenceElement.getReferenceName();
180 if (referenceName == null) {
181 return expression.getText();
182 }
183 return referenceName;
macro-tips.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 921 lines
266 <constant>OK_OPTION</constant>, each of the input components
267 can yield their contents for further processing by calls to
268 <function>JTextField.getText()</function> (or, in the case
269 of the check box,
270 <function>JCheckBox.isSelected()</function>).</para>
449 script.append( "line = textArea.getCaretLine();" );
450 script.append( "end = textArea.getLineEndOffset(line) + 1;" );
451 script.append( "text = buffer.getText(start, end - start);" );
452 script.append( "match = text.indexOf(__char__, 1);" );
453 script.append( "if(match != -1) {" );
JCompilerPane.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 294 lines
✨ Summary
This Java code is part of a text editor’s configuration settings for Java compilation and packaging options. It allows users to customize various settings, such as autosave, output directory, classpath, and deprecated warnings. The code updates these settings when the user makes changes and saves them to the text editor’s configuration.
This Java code is part of a text editor’s configuration settings for Java compilation and packaging options. It allows users to customize various settings, such as autosave, output directory, classpath, and deprecated warnings. The code updates these settings when the user makes changes and saves them to the text editor’s configuration.
223 jEdit.setBooleanProperty("jcompiler.addpkg2cp", addPkg2CP.isSelected());
225 jEdit.setProperty("jcompiler.outputdirectory", outputDirectory.getText());
226 jEdit.setProperty("jcompiler.regexp", regexp.getText());
227 jEdit.setProperty("jcompiler.regexp.filename", regexpFilename.getText());
228 jEdit.setProperty("jcompiler.regexp.lineno", regexpLineNo.getText());
229 jEdit.setProperty("jcompiler.regexp.message", regexpMessage.getText());
231 if (!useJavaCP.isSelected()) {
232 jEdit.setProperty("jcompiler.classpath", newCP.getText());
233 }
CommandHandler.py (git://pkgs.fedoraproject.org/system-config-lvm) Python · 431 lines
CheckoutDialog.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 268 lines
✨ Summary
This Java code creates a graphical user interface (GUI) for a checkout dialog box, likely used in a version control system like Subversion. It allows users to input their SVN credentials and repository information, such as URL and directory path, before checking out files from the repository. The GUI includes fields for username, password, and repository details, with buttons for canceling or confirming the operation.
This Java code creates a graphical user interface (GUI) for a checkout dialog box, likely used in a version control system like Subversion. It allows users to input their SVN credentials and repository information, such as URL and directory path, before checking out files from the repository. The GUI includes fields for username, password, and repository details, with buttons for canceling or confirming the operation.
199 ok_btn.addActionListener( new ActionListener() {
200 public void actionPerformed( ActionEvent ae ) {
201 if ( url == null || url.getText().length() == 0 ) {
202 JOptionPane.showMessageDialog( CheckoutDialog.this, jEdit.getProperty("ips.URL_is_required.", "URL is required."), jEdit.getProperty("ips.Error", "Error"), JOptionPane.ERROR_MESSAGE );
203 return ;
204 }
205 if ( path == null || path.getText().length() == 0 ) {
206 JOptionPane.showMessageDialog( CheckoutDialog.this, jEdit.getProperty("ips.Directory_is_required.", "Directory is required."), jEdit.getProperty("ips.Error", "Error"), JOptionPane.ERROR_MESSAGE );
207 return ;
256 }
257 CheckoutData cd = new CheckoutData();
258 cd.setURL(url.getText());
259 cd.setUsername(username.getText());
260 cd.setPassword(PasswordHandler.encryptPassword(new String(password.getPassword())));
261 List<String> paths = new ArrayList<String>();
262 paths.add(path.getText());
263 cd.setPaths(paths);
264 return cd;
TreeDemo.java (https://bitbucket.org/__wp__/mb-linux-msli.git) Java · 318 lines
ftpwindow.py
(http://editra-plugins.googlecode.com/svn/trunk/)
Python · 695 lines
✨ Summary
This is a Python class that implements a graphical user interface (GUI) component, specifically a file explorer widget. It displays a list of files and folders, allowing users to interact with them through context menus and keyboard shortcuts. The GUI updates dynamically in response to changes in the underlying data structure, such as when new files or folders are added or removed.
This is a Python class that implements a graphical user interface (GUI) component, specifically a file explorer widget. It displays a list of files and folders, allowing users to interact with them through context menus and keyboard shortcuts. The GUI updates dynamically in response to changes in the underlying data structure, such as when new files or folders are added or removed.
370 # Rename the selected file
371 if path is not None:
372 name = wx.GetTextFromUser(_("Enter the new name"),
373 _("Rename File"))
374 if len(name):
404 # Prompt for the new name
405 if e_id == ID_NEW_FILE:
406 name = wx.GetTextFromUser(_("Enter name for new file."),
407 _("New File"))
413 self._client.NewFileAsync(name)
414 else:
415 name = wx.GetTextFromUser(_("Enter name for new directory."),
416 _("New Directory"))
fck_replace.html
(http://phpwcms.googlecode.com/svn/trunk/)
HTML · 651 lines
✨ Summary
This HTML code generates a search and replace interface for an online text editor. It allows users to input a find and replace string, select options to match case and whole words, and perform searches and replacements on the page’s content. The interface includes buttons to find, replace, and replace all, with disabled states when no input is provided.
This HTML code generates a search and replace interface for an online text editor. It allows users to input a find and replace string, select options to match case and whole words, and perform searches and replacements on the page’s content. The interface includes buttons to find, replace, and replace all, with disabled states when no input is provided.
89 // Non-normalized.
90 GetTextNode : function()
91 {
92 return this._textNode ;
165 var firstCursor = this._cursors[0] ;
166 var lastCursor = this._cursors[ this._cursors.length - 1 ] ;
167 var domRange = new FCKDomRange( FCKTools.GetElementWindow( firstCursor.GetTextNode() ) ) ;
168 var w3cRange = domRange._Range = domRange.CreateRange() ;
169 w3cRange.setStart( firstCursor.GetTextNode(), firstCursor.GetIndex() ) ;
417 * References:
418 * http://unicode.org/Public/UNIDATA/PropList.txt (whitespaces)
419 * http://php.chinaunix.net/manual/tw/ref.regex.php (punctuation marks)
420 */
421 function CheckIsWordSeparator( c )
SolrHandler.java
(https://svn.apache.org/repos/asf/incubator/droids/)
Java · 0 lines
✨ Summary
This Java code defines a class SolrHandler
that implements a handler for content entities, specifically designed to interact with Apache Solr. It creates a Solr input document from a given URI and content entity, then adds it to a Solr server, handling any exceptions that may occur during the process.
This Java code defines a class SolrHandler
that implements a handler for content entities, specifically designed to interact with Apache Solr. It creates a Solr input document from a given URI and content entity, then adds it to a Solr server, handling any exceptions that may occur during the process.