Disable action in hideActionsets - eclipse-plugin

Is it possible to disable an action alone using IWorkbenchPage.hideActionSet ? if it what should is pass a action id in the parameter?

No, this method is only used to hide a complete action set.

Related

struts check if a form is present

In a jsp file, to check if an attribute is present or not we can use
<nested:present property="myAttribute">
//implement logic
</nested:present>
But how if we wanna check if a form is present or not?
Is there a way to do that?
This can do the work:
<nested:present name="myForm">
//implement logic
</nested:present>

Change event is not being fired when changing the textField value in titanium

I have a created a project(classic) for mobile web using titanium.
I have created a textfield.
var txtField = Ti.UI.createTextField({ id:"txtId", value:"txtValue"});
I have added an event "Change".
txtField.addEventListener('change', function(e){alert("change event fired");});
after that when I am trying to change that value programmatically like
txtField.value = "Someothet text"
The change event is not triggered. Can any one please help me regarding this.
Thanks in Advance,
Swathi.
As far as I know it will only fire the "change" event when modified in the user interface. And you would also like to have a means of changing a value without firing the "change" event ;-)
You write that you have created a wrapper class. Then you should create a "setter" function (e.g. "set" or "setValue") in that wrapper class to set the value. Within the setter you will set the value AND fire the change event. This way you only have to maintain the change logic in one place.
HTH
/John
If programmatically changing the value does not fire the change event you can try to trigger it manually on the textfield:
txtField.value = "Someothet text"
txtField.fireEvent('change');
You still have to call it at all the different places but it's the same line of code.

Is it possible to set property in Deferred custom action in WiX?

is it possible to set a property in Deferred custom action.If so please suggest me the way ?
I had similar dilemma few weeks back. And this is what was told to me by seniors.
Deferred Custom action cannot directly modify installer properties.
But there is an workaround: you can use immediate custom action to set the property.Also you could use CustomActionData to store property value and then use it in C# or VB.net Custom Actions.
I think this Link might help you.

ExtJS: Binding an observable boolean property

I have a view which contains some tabs (TabView).
Initially some tabs are disabled - they should only be enabled when a certain condition is met.
I'd like to implement it in the following way:
Create a TabViewModel which contains a boolean (observable?) property PersonSelected.
Create a TabViewStore
Bind the TabViewStore to the TabView
In my controller I would have an action method (e.g. onPersonSelected) which will should set the PersonSelected property to true.
What is the best way to bind the PersonSelected property to the View?
As my store would only contain on record, I feel that using the is a bit overkill. Can I do this without the store?
You can simply subscribe to the change event of the UI element (checkbox? in your case). Am I missing something?

uninstall custom actions

After which custom action should my C# custom actions execute? And what condition should I use so my custom action could run only on uninstall?
After which custom action should my C#
custom actions execute?
It depends on what they do.
And what condition should I use so my
custom action could run only on
uninstall?
REMOVE = "ALL"
You need to provide the condition in custom action call as to when they should be called.
Example :
<Custom Action="UpdateConfig" After="InstallFinalize">INSTALL_APPLICATION = "1"</Custom>
Here, as you can see the custom action UpdateConfig will be called after everything is installed and if Application was selected as feature while installing.