customization

How to customise editor's background color in the ruby plugin for eclipse?

旧街凉风 提交于 2019-12-04 12:59:50
How to customize editor's background color in the aptana's ruby plug-in 3.0.3.201108101424-7e-7Q7f4b2QfPuHR for eclipse? (Descriptions for older versions do not apply to this version and settings in Preferences | General | Text Editors do not have any effect.) You could customize the theme settings in Preferences > Aptana > Themes, e.g. changing the theme used in the combo box to "Eclipse" would switch the editor background to white. You could also read more on http://wiki.appcelerator.org/display/tis/Themes . Myriana I just found the answer! You don't go to Preferences/Appearance to change

How to create a new “templates” category on Xcode 4 and use my own file templates there?

余生颓废 提交于 2019-12-04 12:28:43
问题 I would like to start using my own templates for iOS applications. I don't want any significant changes, but simpler things like add/remove some boilerplate code add some pragma mark sections hardcode my company's name and some comments for every file change the indentation etc etc etc The idea is that we will share these templates when we create apps, but at the same time we want to keep the default template files that Xcode 4 already provides. So, in the following screenshot, how can I add

Changing the color of UITableViewCellDeleteConfirmationControl(Delete Button) in UITableViewCell

被刻印的时光 ゝ 提交于 2019-12-04 12:10:48
Currently I'm trying to customize delte button in UITableViewCell. Now I've got something like that: Now, all what I need is to change the color of this button, I don't want to change the behavior, or to make it absolutelly custom. I'm sure that it is possible, without creating your own controls for deleting rows in UITableView. This my code: - (void)layoutSubviews { [super layoutSubviews]; for (UIView *subview in self.subviews) { if ([NSStringFromClass([subview class]) isEqualToString:@"UITableViewCellDeleteConfirmationControl"]) { UIView *deleteButtonView = (UIView *)[subview.subviews

How to make double seekbar in android?

*爱你&永不变心* 提交于 2019-12-04 10:36:43
问题 I am building an android application where the user select the a maximum value by seekbar. I need another button on the same seekbar so that user can select maximum and minimum value from a particular unique seekbar. Here is my code of single seek bar - package com.ui.yogeshblogspot; public class CustomSeekBarExActivity extends Activity implements OnSeekBarChangeListener{ /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super

How to change SearchView default icon?

南楼画角 提交于 2019-12-04 10:29:43
问题 I've used "Android Action Bar Style Generator" in order to generate my own Holo theme. Then I've added two icons to the action bar, one for a searchFilter and one for a file picker, both icons are white . File picker icon (at the right) looks good, but somehow search icon looks dark grey. When typing on the search text view, close button also looks dark grey. I've tried changing color of the actionbar and also from the searchview, without success. Why is the search view showing this color?

How to store custom information in SecurityContext of spring-security?

一个人想着一个人 提交于 2019-12-04 09:53:22
问题 In my application I'm using LDAP authentication. But i'm also have 2 remote services which requires authentication via method login(username, password). The method returns security token which makes me able to invoke another methods, i.e. I should pass security token to service methods as first argument. So I'd like to get these security tokens immediately after successful login using LDAP and store them in SecurityContext. I tried to use authentication-success-handler-ref of form-login

how do I set Paper Type while using PrinterDialog?

安稳与你 提交于 2019-12-04 09:48:12
问题 I'm trying to silently print a picture file and i need to print it on special paper type ("Glossy Photo Paper"), and on certain size (10cm on 15cm). On normal windows 7 print dialog i can choose: Paper Size , Paper Quality (for example - "Auto", "High", "Standard", "Custom") Paper Type ("Plain paper", "Glossy photo paper", "Photo Paper Plus Glossy", "Photo Paper Pro Platinum", "Hagaki", etc...) But, through c# code, I've managed to set only the PaperSize (which is 4'' on 6'' == 10cm on 15cm).

Customize UISearchDisplayController

自闭症网瘾萝莉.ら 提交于 2019-12-04 09:41:20
问题 alt text http://img210.imageshack.us/img210/5992/searchdisplaycontroller.png Are the following objects customizable? 1. UISearchBar Scope Buttons (UISegmentedController) 2. UIResultsTableView 3. Keyboard (at least so it's colored black) 回答1: alt text http://img527.imageshack.us/img527/9775/searchdisplaycontrollerz.png I was able to change the segmented control by a sort-of hack code: - (void)searchDisplayControllerWillBeginSearch:(UISearchDisplayController *)controller { for (UIView *subview

How to custom display prompt in KornShell to show hostname and current directory?

余生长醉 提交于 2019-12-04 08:32:47
问题 I am using KornShell (ksh) on Solaris and currently my PS1 env var is: PS1="${HOSTNAME}:\${PWD} \$ " And the prompt displays: hostname:/full/path/to/current/directory $ However, I would like it to display: hostname:directory $ In other words, how can I display just the hostname and the name of the current directory, i.e. tmp or ~ or public_html etc etc? 回答1: From reading the ksh man page you want PS1="${HOSTNAME}:\${PWD##*/} \$ " Tested on default ksh on SunOS 5.8 回答2: Okay, a little old and

How can i change Android Default Home screen Code and Replace my Customize Home Screen application source code?

ε祈祈猫儿з 提交于 2019-12-04 07:52:32
Here i already make one customize home screen launcher application for android. Now i want to add this application in Android Source code. And Remove Default android home screen source code from Android 2.3 source code. than i want to built whole Android Source code after replacing default home screen source code on EVOLUTION MODULE . I want to know Steps About this how can i achieve this. So please Share your idea how can i replace default home screen source code to my home screen source code. i already download the source code of android 2.3. but i have no idea where i have to change in code