public void handleEvent( Event e ) { renameFunction( wTree.getSelection()[0] ); } } );
public void widgetSelected( SelectionEvent event ) { if ( tree.getSelectionCount() == 1 ) { TreeItem item = tree.getSelection()[0]; if ( item.getParentItem() != null ) { // has a category above it String functionName = item.getText(); FunctionDescription functionDescription = functionLib.getFunctionDescription( functionName ); if ( functionDescription != null ) { String report = functionDescription.getHtmlReport(); message.setText( report ); } } } }
public void handleEvent( Event e ) { renameFunction( wTree.getSelection()[0] ); } } );
public void handleEvent( Event e ) { renameFunction( wTree.getSelection()[0] ); } } );
@Override public void widgetSelected(SelectionEvent e) { TreeItem[] items = tree.getSelection(); refreshOrder(); dbContainerTreeItemSelected(items[0], true); } });
public void widgetSelected( SelectionEvent e ) { if ( wTree.getSelection().length > 0 ) { wOK.setEnabled( !Boolean.TRUE.equals( wTree.getSelection()[ 0 ].getData( "isFolder" ) ) ); } } } );
public void dragSetData( DragSourceEvent event ) { // Set the data to be the first selected item's text event.data = wTree.getSelection()[0].getText(); } } );
private TreeEntry getTreeEntry() { TreeItem[] ti = wTree.getSelection(); if ( ti.length == 1 ) { return getTreeEntry( ti[ 0 ] ); } else { return null; } }
public void dragSetData( DragSourceEvent event ) { // Set the data to be the first selected item's data event.data = wTree.getSelection()[0].getData(); } } );
public void dragSetData( DragSourceEvent event ) { // Set the data to be the first selected item's text event.data = wTree.getSelection()[0].getText(); } } );
@Override public void widgetSelected(SelectionEvent e) { if (flatView == true) { TreeItem[] treeItems = tree.getSelection(); ContainerKeyInfo cinfo = new ContainerKeyInfo(); parseContainer(treeItems[0], cinfo); flatView = false; updateView(cinfo); } } });
@Override public void widgetSelected(SelectionEvent e) { if (flatView == false) { TreeItem[] treeItems = tree.getSelection(); ContainerKeyInfo cinfo = new ContainerKeyInfo(); parseContainer(treeItems[0], cinfo); flatView = true; updateView(cinfo); } } });
public void handleEvent( Event e ) { String snippitFullName = wTree.getSelection()[0].getText(); String sampleTabName = snippitFullName.replace( "Implement ", "" ).replace( ' ', '_' ) + "_Sample"; if ( getCTabPosition( sampleTabName ) == -1 ) { addCtab( sampleTabName, snippitsHelper.getSample( snippitFullName ), TabAddActions.ADD_DEFAULT ); } if ( getCTabPosition( sampleTabName ) != -1 ) { setActiveCtab( sampleTabName ); } } } );
public void handleEvent( Event e ) { String strFunctionName = wTree.getSelection()[0].getText(); String strFunctionNameWithArgs = strFunctionName; strFunctionName = strFunctionName.substring( 0, strFunctionName.indexOf( '(' ) ); String strHelpTabName = strFunctionName + "_Sample"; if ( getCTabPosition( strHelpTabName ) == -1 ) { addCtab( strHelpTabName, scVHelp.getSample( strFunctionName, strFunctionNameWithArgs ), 0 ); } if ( getCTabPosition( strHelpTabName ) != -1 ) { setActiveCtab( strHelpTabName ); } } } );
public void handleEvent( Event e ) { String strFunctionName = wTree.getSelection()[0].getText(); String strFunctionNameWithArgs = strFunctionName; strFunctionName = strFunctionName.substring( 0, strFunctionName.indexOf( '(' ) ); String strHelpTabName = strFunctionName + "_Sample"; if ( getCTabPosition( strHelpTabName ) == -1 ) { addCtab( strHelpTabName, scVHelp.getSample( strFunctionName, strFunctionNameWithArgs ), 0 ); } if ( getCTabPosition( strHelpTabName ) != -1 ) { setActiveCtab( strHelpTabName ); } } } );
private void orderMenuSelected(Order order) { TreeItem[] items = tree.getSelection(); if (items.length > 0) { NodeType type = (NodeType) items[0].getData(NODE_TYPE); if (type == NodeType.CONTAINER || type == NodeType.DATABASE) { clientOrder = order; columnSelected(); } } }
@Override public void widgetSelected(SelectionEvent e) { TreeItem[] items = tree.getSelection(); if (items[0] != rootRedisServers) { history.add(items[0].getParentItem()); btnBackward.setEnabled(true); btnForward.setEnabled(false); tree.setSelection(items[0].getParentItem()); treeItemSelected(false); } } });
public void handleOK() { TreeItem[] ti = wTree.getSelection(); if ( ti.length == 1 ) { String[] tree = ConstUI.getTreeStrings( ti[ 0 ] ); selection = repositoryTree.findDirectory( tree ); dispose(); } } }
public void widgetDefaultSelected( SelectionEvent selectionEvent ) { TreeItem[] items = tree.getSelection(); for ( int i = 0; i < items.length; i++ ) { String[] path2 = ConstUI.getTreeStrings( items[i] ); if ( equalPaths( path1, path2 ) ) { doubleClick.action( treeItem ); } } } };
private void deleteKey(Item item) { ContainerKeyInfo cinfo = new ContainerKeyInfo(); TreeItem[] items = tree.getSelection(); parseContainer(items[0], cinfo); String key = cinfo.getContainerStr(); key += item.getText(); service2.deleteKey(cinfo.getId(), cinfo.getDb(), key); item.dispose(); }