100+ results for 'gets'
Not the results you expected?
socket.cpp (https://bitbucket.org/ewfiseli/elib.git) C++ · 365 lines
scl_memmgr.cc (https://bitbucket.org/vrrm/brl-cad-copy-for-fast-history-browsing-in-git.git) C++ · 410 lines
65 std::string getsrcfile( void ) const;
66 unsigned int getsrcline( void ) const;
67 };
186 irecord != _records.end();
187 irecord ++ ) {
188 scl_memmgr_error error( irecord->getsrcfile(), irecord->getsrcline() );
189 ierror = errors.find( error );
190 if( ierror == errors.end() ) {
202 ierror ++ ) {
203 // todo: generate error for memory leak
204 printf( "scl_memmgr warning: Possible memory leak in %s line %d\n", ierror->getsrcfile().c_str(), ierror->getsrcline() );
205 }
258 } else {
259 // Update stats
260 _allocated -= record->getsize();
261 _deallocated_total += record->getsize();
itkCenteredTransformInitializerTest.cxx (https://github.com/chrismullins/ITK.git) C++ · 392 lines
50 const typename FixedImageType::RegionType & fixedRegion = fixedImage->GetLargestPossibleRegion();
51 const typename FixedImageType::SizeType & fixedSize = fixedRegion.GetSize();
52 const typename FixedImageType::IndexType & fixedIndex = fixedRegion.GetIndex();
53 ContinuousIndexType fixedCenterIndex;
62 const typename MovingImageType::RegionType & movingRegion = movingImage->GetLargestPossibleRegion();
63 const typename MovingImageType::SizeType & movingSize = movingRegion.GetSize();
64 const typename MovingImageType::IndexType & movingIndex = movingRegion.GetIndex();
65 ContinuousIndexType movingCenterIndex;
189 const RegionType & region = image->GetLargestPossibleRegion();
190 const SizeType & size = region.GetSize();
191 const IndexType & index = region.GetIndex();
instmgr.cc (https://bitbucket.org/vrrm/brl-cad-copy-for-fast-history-browsing-in-git.git) C++ · 413 lines
347 SDAI_Application_instance *
348 InstMgr::GetSTEPentity( int index ) {
349 MgrNode * mn = ( MgrNode * )( *master )[index];
350 if( mn ) {
386 SDAI_Application_instance *
387 InstMgr::GetSTEPentity( const char * entityKeyword, int starting_index ) {
388 MgrNode * node;
389 SDAI_Application_instance * se;
405 void *
406 InstMgr::GetSEE( int index ) {
407 MgrNode * mn = ( MgrNode * )( *master )[index];
408 if( mn ) {
vtkBoxWidget2.cxx (https://github.com/dgobbi/VTK.git) C++ · 332 lines
32 vtkBoxWidget2::vtkBoxWidget2()
33 {
34 this->WidgetState = vtkBoxWidget2::Start;
35 this->ManagesCursor = 1;
107 !self->CurrentRenderer->IsInViewport(X,Y) )
108 {
109 self->WidgetState = vtkBoxWidget2::Start;
110 return;
111 }
153 // We are definitely selected
154 self->WidgetState = vtkBoxWidget2::Active;
155 self->GrabFocus(self->EventCallbackCommand);
SOCK_Connector.cpp (https://gitlab.com/wis-junior-dev/wis-junior-dev) C++ · 350 lines
qMRMLDisplayNodeWidget.cxx (https://github.com/LinjieChen/Slicer-1.git) C++ · 390 lines
373 }
374 d->VisibilityCheckBox->setChecked(d->MRMLDisplayNode->GetVisibility());
375 d->SelectedCheckBox->setEnabled(d->MRMLDisplayNode->GetSelectable());
376 d->SelectedCheckBox->setChecked(d->MRMLDisplayNode->GetSelected());
377 d->ClippingCheckBox->setChecked(d->MRMLDisplayNode->GetClipping());
378 d->SliceIntersectionVisibilityCheckBox->setChecked(
379 d->MRMLDisplayNode->GetSliceIntersectionVisibility());
380 d->MaterialPropertyWidget->setColor(
381 QColor::fromRgbF(d->MRMLDisplayNode->GetColor()[0],
385 d->MaterialPropertyWidget->setAmbient(d->MRMLDisplayNode->GetAmbient());
386 d->MaterialPropertyWidget->setDiffuse(d->MRMLDisplayNode->GetDiffuse());
387 d->MaterialPropertyWidget->setSpecular(d->MRMLDisplayNode->GetSpecular());
388 d->MaterialPropertyWidget->setSpecularPower(d->MRMLDisplayNode->GetPower());
389 d->MaterialPropertyWidget->setBackfaceCulling(d->MRMLDisplayNode->GetBackfaceCulling());
MOAIGrid.cpp (https://github.com/neojjang/moai-beta.git) C++ · 479 lines
38 //----------------------------------------------------------------//
39 /** @name getSize
40 @text Returns the dimensions of the grid (in tiles).
44 @out number height
45 */
46 int MOAIGrid::_getSize ( lua_State* L ) {
47 MOAI_LUA_SETUP ( MOAIGrid, "U" )
374 luaL_Reg regTable [] = {
375 { "clearTileFlags", _clearTileFlags },
376 { "getSize", _getSize },
377 { "getTile", _getTile },
378 { "getTileFlags", _getTileFlags },
GlyphPageTreeNodeTest.cpp (https://gitlab.com/jonnialva90/iridium-browser) C++ · 253 lines
211 GlyphPageTreeNode* node1 = GlyphPageTreeNode::getNormalRootChild(segmentedData.get(), kPageNumber);
212 GlyphPageTreeNode* node2 = node1->getNormalChild(dataBtoD.get(), kPageNumber);
213 SystemFallbackGlyphPageTreeNode* node3 = node2->getSystemFallbackChild(kPageNumber);
215 EXPECT_TRUE(node3->isSystemFallback());
233 RefPtr<TestSimpleFontData> defaultData = TestSimpleFontData::create('A', 'B');
234 GlyphPageTreeNode* node1 = GlyphPageTreeNode::getNormalRootChild(defaultData.get(), kPageNumber);
235 SystemFallbackGlyphPageTreeNode* node2 = node1->getSystemFallbackChild(kPageNumber);
237 EXPECT_TRUE(node2->isSystemFallback());
FirstConfigure.cxx (https://github.com/thewtex/CMake.git) C++ · 509 lines
207 }
209 QString CrossCompilerSetup::getSystem() const
210 {
211 return this->systemName->text();
391 settings.setValue("FortranCompiler", this->mCrossCompilerSetupPage->getFortranCompiler());
392 settings.setValue("ToolChainFile", this->getCrossCompilerToolChainFile());
393 settings.setValue("SystemName", this->mCrossCompilerSetupPage->getSystem());
394 settings.setValue("SystemVersion", this->mCrossCompilerSetupPage->getVersion());
395 settings.setValue("SystemProcessor", this->mCrossCompilerSetupPage->getProcessor());
426 }
428 QString FirstConfigure::getSystemName() const
429 {
430 return this->mCrossCompilerSetupPage->getSystem();
SimpleAudioEngineJni.cpp (https://bitbucket.org/kevin_sun/sanguo_client.git) C++ · 443 lines
74 }
76 static bool getStaticMethodInfo(JniMethodInfo &methodinfo, const char *methodName, const char *paramCode)
77 {
78 jmethodID methodID = 0;
90 jclass classID = getClassID(pEnv);
92 methodID = pEnv->GetStaticMethodID(classID, methodName, paramCode);
93 if (! methodID)
94 {
112 JniMethodInfo methodInfo;
114 if (! getStaticMethodInfo(methodInfo, "preloadBackgroundMusic", "(Ljava/lang/String;)V"))
115 {
116 return;
GitAdminDirTest.cpp (https://gitlab.com/cjeight/tortoisegit) C++ · 358 lines
329 }
331 TEST(CGitAdminDir, GetSuperProjectRoot)
332 {
333 CAutoTempDir tmpDir;
335 EXPECT_STREQ(L"", GitAdminDir::GetSuperProjectRoot(tmpDir.GetTempDir()));
337 EXPECT_TRUE(::CreateDirectory(tmpDir.GetTempDir() + L"\\.git", nullptr));
338 EXPECT_STREQ(L"", GitAdminDir::GetSuperProjectRoot(tmpDir.GetTempDir()));
340 EXPECT_TRUE(::CreateDirectory(tmpDir.GetTempDir() + L"\\subdir", nullptr));
ParticleProcessor.cpp (https://github.com/rpavlik/openscenegraph-oldstable-ubuntu.git) C++ · 249 lines
124 "Set the start time of this processor. ",
125 "");
126 I_Method0(double, getStartTime,
127 Properties::NON_VIRTUAL,
128 __double__getStartTime,
241 __void__setResetTime__double);
242 I_SimpleProperty(double, StartTime,
243 __double__getStartTime,
244 __void__setStartTime__double);
245 I_SimpleProperty(const osg::Matrix &, WorldToLocalMatrix,
priority_write_scheduler_test.cc (https://gitlab.com/0072016/Facebook-SDK-) C++ · 289 lines
37 }
39 TEST_F(PriorityWriteSchedulerTest, GetStreamPriority) {
40 EXPECT_DFATAL(EXPECT_EQ(kV3LowestPriority, scheduler_.GetStreamPriority(1)),
43 scheduler_.RegisterStream(1, 3);
44 EXPECT_EQ(3, scheduler_.GetStreamPriority(1));
46 // Redundant registration shouldn't change stream priority.
47 EXPECT_DFATAL(scheduler_.RegisterStream(1, 4), "Stream 1 already registered");
48 EXPECT_EQ(3, scheduler_.GetStreamPriority(1));
50 scheduler_.UpdateStreamPriority(1, 5);
51 EXPECT_EQ(5, scheduler_.GetStreamPriority(1));
53 // Toggling ready state shouldn't change stream priority.
MQ2RaidType.cpp (https://gitlab.com/mxdog/mqnext-mxdog) C++ · 506 lines
390 if (!pMember)
391 {
392 return pSpawnType->GetMember(GetSpawnByName(raidMember.Name), Member, Index, Dest);
393 }
447 case RaidMemberMembers::Spawn:
448 Dest = pSpawnType->MakeTypeVar(GetSpawnByName(raidMember.Name));
449 return true;
497 return false;
499 toVar = pSpawnType->MakeVarPtr(GetSpawnByName(pRaid->RaidMember[nRaidMember].Name));
500 return true;
501 }
AbstractPlugin.cpp (https://github.com/carrot-garden/carrot-jnlper.git) C++ · 317 lines
20 jmethodID AbstractPlugin::newDoubleID = NULL;
21 jmethodID AbstractPlugin::wrapOrUnwrapScriptingObjectID = NULL;
22 jmethodID AbstractPlugin::getScriptingObjectForAppletID = NULL;
23 jmethodID AbstractPlugin::getJavaNameSpaceID = NULL;
24 jmethodID AbstractPlugin::javaObjectInvokeID = NULL;
54 newDoubleID = env->GetMethodID(absPluginClass, "newDouble", "(D)Ljava/lang/Double;");
55 wrapOrUnwrapScriptingObjectID = env->GetMethodID(absPluginClass, "wrapOrUnwrapScriptingObject", "(J)Ljava/lang/Object;");
56 getScriptingObjectForAppletID = env->GetMethodID(absPluginClass, "getScriptingObjectForApplet", "(J)J");
57 getJavaNameSpaceID = env->GetMethodID(absPluginClass, "getJavaNameSpace", "(Ljava/lang/String;)Ljava/lang/Object;");
58 javaObjectInvokeID = env->GetMethodID(absPluginClass, "javaObjectInvoke", "(Lsun/plugin2/liveconnect/RemoteJavaObject;ZJJIJJ)Z");
155 }
157 jlong AbstractPlugin::getScriptingObjectForApplet(jobject javaPluginInstance,
158 jlong exceptionInfo) {
159 if (javaPluginInstance == NULL) {
ia2AccessibleText.cpp (https://bitbucket.org/avikpal/mozilla-central.git) C++ · 537 lines
CatmullClarkLevel.cpp (https://github.com/williamwaterson/protolayer.git) C++ · 416 lines
277 HalfEdge& firstHalfEdge = edge.getFirstHalf();
278 HalfEdge& secondHalfEdge = edge.getSecondHalf();
280 Vertex& fromVertex = firstHalfEdge.getFromVertex();
354 result = &(edge.getFirstHalf());
355 break;
356 } else if (edge.getSecondHalf().isEquivalent(from, to)) {
357 result = &(edge.getSecondHalf());
auto_encoder_stack.cc (https://gitlab.com/max-crow/rtbkit-p) C++ · 480 lines
195 std::pair<float, float>
196 Auto_Encoder_Stack::
197 itargets(float maximum) const
198 {
199 if (layers_.empty())
200 throw Exception("itargets(): no layers");
201 return layers_.back().itargets(maximum);
207 {
208 if (layers_.empty())
209 throw Exception("itargets(): no layers");
210 return layers_.back().supports_missing_outputs();
211 }
427 std::pair<float, float>
428 Auto_Encoder_Stack::
429 targets(float maximum) const
430 {
431 return layers_.targets(maximum);
PVCAMUtils.cpp (https://github.com/astraw/micromanager1.3.git) C++ · 255 lines
lua_ScriptTargetEventRegistry.cpp (https://github.com/blackberry/GamePlay.git) C++ · 322 lines
122 {
123 // Get parameter 1 off the stack.
124 const char* param1 = gameplay::ScriptUtil::getString(2, false);
126 ScriptTarget::EventRegistry* instance = getInstance(state);
153 {
154 // Get parameter 1 off the stack.
155 const char* param1 = gameplay::ScriptUtil::getString(2, false);
157 // Get parameter 2 off the stack.
158 const char* param2 = gameplay::ScriptUtil::getString(3, false);
160 ScriptTarget::EventRegistry* instance = getInstance(state);
XMLFragmentsString.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 237 lines
✨ Summary
This Java class represents a sequence of XML fragments as a string. It takes a NodeList of nodes and constructs an XML fragment for each node, appending them to a StringBuffer. The resulting string is then returned. It also handles various types of nodes (elements, text, attributes, comments, etc.) and provides methods to access the fragment positions and count.
This Java class represents a sequence of XML fragments as a string. It takes a NodeList of nodes and constructs an XML fragment for each node, appending them to a StringBuffer. The resulting string is then returned. It also handles various types of nodes (elements, text, attributes, comments, etc.) and provides methods to access the fragment positions and count.
q3widgetstack.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 571 lines
55 {
56 public:
57 Invisible(Q3WidgetStack * parent): QWidget(parent, "qt_invisible_widgetstack")
58 {
59 setBackgroundMode(NoBackground);
93 the stack.
95 Q3WidgetStack also provides the ability to manipulate widgets
96 through application-specified integer IDs. You can also translate
97 from widget pointers to IDs using id() and from IDs to widget
140 */
142 Q3WidgetStack::~Q3WidgetStack()
143 {
144 delete focusWidgets;
SubversionGUILogHandler.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 331 lines
✨ Summary
This Java code is a part of a logging system for a GUI application, specifically designed for use with the Subversion plugin. It displays log messages in a text area and allows users to control the display of the log, including whether to show the tail of the log. The code also includes features like clearing the log and selecting all text.
This Java code is a part of a logging system for a GUI application, specifically designed for use with the Subversion plugin. It displays log messages in a text area and allows users to control the display of the log, including whether to show the tail of the log. The code also includes features like clearing the log and selecting all text.
132 /**
133 * Gets the textArea attribute of the AntelopeGUILogHandler object
134 *
135 * @return The textArea value
196 /**
197 * Gets the size attribute of the optional frame.
198 *
199 * @return The size value
200 */
201 public Dimension getSize() {
202 return _frame.getSize();
270 StyleConstants.setBold( set, _font.isBold() );
271 StyleConstants.setItalic( set, _font.isItalic() );
272 StyleConstants.setFontSize( set, _font.getSize() );
273 }
274 if ( lr.getLevel().equals( Level.WARNING ) ) {
PHPItem.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 42 lines
✨ Summary
This Java interface defines a PHPItem, which represents an item in a PHP file. It provides constants for different types of items (e.g., class, method, field) and methods to retrieve information about each item, such as its name, start position, and icon. The interface also includes methods to get the item’s type and path, and to convert the name to lowercase.
This Java interface defines a PHPItem, which represents an item in a PHP file. It provides constants for different types of items (e.g., class, method, field) and methods to retrieve information about each item, such as its name, start position, and icon. The interface also includes methods to get the item’s type and path, and to convert the name to lowercase.
TextAreaPainter.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 939 lines
✨ Summary
This Java code is part of a text editor’s rendering engine, responsible for drawing the visual representation of text on the screen. It handles various aspects such as caret (cursor) placement, bracket highlighting, and selection rendering. The code uses graphics and painting techniques to display the text in a visually appealing manner, taking into account features like block overwrite mode and bracket matching.
This Java code is part of a text editor’s rendering engine, responsible for drawing the visual representation of text on the screen. It handles various aspects such as caret (cursor) placement, bracket highlighting, and selection rendering. The code uses graphics and painting techniques to display the text in a visually appealing manner, taking into account features like block overwrite mode and bracket matching.
88 //{{{ Getters and setters
90 //{{{ getStyles() method
91 /**
92 * Returns the syntax styles used to paint colorized text. Entry <i>n</i>
94 * @see org.gjt.sp.jedit.syntax.Token
95 */
96 public final SyntaxStyle[] getStyles()
97 {
98 return styles;
133 } //}}}
135 //{{{ getSelectionColor() method
136 /**
137 * Returns the selection color.
ObjectAllocationInLoopInspection.java (https://bitbucket.org/nbargnesi/idea.git) Java · 130 lines
18 import com.intellij.psi.*;
19 import com.intellij.psi.util.PsiTreeUtil;
20 import com.siyeh.InspectionGadgetsBundle;
21 import com.siyeh.ig.BaseInspection;
22 import com.siyeh.ig.BaseInspectionVisitor;
28 @NotNull
29 public String getDisplayName() {
30 return InspectionGadgetsBundle.message(
31 "object.allocation.in.loop.display.name");
32 }
34 @NotNull
35 protected String buildErrorString(Object... infos) {
36 return InspectionGadgetsBundle.message(
37 "object.allocation.in.loop.problem.descriptor");
38 }
flymake-css.el (https://bitbucket.org/shuangxinyu/emacspack.git) Lisp · 162 lines
dsc.c
(http://omnia2droid.googlecode.com/svn/trunk/)
C · 55 lines
✨ Summary
This C code sets the drive strength control (DSC) value for a specific GPIO pin on an S3C2440 processor. It takes two arguments: the pin number and the desired DSC value, then writes the new value to the corresponding register using I/O operations. The function is exported as a symbol, making it accessible from other parts of the kernel.
This C code sets the drive strength control (DSC) value for a specific GPIO pin on an S3C2440 processor. It takes two arguments: the pin number and the desired DSC value, then writes the new value to the corresponding register using I/O operations. The function is exported as a symbol, making it accessible from other parts of the kernel.
pl.UTF-8.po (https://bitbucket.org/ultra_iter/vim-qt.git) Portable Object · 6525 lines
JSDirectoryEntry.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 256 lines
96 bool JSDirectoryEntryConstructor::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
97 {
98 return getStaticValueSlot<JSDirectoryEntryConstructor, JSDOMWrapper>(exec, &JSDirectoryEntryConstructorTable, this, propertyName, slot);
99 }
101 bool JSDirectoryEntryConstructor::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
102 {
103 return getStaticValueDescriptor<JSDirectoryEntryConstructor, JSDOMWrapper>(exec, &JSDirectoryEntryConstructorTable, this, propertyName, descriptor);
104 }
136 bool JSDirectoryEntryPrototype::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
137 {
138 return getStaticFunctionSlot<JSObject>(exec, getJSDirectoryEntryPrototypeTable(exec), this, propertyName, slot);
139 }
widgetboxtreewidget.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 1001 lines
293 clear();
294 break;
295 case QDesignerWidgetBox::LoadCustomWidgetsOnly:
296 addCustomCategories(true);
297 updateGeometries();
332 {
333 if (replace) {
334 // clear out all existing custom widgets
335 if (const int numTopLevels = topLevelItemCount()) {
336 for (int t = 0; t < numTopLevels ; ++t)
450 * <ui language="c++">
451 * <widget class="MultiPageWidget" name="multipagewidget"> ... </widget>
452 * <customwidgets>...</customwidgets>
453 * <ui>
454 *
613 const QDesignerPluginManager *pm = m_core->pluginManager();
614 const QDesignerPluginManager::CustomWidgetList customWidgets = pm->registeredCustomWidgets();
615 if (customWidgets.empty())
test_pkgutil.py
(https://bitbucket.org/tarek/distutils2/)
Python · 609 lines
✨ Summary
This is a Python script that tests the functionality of the pkgutil
module, which provides tools for working with Python packages and distributions. The test suite checks various aspects of the module’s behavior, including parsing package metadata, finding distributions, and handling obsolete versions. It ensures that the module behaves correctly in different scenarios.
This is a Python script that tests the functionality of the pkgutil
module, which provides tools for working with Python packages and distributions. The test suite checks various aspects of the module’s behavior, including parsing package metadata, finding distributions, and handling obsolete versions. It ensures that the module behaves correctly in different scenarios.
Log.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 294 lines
✨ Summary
This Java code is a log retrieval tool for SVN (Subversion) version control systems. It takes a list of file paths, a start and end revision date, and connects to an SVN repository. It then retrieves log entries for each file path within the specified revision range and prints them to the console.
This Java code is a log retrieval tool for SVN (Subversion) version control systems. It takes a list of file paths, a start and end revision date, and connects to an SVN repository. It then retrieves log entries for each file path within the specified revision range and prints them to the console.
131 out.println( "\t path: " + path );
132 out.println( "\t peg revision: " + data.getPegRevision() );
133 out.println( "\tstart revision: " + data.getStartRevision() );
134 out.println( "\t end revision: " + data.getEndRevision() );
135 out.println( "\t stop on copy: " + data.getStopOnCopy() );
136 out.println( "\t show paths: " + data.getShowPaths() );
137 out.println( "\t max logs: " + data.getMaxLogs() );
147 client.doLog( repositoryUrl, pathToCheck, data.getPegRevision(), data.getStartRevision(),
148 data.getEndRevision(), data.getStopOnCopy(), data.getShowPaths(), data.getMaxLogs(), handler );
149 }
150 }
168 client.doLog( pathToCheck, data.getPegRevision(), data.getStartRevision(),
169 data.getEndRevision(), data.getStopOnCopy(), data.getShowPaths(), data.getMaxLogs(), handler );
170 }
171 }
launcher-guide.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 593 lines
117 Before committing changes to the command line parameters,
118 <command>jedit.exe</command> validates the paths for the Java
119 and jEdit targets as well as the working directory. It will complain if
120 the paths are invalid. It will not validate command line options, but it
121 will warn you if it finds the <userinput>-noserver</userinput> option
TagsOptionsPanel.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 527 lines
✨ Summary
This Java code defines a GUI component for managing tag index files, which are used to store file paths and their corresponding tags. The component allows users to add, remove, and edit tag index files, as well as enable/disable individual files. It also updates the UI in response to changes made by the user.
This Java code defines a GUI component for managing tag index files, which are used to store file paths and their corresponding tags. The component allows users to add, remove, and edit tag index files, as well as enable/disable individual files. It also updates the UI in response to changes made by the user.
175 searchAllFilesCheckBox_ = new JCheckBox(jEdit.getProperty(
176 "options.tags.tag-search-all-files.label"));
177 searchAllFilesCheckBox_.setSelected(Tags.getSearchAllTagFiles());
178 addComponent(searchAllFilesCheckBox_);
201 searchInParentDirs_ = new JCheckBox(jEdit.getProperty(
202 "options.tags.tags-search-parent-dirs.label"));
203 searchInParentDirs_.setSelected(Tags.getSearchInParentDirs());
204 addComponent(searchInParentDirs_);
211 pane_ = new JScrollPane(table_, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
212 JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
213 table_.getSelectionModel().addListSelectionListener(listSelectionListener_);
214 table_.setPreferredScrollableViewportSize(new Dimension(250, 110));
215 TableColumnModel columnModel = table_.getColumnModel();
actions.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 45 lines
ImportDialog.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 270 lines
✨ Summary
This Java code creates a dialog box for importing data into a version control system, specifically Subversion (SVN). The dialog allows users to input the URL of the SVN repository, the local directory to import from, and their username and password. Once entered, the user can click “OK” to generate a CopyData
object containing the necessary information for importing the data into the SVN repository.
This Java code creates a dialog box for importing data into a version control system, specifically Subversion (SVN). The dialog allows users to input the URL of the SVN repository, the local directory to import from, and their username and password. Once entered, the user can click “OK” to generate a CopyData
object containing the necessary information for importing the data into the SVN repository.
MutableFilterOptions.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 129 lines
✨ Summary
This Java class, MutableFilterOptions
, represents filter options for JBrowse. It provides a way to customize which types of information are displayed in a graphical representation. The class has boolean fields for each type of information and corresponding getter and setter methods. It also includes methods for setting the visibility index for top-level and member elements.
This Java class, MutableFilterOptions
, represents filter options for JBrowse. It provides a way to customize which types of information are displayed in a graphical representation. The class has boolean fields for each type of information and corresponding getter and setter methods. It also includes methods for setting the visibility index for top-level and member elements.
45 public boolean equals(Object o) {
46 MutableFilterOptions fo = (MutableFilterOptions)o;
47 return showImports == fo.getShowImports() &&
48 showFields == fo.getShowFields() &&
49 showThrows == fo.getShowThrows() &&
50 showVariables == fo.getShowVariables() &&
51 showPrimitives == fo.getShowPrimitives() &&
52 showInitializers == fo.getShowInitializers() &&
53 showGeneralizations == fo.getShowGeneralizations() &&
54 topLevelVisIndex == fo.getTopLevelVisIndex() &&
55 memberVisIndex == fo.getMemberVisIndex();
59 public final boolean getShowImports() { return showImports; }
60 public final boolean getShowFields() { return showFields; }
description.html
(https://freespeech.svn.sourceforge.net/svnroot/freespeech)
HTML · 530 lines
✨ Summary
This is a technical documentation of an acoustic speech recognition system, written in HTML format. It outlines the system’s components, including data collection, front-end processing, decoding, and integration with audio servers. The document also includes a to-do list for future development and maintenance tasks.
This is a technical documentation of an acoustic speech recognition system, written in HTML format. It outlines the system’s components, including data collection, front-end processing, decoding, and integration with audio servers. The document also includes a to-do list for future development and maintenance tasks.
PluginManagerProgress.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 189 lines
✨ Summary
This Java code creates a dialog window that displays the progress of plugin downloads. It uses a separate thread to perform the download operations in the background, updating the progress bar and displaying a “stop” button to cancel the operation. When the download is complete, it closes the dialog window. The dialog is designed to be used with a plugin manager application.
This Java code creates a dialog window that displays the progress of plugin downloads. It uses a separate thread to perform the download operations in the background, updating the progress bar and displaying a “stop” button to cancel the operation. When the download is complete, it closes the dialog window. The dialog is designed to be used with a plugin manager application.
MouseOptionPane.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 154 lines
✨ Summary
This Java code defines a custom options panel for a text editor, specifically for mouse-related settings. It allows users to configure various mouse actions, such as dragging and dropping text, joining non-word characters, pasting from middle mouse button clicks, and modifying gutter click behavior. The settings are saved when the user closes the options panel.
This Java code defines a custom options panel for a text editor, specifically for mouse-related settings. It allows users to configure various mouse actions, such as dragging and dropping text, joining non-word characters, pasting from middle mouse button clicks, and modifying gutter click behavior. The settings are saved when the user closes the options panel.
LoginDialog.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 335 lines
✨ Summary
This Java code is a GUI application for managing FTP connections and private keys. It allows users to input host, user, and password information, as well as select a private key file. The application checks if a private key file exists for each user-host combination and provides a button to select a new private key file.
This Java code is a GUI application for managing FTP connections and private keys. It allows users to input host, user, and password information, as well as select a private key file. The application checks if a private key file exists for each user-host combination and provides a button to select a new private key file.
194 public void actionPerformed(ActionEvent evt)
195 {
196 Object source = evt.getSource();
197 if(source == ok)
198 ok();
317 if(returnVal == JFileChooser.APPROVE_OPTION) {
318 try{
319 privateKeyField.setText(chooser.getSelectedFile().getCanonicalPath());
320 } catch(java.io.IOException err) {
321 // Might be nice to pop this up
LCMOptions.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 135 lines
✨ Summary
This Java code defines a plugin options pane for a text editor, specifically for managing dirty line providers. It allows users to select a provider from a dropdown list and view its specific options in a panel. The selected provider’s options are saved when the user clicks “Save”. The code uses a combination of Swing components and service management to interact with the text editor.
This Java code defines a plugin options pane for a text editor, specifically for managing dirty line providers. It allows users to select a provider from a dropdown list and view its specific options in a panel. The selected provider’s options are saved when the user clicks “Save”. The code uses a combination of Swing components and service management to interact with the text editor.
52 protected void _init()
53 {
54 String [] services = ServiceManager.getServiceNames(
55 DirtyLineProvider.class.getCanonicalName());
56 provider = new JComboBox(services);
82 if (currentPanel != null)
83 currentPanel.setVisible(false);
84 int providerIndex = provider.getSelectedIndex();
85 DirtyLineProviderOptions opts = providerOptions[providerIndex];
86 if (opts == null)
87 {
88 String selectedName = provider.getSelectedItem().toString();
89 DirtyLineProvider selProvider= (DirtyLineProvider)
90 ServiceManager.getService(
ova.html
(http://flowplayer-core.googlecode.com/svn/)
HTML · 121 lines
✨ Summary
This HTML code sets up a basic Flowplayer video player with various plugins and settings, such as auto-playing videos, controls, and fullscreen toggle functionality. It also includes custom plugins like SMIL and OVA for handling video metadata and ads. The code is designed to play a specific video from a URL and provides options for controlling the playback experience.
This HTML code sets up a basic Flowplayer video player with various plugins and settings, such as auto-playing videos, controls, and fullscreen toggle functionality. It also includes custom plugins like SMIL and OVA for handling video metadata and ads. The code is designed to play a specific video from a URL and provides options for controlling the playback experience.
109 does not affect on Flowplayer functionality
110 <button type="button" onclick="info($f()._api().fp_getVersion());">get version</button>
111 <button type="button" onclick="info($f().getStatus().time);">show time3</button>
112 <button type="button" onclick="info($f().getState());">get state</button>
XQueryGUI.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 705 lines
✨ Summary
This Java code is part of an XQuery adapter for the JEdit text editor. It provides a way to interact with XQuery queries, including evaluating expressions, handling performance output, and accessing JEdit properties. The code uses JEdit’s built-in functionality without importing it directly into the adapter, allowing adapters to be written independently.
This Java code is part of an XQuery adapter for the JEdit text editor. It provides a way to interact with XQuery queries, including evaluating expressions, handling performance output, and accessing JEdit properties. The code uses JEdit’s built-in functionality without importing it directly into the adapter, allowing adapters to be written independently.
402 ErrorSource.registerErrorSource(errorSource);
403 errorSource.addError(new DefaultErrorSource.DefaultError(errorSource, ErrorSource.ERROR, getXQueryPath(), ae.getLine(),
404 ae.getStart(), ae.getEnd() ,ae.getMessage()));
405 //ae.printStackTrace();
406 } catch (AdapterException ae) {
441 */
442 private void saveInputSettings() {
443 jEdit.setProperty("xquery.selectXmlInput.last-source", inputPanel.browsePanel.getSourceFieldText());
444 jEdit.setProperty("xquery.selectBaseUriInput.last-source", inputPanel.uriSelectionPanel.getSourceFieldText());
445 jEdit.setProperty("xquery.selectXQueryInput.last-source", queryPanel.browsePanel.getSourceFieldText());
446 }
496 {
497 String uri = "";
498 uri = inputPanel.uriSelectionPanel.getSourceFieldText();
499 if (uri.trim().equals(jEdit.getProperty("xquery.selectBaseUriInput.prompt").trim())) {
500 return "";
SessionChanged.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 49 lines
✨ Summary
This Java class, SessionChanged
, represents an edit bus message that notifies of a session change. It extends another class, SessionMessage
, and takes four parameters in its constructor: the source component, old and new sessions, and the current session. The class provides a method to retrieve the current session.
This Java class, SessionChanged
, represents an edit bus message that notifies of a session change. It extends another class, SessionMessage
, and takes four parameters in its constructor: the source component, old and new sessions, and the current session. The class provides a method to retrieve the current session.
TemplateDockable.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 233 lines
✨ Summary
This Java code defines a TemplateDockable
class that extends JPanel
. It creates a dockable template tree component with features like mouse click actions, keyboard shortcuts, and edit functionality. The component interacts with the jEdit text editor and provides options for editing templates, setting accelerators, and reloading templates.
This Java code defines a TemplateDockable
class that extends JPanel
. It creates a dockable template tree component with features like mouse click actions, keyboard shortcuts, and edit functionality. The component interacts with the jEdit text editor and provides options for editing templates, setting accelerators, and reloading templates.
103 {
104 TemplatesPlugin plugin = (TemplatesPlugin) jEdit.getPlugin("templates.TemplatesPlugin");
105 plugin.processTemplate(templates.getSelectedTemplate(), view, view.getTextArea());
106 view.getEditPane().getTextArea().requestFocus();
107 }
166 if ((evt.getModifiers() & MouseEvent.BUTTON1_MASK) != 0 && evt.getClickCount() == 1) {
167 TreePath path = templates.getPathForLocation(evt.getX(), evt.getY());
168 if (templates.isLastPathComponentATemplate(path) && path.equals(templates.getSelectionPath())) {
169 processSelectedTemplate();
170 }
184 } else if (EDIT.equals(evt.getActionCommand())) {
185 jEdit.openFile(view, MiscUtilities.concatPath(TemplatesPlugin.getTemplateDir(),
186 templates.getSelectedTemplate()));
187 } else if (SET_ACCELERATOR.equals(evt.getActionCommand())) {
188 String mode =
Cut_Lines.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 42 lines
seeds.txt (http://softkeyboard.googlecode.com/svn/) Unknown · 94 lines
42 com.menny.android.anysoftkeyboard.dictionary.BinaryDictionary: void closeNative(int)
43 com.menny.android.anysoftkeyboard.dictionary.BinaryDictionary: boolean isValidWordNative(int,char[],int)
44 com.menny.android.anysoftkeyboard.dictionary.BinaryDictionary: int getSuggestionsNative(int,int[],int,char[],int[],int,int,int,int)
45 com.menny.android.anysoftkeyboard.AnyKeyboardViewDonut
46 com.menny.android.anysoftkeyboard.AnyKeyboardViewDonut: AnyKeyboardViewDonut(android.content.Context,android.util.AttributeSet)
TigerLabeler.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 787 lines
✨ Summary
This Java code is part of a class that generates HTML labels for Java syntax elements, such as methods, fields, and classes. It takes into account various options to customize the appearance of these labels, including icons, formatting, and alignment. The output is an HTML string that can be used in a graphical user interface or other application.
This Java code is part of a class that generates HTML labels for Java syntax elements, such as methods, fields, and classes. It takes into account various options to customize the appearance of these labels, including icons, formatting, and alignment. The output is an HTML string that can be used in a graphical user interface or other application.
557 if (options.getShowLineNum()) {
558 sb.append(tn.getStartLocation().line).append(": "); //.append(tn.getStartLocation().column).append("::").append( tn.getEndLocation().line ).append( ": " ).append(tn.getEndLocation().column);
559 }
586 // which seems like an odd choice of words to me. I was expecting icons,
587 // but I think it means more like "show keywords beside icons"
588 if (options.getShowIconKeywords()) {
589 switch (tn.getOrdinal()) {
590 case TigerNode.CLASS:
666 if (options.getShowArguments()) {
667 if (tn.getOrdinal() == TigerNode.CONSTRUCTOR) {
668 sb.append('(').append(((ConstructorNode) tn).getFormalParams(options.getShowArgumentNames(), options.getTypeIsSuffixed(), options.getShowMiscMod(), options.getShowTypeArgs())).append(')');
669 }
670 else if (tn.getOrdinal() == TigerNode.METHOD || tn.getOrdinal() == TigerNode.BNF_PRODUCTION) {
671 sb.append('(').append(((MethodNode) tn).getFormalParams(options.getShowArgumentNames(), options.getTypeIsSuffixed(), options.getShowMiscMod(), options.getShowTypeArgs())).append(')');
672 }
673 }
MiscUtilities.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 1332 lines
✨ Summary
This Java code is part of a file system utility, specifically handling environment variable expansion and compression. It maps certain directory prefixes to their corresponding environment variables, compressing paths by replacing them with these variables. The VarCompressor
class uses a reverse mapping to quickly replace paths with their prefixed versions, allowing for efficient expansion in the future.
This Java code is part of a file system utility, specifically handling environment variable expansion and compression. It maps certain directory prefixes to their corresponding environment variables, compressing paths by replacing them with these variables. The VarCompressor
class uses a reverse mapping to quickly replace paths with their prefixed versions, allowing for efficient expansion in the future.
720 encoding = System.getProperty("file.encoding");
721 else
722 encoding = buffer.getStringProperty(JEditBuffer.ENCODING);
723 boolean gzipped = false;
978 * <li><i>java.home</i>/lib/. In this case, tools.jar is added to
979 * jEdit's list of known jars using jEdit.addPluginJAR(),
980 * so that it gets loaded through JARClassLoader.
981 * </ol><p>
982 *
SyntaxHiliteOptionPane.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 306 lines
✨ Summary
This Java code defines a GUI option pane for syntax highlighting settings, allowing users to customize font colors and styles for different programming languages. It uses a table with two columns to display options and their corresponding values, which are stored in a configuration file. The user can select new options and save them to the configuration file.
This Java code defines a GUI option pane for syntax highlighting settings, allowing users to customize font colors and styles for different programming languages. It uses a table with two columns to display options and their corresponding values, which are stored in a configuration file. The user can select new options and save them to the configuration file.
124 SyntaxHiliteOptionPane.this);
125 if (dialog != null)
126 style = new StyleEditor(dialog, current, token).getStyle();
127 else
128 {
129 View view = GUIUtilities.getView(SyntaxHiliteOptionPane.this);
130 style = new StyleEditor(view, current, token).getStyle();
131 }
132 if(style != null)
223 .get(i);
224 jEdit.setProperty(ch.property,
225 GUIUtilities.getStyleString(ch.style));
226 }
227 } //}}}
DefaultInputHandler.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 246 lines
✨ Summary
This Java class, DefaultInputHandler
, is a default implementation of an input handler for a text editor. It maps keystrokes to actions and inserts key typed events into the text area. It handles various keyboard inputs, including modifier keys, and invokes actions based on user input. The class also manages key bindings and prefix keys, providing a basic framework for handling user input in a text editing application.
This Java class, DefaultInputHandler
, is a default implementation of an input handler for a text editor. It maps keystrokes to actions and inserts key typed events into the text area. It handles various keyboard inputs, including modifier keys, and invokes actions based on user input. The class also manages key bindings and prefix keys, providing a basic framework for handling user input in a text editing application.
94 public void setCurrentBindings(Hashtable bindings)
95 {
96 view.getStatus().setMessage((String)bindings.get(PREFIX_STR));
97 currentBindings = bindings;
98 } //}}}
140 {
141 readNextChar = null;
142 view.getStatus().setMessage(null);
143 }
144 }
216 } //}}}
218 //{{{ getSymbolicModifierName() method
219 /**
220 * Returns a the symbolic modifier name for the specified Java modifier
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.
395 return caret;
397 return getSelection(0).getStart();
398 } //}}}
446 public final int getSelectionEnd()
447 {
448 return getSelectionCount() == 1 ? getSelection(0).getEnd() : caret;
450 } //}}}
485 public final void setSelectionEnd(int selectionEnd)
486 {
487 int selectionStart = getSelectionCount() == 1 ? getSelection(0).getStart() : caret;
488 setSelection(new Selection.Range(selectionStart, selectionEnd));
489 moveCaretPosition(selectionEnd,true);
CMakeLists.txt
(git://github.com/hpcc-systems/HPCC-Platform.git)
CMake · 53 lines
✨ Summary
This CMake code defines a build configuration for an executable named updtdalienv
. It specifies the source files, includes necessary directories and libraries, and sets up the build process to create an executable from the specified sources. The resulting executable is installed in a specific directory with its runtime destination set accordingly.
This CMake code defines a build configuration for an executable named updtdalienv
. It specifies the source files, includes necessary directories and libraries, and sets up the build process to create an executable from the specified sources. The resulting executable is installed in a specific directory with its runtime destination set accordingly.
GeneralOptions.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 259 lines
✨ Summary
This Java class, GeneralOptions
, represents general options for a JBrowse application. It stores and manages various settings, such as displaying the status bar, automatic parsing, sorting, filter options, display options, and custom style settings. The class provides methods to load and save these options from/to a PropertyAccessor
object.
This Java class, GeneralOptions
, represents general options for a JBrowse application. It stores and manages various settings, such as displaying the status bar, automatic parsing, sorting, filter options, display options, and custom style settings. The class provides methods to load and save these options from/to a PropertyAccessor
object.
158 // General Options
159 //----------------
160 props.setBooleanProperty("sidekick.java.showStatusBar", getShowStatusBar());
161 props.setBooleanProperty("sidekick.java.automaticParse", getAutomaticParse());
162 props.setBooleanProperty("sidekick.java.sort", getSort());
166 //---------------
167 props.setBooleanProperty("sidekick.java.showAttr",
168 filterOpt.getShowFields());
169 props.setBooleanProperty("sidekick.java.showPrimAttr",
170 filterOpt.getShowPrimitives());
171 props.setBooleanProperty("sidekick.java.showVariables",
172 filterOpt.getShowVariables());
173 props.setBooleanProperty("sidekick.java.showInitializers",
174 filterOpt.getShowInitializers());
plugin-implement.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 1130 lines
701 if(this.filename == null || this.filename.length() == 0)
702 {
703 this.filename = new String(jEdit.getSettingsDirectory()
704 + File.separator + "qn.txt");
705 jEdit.setProperty(QuickNotepadPlugin.OPTION_PREFIX
967 + "font", _font.getFamily());
968 jEdit.setProperty(QuickNotepadPlugin.OPTION_PREFIX
969 + "fontsize", String.valueOf(_font.getSize()));
970 jEdit.setProperty(QuickNotepadPlugin.OPTION_PREFIX
971 + "fontstyle", String.valueOf(_font.getStyle()));
Delete.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 69 lines
✨ Summary
This Java class handles the deletion of items from a Subversion (SVN) repository. When an item is selected and the “Delete” action is performed, it extracts the paths to the selected items, creates a DeleteData
object with these paths, and then calls the DeleteAction
to perform the actual deletion.
This Java class handles the deletion of items from a Subversion (SVN) repository. When an item is selected and the “Delete” action is performed, it extracts the paths to the selected items, creates a DeleteData
object with these paths, and then calls the DeleteAction
to perform the actual deletion.
ExtendedGridLayout.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 1225 lines
✨ Summary
This Java class is a layout manager for components in a graphical user interface (GUI). It determines how to arrange and size components within a container, such as a panel or frame. The class takes several parameters, including horizontal and vertical gaps, border distances, and a comptable flag, to customize its behavior.
This Java class is a layout manager for components in a graphical user interface (GUI). It determines how to arrange and size components within a container, such as a panel or frame. The class takes several parameters, including horizontal and vertical gaps, border distances, and a comptable flag, to customize its behavior.
175 /**
176 * An enum to tell the {@code getSize()} method which size is requested.
177 *
178 * @see #getSize()
351 Set<ExtendedGridLayoutConstraints> rowspans = new HashSet<ExtendedGridLayoutConstraints>();
352 Dimension gridSize = buildGrid(parent,gridRows,colspans,rowspans);
353 return getSize(parent,LayoutSize.MINIMUM,false,gridSize,gridRows,colspans,rowspans,new int[0][0]);
354 }
355 }
372 Set<ExtendedGridLayoutConstraints> rowspans = new HashSet<ExtendedGridLayoutConstraints>();
373 Dimension gridSize = buildGrid(parent,gridRows,colspans,rowspans);
374 return getSize(parent,LayoutSize.PREFERRED,false,gridSize,gridRows,colspans,rowspans,new int[0][0]);
375 }
376 }
workspaceEditor.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 125 lines
41 this.returnVal = chooser.showOpenDialog( bsh.system.desktop.pane );
42 if (returnVal == JFileChooser.APPROVE_OPTION) {
43 this.file = chooser.getSelectedFile();
44 this.reader=new FileReader( file );
45 this.ca=new char [file.length()];
55 this.returnVal = chooser.showSaveDialog( bsh.system.desktop.pane );
56 if (returnVal == JFileChooser.APPROVE_OPTION) {
57 this.file = chooser.getSelectedFile();
58 this.writer=new FileWriter( file );
59 writer.write( textarea.getText().toCharArray() );
TarEntry.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 730 lines
✨ Summary
This Java code is part of a Tar ( Tape Archive) file parser. It defines classes and methods to parse, create, and manipulate TarHeader information, which represents metadata about files in a Tar archive. The code handles various aspects of Tar file structure, including file names, permissions, ownership, timestamps, and checksums.
This Java code is part of a Tar ( Tape Archive) file parser. It defines classes and methods to parse, create, and manipulate TarHeader information, which represents metadata about files in a Tar archive. The code handles various aspects of Tar file structure, including file names, permissions, ownership, timestamps, and checksums.
ShortcutPrefixActiveEvent.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 145 lines
✨ Summary
This Java class, ShortcutPrefixActiveEvent
, is an event class that notifies listeners when a shortcut prefix becomes active or inactive in a text editor. It extends ChangeEvent
and provides methods to add and remove listener objects, as well as fire the event with the current state of the shortcut prefix.
This Java class, ShortcutPrefixActiveEvent
, is an event class that notifies listeners when a shortcut prefix becomes active or inactive in a text editor. It extends ChangeEvent
and provides methods to add and remove listener objects, as well as fire the event with the current state of the shortcut prefix.
SearchAndReplace.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 1392 lines
✨ Summary
This Java code is part of a text replacement engine, likely used for editing and formatting text. It provides methods to replace occurrences of a search string with a replacement string, using various replacement strategies such as regular expressions, literal strings, and BeanShell scripting. The code also handles cases like case sensitivity, line breaks, and column offsets.
This Java code is part of a text replacement engine, likely used for editing and formatting text. It provides methods to replace occurrences of a search string with a replacement string, using various replacement strategies such as regular expressions, literal strings, and BeanShell scripting. The code also handles cases like case sensitivity, line breaks, and column offsets.
CBListCellRenderer.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 176 lines
✨ Summary
This Java code defines a custom JListCellRenderer
class, CBListCellRenderer
, which displays information about buffers in a file system view. It renders the buffer name with its assigned color and path, truncated to fit within the cell width, with an ellipsis if necessary. The renderer also indicates whether the buffer is saved or has unsaved changes, and highlights selected buffers in bold font.
This Java code defines a custom JListCellRenderer
class, CBListCellRenderer
, which displays information about buffers in a file system view. It renders the buffer name with its assigned color and path, truncated to fit within the cell width, with an ellipsis if necessary. The renderer also indicates whether the buffer is saved or has unsaved changes, and highlights selected buffers in bold font.
85 Font f=UIManager.getFont("Tree.font");
86 if(selected) f=f.deriveFont(Font.BOLD);
87 Font fi=f.deriveFont((selected)?Font.BOLD|Font.ITALIC:Font.ITALIC,f.getSize()-1);
88 FontRenderContext frc=new FontRenderContext(null,true,false);
91 int baseline=2+(int)Math.ceil(lm.getAscent());
93 Rectangle2D r2d=f.getStringBounds(" ",frc);
94 int spacesWidth=(int)Math.ceil(r2d.getWidth());
95 r2d=fi.getStringBounds("...",frc);
103 if(idx>0) path=path.substring(0,idx);
105 r2d=f.getStringBounds(name,frc);
106 int nl=(int)Math.ceil(r2d.getWidth());
107 r2d=fi.getStringBounds(path,frc);
PHPItem.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 65 lines
✨ Summary
This is a Java interface definition for a PHPItem, which represents an item in a PHP project. It defines constants and methods to describe the type, name, location, and other properties of the item. The interface provides a way to access and manipulate this information, likely used in a parser or editor for PHP projects.
This is a Java interface definition for a PHPItem, which represents an item in a PHP project. It defines constants and methods to describe the type, name, location, and other properties of the item. The interface provides a way to access and manipulate this information, likely used in a parser or editor for PHP projects.
StructureMatcher.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 240 lines
✨ Summary
This Java code defines an interface StructureMatcher
for matching parts of a source file’s structure, such as brackets. It provides default implementations for bracket matching and highlights the matched structure in a text area. The interface also includes methods for selecting from the caret to the matching structure element.
This Java code defines an interface StructureMatcher
for matching parts of a source file’s structure, such as brackets. It provides default implementations for bracket matching and highlights the matched structure in a text area. The interface also includes methods for selecting from the caret to the matching structure element.
142 return;
144 Match match = textArea.getStructureMatch();
145 if(match != null)
146 {
154 int x1, x2;
156 int matchStartLine = textArea.getScreenLineOfOffset(
157 match.start);
158 int matchEndLine = textArea.getScreenLineOfOffset(
165 else
166 {
167 x1 = textArea.getScreenLineStartOffset(
168 screenLine);
169 }
SimpleCharStream.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 440 lines
✨ Summary
This Java class represents a text input buffer with line and column numbers, tokenization, and string manipulation capabilities. It provides methods for initializing the buffer, reading and writing strings, adjusting line and column numbers, and handling tokenization. The class also includes features like image extraction and suffix retrieval. It appears to be designed for use in a text editor or similar application.
This Java class represents a text input buffer with line and column numbers, tokenization, and string manipulation capabilities. It provides methods for initializing the buffer, reading and writing strings, adjusting line and column numbers, and handling tokenization. The class also includes features like image extraction and suffix retrieval. It appears to be designed for use in a text editor or similar application.
ExportDialog.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 285 lines
✨ Summary
This Java code creates a graphical user interface (GUI) for exporting data from an application to a file. The GUI allows users to select files, choose export options such as recursive and revision selection, and specify end-of-line style. Once options are set, the user can click “Export” to save the data to a file.
This Java code creates a graphical user interface (GUI) for exporting data from an application to a file. The GUI allows users to select files, choose export options such as recursive and revision selection, and specify end-of-line style. Once options are set, the user can click “Export” to save the data to a file.
69 throw new IllegalArgumentException( "data cannot be null" );
70 }
71 if ( data.getSourceFiles() == null && data.getSourceURLs() == null ) {
72 throw new IllegalArgumentException( "no source file(s) to copy" );
73 }
83 // source for export
84 List paths;
85 if ( data.getSourceFiles() != null ) {
86 paths = data.getSourceFiles();
87 }
88 else {
89 paths = data.getSourceURLs();
90 }
126 // revision selection panels
127 revision_panel = new RevisionSelectionPanel( "Export from this revision:", SwingConstants.VERTICAL, data.getSourceURLs() == null );
128 peg_revision_panel = new RevisionSelectionPanel( "Using this peg revision:", SwingConstants.VERTICAL, false, false, true, false, false );
MergeResultsPanel.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 150 lines
✨ Summary
This Java code creates a graphical user interface (GUI) panel to display the results of a dry-run merge operation in a Subversion version control system. It shows the files that have conflicts, additions, deletions, merges, skips, and updates, with collapsible nodes for each category. The GUI is designed to be used within the JEdit text editor.
This Java code creates a graphical user interface (GUI) panel to display the results of a dry-run merge operation in a Subversion version control system. It shows the files that have conflicts, additions, deletions, merges, skips, and updates, with collapsible nodes for each category. The GUI is designed to be used within the JEdit text editor.
BufferPrinter1_4.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 195 lines
✨ Summary
This Java code is a printer utility for the JEdit text editor. It allows users to print documents with customizable settings, such as page layout, orientation, and color mode. The code reads and writes printer settings from a file, enabling users to save their preferred printing options. It also provides methods for printing individual pages or the entire document.
This Java code is a printer utility for the JEdit text editor. It allows users to print documents with customizable settings, such as page layout, orientation, and color mode. The code reads and writes printer settings from a file, enabling users to save their preferred printing options. It also provides methods for printing individual pages or the entire document.
SimpleTutorialEuml2.cpp (http://hadesmem.googlecode.com/svn/trunk/) text · 0 lines
LineElement.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 112 lines
✨ Summary
This Java class, LineElement
, represents a single line of text in a document. It provides methods to access information about the line, such as its start and end offsets, and is used for backwards compatibility with an older version of the jEdit 3.2.2-style document model. The class implements the Element
interface and has private members to store the buffer and line number associated with it.
This Java class, LineElement
, represents a single line of text in a document. It provides methods to access information about the line, such as its start and end offsets, and is used for backwards compatibility with an older version of the jEdit 3.2.2-style document model. The class implements the Element
interface and has private members to store the buffer and line number associated with it.
EnhancedButton.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 103 lines
✨ Summary
This Java class, EnhancedButton, extends RolloverButton to create a custom toolbar button with enhanced functionality. It sets up an action listener and mouse handler to display a message when the button is hovered over, and resets the message when the mouse is released. The button’s enabled state is also determined by its associated action context.
This Java class, EnhancedButton, extends RolloverButton to create a custom toolbar button with enhanced functionality. It sets up an action listener and mouse handler to display a message when the button is hovered over, and resets the message when the mouse is released. The button’s enabled state is also determined by its associated action context.
73 if(msgSet)
74 {
75 GUIUtilities.getView((Component)evt.getSource())
76 .getStatus().setMessage(null);
84 if(msg != null)
85 {
86 GUIUtilities.getView((Component)evt.getSource())
87 .getStatus().setMessage(msg);
94 if(msgSet)
95 {
96 GUIUtilities.getView((Component)evt.getSource())
97 .getStatus().setMessage(null);
IndentingTransformer.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 543 lines
✨ Summary
This Java code is a parser for XML documents, specifically handling the parsing of XML declarations, processing instructions, comments, and text content. It reads an input XML string, tokenizes it into individual elements, and then writes the parsed XML to an output writer. The parser also handles various edge cases such as closing tags, doc types, and processing instructions.
This Java code is a parser for XML documents, specifically handling the parsing of XML declarations, processing instructions, comments, and text content. It reads an input XML string, tokenizes it into individual elements, and then writes the parsed XML to an output writer. The parser also handles various edge cases such as closing tags, doc types, and processing instructions.
242 private int writeElement( int start ) throws IOException, SAXException {
243 int end = getStartTagEnd( start );
244 writeRemaining( start, end );
281 * Ignores '>' characters that are inside of attribute values.
282 */
283 private int getStartTagEnd( int start ) {
284 int end = -1;
285 int index = start;
VFSFileChooserDialog.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 596 lines
✨ Summary
This Java code is a part of a file manager application, specifically a dialog box for selecting files. It handles user input, updates the file name field, and checks if the selected file exists before proceeding with further actions. The dialog box also displays a progress bar while waiting for the file system to respond.
This Java code is a part of a file manager application, specifically a dialog box for selecting files. It handles user input, updates the file name field, and checks if the selected file exists before proceeding with further actions. The dialog box also displays a progress bar while waiting for the file system to respond.
128 public void ok()
129 {
130 VFSFile[] files = browser.getSelectedFiles();
131 filename = filenameField.getText();
132 boolean choosingDir = (browser.getMode() ==
223 } //}}}
225 //{{{ getSelectedFiles() method
226 public String[] getSelectedFiles()
231 if(browser.getMode() == VFSBrowser.CHOOSE_DIRECTORY_DIALOG)
232 {
233 if(browser.getSelectedFiles().length > 0)
234 {
235 return getSelectedFiles(VFSFile.DIRECTORY,
246 }
247 else
248 return getSelectedFiles(VFSFile.FILE,VFSFile.FILE);
249 } //}}}
CodeGeneratorCPP.pm (https://bitbucket.org/ultra_iter/qt-vtl.git) Perl · 961 lines
205 # FIXME: We don't generate bindings for SVG related interfaces yet
206 return 1 if $typeInfo->signature->name =~ /getSVGDocument/;
208 return 1 if $typeInfo->signature->name =~ /Constructor/;
220 # FIXME: We don't generate bindings for SVG related interfaces yet
221 return 1 if $typeInfo->signature->name =~ /getSVGDocument/;
223 return 1 if $typeInfo->signature->name =~ /Constructor/;
api-objects.txt (https://bitbucket.org/genuine_/simplifire.idascope.git) Plain Text · 322 lines
42 IDAscope.idascope.data IDAscope.idascope.data-module.html
43 IDAscope.idascope.data.__package__ IDAscope.idascope.data-module.html#__package__
44 IDAscope.idascope.widgets IDAscope.idascope.widgets-module.html
45 IDAscope.idascope.widgets.__package__ IDAscope.idascope.widgets-module.html#__package__
46 IDAscope.idascope.widgets.BoundsEditor IDAscope.idascope.widgets.BoundsEditor-module.html
47 IDAscope.idascope.widgets.CryptoIdentificationWidget IDAscope.idascope.widgets.CryptoIdentificationWidget-module.html
48 IDAscope.idascope.widgets.FunctionInspectionWidget IDAscope.idascope.widgets.FunctionInspectionWidget-module.html
49 IDAscope.idascope.widgets.NumberQTableWidgetItem IDAscope.idascope.widgets.NumberQTableWidgetItem-module.html
50 IDAscope.idascope.widgets.RangeSlider IDAscope.idascope.widgets.RangeSlider-module.html
51 IDAscope.idascope.widgets.WinApiWidget IDAscope.idascope.widgets.WinApiWidget-module.html
69 IDAscope.IDAscope.IDAscopeForm.setTabFocus IDAscope.IDAscope.IDAscopeForm-class.html#setTabFocus
70 IDAscope.IDAscope.IDAscopeForm.setup_shared_modules IDAscope.IDAscope.IDAscopeForm-class.html#setup_shared_modules
71 IDAscope.IDAscope.IDAscopeForm.setup_widgets IDAscope.IDAscope.IDAscopeForm-class.html#setup_widgets
72 IDAscope.IDAscope.IDAscopeForm.OnCreate IDAscope.IDAscope.IDAscopeForm-class.html#OnCreate
73 IDAscope.IDAscope.IDAscopeForm.__init__ IDAscope.IDAscope.IDAscopeForm-class.html#__init__
RESearchMatcher.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 180 lines
✨ Summary
This Java class, RESearchMatcher
, implements a regular expression string matcher for the jEdit text editor. It allows users to search and replace text in a buffer using Perl5 syntax with character classes enabled. The class provides methods for searching, replacing, and substituting text, as well as handling special cases such as matching from the start or end of the buffer.
This Java class, RESearchMatcher
, implements a regular expression string matcher for the jEdit text editor. It allows users to search and replace text in a buffer using Perl5 syntax with character classes enabled. The class provides methods for searching, replacing, and substituting text, as well as handling special cases such as matching from the start or end of the buffer.
Type.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 694 lines
✨ Summary
This Java class appears to be a part of the Java Virtual Machine (JVM) implementation, specifically for handling primitive types and method invocation. It provides methods for computing the size of values of different types, adapting JVM instruction opcodes to these types, and determining the opcode for specific instructions like IALOAD
or IREM
.
This Java class appears to be a part of the Java Virtual Machine (JVM) implementation, specifically for handling primitive types and method invocation. It provides methods for computing the size of values of different types, adapting JVM instruction opcodes to these types, and determining the opcode for specific instructions like IALOAD
or IREM
.
Endpoint.java (https://bitbucket.org/nbargnesi/idea.git) Java · 420 lines
Kconfig (http://omnia2droid.googlecode.com/svn/trunk/) Unknown · 954 lines
557 most cases you will need to specify the root device here.
559 config EXTRA_TARGETS
560 string "Additional default image types"
561 help
562 List additional targets to be built by the bootwrapper here (separated
563 by spaces). This is useful for targets that depend of device tree
564 files in the .dts directory.
566 Targets in this list will be build as part of the default build
567 target, or when the user does a 'make zImage' or a
568 'make zImage.initrd'.
Constants.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 274 lines
✨ Summary
This is a table of values for the visitInsn
method, which appears to be part of the Java Virtual Machine (JVM) specification. It maps integer codes to their corresponding bytecode instructions, providing a reference for developers working with JVMs. The codes represent various operations, such as arithmetic, comparison, and control flow instructions.
This is a table of values for the visitInsn
method, which appears to be part of the Java Virtual Machine (JVM) specification. It maps integer codes to their corresponding bytecode instructions, providing a reference for developers working with JVMs. The codes represent various operations, such as arithmetic, comparison, and control flow instructions.
Greedy_Delete.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 88 lines
SimplifiableAnnotation.html (https://bitbucket.org/nbargnesi/idea.git) HTML · 10 lines
README.txt (http://angel-engine.googlecode.com/svn/trunk/) Plain Text · 52 lines
29 and include the FTGL headers located in the src directory. Your project
30 will also need Freetype and OpenGL. For your convinience a pkg-config
31 metadata file has been included (ftgl.pc) and gets installed in
32 <libdir>/pkgconfig, where pkg-config should be able to find it. In
33 order to take advantage of this, just include something like this in
MainViewModel.cs
(https://hg01.codeplex.com/mvvmlight)
C# · 75 lines
✨ Summary
This C# code defines a MainViewModel
class that exposes a single property, WelcomeTitle
, which is bound to data retrieved from an IDataService
. The view model initializes with an instance of IDataService
and uses it to fetch data when the view is loaded, updating the WelcomeTitle
property accordingly.
This C# code defines a MainViewModel
class that exposes a single property, WelcomeTitle
, which is bound to data retrieved from an IDataService
. The view model initializes with an instance of IDataService
and uses it to fetch data when the view is loaded, updating the WelcomeTitle
property accordingly.
JCompilerOptionPaneCompiler.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 234 lines
✨ Summary
This Java code defines a plugin options pane for JCompiler, a compiler plugin for jEdit, a text editor. It displays various settings and allows users to adjust them, such as debugging options, classpath settings, and output directory selection. The changes are saved when the user clicks “Save” or selects a new directory using the “Pick Directory” button.
This Java code defines a plugin options pane for JCompiler, a compiler plugin for jEdit, a text editor. It displays various settings and allows users to adjust them, such as debugging options, classpath settings, and output directory selection. The changes are saved when the user clicks “Save” or selects a new directory using the “Pick Directory” button.
158 public void actionPerformed(ActionEvent e) {
159 if (e.getSource() == pickDirectory) {
160 File file = chooseDirectory();
161 setDirectoryText(file, outputDirectory);
162 }
163 else if (e.getSource() == pickBasePathButton) {
164 File file = chooseDirectory();
165 setDirectoryText(file, basePath);
181 if (retVal == JFileChooser.APPROVE_OPTION)
182 return chooser.getSelectedFile();
183 else
184 return null;
BibTeXTablePanel.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 167 lines
✨ Summary
This Java code defines a panel for displaying and editing BibTeX entries within a LaTeX editor. It creates a table to display the entries, allows users to select multiple entries and insert them into the current document with formatting options. The panel is designed to be used in conjunction with other tools and features of the LaTeX editor.
This Java code defines a panel for displaying and editing BibTeX entries within a LaTeX editor. It creates a table to display the entries, allows users to select multiple entries and insert them into the current document with formatting options. The panel is designed to be used in conjunction with other tools and features of the LaTeX editor.
SVNInfoPanel.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 185 lines
✨ Summary
This Java code creates a graphical user interface (GUI) component that displays information about a file or directory from a version control system, such as Git. It fetches and formats various metadata, including timestamps, checksums, and conflict information, into a table for easy viewing. The GUI is designed to be compact and readable, with features like automatic row packing and mouse event handling.
This Java code creates a graphical user interface (GUI) component that displays information about a file or directory from a version control system, such as Git. It fetches and formats various metadata, including timestamps, checksums, and conflict information, into a table for easy viewing. The GUI is designed to be compact and readable, with features like automatic row packing and mouse event handling.
108 info_table_model.addRow( new String[] {jEdit.getProperty("ips.Node_Kind", "Node Kind"), jEdit.getProperty("ips.unknown", "unknown")} );
109 }
110 if ( info.getSchedule() == null && !info.isRemote() ) {
111 info_table_model.addRow( new String[] {jEdit.getProperty("ips.Schedule", "Schedule"), jEdit.getProperty("ips.normal", "normal")} );
112 }
113 else if ( !info.isRemote() ) {
114 info_table_model.addRow( new String[] {jEdit.getProperty("ips.Schedule", "Schedule"), info.getSchedule() } );
115 }
116 if ( info.getAuthor() != null ) {
IntegerArray.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 90 lines
✨ Summary
This Java class, IntegerArray
, is a simple dynamic array that stores integers and automatically grows when full. It provides methods to add elements, retrieve an element by index, get the current size, set the size, clear the array, and access the underlying array. The array’s initial size can be specified during construction or defaults to 2000 if not provided.
This Java class, IntegerArray
, is a simple dynamic array that stores integers and automatically grows when full. It provides methods to add elements, retrieve an element by index, get the current size, set the size, clear the array, and access the underlying array. The array’s initial size can be specified during construction or defaults to 2000 if not provided.
Name.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 1068 lines
✨ Summary
This Java code is part of a BeanShell interpreter, which allows users to execute dynamic Java code. It provides methods for parsing and executing compound names (e.g., “this.myMethod()”), invoking local methods, and loading commands from namespaces. The code also handles errors, exceptions, and command invocation. Its purpose is to provide a flexible and dynamic way to interact with the BeanShell interpreter.
This Java code is part of a BeanShell interpreter, which allows users to execute dynamic Java code. It provides methods for parsing and executing compound names (e.g., “this.myMethod()”), invoking local methods, and loading commands from namespaces. The code also handles errors, exceptions, and command invocation. Its purpose is to provide a flexible and dynamic way to interact with the BeanShell interpreter.
401 try {
402 if ( Interpreter.DEBUG )
403 Interpreter.debug("Name call to getStaticField, class: "
404 +clas+", field:"+field);
405 obj = Reflect.getStaticField(clas, field);
519 //throw new UtilEvalError("Redundant to call .this on This type");
521 // Allow getSuper() to through BlockNameSpace to the method's super
522 This ths = thisNameSpace.getSuper( interpreter );
526 // XXXX re-evaluate this
527 // can getSuper work by itself now?
528 // If we're a class instance and the parent is also a class instance
529 // then super means our parent.
SelectionPanel.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 109 lines
✨ Summary
This Java code defines a custom panel for selecting input sources in an XQuery editor. It includes a text field to display the current source, a browse button to select a new source, and a label with a customizable property. The panel’s behavior is controlled by its actionPerformed
method, which is declared abstract and must be implemented by subclasses.
This Java code defines a custom panel for selecting input sources in an XQuery editor. It includes a text field to display the current source, a browse button to select a new source, and a label with a customizable property. The panel’s behavior is controlled by its actionPerformed
method, which is declared abstract and must be implemented by subclasses.
TextUtilities.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 714 lines
✨ Summary
This Java code provides various string manipulation and formatting functions, including:
- String case detection (mixed, lower case, upper case, title case)
- String conversion to title case
- Line wrapping and formatting for text with a specified maximum line length
- Leading whitespace trimming and calculation
- Tokenization of strings into words
These functions can be used in various applications, such as text editing or formatting.
This Java code provides various string manipulation and formatting functions, including:
- String case detection (mixed, lower case, upper case, title case)
- String conversion to title case
- Line wrapping and formatting for text with a specified maximum line length
- Leading whitespace trimming and calculation
- Tokenization of strings into words
These functions can be used in various applications, such as text editing or formatting.
Duplicate_Lines_Above.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 70 lines
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.
ThreadSpecific.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 310 lines
quickfix.txt (https://bitbucket.org/ultra_iter/vim-qt.git) Plain Text · 1456 lines
PHPHyperlink.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 115 lines
✨ Summary
This Java class, PHPHyperlink
, implements a hyperlink functionality for a text editor. It represents a hyperlink to a PHP file and provides methods to get its start and end offsets, lines, and tooltip. When clicked, it opens the corresponding PHP file in the text editor and moves the caret position to the line where the hyperlink is located.
This Java class, PHPHyperlink
, implements a hyperlink functionality for a text editor. It represents a hyperlink to a PHP file and provides methods to get its start and end offsets, lines, and tooltip. When clicked, it opens the corresponding PHP file in the text editor and moves the caret position to the line where the hyperlink is located.
Marker.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 120 lines
✨ Summary
This Java class represents a marker in a buffer, which is a textual bookmark that can be used to navigate within a document. It has attributes such as a buffer, line number, and optional shortcut character, allowing users to quickly jump to specific locations in the text using a keyboard shortcut. The class provides methods for setting and retrieving these attributes, as well as managing cached positions.
This Java class represents a marker in a buffer, which is a textual bookmark that can be used to navigate within a document. It has attributes such as a buffer, line number, and optional shortcut character, allowing users to quickly jump to specific locations in the text using a keyboard shortcut. The class provides methods for setting and retrieving these attributes, as well as managing cached positions.
Copy_Lines.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 37 lines
ParseException.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 307 lines
✨ Summary
This Java code defines a custom exception class ParseException
that extends the built-in Exception
class. It provides additional functionality for parsing errors, including getting the error text, line number, and source file name. The class also includes methods to add escaped characters to strings and convert raw characters to their escaped versions.
This Java code defines a custom exception class ParseException
that extends the built-in Exception
class. It provides additional functionality for parsing errors, including getting the error text, line number, and source file name. The class also includes methods to add escaped characters to strings and convert raw characters to their escaped versions.
149 * "currentToken" and "expectedTokenSequences" to generate a parse
150 * error message and returns it. If this object has been created
151 * due to a parse error, and you do not catch it (it gets thrown
152 * from the parser), then this method is called during the printing
153 * of the final stack trace, and hence the correct error message
154 * gets displayed.
155 */
156 public String getMessage() {
Write_HyperSearch_Results.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 216 lines
129 else
130 sb.append("search term: ");
131 sb.append(SearchAndReplace.getSearchString());
132 sb.append(" (case ");
133 if(SearchAndReplace.getIgnoreCase())
159 {
160 result = new StringBuffer();
161 fileSet = SearchAndReplace.getSearchFileSet();
162 if(fileSet instanceof CurrentBufferSet)
163 result.append("current buffer");
TagStack.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 298 lines
✨ Summary
This Java code defines a GUI component, TagStack
, which displays a list of stack positions for a text editor. It allows users to navigate through these positions by clicking on them, and provides options to remove, pop, or clear the current position. The component also includes a popup menu with actions to perform on the selected position.
This Java code defines a GUI component, TagStack
, which displays a list of stack positions for a text editor. It allows users to navigate through these positions by clicking on them, and provides options to remove, pop, or clear the current position. The component also includes a popup menu with actions to perform on the selected position.
83 int index = list.locationToIndex(new Point(evt.getX(),
84 evt.getY()));
85 if(index > -1 && index != list.getSelectedIndex())
86 list.setSelectedIndex(index);
95 {
96 StackPosition pos = (StackPosition)
97 list.getSelectedValue();
98 if(pos != null)
99 pos.goTo(view);
116 }
118 goTo.setEnabled(list.getSelectedValue() != null);
119 remove.setEnabled(listModel.size() > 0);
120 pop.setEnabled(listModel.size() > 0);
ContentPane.js
(http://enginey.googlecode.com/svn/trunk/)
JavaScript · 236 lines
✨ Summary
This JavaScript code defines a custom widget called dojox.layout.ContentPane
that extends the built-in dijit.layout.ContentPane
. It provides additional features such as support for inline scripts, external script references, and relative path adjustments. The widget also includes error handling and deferred loading capabilities.
This JavaScript code defines a custom widget called dojox.layout.ContentPane
that extends the built-in dijit.layout.ContentPane
. It provides additional features such as support for inline scripts, external script references, and relative path adjustments. The widget also includes error handling and deferred loading capabilities.
ViewRegisters.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 184 lines
✨ Summary
This Java code creates a dialog window for viewing registers in an integrated development environment (IDE). It displays a list of register names and their corresponding values, with each value represented as a single character. The user can select a register name from the list to view its value in a text area. The dialog includes buttons for closing the window and canceling the operation.
This Java code creates a dialog window for viewing registers in an integrated development environment (IDE). It displays a list of register names and their corresponding values, with each value represented as a single character. The user can select a register name from the list to view its value in a text area. The dialog includes buttons for closing the window and canceling the operation.
65 }
67 if(registerModel.getSize() == 0)
68 registerModel.addElement(jEdit.getProperty("view-registers.none"));
157 public void actionPerformed(ActionEvent evt)
158 {
159 if(evt.getSource() == close)
160 cancel();
161 }
166 public void valueChanged(ListSelectionEvent evt)
167 {
168 Object value = registerList.getSelectedValue();
169 if(!(value instanceof Character))
170 return;
qwindowsurface_gl.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 1185 lines
204 widget->resize(1, 1);
206 // We don't need this internal widget to appear in QApplication::topLevelWidgets()
207 if (QWidgetPrivate::allWidgets)
208 QWidgetPrivate::allWidgets->remove(widget);
209 init = false;
210 }
431 QGLContext *ctx = NULL;
433 // For translucent top-level widgets we need alpha in the format.
434 if (widget->testAttribute(Qt::WA_TranslucentBackground)) {
435 QGLFormat modFormat(surfaceFormat);
605 if (window() != widget) {
606 // For performance reasons we don't support
607 // flushing native child widgets on Symbian.
608 // It breaks overlapping native child widget
609 // rendering in some cases but we prefer performance.
QuickNotepadOptionPane.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 128 lines
✨ Summary
This Java code defines a custom dialog box for a text editor plugin, QuickNotepad. It allows users to customize settings such as file path, font, and display options. The dialog box includes fields for selecting a file path, choosing a font, and toggling the display of file paths. When the user saves their changes, the settings are stored in the plugin’s properties.
This Java code defines a custom dialog box for a text editor plugin, QuickNotepad. It allows users to customize settings such as file path, font, and display options. The dialog box includes fields for selecting a file path, choosing a font, and toggling the display of file paths. When the user saves their changes, the settings are stored in the plugin’s properties.
Chunk.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 589 lines
✨ Summary
This Java code is part of a text rendering engine, responsible for laying out and rendering text on a screen. It uses font substitution to find suitable fonts for characters that can’t be rendered by the default font. The code creates glyph vectors, which represent the visual representation of text, and calculates their widths based on the chosen font.
This Java code is part of a text rendering engine, responsible for laying out and rendering text on a screen. It uses font substitution to find suitable fonts for characters that can’t be rendered by the default font. The code creates glyph vectors, which represent the visual representation of text, and calculates their widths based on the chosen font.
HelpViewer.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 691 lines
✨ Summary
This Java code is a part of a web browser implementation, specifically for navigating and displaying a table of contents (TOC). It handles user interactions such as clicking on links, pressing enter, and using back/forward navigation to navigate between URLs. The code uses various components like JTree, DefaultTreeCellRenderer, and HyperlinkListener to display the TOC and handle link clicks.
This Java code is a part of a web browser implementation, specifically for navigating and displaying a table of contents (TOC). It handles user interactions such as clicking on links, pressing enter, and using back/forward navigation to navigate between URLs. The code uses various components like JTree, DefaultTreeCellRenderer, and HyperlinkListener to display the TOC and handle link clicks.
SbbAlias.java
(http://mobicents.googlecode.com/svn/trunk/)
Java · 110 lines
✨ Summary
This Java class represents an XML element called sbb-alias
. It has two properties: id
and value
, which are used to store and retrieve data from an XML file. The class provides getter and setter methods for these properties, allowing users to access and modify the data. It is generated by JAXB (Java Architecture for XML Binding) Reference Implementation.
This Java class represents an XML element called sbb-alias
. It has two properties: id
and value
, which are used to store and retrieve data from an XML file. The class provides getter and setter methods for these properties, allowing users to access and modify the data. It is generated by JAXB (Java Architecture for XML Binding) Reference Implementation.
Makefile.inc (http://better-oblivion-sorting-software.googlecode.com/svn/) Unknown · 32 lines
test_SexpVector.py
(https://bitbucket.org/lgautier/rpy2/)
Python · 639 lines
✨ Summary
This is a Python test suite for a library of R-like data structures, specifically SexpVector
and its variants. It tests various aspects of these classes, including initialization, assignment, indexing, and slicing, to ensure they behave as expected. The tests cover different types of data, such as integers, strings, and complex numbers, and verify that the classes can handle various operations correctly.
This is a Python test suite for a library of R-like data structures, specifically SexpVector
and its variants. It tests various aspects of these classes, including initialization, assignment, indexing, and slicing, to ensure they behave as expected. The tests cover different types of data, such as integers, strings, and complex numbers, and verify that the classes can handle various operations correctly.
409 ri.R_LEN_T_MAX+1)
411 def testGetSliceFloat(self):
412 vec = ri.FloatSexpVector([1.0,2.0,3.0])
413 vec = vec[0:2]
416 self.assertEqual(2.0, vec[1])
418 def testGetSliceInt(self):
419 vec = ri.IntSexpVector([1,2,3])
420 vec = vec[0:2]
423 self.assertEqual(2, vec[1])
425 def testGetSliceIntNegative(self):
426 vec = ri.IntSexpVector([1,2,3])
427 vec = vec[-2:-1]
JSParser.GUI-VS-2010.csproj (git://github.com/saidai-no/nemerle.git) MSBuild · 114 lines
1 <?xml version="1.0" encoding="utf-8"?>
2 <Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3 <PropertyGroup>
4 <ProjectGuid>{E1D04553-80B1-48C9-9256-B14BF4C2F2B0}</ProjectGuid>
75 <CodeAnalysisIgnoreBuiltInRules>true</CodeAnalysisIgnoreBuiltInRules>
76 </PropertyGroup>
77 <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.Targets" />
78 <ItemGroup>
79 <Reference Include="Nemerle">