selection

Publishing selection in eclipse RCP

I'm writing an RCP application plug-in. I want to make a set of objects the global selection from a IHandler but this can be triggered from other views out of my control - it is possible that these do not have an ISelectionProvider. Is it possible to publish a selection to the eclipse selection service without going through some view si...

WPF Toolkit Datagrid - Can I call a function in view-model, on selection of a row ?

Hi, I have a WPf Toolkit-datagrid..in my application which follows MVVM pattern. How I can call a function in view-model if user selects a particular row in datagrid ? ...

C# Winforms Textbox - Can I keep the selection when it loses focus?

I would like to have a regular textbox on my form, where the selected text is still highlighted even if you use another control, e.g. push a button. Does anyone know a way to achieve this (without using a RichTextBox which is not suitable for what I am doing). Thanks in Advance ...

Jtree And Jpanel on JSplitpane

i want to display different Jpanel when different node is selected just like in a fileBrowser.My Jpanel has button controls.am using TreeselectionListerner and defaultMutableTreeNode.how can i display different panel for nodes in the same depth.each node corresponds to different objects .everyTime i create a node i pass the userObject ...

SQL query to get lowest 2 values of a counted query selection (using db2)?

Hi, Imagine I already have a query that returns the following: Col1 | Col2 ------------ A | 2 B | 3 C | 3 D | 4 E | 8 ... Say I used something like this: select Col1, count ( * ) as Col2 \ from ... where ... order by Col2 \ group by Col1 \ So now, all I want to select are (Col1, Col2) such that it r...

disabling "block selection" on an iPhone

I am building an app for iPhone that has javascript running in a webview. When the new auto-select block selection tool is used to select text, and the block is resized from the side, it makes my javascript freak out. Does anyone know a way to disable the copy/paste for block selection? I still need to be able to select text, just not...

Visual Studio 2010 on seleccion change event in add-in.

Is it possible to subscribe to selection change event in visual studio 2010 add in, or any other way to detect that event? this is what i need to do: User click anywhere in a c# code file. I need to know where the user is: Property,Function,Class,Delegate,etc. Ideas? thanks. ...

Android: Enable selection in webkit

Hello, I'am looking for a way to have a webview content selectable in the very same way as the stock browser does. user long presses the text the whole word is selected two pins appear at the word's boundary allowing the user to stretch/shrink the selection. I should note that Dolphin HD shows exactly the same text select functionali...

How to animate a UIButton selected background Image

hi all, I have a class defining a custom UIButton. I configurate a normal and selected state like this: //custom image UIImage *image = [UIImage imageNamed:@"customIconCreationBG.png"]; UIImage *stretchImage = [image stretchableImageWithLeftCapWidth:0.0 topCapHeight:0.0]; [self setBackgroundImage:stretchImage forState:UIControlStateNo...

Cocoa: Set selected color

How can I set the selection color? In this case, it's the color of a selection in an NSTableView edit: Here's my subclass: - (void)highlightSelectionInClipRect:(NSRect)clipRect { NSBezierPath *windowPath; windowPath = [NSBezierPath bezierPathWithRect:clipRect]; [[NSColor greenColor] set]; [windowPath fill]; } The only problem is th...

jqGrid concatenating/building html tag incorrectly

Please excuse the length of this post, but I needed to explain what I am seeing. I have a onSelectRow option that is supposed to build stacked html <li> tags (such as <li>...</li> <li>...</li> <li>...</li> ) up to the number of static xml elements that I am looking at. But my script is concatenating all the image src links toget...

Intercept jTable selection change events

I found this forum thread which suggests overriding ListSelectionModel to prevent rows from being selected. I would like to prevent selection changes when there are unsaved changes (external to the table) for the currently selected item UNTIL the user confirms the discard. Something like: public class confirmSelectionChange extends Def...

JTable after setDefaultRenderer Row selection problem

This is my JTable Renderer class. After I applied this to my jTable, when i click on the row it only highlight the cell instead of whole row. I tried to setRowSelection(true) and setCellSelection(false) but still no use. class jTableRenderer extends DefaultTableCellRenderer { public Component getTableCellRendererComponent(JTable tab...

Get the selected text of a web page in google chrome extension

Hello, I am on google extension development, when a popup is clicked, the input box present in the popup.html file should contain the selected text of the current webpage. example textbox, <input id="searchBox" type="text" /> when a text is selected in a webpage, the textbox should contain the selected word. I tried with chrome.exte...

Where and how should selected items be managed in a MVVM architecture ?

Hello, I have a view that allows the user to select some data : some dates for example, and executes a command that needs these data. So in my command I should have a reference to the selected date, but what is the best practice to make this date go to the ViewModel side where the command lives : to add a SelectedDate dependency prop...

Can I set the selected item for a JList without having an event thrown to the listeners?

I am working on a viewer, which uses a JList to show thumbnails of the pages of a document. The user can open a page by selecting it through in the JList, or throught other mechanisms, like entering the number in a text box. When using the latter alternative, I want that the JList also selects the page. I do this using setSelectedIndex(...

Is eq the correct selector to get the first element of a jquery list? It gives me an error

Hi everybody, I try to get the first .myClass element of my page. To do that, I use $(".myClass:eq(0)"); This is working perfectly but gives me the following console error: "Warning: Pseudo-class or pseudo-element "eq" unknown." (Traduced from french) Is that error normal? Is there a way to avoid it? Which syntax do you use to sel...

How to select an item in a gtk.IconView (Python)

In a gtk.IconView I can use get_selected_items() to find the paths of the items a user selected in the view. I'm now looking for the corresponding method to set the selection of an IconView. But I can't find any!? What am I missing? ...

Use Javascript to get selected text in Mobile Safari

So I'm working on a bookmarklet where it would be ideal for me to grab the content selected by the user using the "loop". Both window.getSelection and document.getSelection are functions that I can call, however, they always return an empty string. I believe the problem is that when you tap on the bookmark icon in Mobile Safari, the sel...

RAD Studio 2009 Persistent Selection Issue: Bug or Feature?

Sometimes, when coding in RAD Studio 2009 (Delphi), suddently the behaviour of the code editor changes. After such an event, a selection is no longer cleared on character input. This often happens after a session of very intense coding (many characters per second!), so I might accidently hit a keyboard (shortcut) combination. Is this th...