Java Code Examples for org.eclipse.swt.events.MouseEvent#getSource()
The following examples show how to use
org.eclipse.swt.events.MouseEvent#getSource() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AnnotationExpansionControl.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 6 votes |
public void mouseExit(MouseEvent e) { Item item= (Item) ((Widget) e.getSource()).getData(); if (item != null) item.deselect(); // if the event lies outside the entire popup, dispose org.eclipse.swt.graphics.Region region= fShell.getRegion(); Canvas can= (Canvas) e.getSource(); Point p= can.toDisplay(e.x, e.y); if (region == null) { Rectangle bounds= fShell.getBounds(); // p= fShell.toControl(p); if (!bounds.contains(p)) dispose(); } else { p= fShell.toControl(p); if (!region.contains(p)) dispose(); } }
Example 2
Source File: SeriesPagePie.java From slr-toolkit with Eclipse Public License 1.0 | 5 votes |
@Override public void mouseUp(MouseEvent e) { if(e.getSource() == labelShowColor && list.getItemCount() > 0 && btnRadioButtonCustom.getSelection()) { RGB rgb = PageSupport.openAndGetColor(this.getParent(), labelShowColor); int index = list.getSelectionIndex(); pieTermList.get(index).setRgb(rgb); } }
Example 3
Source File: SeriesPageBubble.java From slr-toolkit with Eclipse Public License 1.0 | 5 votes |
@Override public void mouseUp(MouseEvent e) { if(e.getSource() == labelShowColor && list_y.getItemCount() > 0 && btnRadioButtonCustom.getSelection()) { RGB rgb = PageSupport.openAndGetColor(this.getParent(), labelShowColor); int index = list_y.getSelectionIndex(); termDataY.get(index).setRGB(rgb); } }
Example 4
Source File: LegendPageBar.java From slr-toolkit with Eclipse Public License 1.0 | 5 votes |
@Override public void mouseUp(MouseEvent e) { if(e.getSource() == labelColorShow) { RGB rgb = PageSupport.openAndGetColor(this.getParent(), labelColorShow); } }
Example 5
Source File: LegendPagePie.java From slr-toolkit with Eclipse Public License 1.0 | 5 votes |
@Override public void mouseUp(MouseEvent e) { if(e.getSource() == labelColorShow) { RGB rgb = PageSupport.openAndGetColor(this.getParent(), labelColorShow); } }
Example 6
Source File: SeriesPageBar.java From slr-toolkit with Eclipse Public License 1.0 | 5 votes |
@Override public void mouseUp(MouseEvent e) { if(e.getSource() == labelShowColor && list.getItemCount() > 0 && btnRadioButtonCustom.getSelection()) { RGB rgb = PageSupport.openAndGetColor(this.getParent(), labelShowColor); int index = list.getSelectionIndex(); barTermList.get(index).setRgb(rgb); } }
Example 7
Source File: GeneralPageBubble.java From slr-toolkit with Eclipse Public License 1.0 | 5 votes |
@Override public void mouseUp(MouseEvent e) { if(e.getSource() == labelShowColor) { PageSupport.openAndGetColor(this.getParent(), labelShowColor); } if(e.getSource() == labelShowColor2) { PageSupport.openAndGetColor(this.getParent(), labelShowColor2); } }
Example 8
Source File: LabeledInputField.java From elexis-3-core with Eclipse Public License 1.0 | 5 votes |
@Override public void mouseDown(MouseEvent e){ Label l = (Label) e.getSource(); int i = (Integer) l.getData(); ((IContentProvider) def[i].ext).reloadContent(act, def[i]); super.mouseDown(e); }