100+ results for 'select repo:boyter/batf'
Not the results you expected?
flash.h (https://github.com/lilstevie/uboot-tegra.git) C Header · 305 lines
88 * blocks, software must lock both banks. The CMA302 does not directly support
89 * byte writing. Programming and/or erasing individual bytes is done with
90 * selective use of the Write Command. By not placing the Write Command value
91 * on a particular byte lane, that byte will not be written with the following
92 * Write Data. Also, remember that within a byte lane (i.e. D0-7), there are
99 * 4 chips. Each bank must be accessed as a single 32 bit wide device (i.e.
100 * aligned on a 32 bit boundary), with each byte lane within the 32 bits (0-3)
101 * going to each of the 4 chips and the word address selecting the bank, even
102 * being the low bank and odd the high bank. For 64bit reads, both banks are
103 * read simultaneously with the second bank on byte lanes 4-7. Each 28F008S5
navigation.css (https://gitlab.com/Mirros/cdnjs) CSS · 529 lines
309 -webkit-transition: none;
310 transition: none;
311 -webkit-user-select: none !important;
312 -moz-user-select: none !important;
313 -ms-user-select: none !important;
314 user-select: none !important;
338 padding: 0 45px 0 15px;
339 position: relative;
340 -webkit-user-select: none;
341 -moz-user-select: none;
342 -ms-user-select: none;
343 user-select: none;
432 padding: 0 45px 0 15px;
433 position: relative;
434 -webkit-user-select: none;
435 -moz-user-select: none;
PossibleValueSet.cs (https://github.com/RogerKratz/nhibernate-core.git) C# · 389 lines
get_and_set_fields.feature (https://github.com/markn86/moodle.git) Gherkin Specification · 210 lines
36 And I am on "Course 1" course homepage
37 And I navigate to "Reset" in current page administration
38 # Select (multi-select) - Checking "the select box should contain".
39 And I expand all fieldsets
40 And the "Unenrol users" select box should contain "No roles"
56 And I press "Save"
57 Then I should see "Student page contents" in the "region-main" "region"
58 # Select (multi-select) - Checking "I set the field".
59 And I navigate to "Settings" in current page administration
60 And I expand all fieldsets
150 Then I am on "Course 1" course homepage
151 And I navigate to "Users > Groups" in current page administration
152 # Select (multi-select & AJAX) - Checking "I set the field" and "select box should contain".
153 And I set the field "groups" to "Group 2"
154 And the "members" select box should contain "Student 2 (s2@example.com)"
ForumPostsRSSFeed.ascx.cs (https://bitbucket.org/kudutest/kenticogit.git) C# · 560 lines
265 get
266 {
267 return ValidationHelper.GetBoolean(this.GetValue("SelectOnlyApproved"), true);
268 }
269 set
333 get
334 {
335 return ValidationHelper.GetInteger(this.GetValue("SelectTopN"), 0);
336 }
337 set
536 srcElem.TopN = SelectTopN;
537 srcElem.SourceFilterName = FilterName;
538 srcElem.SelectOnlyApproved = SelectOnlyApproved;
539 srcElem.CheckPermissions = CheckPermissions;
540 srcElem.SelectedColumns = Columns;
en_US.php (https://github.com/wolfv/silverstripe-userforms.git) PHP · 281 lines
120 $lang['en_US']['EditableFormField.ss']['VALUE'] = 'Value';
121 $lang['en_US']['EditableFormField.ss']['WHEN'] = 'When';
122 $lang['en_US']['EditableFormHeading']['LEVEL'] = 'Select Heading Level';
123 $lang['en_US']['EditableFormHeading']['PLURALNAME'] = array(
124 'Headings',
197 $lang['en_US']['EditableTextField']['TEXTLENGTH'] = 'Text length';
198 $lang['en_US']['FieldEditor.ss']['ADD'] = 'Add';
199 $lang['en_US']['FieldEditor.ss']['SELECTAFIELD'] = 'Select a Field';
200 $lang['en_US']['Form']['FIELDISREQUIRED'] = '%s is required';
201 $lang['en_US']['SubmittedFileField']['DOWNLOADFILE'] = 'Download File';
247 $lang['en_US']['UserDefinedForm']['ONCOMPLETELABEL'] = 'Show on completion';
248 $lang['en_US']['UserDefinedForm']['OPTIONS'] = 'Options';
249 $lang['en_US']['UserDefinedForm']['ORSELECTAFIELDTOUSEASFROM'] = '.. or Select a Form Field to use as the From Address';
250 $lang['en_US']['UserDefinedForm']['ORSELECTAFIELDTOUSEASTO'] = '.. or Select a Field to use as the To Address';
vssapi.def (https://gitlab.com/ubuntu-trusty/mingw-w64) Module-Definition · 160 lines
17 ; public: virtual __thiscall CVssWriter::~CVssWriter(void)
18 ??1CVssWriter@@UAE@XZ ; has WINAPI (@0)
19 ; protected: bool __stdcall CVssJetWriter::AreComponentsSelected(void)const
20 ?AreComponentsSelected@CVssJetWriter@@IBG_NXZ ; has WINAPI (@4)
21 ; protected: bool __stdcall CVssWriter::AreComponentsSelected(void)const
22 ?AreComponentsSelected@CVssWriter@@IBG_NXZ ; has WINAPI (@4)
complete-method-decls.m (https://gitlab.com/pranith/clang) Objective C · 184 lines
174 // IBAction completion
175 // RUN: c-index-test -code-completion-at=%s:5:4 %s | FileCheck -check-prefix=CHECK-IBACTION %s
176 // CHECK-IBACTION: NotImplemented:{TypedText IBAction}{RightParen )}{Placeholder selector}{Colon :}{LeftParen (}{Text id}{RightParen )}{Text sender} (40)
178 // <rdar://problem/8939352>
cg_sim.c (https://gitlab.com/brian0218/rk3188_r-box_android4.2.2_sdk) C · 198 lines
ConversionDialog.java (https://github.com/jankotek/Pixy2.git) Java · 389 lines
19 import net.aerith.misao.image.filter.FilterSet;
20 import net.aerith.misao.gui.dialog.Dialog;
21 import net.aerith.misao.toolkit.FilterSelection.FilterSelectionDialog;
23 /**
372 /**
373 * The <code>FilterButtonListener</code> is a listener class of
374 * menu selection to select image processing filters.
375 */
376 protected class FilterButtonListener implements ActionListener {
380 */
381 public void actionPerformed ( ActionEvent e ) {
382 FilterSelectionDialog dialog = new FilterSelectionDialog(filter_set);
383 int answer = dialog.show(button_filter);
Observable+Multiple.swift (https://gitlab.com/Tj3n123/ios-icndb-app) Swift · 330 lines
24 public func combineLatest<R>(resultSelector: [Generator.Element.E] throws -> R) -> Observable<R> {
25 return CombineLatestCollectionType(sources: self, resultSelector: resultSelector)
26 }
27 }
33 /**
34 Merges the specified observable sequences into one observable sequence by using the selector function whenever all of the observable sequences have produced an element at a corresponding index.
36 - seealso: [zip operator on reactivex.io](http://reactivex.io/documentation/operators/zip.html)
42 public func zip<R>(resultSelector: [Generator.Element.E] throws -> R) -> Observable<R> {
43 return ZipCollectionType(sources: self, resultSelector: resultSelector)
44 }
45 }
315 public func withLatestFrom<SecondO: ObservableConvertibleType, ResultType>(second: SecondO, resultSelector: (E, SecondO.E) throws -> ResultType) -> Observable<ResultType> {
316 return WithLatestFrom(first: asObservable(), second: second.asObservable(), resultSelector: resultSelector)
317 }
Subqueries.cs (https://github.com/whut/nhibernate-core.git) C# · 331 lines
defs.scm (https://github.com/mbrock/bigloo-llvm.git) Scheme · 372 lines
lesson_group_override.feature (https://github.com/vadimonus/moodle.git) Gherkin Specification · 340 lines
pr41928.f90 (https://bitbucket.org/pizzafactory/pf-gcc.git) FORTRAN Modern · 264 lines
RecognizerResultImpl.P (https://github.com/JTroniks/CyanogenMod-7.git) Prolog · 243 lines
42 external/srec/portable/include/ArrayList.h /usr/include/bits/waitflags.h \
43 /usr/include/bits/waitstatus.h /usr/include/sys/types.h \
44 /usr/include/sys/select.h /usr/include/bits/select.h \
45 /usr/include/bits/sigset.h /usr/include/sys/sysmacros.h \
46 /usr/include/alloca.h external/srec/shared/include/HashMap.h \
163 external/srec/portable/include/ArrayList.h /usr/include/bits/waitflags.h :
164 /usr/include/bits/waitstatus.h /usr/include/sys/types.h :
165 /usr/include/sys/select.h /usr/include/bits/select.h :
166 /usr/include/bits/sigset.h /usr/include/sys/sysmacros.h :
167 /usr/include/alloca.h external/srec/shared/include/HashMap.h :
pic.c (https://gitlab.com/pranith/clang) C · 211 lines
RavenQueryProvider.cs (https://github.com/fitzchak/ravendb.git) C# · 313 lines
Value.php (https://bitbucket.org/jokusafet/magento2.git) PHP · 354 lines
179 if (!$object->getData('scope', 'title')) {
180 $select = $this->_getReadAdapter()->select()
181 ->from($titleTable, array('option_type_id'))
182 ->where('option_type_id = ?', (int)$object->getId())
330 ->where('option_type_id = ?', $oldTypeId)
331 ->columns($columns);
332 $insertSelect = $writeAdapter->insertFromSelect($select, $priceTable,
333 array('option_type_id', 'store_id', 'price', 'price_type'));
334 $writeAdapter->query($insertSelect);
345 ->where('option_type_id = ?', $oldTypeId)
346 ->columns($columns);
347 $insertSelect = $writeAdapter->insertFromSelect($select, $titleTable,
348 array('option_type_id', 'store_id', 'title'));
349 $writeAdapter->query($insertSelect);
InsertFunctionalityTest.java (https://github.com/MIPS/libcore.git) Java · 292 lines
193 + " SELECT id AS testId, value AS testValue " + "FROM "
194 + DatabaseCreator.FKSTRICT_TABLE + " WHERE name_id = 1");
195 ResultSet r = statement.executeQuery("SELECT COUNT(*) FROM "
196 + DatabaseCreator.TEST_TABLE5);
197 r.next();
207 @TestTargetNew(
208 level = TestLevel.PARTIAL_COMPLETE,
209 notes = "Functionality test: Tests INSERT ... SELECT with expressions in SELECT query",
210 method = "execute",
211 args = {java.lang.String.class}
213 @TestTargetNew(
214 level = TestLevel.PARTIAL_COMPLETE,
215 notes = "Functionality test: Tests INSERT ... SELECT with expressions in SELECT query",
216 method = "executeQuery",
217 args = {java.lang.String.class}
ChangeLog-2010-12-06 (https://bitbucket.org/ultra_iter/qt-vtl.git) Unknown · 135225 lines
612 * editing/Editor.cpp: Moved all calls to applyCorrectionPanelInfo() into handleCorrectionPanelResult().
613 Adopted new member variable naming in class CorrectionPanelInfo.
614 (WebCore::Editor::respondToChangedSelection):
615 (WebCore::Editor::~Editor):
616 (WebCore::Editor::markMisspellingsAfterTypingToWord):
769 The crash was caused by TypingCommand::deleteKeyPressed's reusing a typing command for
770 textarea's shadow DOM after its input event handler rewrote the value set by the typing command.
771 Because the reused typing command's ending selection was pointing at a shadow node
772 that has been detached from the document when the event handler set the new value,
773 rootEditableElement of the ending selection was null and caused the crash.
775 Fixed the bug by updating the ending selection of the last typing command when it differsfrom
776 that of the current selection held by the SelectionController in TypingCommand::deleteKeyPressed.
777 Also fixed similar bugs in forwardDeleteKeyPressed and insertText, and insertTextRunWithoutNewlines.
787 (WebCore::TypingCommand::forwardDeleteKeyPressed): Ditto.
788 (WebCore::TypingCommand::insertText): Ditto.
789 (WebCore::TypingCommand::updateSelectionIfDifferentFromCurrentSelection): Added.
790 (WebCore::TypingCommand::insertTextRunWithoutNewlines): Updates InsertTextCommand's selection as needed.
Copy.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 83 lines
✨ Summary
This Java class implements a copy functionality for a Subversion (SVN) repository. When an action is triggered, it retrieves selected paths from an SVN tree, creates a dialog to input additional information such as username and password, and then performs the actual copying operation using another class called CopyAction
.
This Java class implements a copy functionality for a Subversion (SVN) repository. When an action is triggered, it retrieves selected paths from an SVN tree, creates a dialog to input additional information such as username and password, and then performs the actual copying operation using another class called CopyAction
.
WebPlatformStrategies.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 159 lines
65 virtual WTF::String submitButtonDefaultLabel();
66 virtual WTF::String fileButtonChooseFileLabel();
67 virtual WTF::String fileButtonNoFileSelectedLabel();
68 virtual WTF::String defaultDetailsSummaryText();
69 virtual WTF::String contextMenuItemTagOpenLinkInNewWindow();
82 virtual WTF::String contextMenuItemTagCut();
83 virtual WTF::String contextMenuItemTagPaste();
84 virtual WTF::String contextMenuItemTagSelectAll();
85 virtual WTF::String contextMenuItemTagNoGuessesFound();
86 virtual WTF::String contextMenuItemTagIgnoreSpelling();
qt_x11_p.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 757 lines
209 typedef Status (*PtrXFixesQueryVersion)(Display *, int *, int *);
210 typedef void (*PtrXFixesSetCursorName)(Display *dpy, Cursor cursor, const char *name);
211 typedef void (*PtrXFixesSelectSelectionInput)(Display *dpy, Window win, Atom selection, unsigned long eventMask);
212 #endif // QT_NO_XFIXES
365 void xdndHandleDrop(QWidget *, const XEvent *, bool);
366 void xdndHandleFinished(QWidget *, const XEvent *, bool);
367 void xdndHandleSelectionRequest(const XSelectionRequestEvent *);
368 static bool xdndHandleBadwindow();
369 QByteArray xdndAtomToString(Atom a);
419 PtrXFixesQueryVersion ptrXFixesQueryVersion;
420 PtrXFixesSetCursorName ptrXFixesSetCursorName;
421 PtrXFixesSelectSelectionInput ptrXFixesSelectSelectionInput;
422 #endif
MacOSOptionPane.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 97 lines
✨ Summary
This Java code defines a custom options pane for a Mac OS plugin, allowing users to configure settings such as using the screen menu bar, preserving codes, live resizing, and using selection. The pane displays checkboxes with default values based on user preferences stored in a configuration file. When saved, these changes are written back to the configuration file.
This Java code defines a custom options pane for a Mac OS plugin, allowing users to configure settings such as using the screen menu bar, preserving codes, live resizing, and using selection. The pane displays checkboxes with default values based on user preferences stored in a configuration file. When saved, these changes are written back to the configuration file.
35 private JCheckBox preserveBox;
36 private JCheckBox liveResizeBox;
37 private JCheckBox selectionBox;
38 //}}}
67 addComponent(new Box.Filler(d,d,d));
69 selectionBox = new JCheckBox(jEdit.getProperty("options.MacOSPlugin.useSelection.label"));
70 addComponent(selectionBox);
80 jEdit.setBooleanProperty("MacOSPlugin.liveResize", liveResizeBox.isSelected());
81 jEdit.setBooleanProperty("MacOSPlugin.useSelection", selectionBox.isSelected());
82 }//}}}
91 liveResizeBox.setSelected(jEdit.getBooleanProperty("MacOSPlugin.liveResize",
92 jEdit.getBooleanProperty("MacOSPlugin.default.liveResize")));
93 selectionBox.setSelected(jEdit.getBooleanProperty("MacOSPlugin.useSelection",
94 jEdit.getBooleanProperty("MacOSPlugin.default.useSelection")));
sqr.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 153 lines
netrexx.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 415 lines
6 <PROPS>
7 <PROPERTY NAME="indentNextLines"
8 VALUE="\s*(if|loop|do|else|select|otherwise|catch|finally|class|method|properties)(.*)"/>
9 <!-- VALUE="\s*(((if|while)\s*\(|else\s*(\{|$)|else\s+if\s*\(|case\s+.+:|default:)[^;]*|for\s*\(.*)" -->
10 <PROPERTY NAME="commentStart" VALUE="/*" />
167 <KEYWORD2>then</KEYWORD2>
168 <KEYWORD2>else</KEYWORD2>
169 <KEYWORD2>select</KEYWORD2>
170 <KEYWORD2>case</KEYWORD2>
171 <KEYWORD2>when</KEYWORD2>
tip30.html
(https://jedit.svn.sourceforge.net/svnroot/jedit)
HTML · 14 lines
✨ Summary
This HTML code explains how to use folding commands in a text editor. The Folding > Narrow to Fold command hides all lines except those in the current fold, while Folding > Narrow to Selection hides all lines except those within a selected range of text. These commands can be used to declutter and focus on specific parts of a file or selection.
This HTML code explains how to use folding commands in a text editor. The Folding > Narrow to Fold command hides all lines except those in the current fold, while Folding > Narrow to Selection hides all lines except those within a selected range of text. These commands can be used to declutter and focus on specific parts of a file or selection.
Kconfig (http://omnia2droid.googlecode.com/svn/trunk/) Unknown · 19 lines
EditPane.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 1378 lines
✨ Summary
This Java code is part of a text editor’s implementation, specifically for a feature called “Marker Highlight”. It enables users to highlight specific lines in the text with customizable colors and tooltips displaying shortcuts or names associated with those markers. The code handles various events, such as line selection, marker creation, and property changes, to provide this functionality.
This Java code is part of a text editor’s implementation, specifically for a feature called “Marker Highlight”. It enables users to highlight specific lines in the text with customizable colors and tooltips displaying shortcuts or names associated with those markers. The code handles various events, such as line selection, marker creation, and property changes, to provide this functionality.
338 Selection[] selection = textArea.getSelection();
339 for(int i = 0; i < selection.length; i++)
340 selection[i] = (Selection)selection[i].clone();
341 buffer.setProperty(Buffer.SELECTION,selection);
403 // set any selections
404 Selection[] selection = caretInfo.selection;
405 if ( selection == null ) {
406 selection = (Selection[])buffer.getProperty(Buffer.SELECTION);
407 }
408 if(selection != null)
601 // always add markers on selected lines
602 Selection[] selection = textArea.getSelection();
603 for(int i = 0; i < selection.length; i++)
actions.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 68 lines
jedit.props (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 430 lines
201 view.caretColor=#ff0000
203 # Selection color
204 view.selectionColor=#ccccff
205 view.multipleSelectionColor=#ccffcc
207 # Caret blinking
282 view.gutter.foldClick=toggle-fold
283 view.gutter.SfoldClick=toggle-fold-fully
284 view.gutter.CfoldClick=select-fold
285 view.gutter.AfoldClick=narrow-fold
286 view.gutter.structClick=match-struct
287 view.gutter.CstructClick=select-struct
288 view.gutter.AstructClick=narrow-struct
289 #}}}
SessionsPlugin.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 306 lines
✨ Summary
This Java code is part of a plugin for the text editor jEdit, which manages sessions and provides a toolbar to switch between them. It adds a session switcher component to the toolbar or buffer list when the user requests it, and removes it when the user closes the session. The plugin also displays an information message to the user if they haven’t seen it before.
This Java code is part of a plugin for the text editor jEdit, which manages sessions and provides a toolbar to switch between them. It adds a session switcher component to the toolbar or buffer list when the user requests it, and removes it when the user closes the session. The plugin also displays an information message to the user if they haven’t seen it before.
ErrorFindingMacros.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 140 lines
✨ Summary
This Java code defines a class ErrorFindingMacros
that provides two methods to display information about duplicate labels and orphaned references in LaTeX documents. It uses threads to run these displays asynchronously, allowing them to run concurrently without blocking the main thread. The displays are then shown in a dockable panel with a progress indicator.
This Java code defines a class ErrorFindingMacros
that provides two methods to display information about duplicate labels and orphaned references in LaTeX documents. It uses threads to run these displays asynchronously, allowing them to run concurrently without blocking the main thread. The displays are then shown in a dockable panel with a progress indicator.
YesNoPrompt.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 116 lines
✨ Summary
This Java code defines a Velocity directive called yes_no
that prompts the user to select one of two values (Yes/No) and sets the value of a variable in the context accordingly. It uses Swing’s JOptionPane
to display the prompt and options, and returns true if the user selects Yes or false if they select No.
This Java code defines a Velocity directive called yes_no
that prompts the user to select one of two values (Yes/No) and sets the value of a variable in the context accordingly. It uses Swing’s JOptionPane
to display the prompt and options, and returns true if the user selects Yes or false if they select No.
29 import velocity.VelocityConstants;
30 /**
31 * A directive to prompt the user to select one of two values. <p>
32 *
33 * When using the directive, the following are the arguments accepted:
96 Object[] options = {yesString, noString};
97 int n = JOptionPane.showOptionDialog(textArea, prompt,
98 "Select desired option",
99 JOptionPane.YES_NO_OPTION,
100 JOptionPane.QUESTION_MESSAGE,
Reflect.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 968 lines
✨ Summary
This Java code provides a set of utility methods for working with classes, methods, and constructors. It includes functionality such as type normalization, array dimension calculation, invoking compiled commands, and error handling for reflection operations. The code is part of a larger system that appears to be an interpreter or compiler for a scripting language.
This Java code provides a set of utility methods for working with classes, methods, and constructors. It includes functionality such as type normalization, array dimension calculation, invoking compiled commands, and error handling for reflection operations. The code is part of a larger system that appears to be an interpreter or compiler for a scripting language.
build.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 29 lines
SessionManagerDialog.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 321 lines
✨ Summary
This Java code is for a graphical user interface (GUI) dialog box that manages sessions, likely related to software development or debugging. It allows users to rename and delete existing sessions, and provides an option to close the dialog. The GUI displays a list of available sessions, with options to change the current session, rename a session, and delete a session.
This Java code is for a graphical user interface (GUI) dialog box that manages sessions, likely related to software development or debugging. It allows users to rename and delete existing sessions, and provides an option to close the dialog. The GUI displays a list of available sessions, with options to change the current session, rename a session, and delete a session.
64 lSessions = new JList(SessionManager.getInstance().getSessionNames());
65 lSessions.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
66 lSessions.addListSelectionListener(this);
123 if (lSessions.getSelectedValue() != null)
124 selectedSession = lSessions.getSelectedValue().toString();
125 setVisible(false);
126 dispose();
145 public String getSelectedSession()
146 {
147 return selectedSession;
148 }
178 /**
179 * Invoked when the selected item in the sessions list changes.
180 */
181 public void valueChanged(ListSelectionEvent evt)
BrowserColorsOptionPane.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 346 lines
✨ Summary
This Java code creates a GUI component for managing browser colors. It allows users to add, remove, and edit color settings for different file types. The component displays a table with two columns: one for glob patterns and another for corresponding colors. Users can select new colors from a palette or enter custom values. The changes are saved when the user clicks “Save”.
This Java code creates a GUI component for managing browser colors. It allows users to add, remove, and edit color settings for different file types. The component displays a table with two columns: one for glob patterns and another for corresponding colors. Users can select new colors from a palette or enter custom values. The changes are saved when the user clicks “Save”.
61 colorsTable.getTableHeader().setReorderingAllowed(false);
62 colorsTable.addMouseListener(new MouseHandler());
63 colorsTable.getSelectionModel().addListSelectionListener(
64 new SelectionHandler());
108 private void updateEnabled()
109 {
110 int selectedRow = colorsTable.getSelectedRow();
111 remove.setEnabled(selectedRow != -1);
116 //{{{ SelectionHandler class
117 class SelectionHandler implements ListSelectionListener
118 {
119 public void valueChanged(ListSelectionEvent evt)
135 else if(source == remove)
136 {
137 int selectedRow = colorsTable.getSelectedRow();
138 colorsModel.remove(selectedRow);
SearchAction.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 155 lines
✨ Summary
This Java code defines an Action
class called SearchAction
that opens a search dialog for a selected directory or project in a text editor. It uses a custom NodeFileSet
class to filter files based on their location within a project tree. The action is enabled only for the root node of a project, and it displays a specific error message if no project is selected.
This Java code defines an Action
class called SearchAction
that opens a search dialog for a selected directory or project in a text editor. It uses a custom NodeFileSet
class to filter files based on their location within a project tree. The action is enabled only for the root node of a project, and it displays a specific error message if no project is selected.
Create_Constructor.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 222 lines
21 String UNDEFINED = "UNKNOWN_CLASS";
23 void setCaret(int selectionStart, int selectionEnd)
24 {
25 textArea.setCaretPosition(selectionStart);
29 String getClassName()
30 {
31 int selectionStart = textArea.getSelectionStart();
32 int selectionEnd = textArea.getSelectionEnd();
45 if(tokenizer.hasMoreTokens())
46 {
47 setCaret(selectionStart, selectionEnd);
48 return tokenizer.nextToken();
49 }
139 void parseSelection()
140 {
141 int selectionStart = textArea.getSelectionStart();
142 int selectionEnd = textArea.getSelectionEnd();
HistoryTextArea.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 207 lines
✨ Summary
This Java class, HistoryTextArea
, extends JTextArea
to create a text area with a history feature. It allows users to navigate through previously entered text using keyboard shortcuts (e.g., Tab, Shift+Tab) and display a popup menu for editing the current selection. The history is managed by an underlying HistoryText
controller that handles user input and updates the displayed text accordingly.
This Java class, HistoryTextArea
, extends JTextArea
to create a text area with a history feature. It allows users to navigate through previously entered text using keyboard shortcuts (e.g., Tab, Shift+Tab) and display a popup menu for editing the current selection. The history is managed by an underlying HistoryText
controller that handles user input and updates the displayed text accordingly.
86 //{{{ setInstantPopups() method
87 /**
88 * Sets if selecting a value from the popup should immediately fire
89 * an ActionEvent.
90 */
96 //{{{ getInstantPopups() method
97 /**
98 * Returns if selecting a value from the popup should immediately fire
99 * an ActionEvent.
100 */
138 if(evt.isControlDown())
139 {
140 replaceSelection("\n");
141 evt.consume();
142 }
NodeRemoverAction.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 385 lines
✨ Summary
This Java code is part of a project management system, specifically for managing files and directories within projects. It provides functionality for removing objects from a project, including files, directories, and groups, with options to confirm deletion and save changes to the project. It also tracks removed files and notifies listeners when changes occur.
This Java code is part of a project management system, specifically for managing files and directories within projects. It provides functionality for removing objects from a project, including files, directories, and groups, with options to confirm deletion and save changes to the project. It also tracks removed files and notifies listeners when changes occur.
99 case 1: {
100 // Single selection!
101 remove((VPTNode)tree.getLastSelectedPathComponent(), true);
107 // Any other thing == multiple selection
108 ArrayList sel = getSelectedArtifacts(tree.getSelectionPaths());
109 for (Iterator i = sel.iterator(); i.hasNext(); ) {
110 remove((VPTNode) i.next(), false);
153 cmItem.setVisible(true);
154 JTree tree = viewer.getCurrentTree();
155 TreePath[] paths = tree.getSelectionPaths();
156 for (int i = 0; i < paths.length; i++) {
157 VPTNode n = (VPTNode) paths[i].getLastPathComponent();
169 TreePath[] paths = tree.getSelectionPaths();
171 // do not enable if there's a group in the multiple selection
172 boolean enable = true;
173 for (int i = 0; i < paths.length; i++) {
users-guide.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 406 lines
102 <para>
103 Optionally, by choosing "All Projects" from the project selection box, a
104 alternative view is shown, which displays data from all projects. Some
105 plugin functionality is not available when in this mode.
111 is already opened, will cause it to be focused (if not the current buffer)
112 or closed (if it is the current buffer). Using the right mouse button
113 will show options related to the current selection on the tree, allowing
114 you to remove files or directories from a project, deleting them from the
115 disk, or rename them, among many other options.
134 <para>
135 In the import dialog (available by choosing "Import files" from the right-click
136 menu), you can choose any files to be imported to the selected node (the one
137 where you clicked to get the context menu). The same filters available when
138 doing the initial import for the project are available in the file chooser.
xquery-introduction.qdoc (https://bitbucket.org/ultra_iter/qt-vtl.git) Unknown · 1007 lines
63 \c{other.html} file.
65 \section1 Using Path Expressions To Match And Select Items
67 In C++ and Java, we write nested \c{for} loops and recursive functions
109 The \c{doc()} function loads the \c{cookbook.xml} file and returns the
110 document node. The document node then becomes the focus for the next
111 step \c{//recipe}. Here the double slash means select all \c{<recipe>}
112 elements found below the document node, regardless of where they
113 appear in the document tree. The query selects all \c{<recipe>}
132 \endlist
134 Again the double slash means select all the \c{<recipe>} elements in the
135 document. The single slash before the \c{<title>} element means select
148 node in the focus set, the query engine navigates out from the node
149 along the specified axis and applies the node test to each node it
150 encounters. The nodes selected by the node test are collected in the
151 result set, which becomes the focus set for the next step.
tip53.html (https://jedit.svn.sourceforge.net/svnroot/jedit) HTML · 5 lines
Checkout.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 87 lines
✨ Summary
This Java class implements a GUI action for checking out files from a Subversion repository. When executed, it retrieves the selected tree path(s), combines them into a URL string, and uses this URL to perform a checkout operation. It also handles errors and prompts the user if multiple paths are selected or no paths are selected at all.
This Java class implements a GUI action for checking out files from a Subversion repository. When executed, it retrieves the selected tree path(s), combines them into a URL string, and uses this URL to perform a checkout operation. It also handles errors and prompts the user if multiple paths are selected or no paths are selected at all.
40 public void actionPerformed( ActionEvent ae ) {
41 TreePath[] paths = tree.getSelectionPaths();
43 if ( paths.length == 0 ) {
45 }
46 if ( paths.length > 1 ) {
47 JOptionPane.showMessageDialog( view, "Please select a single entry.", "Too many selections", JOptionPane.ERROR_MESSAGE );
48 return ;
49 }
qevent.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 4631 lines
XSearchHistoryTextField.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 569 lines
✨ Summary
This Java code defines a custom text field component, XSearchHistoryTextField
, which displays a search history with down arrow buttons to navigate through previous searches. It uses a popup menu to display the search history and allows users to select individual searches. The component also includes a border with a down arrow icon to indicate the search history.
This Java code defines a custom text field component, XSearchHistoryTextField
, which displays a search history with down arrow buttons to navigate through previous searches. It uses a popup menu to display the search history and allows users to select individual searches. The component also includes a border with a down arrow icon to indicate the search history.
123 * @since jEdit 4.0pre3
124 */
125 public void setSelectAllOnFocus(boolean selectAllOnFocus)
126 {
127 this.selectAllOnFocus = selectAllOnFocus;
303 private boolean instantPopups;
304 private boolean enterAddsToHistory;
305 private boolean selectAllOnFocus;
306 private String current;
307 private int index;
491 public void mousePressed(MouseEvent evt)
492 {
493 selectAll = (!hasFocus() && selectAllOnFocus);
494 } //}}}
build.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 108 lines
ActionBar.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 555 lines
✨ Summary
This Java code implements a custom text input field with auto-completion functionality. It creates a window that displays a list of possible completions when the user types a few characters, and allows the user to select one from the list. The input field also handles keyboard events, such as pressing Enter or Tab, to invoke completion suggestions or focus on the input field.
This Java code implements a custom text input field with auto-completion functionality. It creates a window that displays a list of possible completions when the user types a few characters, and allows the user to select one from the list. The input field also handles keyboard events, such as pressing Enter or Tab, to invoke completion suggestions or focus on the input field.
106 String cmd;
107 if(popup != null)
108 cmd = popup.list.getSelectedValue().toString();
109 else
110 {
459 list.setSelectedIndex(0);
460 list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
462 // stupid scrollbar policy is an attempt to work around
529 else if(keyCode == KeyEvent.VK_UP)
530 {
531 int selected = list.getSelectedIndex();
532 if(selected == 0)
540 else if(keyCode == KeyEvent.VK_DOWN)
541 {
542 int selected = list.getSelectedIndex();
543 if(selected == list.getModel().getSize() - 1)
RemoteDeleteDialog.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 224 lines
✨ Summary
This Java code creates a dialog for deleting items from a repository. It displays a table of files to be deleted, allows users to select which files to delete and enter a comment for the deletion, and provides buttons to confirm or cancel the action. The dialog also stores previous comments in a list for easy reference.
This Java code creates a dialog for deleting items from a repository. It displays a table of files to be deleted, allows users to select which files to delete and enter a comment for the deletion, and provides buttons to confirm or cancel the action. The dialog also stores previous comments in a list for easy reference.
126 commentList.addItemListener( new ItemListener() {
127 public void itemStateChanged( ItemEvent e ) {
128 if ( PropertyComboBox.SELECT.equals( commentList.getSelectedItem().toString() ) ) {
129 return ;
130 }
131 comment.setText( commentList.getSelectedItem().toString() );
132 }
133 }
148 List<String> paths = new ArrayList<String>();
149 for ( int row = 0; row < file_table_model.getRowCount(); row++ ) {
150 Boolean selected = ( Boolean ) file_table_model.getValueAt( row, 0 );
151 if ( selected ) {
201 if ( commentList != null && commentList.getModel().getSize() > 0 ) {
202 commentList.setPreferredSize( new Dimension( 600, commentList.getPreferredSize().height ) );
203 panel.add( "0, 7, 1, 1, W, , 3", new JLabel( "Select a previous comment:" ) );
204 panel.add( "0, 8, 1, 1, W, w, 3", commentList );
205 }
ProjectEventDumper.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 96 lines
✨ Summary
This Java code is a debugging tool for project events in a 3D viewer application. It logs error messages to the console when specific events occur, such as files being added or removed from a project, or when project properties change. The log messages include details about the affected file or property.
This Java code is a debugging tool for project events in a 3D viewer application. It logs error messages to the console when specific events occur, such as files being added or removed from a project, or when project properties change. The log messages include details about the affected file or property.
BrowseRepositoryPanel.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 972 lines
✨ Summary
This Java code creates a custom tree view component for displaying directories and their contents. It allows users to interact with the directory structure, including deleting files, locking/unlocking directories, and exporting data. The component also displays additional information such as external repository locations and properties. It uses a custom cell renderer to format the display of directory names and contents.
This Java code creates a custom tree view component for displaying directories and their contents. It allows users to interact with the directory structure, including deleting files, locking/unlocking directories, and exporting data. The component also displays additional information such as external repository locations and properties. It uses a custom cell renderer to format the display of directory names and contents.
109 tree = new JTree( new DefaultTreeModel( new DirTreeNode( "SVN Browser", false ) ) );
110 tree.setCellRenderer( new CellRenderer() );
111 tree.getSelectionModel().setSelectionMode( TreeSelectionModel.DISCONTIGUOUS_TREE_SELECTION );
112 ToolTipManager.sharedInstance().registerComponent( tree );
808 }
809 if ( tree_paths.length > 1 ) {
810 JOptionPane.showMessageDialog( view, "Please select a single entry.", "Too many selections", JOptionPane.ERROR_MESSAGE );
811 return ;
812 }
826 }
827 if ( tree_paths.length > 1 ) {
828 JOptionPane.showMessageDialog( view, "Please select a single entry.", "Too many selections", JOptionPane.ERROR_MESSAGE );
829 return ;
830 }
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.
53 // Add ENTER key binding for TemplateTree component
54 templates.getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0),
55 "templates-tree-select-node");
56 templates.getActionMap().put("templates-tree-select-node",
57 new NodeSelectAction());
59 templates.addMouseListener(this);
99 /**
100 * Process the selected template.
101 */
102 public void processSelectedTemplate()
103 {
104 TemplatesPlugin plugin = (TemplatesPlugin) jEdit.getPlugin("templates.TemplatesPlugin");
105 plugin.processTemplate(templates.getSelectedTemplate(), view, view.getTextArea());
106 view.getEditPane().getTextArea().requestFocus();
107 }
test_events.html
(http://enginey.googlecode.com/svn/trunk/)
HTML · 189 lines
✨ Summary
This HTML code creates a web page with two grids: an event tracking grid and a standard grid. The event tracking grid displays data about various events, such as cell clicks and mouse overs, while the standard grid contains sample data. The code uses Dojo, a JavaScript framework, to create and manage the grids.
This HTML code creates a web page with two grids: an event tracking grid and a standard grid. The event tracking grid displays data about various events, such as cell clicks and mouse overs, while the standard grid contains sample data. The code uses Dojo, a JavaScript framework, to create and manage the grids.
HelpfulJTable.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 562 lines
✨ Summary
This Java code is part of a table component, specifically a JTable class, which provides functionality for sorting and resizing columns. It includes event listeners for mouse clicks on the table header to change sort order and column width. The code also handles tooltips and icons for sorting indicators. Its purpose is to provide interactive and customizable table behavior.
This Java code is part of a table component, specifically a JTable class, which provides functionality for sorting and resizing columns. It includes event listeners for mouse clicks on the table header to change sort order and column width. The code also handles tooltips and icons for sorting indicators. Its purpose is to provide interactive and customizable table behavior.
314 // (private void changeSelectionModel(csm, columnIndex, toggle, extend);)
315 ListSelectionModel csm = getColumnModel().getSelectionModel();
316 if (extend)
317 if (toggle)
318 csm.setAnchorSelectionIndex(columnIndex);
319 else
320 csm.setLeadSelectionIndex(columnIndex);
328 csm.setSelectionInterval(columnIndex, columnIndex);
330 // Update row selection model
331 // (private void changeSelectionModel(rsm, rowIndex, toggle, extend);)
332 ListSelectionModel rsm = getSelectionModel();
333 if (extend)
334 if (toggle)
xfs_filestream.h
(http://omnia2droid.googlecode.com/svn/trunk/)
C++ Header · 137 lines
✨ Summary
This C header file defines a set of functions and macros for managing filestream associations with allocation groups (AGs) on an XFS filesystem. It provides atomic counters to track active filestreams, ensuring that no invalid references exist in the cache. The code also includes prototypes for various filestream-related functions and constants for allocation selection flags.
This C header file defines a set of functions and macros for managing filestream associations with allocation groups (AGs) on an XFS filesystem. It provides atomic counters to track active filestreams, ensuring that no invalid references exist in the cache. The code also includes prototypes for various filestream-related functions and constants for allocation selection flags.
SessionSwitcher.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 262 lines
✨ Summary
This Java code defines a SessionSwitcher
class, which is a toolbar component for jEdit that allows users to switch between different sessions. It provides buttons for saving, reloading, and managing session properties, as well as updating the current session in a combo box dropdown menu. The toolbar also displays a title with customizable text.
This Java code defines a SessionSwitcher
class, which is a toolbar component for jEdit that allows users to switch between different sessions. It provides buttons for saving, reloading, and managing session properties, as well as updating the current session in a combo box dropdown menu. The toolbar also displays a title with customizable text.
58 combo = new JComboBox(SessionManager.getInstance().getSessionNames());
59 combo.setSelectedItem(SessionManager.getInstance().getCurrentSession());
60 combo.setEditable(false);
61 combo.addItemListener(this);
168 public void itemStateChanged(ItemEvent e)
169 {
170 if(e.getStateChange() != ItemEvent.SELECTED || e.getItem() == null)
171 return;
173 String currentSession = SessionManager.getInstance().getCurrentSession();
174 final String selectedSession = e.getItem().toString();
176 if (selectedSession.equals(currentSession)) return;
build.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 78 lines
42 <!-- these are the actual test files to compile. This is included so it
43 is easy to fine tune which tests are compiled and ran. -->
44 <selector id="projectFiles">
45 <filename name="**/*.java" />
46 </selector>
48 <!-- this selector holds all test cases. This is optional. -->
49 <selector id="testcases.all">
50 <or>
51 <filename name="test/**/*Test.java"/>
52 </or>
53 </selector>
55 <!-- this selector holds just one test. This is optional. -->
60 <!-- this selector controls which tests to run, set the refid to either
61 testcases.current to run just one test or testcases.all to run all tests,
62 or some other selector. This is NOT optional, if this selector is not
63 defined, no tests will run. -->
64 <selector id="junit.testcases">
tip34.html
(https://jedit.svn.sourceforge.net/svnroot/jedit)
HTML · 23 lines
✨ Summary
This HTML code explains how to use BeanShell scripting in a search dialog box for replacing strings or regular expressions in an HTML file. It provides an example of converting HTML tags to lower case by searching for <code>...</code>
and replacing with "<" + _1.toLowerCase() + ">"
.
This HTML code explains how to use BeanShell scripting in a search dialog box for replacing strings or regular expressions in an HTML file. It provides an example of converting HTML tags to lower case by searching for <code>...</code>
and replacing with "<" + _1.toLowerCase() + ">"
.
MacOS.props (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 64 lines
25 MacOSPlugin.default.preserveCodes=true
26 MacOSPlugin.default.liveResize=false
27 MacOSPlugin.default.useSelection=false
29 #
35 options.MacOSPlugin.liveResize.label=Enable live resizing of windows
36 options.MacOSPlugin.scripts.label=Script folder search depth:
37 options.MacOSPlugin.useSelection.label=Use system highlight colour for Text Area
39 #
Preview_Javadoc_of_Buffer.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 609 lines
35 * - can be easily extended for other doclets
36 *
37 * - easy selection of output dir
38 * defaults to system temp dir
39 * set with a var in the macro code
109 JFileChooser chooser = new JFileChooser(startDir);
110 chooser.setDialogTitle(dialogTitle);
111 chooser.setMultiSelectionEnabled(false);
112 chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
113 if(chooser.showDialog(view, "Okay") == JFileChooser.APPROVE_OPTION)
114 {
115 retVal = chooser.getSelectedFile().getAbsolutePath();
116 }
117 return retVal;
381 String proceed = options[0];
382 /* Shows a Doclet Selection Dialog */
383 if (showDocletDialog)
384 proceed = JOptionPane.showInputDialog(view,
TemplateFile.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 217 lines
✨ Summary
This Java class represents a file within the templates directory hierarchy, providing information about the template and its label. It acts as a proxy for a Template object, allowing access to the template’s properties and behavior. The class implements the TreeNode interface, enabling it to be used in a tree-like data structure.
This Java class represents a file within the templates directory hierarchy, providing information about the template and its label. It acts as a proxy for a Template object, allowing access to the template’s properties and behavior. The class implements the TreeNode interface, enabling it to be used in a tree-like data structure.
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.
tip60.html
(https://jedit.svn.sourceforge.net/svnroot/jedit)
HTML · 9 lines
✨ Summary
This HTML code describes a behavior of a text editor’s search function. When text is selected, the search function behaves differently depending on whether the selection spans multiple lines or not. If it does, “Search in Selection” is used; otherwise, “Search in Current Buffer” is chosen and the selected text is copied into the search string field.
This HTML code describes a behavior of a text editor’s search function. When text is selected, the search function behaves differently depending on whether the selection spans multiple lines or not. If it does, “Search in Selection” is used; otherwise, “Search in Current Buffer” is chosen and the selected text is copied into the search string field.
qtopiakeysym.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 68 lines
tip91.html
(https://jedit.svn.sourceforge.net/svnroot/jedit)
HTML · 11 lines
✨ Summary
This HTML code displays a paragraph of text explaining how to reconfigure keyboard shortcuts in a text editor to skip whitespace. It provides information on standard and alternative commands for navigating words, as well as corresponding select-to commands. The text is presented in a simple format with bolded keywords for emphasis.
This HTML code displays a paragraph of text explaining how to reconfigure keyboard shortcuts in a text editor to skip whitespace. It provides information on standard and alternative commands for navigating words, as well as corresponding select-to commands. The text is presented in a simple format with bolded keywords for emphasis.
NodeRenamerAction.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 335 lines
✨ Summary
This Java code is part of a project that allows users to rename nodes (files, directories) within a project structure. It provides a dialog for inputting new names and includes options to prevent changes on disk. The code handles renaming files, directories, and projects, and updates the project structure accordingly.
This Java code is part of a project that allows users to rename nodes (files, directories) within a project structure. It provides a dialog for inputting new names and includes options to prevent changes on disk. The code handles renaming files, directories, and projects, and updates the project structure accordingly.
74 /** Renames a node. */
75 public void actionPerformed(ActionEvent e) {
76 VPTNode node = viewer.getSelectedNode();
77 boolean isValid = false;
78 String newName = null;
254 // user input
255 fName = new JTextField(node.getName(), 20);
256 fName.setSelectionStart(0);
257 fName.setSelectionEnd(node.getName().length());
270 if (node.getClass() == VFSFile.class || !node.canWrite()) {
271 chFile.setSelected(true);
272 chFile.setEnabled(false);
273 }
323 /**
324 * Returns whether the "do not change file name on disk" checkbox is
325 * selected or not.
326 */
327 public boolean getDontChangeDisk() {
Cut_Lines.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 42 lines
1 /*
2 * Cut_Lines.bsh - a BeanShell macro for jEdit
3 * which cuts either the selected text, or the current line
4 * if no text is selected, to the clipboard.
12 cutLines(){
13 selections = textArea.getSelectedLines();
15 if(selections.length == 0){
16 selections = new int [] {textArea.getCaretLine()};
17 }
18 start = textArea.getLineStartOffset(selections[0]);
19 stop = textArea.getLineEndOffset(selections[selections.length-1]);
20 textArea.setSelection(new Selection.Range(start,stop));
html.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 193 lines
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.
358 public void showWordCountDialog()
359 {
360 String selection = getSelectedText();
361 if(selection != null)
431 */
432 @Deprecated
433 public final void setSelectionStart(int selectionStart)
434 {
435 int selectionEnd = getSelectionCount() == 1 ? getSelection(0).getEnd() : caret;
436 setSelection(new Selection.Range(selectionStart, selectionEnd));
437 moveCaretPosition(selectionEnd,true);
487 int selectionStart = getSelectionCount() == 1 ? getSelection(0).getStart() : caret;
488 setSelection(new Selection.Range(selectionStart, selectionEnd));
489 moveCaretPosition(selectionEnd,true);
q3wizard_container.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 236 lines
pl1.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 597 lines
history.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 33 lines
25 Clicking the triangle to the right of the text field, or
26 clicking with the right-mouse button anywhere else will display
27 a pop-up menu of all previously entered strings; selecting one will
28 input it into the text field. Holding down <keycap>Shift</keycap>
29 while clicking will display a menu of all previously entered
README.txt (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 79 lines
8 earlier versions.
10 jEdit comes with full online help; to read it, select 'jEdit Help' from
11 jEdit's 'Help' menu or point your web browser to the file named
12 `index.html' in the `doc/users-guide/' directory of the jEdit
18 A list of people who contributed to jEdit, either by submitting code or
19 edit modes to the core, or writing plugins can be viewed by selecting
20 'About jEdit' from jEdit's 'Help' menu.
FirewallOptionPane.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 131 lines
✨ Summary
This Java code defines a FirewallOptionPane
class that extends AbstractOptionPane
. It creates a GUI panel for configuring firewall settings, including HTTP and SOCKS proxy options. The panel is initialized with default values from a configuration file and allows users to enable or disable these options. When the user saves their changes, the new settings are saved to the configuration file.
This Java code defines a FirewallOptionPane
class that extends AbstractOptionPane
. It creates a GUI panel for configuring firewall settings, including HTTP and SOCKS proxy options. The panel is initialized with default values from a configuration file and allows users to enable or disable these options. When the user saves their changes, the new settings are saved to the configuration file.
62 boolean enabled = jEdit.getBooleanProperty("firewall.enabled");
63 httpEnabled.setSelected(enabled);
64 httpHost.setEnabled(enabled);
65 httpPort.setEnabled(enabled);
82 enabled = jEdit.getBooleanProperty("firewall.socks.enabled");
83 socksEnabled.setSelected(enabled);
84 socksHost.setEnabled(enabled);
85 socksPort.setEnabled(enabled);
90 //{{{ _save() method
91 public void _save() {
92 jEdit.setBooleanProperty("firewall.enabled", httpEnabled.isSelected());
93 jEdit.setProperty("firewall.host", httpHost.getText());
94 jEdit.setProperty("firewall.port", httpPort.getText());
soriaGrid.css
(http://enginey.googlecode.com/svn/trunk/)
CSS · 167 lines
✨ Summary
This CSS code defines styles for a grid layout component, specifically for the Soria theme of DojoX Grid. It sets background colors, font sizes, and borders for various elements such as headers, rows, cells, and editing states. The styles also include hover effects, active states, and drag-and-drop interactions to enhance the visual appearance and user experience of the grid component.
This CSS code defines styles for a grid layout component, specifically for the Soria theme of DojoX Grid. It sets background colors, font sizes, and borders for various elements such as headers, rows, cells, and editing states. The styles also include hover effects, active states, and drag-and-drop interactions to enhance the visual appearance and user experience of the grid component.
xfs_ag.h
(http://omnia2droid.googlecode.com/svn/trunk/)
C Header · 254 lines
✨ Summary
This C header file defines a set of data structures and constants for the XFS (extensible filesystem) implementation. It provides definitions for various components, such as allocation groups, inode radix trees, and file system blocks, which are used to manage the filesystem’s metadata and data storage. The code is part of the Linux kernel’s XFS module.
This C header file defines a set of data structures and constants for the XFS (extensible filesystem) implementation. It provides definitions for various components, such as allocation groups, inode radix trees, and file system blocks, which are used to manage the filesystem’s metadata and data storage. The code is part of the Linux kernel’s XFS module.
EditingOptionPane.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 422 lines
✨ Summary
This Java code is part of a text editor’s configuration management system. It defines a class that manages settings for different modes (e.g., programming languages) and buffers (e.g., editing windows). The class loads, saves, and updates these settings based on user input and file changes, ensuring consistency across the application.
This Java code is part of a text editor’s configuration management system. It defines a class that manages settings for different modes (e.g., programming languages) and buffers (e.g., editing windows). The class loads, saves, and updates these settings based on user input and file changes, ensuring consistency across the application.
119 firstlineGlob = new JTextField());
121 selectMode();
123 addSeparator();
125 defaultMode = new JComboBox(modes);
126 defaultMode.setSelectedItem(jEdit.getMode(
127 jEdit.getProperty("buffer.defaultMode")));
128 addComponent(jEdit.getProperty("options.editing.defaultMode"),
137 {
138 jEdit.setProperty("buffer.defaultMode",
139 ((Mode)defaultMode.getSelectedItem()).getName());
140 jEdit.setProperty("buffer.undoCount",undoCount.getText());
NavigableDateSelector.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 188 lines
✨ Summary
This Java class, NavigableDateSelector
, wraps an existing DateSelector
component to add a navigation bar with buttons for moving forward and backward in time. It handles clicks on these buttons by calling methods on the wrapped DateSelector
. The navigation bar’s appearance can be customized through its background color.
This Java class, NavigableDateSelector
, wraps an existing DateSelector
component to add a navigation bar with buttons for moving forward and backward in time. It handles clicks on these buttons by calling methods on the wrapped DateSelector
. The navigation bar’s appearance can be customized through its background color.
46 */
48 public class NavigableDateSelector extends JPanel implements DateSelector {
49 private DateSelector selector;
71 */
73 public NavigableDateSelector( DateSelector selector ) {
74 this.selector = selector;
98 */
100 public NavigableDateSelector( DateSelector selector, Color background_color ) {
101 this( selector );
175 public Date getSelectedDate() {
176 return selector.getSelectedDate();
177 }
178 public Date getCurrentDate() {
if-c.html
(http://hadesmem.googlecode.com/svn/trunk/)
HTML · 0 lines
✨ Summary
This HTML code outputs a documentation page for a C++ library, specifically the Boost library. It displays the documentation for a metafunction called if_c
, which is used to conditionally allocate memory based on the size of a type. The page includes examples and links to related functions and concepts in the library.
This HTML code outputs a documentation page for a C++ library, specifically the Boost library. It displays the documentation for a metafunction called if_c
, which is used to conditionally allocate memory based on the size of a type. The page includes examples and links to related functions and concepts in the library.
11 <table class="header"><tr class="header"><td class="header-group navigation-bar"><span class="navigation-group"><a href="./if.html" class="navigation-link">Prev</a> <a href="./eval-if.html" class="navigation-link">Next</a></span><span class="navigation-group-separator"> | </span><span class="navigation-group"><a href="./if.html" class="navigation-link">Back</a> <a href="./eval-if.html" class="navigation-link">Along</a></span><span class="navigation-group-separator"> | </span><span class="navigation-group"><a href="./type-selection.html" class="navigation-link">Up</a> <a href="../refmanual.html" class="navigation-link">Home</a></span><span class="navigation-group-separator"> | </span><span class="navigation-group"><a href="./refmanual_toc.html" class="navigation-link">Full TOC</a></span></td>
12 <td class="header-group page-location"><a href="../refmanual.html" class="navigation-link">Front Page</a> / <a href="./metafunctions.html" class="navigation-link">Metafunctions</a> / <a href="./type-selection.html" class="navigation-link">Type Selection</a> / <a href="./if-c.html" class="navigation-link">if_c</a></td>
13 </tr></table><div class="header-separator"></div>
14 <div class="section" id="if-c">
15 <h1><a class="toc-backref" href="./type-selection.html#id1521">if_c</a></h1>
16 <div class="section" id="id866">
17 <h3><a class="subsection-title" href="#synopsis" name="synopsis">Synopsis</a></h3>
57 <tr><td><tt class="literal"><span class="pre">c</span></tt></td>
58 <td>An integral constant</td>
59 <td>A selection condition.</td>
60 </tr>
61 <tr><td><tt class="literal"><span class="pre">T1</span></tt>, <tt class="literal"><span class="pre">T2</span></tt></td>
62 <td>Any type</td>
63 <td>Types to select from.</td>
64 </tr>
65 </tbody>
OSXAdapter.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 188 lines
✨ Summary
This Java code creates an adapter that communicates with native functions of macOS, allowing for custom application behavior. It sets up event listeners to handle various application events, such as quit, about, and preferences menus, and allows developers to override these behaviors by providing their own implementation methods. The adapter uses reflection to interact with the native macOS API.
This Java code creates an adapter that communicates with native functions of macOS, allowing for custom application behavior. It sets up event listeners to handle various application events, such as quit, about, and preferences menus, and allows developers to override these behaviors by providing their own implementation methods. The adapter uses reflection to interact with the native macOS API.
63 // Pass this method an Object and Method equipped to display application info
64 // They will be called when the About menu item is selected from the application menu
65 public static void setAboutHandler(Object target, Method aboutHandler) {
66 boolean enableAboutMenu = (target != null && aboutHandler != null);
81 // Pass this method an Object and a Method equipped to display application options
82 // They will be called when the Preferences menu item is selected from the application menu
83 public static void setPreferencesHandler(Object target, Method prefsHandler) {
84 boolean enablePrefsMenu = (target != null && prefsHandler != null);
tip82.html
(https://jedit.svn.sourceforge.net/svnroot/jedit)
HTML · 8 lines
✨ Summary
This HTML code displays instructions on how to open a new, floating instance of a docked window or a floating window using a specific menu option. It provides step-by-step guidance on right-clicking and selecting “New Floating Instance” from the resulting menu, allowing users to create multiple instances of file system browsers simultaneously.
This HTML code displays instructions on how to open a new, floating instance of a docked window or a floating window using a specific menu option. It provides step-by-step guidance on right-clicking and selecting “New Floating Instance” from the resulting menu, allowing users to create multiple instances of file system browsers simultaneously.
1 <html><body>
2 To open a new, floating, instance of a docked window, right-click on the dockable's button and select <b>New Floating Instance</b> from the resulting menu.<p>
4 To open a new, floating, instance of a floating window, click the menu button in the top left corner of the window and select <b>New Floating Instance</b> from the resulting menu.<p>
users-guide.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 576 lines
51 </orderedlist>
53 <para> On the top of the window, you will see a combobox which lists all installed SideKick parsers. You can switch to another parser temporarily for a buffer by selecting it from the combo box. </para>
92 Clicking on a node in the tree will move the caret to its location in the
93 buffer;
94 conversely, moving the caret in the buffer will select the corresponding
95 node.
96 </para>
547 <function>deactivate()</function> methods to
548 <classname>SideKickParser</classname> class. These methods are called when
549 a buffer using this parser is selected and deselected in a given view.
550 </para></listitem>
551 <listitem><para>The priority of the thread used by SideKick to parse files
Add_Prefix_and_Suffix.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 161 lines
2 * Add_Prefix_and_Suffix.bsh - a BeanShell macro script for the
3 * jEdit text editor - obtains and processes input for prefix and
4 * suffix text to be inserted in selected lines in the current
5 * editing buffer
6 * Copyright (C) 2001 John Gellene
26 * Notes on use:
27 *
28 * If no text is selected, the macro will operate on the current line.
29 *
30 * The caret position is part of the selected text; if the caret is at
47 // create dialog object and set its features
48 title = "Add prefix and suffix to selected lines";
49 dialog = new JDialog(view, title, false);
50 content = new JPanel(new BorderLayout());
119 // text manipulation begins here using calls
120 // to jEdit methods
121 selectedLines = textArea.getSelectedLines();
122 for(i = 0; i < selectedLines.length; ++i)
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.
57 private JTextField path = null;
58 private JCheckBox recursive_cb = null;
59 private RevisionSelectionPanel revision_panel = null;
60 private RevisionSelectionPanel peg_revision_panel = null;
123 recursive_cb = new JCheckBox( "Recursive?" );
124 recursive_cb.setSelected( true );
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 );
148 eol = new JComboBox( new String[] {"native", "CRLF (Windows)", "LF (Unix)", "CR (Old Mac)"} );
149 eol.setEditable( false );
150 eol.setSelectedItem( "native" );
152 force = new JCheckBox("Overwrite existing files?");
hw.h
(http://omnia2droid.googlecode.com/svn/trunk/)
C++ Header · 427 lines
✨ Summary
This C++ header file defines a set of constants, structures, and macros for an IEEE 802.11 wireless networking chip (AR9170). It provides definitions for packet formats, status codes, and queue management for transmit and receive operations. The code is likely used in a Linux kernel module or driver to interact with the AR9170 hardware.
This C++ header file defines a set of constants, structures, and macros for an IEEE 802.11 wireless networking chip (AR9170). It provides definitions for packet formats, status codes, and queue management for transmit and receive operations. The code is likely used in a Linux kernel module or driver to interact with the AR9170 hardware.
textselection.qmlproject (https://bitbucket.org/ultra_iter/qt-vtl.git) Unknown · 17 lines
4 /* Include .qml, .js, and image files from current directory and subdirectories */
5 QmlFiles {
6 directory: "qml/textselection"
7 }
8 JavaScriptFiles {
9 directory: "qml/textselection"
10 }
11 ImageFiles {
12 directory: "qml/textselection"
13 }
14 /* List of plugin directories passed to QML runtime */
RevisionSelectionPanelUI.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 26 lines
✨ Summary
This Java code defines an abstract class RevisionSelectionPanelUI
that extends ComponentUI
. It’s a UI component for a graphical user interface (GUI) and is part of a larger program, likely related to Subversion version control. The class provides a basic structure for creating custom GUI components for revision selection panels.
This Java code defines an abstract class RevisionSelectionPanelUI
that extends ComponentUI
. It’s a UI component for a graphical user interface (GUI) and is part of a larger program, likely related to Subversion version control. The class provides a basic structure for creating custom GUI components for revision selection panels.
RepositoryComboBox.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 238 lines
✨ Summary
This Java class, RepositoryComboBox
, is a custom JComboBox that allows users to select a repository from a dropdown list. It populates the list from jEdit properties and saves changes back to the properties file. The combo box displays friendly names of repositories and allows users to add, remove, and save repository data.
This Java class, RepositoryComboBox
, is a custom JComboBox that allows users to select a repository from a dropdown list. It populates the list from jEdit properties and saves changes back to the properties file. The combo box displays friendly names of repositories and allows users to add, remove, and save repository data.
48 private static final String propertyPrefix = "ise.plugins.svn.repository.";
50 public static final String SELECT = "-- Select --";
52 DefaultComboBoxModel dropdownModel = null; // holds the display names
106 if ( selected != null ) {
107 setSelectedItem( selected.getName() );
108 }
109 else {
178 }
180 // could return null if SELECT is the current selection
181 public RepositoryData getSelectedRepository() {
190 if (selected != null) {
191 String name = selected.getName() == null ? selected.getURL() : selected.getName();
192 propertyMap.put(name, selected);
Insert_Date.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 81 lines
CloseDialog.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 240 lines
✨ Summary
This Java code creates a dialog for closing all buffers in an integrated development environment (IDE). It displays a list of open buffers, allows users to select and save or discard them, and provides options to cancel or close all buffers. The dialog updates its buttons based on the selected buffer index.
This Java code creates a dialog for closing all buffers in an integrated development environment (IDE). It displays a list of open buffers, allows users to select and save or discard them, and provides options to cancel or close all buffers. The dialog updates its buttons based on the selected buffer index.
81 buttons.add(selectAll = new JButton(jEdit.getProperty("close.selectAll")));
82 selectAll.setMnemonic(jEdit.getProperty("close.selectAll.mnemonic").charAt(0));
83 selectAll.addActionListener(actionListener);
95 buttons.add(Box.createGlue());
97 bufferList.setSelectedIndex(0);
99 content.add(BorderLayout.SOUTH,buttons);
128 private JList bufferList;
129 private DefaultListModel bufferModel;
130 private JButton selectAll;
131 private JButton save;
132 private JButton discard;
158 selectAllFlag = true;
160 bufferList.setSelectionInterval(0,
161 bufferModel.getSize() - 1);
162 }
Jump.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 166 lines
✨ Summary
This Java code is part of a plugin for the JEdit text editor, providing functionality for jumping between different parts of a project, such as files, tags, and folds. It checks if the plugin is enabled and if a project is loaded before performing actions like showing lists of files, tags, or jumps to specific locations in the text.
This Java code is part of a plugin for the JEdit text editor, providing functionality for jumping between different parts of a project, such as files, tags, and folds. It checks if the plugin is enabled and if a project is loaded before performing actions like showing lists of files, tags, or jumps to specific locations in the text.
StyleOptionPane.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 453 lines
✨ Summary
This Java code is a graphical user interface (GUI) for editing syntax highlighting settings. It allows users to select font styles, colors, and sizes for text editors. The GUI consists of checkboxes and buttons that enable users to customize their text editor’s appearance. When the “OK” button is clicked, the selected settings are applied to the text editor.
This Java code is a graphical user interface (GUI) for editing syntax highlighting settings. It allows users to select font styles, colors, and sizes for text editors. The GUI consists of checkboxes and buttons that enable users to customize their text editor’s appearance. When the “OK” button is clicked, the selected settings are applied to the text editor.
80 styleModel = createStyleTableModel();
81 styleTable = new JTable(styleModel);
82 styleTable.setRowSelectionAllowed(false);
83 styleTable.setColumnSelectionAllowed(false);
84 styleTable.setCellSelectionEnabled(false);
85 styleTable.getTableHeader().setReorderingAllowed(false);
86 styleTable.addMouseListener(new MouseHandler());
255 JTable table,
256 Object value,
257 boolean isSelected,
258 boolean cellHasFocus,
259 int row,
309 italics = new JCheckBox(jEdit.getProperty("style-editor.italics"));
310 italics.setSelected(style.getFont().isItalic());
311 layout.setConstraints(italics,cons);
312 panel.add(italics);
FileListRenderer.java (https://bitbucket.org/nbargnesi/idea.git) Java · 39 lines
26 public class FileListRenderer extends ColoredListCellRenderer {
27 protected void customizeCellRenderer(JList list, Object value, int index, boolean selected, boolean hasFocus) {
28 // paint selection only as a focus rectangle
29 mySelected = false;
30 setBackground(null);
31 VirtualFile vf = (VirtualFile) value;
MultilineTreeCellRenderer.java (https://bitbucket.org/nbargnesi/idea.git) Java · 476 lines
20 import com.intellij.util.ArrayUtil;
21 import com.intellij.util.ui.UIUtil;
22 import com.intellij.util.ui.tree.WideSelectionTreeUI;
23 import org.jetbrains.annotations.NonNls;
133 // fill background
134 if (!(myTree.getUI() instanceof WideSelectionTreeUI) || !((WideSelectionTreeUI)myTree.getUI()).isWideSelection()) {
135 g.setColor(bgColor);
136 g.fillRect(borderX, borderY, borderW, borderH);
347 initComponent(tree, value, selected, expanded, leaf, row, hasFocus);
349 mySelected = selected;
350 myHasFocus = hasFocus;
fileio.c (https://bitbucket.org/ultra_iter/vim-qt.git) C · 10387 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.
87 f.textBox("xml.translate.input.prompt").requireText(in.getPath());
88 f.comboBox("input-type").requireSelection("dtd");
90 f.checkBox("inline-attlist").requireVisible().requireNotSelected();
92 f.textBox("xml.translate.output.prompt").requireText(in.getPath());
93 f.comboBox("output-type").requireSelection("dtd");
95 f.comboBox("output-type").selectItem("xsd");
96 f.checkBox("disable-abstract-elements").requireVisible().requireNotSelected();
97 f.checkBox("inline-attlist").requireVisible().requireSelected();
121 f = new DialogFixture(robot(),robot().finder().findByType(TrangGUI.class));
123 f.comboBox("output-type").selectItem("xsd");
124 f.checkBox("inline-attlist").uncheck();
question49234.sh (https://bitbucket.org/shuangxinyu/emacspack.git) Shell · 42 lines
AddDialog.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 204 lines
✨ Summary
This Java code defines a dialog box for adding files and directories to an SVN repository. It allows users to select files, set recursive options, and add them to the repository. The dialog includes a table to list selected files, checkboxes for recursive options, and buttons to confirm or cancel the action. When confirmed, it returns the selected file paths as part of an SVNData object.
This Java code defines a dialog box for adding files and directories to an SVN repository. It allows users to select files, set recursive options, and add them to the repository. The dialog includes a table to list selected files, checkboxes for recursive options, and buttons to confirm or cancel the action. When confirmed, it returns the selected file paths as part of an SVNData object.
129 final JCheckBox recursive_cb = new JCheckBox( "Recursively add?" );
130 recursive_cb.setSelected( recursive );
131 recursive_cb.addActionListener( new ActionListener() {
132 public void actionPerformed( ActionEvent ae ) {
133 addData.setRecursive( recursive_cb.isSelected() );
134 }
135 }
150 List<String> paths = new ArrayList<String>();
151 for ( int row = 0; row < file_table_model.getRowCount(); row++ ) {
152 Boolean selected = ( Boolean ) file_table_model.getValueAt( row, 0 );
153 if ( selected ) {
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.
115 new ActionListener() {
116 public void actionPerformed( ActionEvent ae ) {
117 final JDialog dialog = new JDialog( view, jEdit.getProperty("ips.Select_Repository", "Select Repository") );
118 dialog.setModal( true );
119 JPanel panel = new JPanel( new LambdaLayout() );
127 new ActionListener() {
128 public void actionPerformed( ActionEvent ae ) {
129 String selection = burp.getSelectionPath();
130 dialog.setVisible( false );
131 dialog.dispose();
132 if ( selection != null && selection.length() > 0 ) {
133 url.setText( selection );
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.
102 }
104 // called by ProjectViewer to let us know the currently selected node in
105 // the PV tree. This method updates the various action listeners that
106 // execute the subversion commands so they know the current node and can
130 for ( ActionListener al : listeners ) {
131 if ( al instanceof NodeActor ) {
132 ( ( NodeActor ) al ).prepareForNode( getSelectedNodes(), view, project_root, username, password );
133 }
134 }
162 default: {
163 list = getSelectedArtifacts( tree.getSelectionPaths() );
164 break;
165 }
wchar_from_mb.hpp
(http://hadesmem.googlecode.com/svn/trunk/)
C++ Header · 0 lines
✨ Summary
This C++ header file defines a class wchar_from_mb
that translates char strings to wchar_t strings of the currently selected locale. It’s used by text archives to convert character data into wide characters, allowing for proper handling of Unicode characters in different locales. The class is designed to be compatible with various compilers and platforms.
This C++ header file defines a class wchar_from_mb
that translates char strings to wchar_t strings of the currently selected locale. It’s used by text archives to convert character data into wide characters, allowing for proper handling of Unicode characters in different locales. The class is designed to be compatible with various compilers and platforms.
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.
136 public Component getCellRenderer(JList list, int index,
137 boolean isSelected, boolean cellHasFocus)
138 {
139 return renderer.getListCellRendererComponent(list,
140 complete.get(index), index,
141 isSelected, cellHasFocus);
142 }
151 private void keyTyped(char ch)
152 {
153 // If no completion is selected, do not pass the key to
154 // handleKeystroke() method. This avoids interfering
155 // between a bit intermittent user typing and automatic
156 // completion (which is not selected initially).
157 int selected = getSelectedIndex();
158 if(selected == -1)
EnhancedCheckBoxMenuItem.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 160 lines
✨ Summary
This Java class, EnhancedCheckBoxMenuItem, extends JCheckBoxMenuItem to add support for multi-key shortcuts. It creates a custom menu item with an associated EditAction and displays a shortcut label next to the checkbox. The shortcut is retrieved from user preferences if available, otherwise it defaults to the action’s name.
This Java class, EnhancedCheckBoxMenuItem, extends JCheckBoxMenuItem to add support for multi-key shortcuts. It creates a custom menu item with an associated EditAction and displays a shortcut label next to the checkbox. The shortcut is retrieved from user preferences if available, otherwise it defaults to the action’s name.
74 g.setFont(acceleratorFont);
75 g.setColor(getModel().isArmed() ?
76 acceleratorSelectionForeground :
77 acceleratorForeground);
78 FontMetrics fm = g.getFontMetrics();
96 private static Font acceleratorFont;
97 private static Color acceleratorForeground;
98 private static Color acceleratorSelectionForeground;
100 private String getShortcut()
132 acceleratorForeground = UIManager
133 .getColor("MenuItem.acceleratorForeground");
134 acceleratorSelectionForeground = UIManager
135 .getColor("MenuItem.acceleratorSelectionForeground");
138 class Model extends DefaultButtonModel
139 {
140 public boolean isSelected()
141 {
142 if(!isShowing())
ProjectViewerListener.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 42 lines
✨ Summary
This is a Java interface definition for a listener that responds to events related to project management in an application, specifically ProjectViewerEvent
. It provides three methods to handle different types of project-related events: loading, adding, and removing projects. The listener can be implemented by any class to receive notifications about these events.
This is a Java interface definition for a listener that responds to events related to project management in an application, specifically ProjectViewerEvent
. It provides three methods to handle different types of project-related events: loading, adding, and removing projects. The listener can be implemented by any class to receive notifications about these events.
ImageSelection.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 42 lines
✨ Summary
This Java code creates a Transferable
class that allows copying an image to the system clipboard. It takes an Image
object as input, sets its contents in the clipboard, and provides data flavors for image transfer. The copyImageToClipboard
method is used to copy the image to the clipboard, making it easily shareable.
This Java code creates a Transferable
class that allows copying an image to the system clipboard. It takes an Image
object as input, sets its contents in the clipboard, and provides data flavors for image transfer. The copyImageToClipboard
method is used to copy the image to the clipboard, making it easily shareable.
7 * A Transferable for copying an image to the system clipboard.
8 */
9 public class ImageSelection implements Transferable {
10 private Image image;
15 */
16 public static void copyImageToClipboard( Image image ) {
17 ImageSelection imageSelection = new ImageSelection( image );
18 Toolkit toolkit = Toolkit.getDefaultToolkit();
19 toolkit.getSystemClipboard().setContents( imageSelection, null );
20 }
22 public ImageSelection( Image image ) {
23 this.image = image;
24 }
OptionPane.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 118 lines
✨ Summary
This Java code defines a custom option pane for a text editor, allowing users to configure various settings such as push away mode, layout, and animations. It uses a combination of JComboBox and JCheckBox components to provide a user-friendly interface for setting these options. The changes are saved when the “Save” button is clicked, updating the text editor’s properties accordingly.
This Java code defines a custom option pane for a text editor, allowing users to configure various settings such as push away mode, layout, and animations. It uses a combination of JComboBox and JCheckBox components to provide a user-friendly interface for setting these options. The changes are saved when the “Save” button is clicked, updating the text editor’s properties accordingly.
43 }
44 public static PushAwayMode getPushAwayModeProp() {
45 String selected = jEdit.getProperty(PUSH_AWAY_MODE_PROP,
46 PushAwayMode.HORIZONTAL.toString());
47 return PushAwayMode.valueOf(selected);
75 };
76 pushAwayMode = new JComboBox(pushAwayModes);
77 pushAwayMode.setSelectedItem(getPushAwayModeProp().toString());
78 addComponent(jEdit.getProperty(PUSH_AWAY_MODE_LABEL), pushAwayMode);
79 useAlternateLayout = new JCheckBox(
105 @Override
106 protected void _save() {
107 jEdit.setProperty(PUSH_AWAY_MODE_PROP, (String)pushAwayMode.getSelectedItem());
108 jEdit.setBooleanProperty(USE_ALTERNATE_LAYOUT_PROP, useAlternateLayout.isSelected());
109 jEdit.setBooleanProperty(FLOAT_ON_TOP_PROP, floatOnTop.isSelected());
110 jEdit.setBooleanProperty(FLOAT_OS_DECORATIONS_PROP, floatOsDecorations.isSelected());
HyperlinkOptionPane.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 93 lines
✨ Summary
This Java code defines a class HyperlinkOptionPane
that extends AbstractOptionPane
. It creates a GUI panel for configuring hyperlink options, including selecting a color and choosing a default hyperlink source from a list of available services. The panel’s state is saved when the user clicks “OK”, updating the application’s settings accordingly.
This Java code defines a class HyperlinkOptionPane
that extends AbstractOptionPane
. It creates a GUI panel for configuring hyperlink options, including selecting a color and choosing a default hyperlink source from a list of available services. The panel’s state is saved when the user clicks “OK”, updating the application’s settings accordingly.
62 defaultSource = new JComboBox(sl.toArray());
63 String defaultSourceName = jEdit.getProperty(HyperlinkSource.DEFAULT_PROPERTY);
64 defaultSource.setSelectedItem(defaultSourceName);
65 addComponent(jEdit.getProperty("options.hyperlink.color.label"), hyperlinkColor);
66 addComponent(jEdit.getProperty(HyperlinkSource.DEFAULT_PROPERTY + ".label"), defaultSource);
73 jEdit.setColorProperty("options.hyperlink.color.value", hyperlinkColor.getSelectedColor());
74 String selected = (String) defaultSource.getSelectedItem();
75 if (selected == HyperlinkSource.NONE)
79 else
80 {
81 jEdit.setProperty(HyperlinkSource.DEFAULT_PROPERTY, selected);
82 }
83 } //}}}
ContentTabLabel.java (https://bitbucket.org/nbargnesi/idea.git) Java · 112 lines
44 final ContentManager mgr = contentManager();
45 if (mgr.getIndexOfContent(myContent) >= 0) {
46 mgr.setSelectedContent(myContent, true);
47 }
48 }
72 protected Color getActiveFg(boolean selected) {
73 if (contentManager().getContentCount() > 1) {
74 return selected ? Color.white : super.getActiveFg(selected);
75 }
76 return super.getActiveFg(selected);
80 protected Color getPassiveFg(boolean selected) {
81 if (contentManager().getContentCount() > 1) {
82 return selected ? Gray._255 : super.getPassiveFg(selected);
83 }
84 return super.getPassiveFg(selected);
masterlist.txt (http://better-oblivion-sorting-software.googlecode.com/svn/) Plain Text · 5744 lines
265 DCXpansion - Stanton Park.esm
266 Scannadd5000.esm
267 Selected Containers Respawn.esm
268 AngelRaces.esm
269 SeducingWomen.esm
326 BEGINGROUP: Unofficial Patches and Fixes
327 //-----------
328 Selected Containers Respawn - Emptied Trash Cans in Player Homes.esp
329 DALCO Inventory Sorter - Fallout 3 & All DLCs.esp
330 TAG: {{BASH: NoMerge, Names}}
527 Ambient Temperature - OA.esp
528 REQ: Anchorage.esm
529 Selective Fire.esp
530 PIMP.esp
531 Project Beauty.esp
HRangeSlider.as
(git://github.com/OpenRTMFP/ArcusNode.git)
ActionScript · 40 lines
✨ Summary
This is an ActionScript class definition for a horizontal range slider component. It extends another RangeSlider
class and provides a basic implementation for creating a horizontal slider with two handles, allowing users to select a range of values. The class includes a constructor that initializes the parent object, x-position, y-position, and default handler.
This is an ActionScript class definition for a horizontal range slider component. It extends another RangeSlider
class and provides a basic implementation for creating a horizontal slider with two handles, allowing users to select a range of values. The class includes a constructor that initializes the parent object, x-position, y-position, and default handler.