selection

Split away Selection Service from o.e.ui.workbench bundle

I want to use Selection Service feature from the eclipse RCP in my swing project. Currently the o.e.ui.workbench bundle which contains the related interface is around 3.7 MB, that's way too huge for our requirement Is there any way to split it the workbench to get only the selection service Are there distros already for this Is it leag...

How to select text in columns in a table

Hi, Is there anyway to get the text on an HTML table to be selectable like the tables in MS Word? In a normal html table, when the user selects text using the mouse, the text is selected in ROWS. In MS Word, it is selected in COLUMNS. I am using IE8 in standard mode. I don't mind if the solution uses script or css. Any help would be ...

WPF TreeView focusing on newly added item

I have a sorted tree view with a lot of item. When I am adding a new item I would like the newly added item to be selected and shown on the screen. For example: if I am seeing the first 10 items on the screen and the new item is added on 20th position then the view should change to present the new added item (it can be the first one on t...

Selecting rows in jQuery

I am a beginner in jQuery. I have a table with multiple rows, how do I select next row or previous row after selecting a particlar row? ...

WPF TextBox - programatically select text while preserving "selection direction"

When editing text the user is able to use the keybord shift button and direction keys to modify the selection - one position stays anchored while the other moves. By pressing left it is possible to get the movable part on the left of the anchored part. I'm trying to dinamicaly modify the users selection in WPF's TextBox (for the purpose...

Selection , Finding the largest of a set with Ternary comparator.

Let S be a set of n>0 distinct integers.Assume that n is a power of 3. A ternary comparison can compare three numbers from the set S and order them from the largest to the smallest. Describe an efficient algorithm that uses as few as possible ternary comparisons to find the largest number in the set S.Explain why your algorithm is corr...

Keep text selection when focus changes

I have a normal textbox, and a lightbox with a text input. I want to keep the user's selection in the textbox, even when the user focuses on the lightbox's text input. 1. Select text in normal textbox 2. Toggle lightbox 3. Focus on lightbox input At step 3., the user's text selection is discarded. How can this be prevented? See Googl...

Visual Studio Extensibility: How to understand when mouse selection is finished in the code editor?

Hi I'm working on Visual Studio package. I need to know when mouse selection is done in the code editor. I have to update some object when selection is changed. Currently we are doing this with CommandListener implementing IOleCommandTarget and attached to the IVsTextView. The problem is that mouse selection doesn't come as a command...

Styling the selection color of an input type=text, possible?

Having an input <input type="text" id="myTest" value="bla bla bla"/> and doing this (using jQuery) $('#myTest').select(); causes "bla bla bla" to be selected with default dark blue selection color. Now, is there any way I can change this color using css? css3 can change selection using for instance ::-moz-selection { backgroun...

WPF listbox : problem with selection

Hello. In my XAML file, I have a ListBox declared like this : <ListBox x:Name="lstDeck" Height="280" ItemsSource="{Binding Path=Deck}" > <ListBox.ItemTemplate> <DataTemplate> <ListBoxItem Content="{Binding}" /> </DataTemplate> <...

Multiple selections in VIM

Is it possible to select multiple non-consecutive lines (or sections) in VIM's visual mode? If so, how? ...

JTable iTunes' like selection

Hi All, Is there a way yo get the same iTunes's selection mode behavior in a JTable: To drag a single row, the user just clicks that row, and multiple selection by dragging the mouse is NOT allowed (single selection mode) To drag a group of rows, the user has to hold down the control key (or shift). Thanks a lot ...

UIPageControl UIScrollView & selection

I have a UIPageControl which has UIScrollView which is the MainWindow.xib On the UIScrollView are a UITextView and a UITableView. The user makes a row selection, moves to the next page and selects another row based on the UITextView. I want none of the row to be selected in a page and when the user makes a row selection, I want the se...

getSelection() and insertNode -- Javascript Text Selection

Does anyone know how to set the browser selection to a newly / independently created range? I understand how to get the text selection from the browser, and I understand how to create a range, but I don't know how to tell the browser to change the selection to the range I've created. I would have thought it would be something like "setSe...

UITableView allow two cells to have selected style at the same time

I have created a UItableView using the default Xcode template and configure it to display five rows. I select the first cell on the table. When I select another cell I notice the first one stay selected until I remove my finger from the second one. sample: http://img190.imageshack.us/img190/7184/cellsz.jpg I want a cell to become selec...

SurroundContents on a range spanning multiple tags (getRangeAt problem?)

I have a script that (I think) needs to use surroundContents to wrap the selection area. Doing so allows me to append something, and then reassign the range as the selection. I believe I've narrowed the problem down to a misuse of getRangeAt, but I'm not quite sure how to correct it. Here's the brief bit of code: function getRang...

How do I surroundContents() around a Document Fragment Node?

I may be asking the impossible, but, how do I surroundContents on a document-fragment node? My thoughts (which I'd appreciate feedback on), are as follows: Is the solution to close the fragmentation? If that's it, is there some way to detect if the starting node and ending node don't have opening and closing tags? I'm running into the...

AST for current selected code in eclipse editor?

I need to get the AST for the current selection in the java editor fo eclipse. Basically I want to convert the selected java code in to some other form(maybe some other language or XML etc..). So I guess, I need to get the AST for the selection. Currently I am able to get the selection as simple text. Is there any way out for such proble...

SQL query ...multiple max value selection. Help needed

Business World 1256987 monthly 10 2009-10-28 Business World 1256987 monthly 10 2009-09-23 Business World 1256987 monthly 10 2009-08-18 Linux 4 U 456734 monthly 25 2009-12-24 Linux 4 U 456734 monthly 25 2009-11-11 Linux 4 U 456734 monthly 25 2009-10-28 I get this result with the query: ...

Original Markup inInternet Explorer in Range / Selection

I am extracting content selected by the user via this function: function getSelectionHTML() { var userSelection; if (window.getSelection) { // W3C Ranges userSelection = document.getElementById('axPage').contentWindow.getSelection(); // Get the range: if (userSelection.getRangeAt) var range = userSelection.getRa...