some of the toolbar menus are not seen in eclipse rcp application - eclipse-plugin

When I launch rcp application some of the custom toolbar menus doesnot appear in my rcp application,if I change perspective then they appears.Any idea?

That's hard to say with no additional information. How do you create those toolbar items? Using some contributor class or in plugin.xml, using menu contributions? With the second option, check, that you have defined them in the proper plugin.xml (the one, which defines your perspective, in which you want to actually see them).
Ensure, that there are handlers for your commands/actions in your perspective.
If you are using associations, ensure, that those are correct:
<extension point="org.eclipse.ui.actionSetPartAssociations">
<actionSetPartAssociation targetID="YouractionSetId">
<part id="YourPartId"/>
</actionSetPartAssociation>

Related

Is there a possibility to change default text "connected user/s" on CkEditor

Is there a possibility to change the default "connected users" text with any custom text? I cannot seem to find anything about. FE is written in Vue.
users connected
From this documentation page (v5): https://ckeditor.com/docs/ckeditor5/latest/features/collaboration/real-time-collaboration/users-in-real-time-collaboration.html#installation-and-configuration
It looks like the whole thing is handled by the RealTimeCollaborativeEditing plugin that is automatically imported and enabled. The docs gives indication on how to change the styling of the various connected users.
The PresenceList plugin only have 3 options:
container
collapseAt
onClick
In short, you cannot edit the wording there, but you could probably remove the plugin or hide/customize it with CSS.

Aurelia popover checkbox checked.bind not reflecting on the view model

We have implemented checkbox in popover. There we are using checked.bind , but in the view model its not reflecting its value on change of the checkboxes.
Sample Gist Run Provided below:
Gist Run
Thanks in Advance
Programmatically injected HTML needs to be compiled manually
The integration with bootstrap I provided to you earlier cannot do this. The bootstrap plugin assigns the innerHTML property of the popover and it does this outside of aurelia's rendering pipeline. The HTML is therefore not compiled by aurelia, which is why bindings (and other aurelia behaviors) will not work.
The templating framework takes care of this for you automatically as long as you are following conventions (such as custom elements). In any other case you'll need to manually work with the ViewCompiler.
In case you're interested, you can see an example with programmatically generated HTML in this gist. Also see this question if you want to know more about it. I do not recommend it in this scenario however.
Use aurelia-dialog
A tooltip (or popover) is just that: a tip on how to use the tool. It should not need more than some plain markup, text and styling (of course this is subjective to some degree, and some people may disagree)
For collecting user input in-between pages or screens, I'd argue a modal dialog is a better fit because of its property to "pop out" more and to de-emphasize the rest of the screen until the user either proceeds or cancels.
More importantly, by using aurelia-dialog your bindings and behaviors will simply work because, well, it's an aurelia plugin :-)

How to control items in webkit context menu?

I am developing a webkit application for public release, and wondering how to deal with context menus.
The problem is there are items in Safari's default context menu that I don't want to show end users:
Reload
Inspect Element
Possibly others. So, question #1 is: Is it possible to remove items selectively from the default context menu?
Another option is to create my own context menu from scratch, but then comes a host of other problems:
I lose default functionality, for example spell-checking on textareas, or accessibility features.
I lose OSX's system-wide context menu handling behavior, so it will be a less-native UI behavior. I suppose for this I could implement the menu in the native host application.
So the main question is in general, What should I do to preserve default functionality in Safari's context menu, while restricting certain things like "reload", "Inspect Element"?
Couldn't you use the WebUIDelegate protocol method?
- (NSArray *)webView:(WebView *)sender contextMenuItemsForElement:(NSDictionary *)element defaultMenuItems:(NSArray *)defaultMenuItems
You should be able to take the defaultItems, add the ones you want to keep to a new array, and then return said array?

How to hide the "Set Encoding..." menu in eclipse

Do you have any idea how to hide the Set Encoding menu in the Edit Menu? I had spend some hard time looking for a way to hide this menu.
I try to dig the plugin.xml in many plugins with no luck to look for this Set Encoding action command.
I can't get the action definition id from plug-in spy that I can use to hide this menu in my developed plugin. I only get the info below:
The active contribution item class:
org.eclipse.ui.texteditor.RetargetTextEditorAction
The contributing plug-in:
org.eclipse.ui.workbench.texteditor (3.5.1.r352_v20100105)
The org.eclipse.ui.edit.text.changeEncoding action is usually added to the Edit menu dynamically by the IEditorActionBarContributor specified for the contriubutorClass attribute of the declared org.eclipse.ui.editors extension point.
E.g. the org.eclipse.ui.DefaultTextEditor gets declared by the org.eclipse.ui.editors plugin itself, and specifies the class TextEditorActionContributor as the contriubutorClass. TextEditorActionContributor does add the ChangeEncoding action like so:
public void init(IActionBars bars) {
super.init(bars);
IMenuManager menuManager= bars.getMenuManager();
IMenuManager editMenu= menuManager.findMenuUsingPath(IWorkbenchActionConstants.M_EDIT);
if (editMenu != null)
editMenu.add(fChangeEncodingAction);
}}
So to completely remove this action from the Edit menu, you would need to define your own editors by extending org.eclipse.ui.editors and providing you own implementation of IEditorActionBarContributor.
You must edit the perspective, right click on the toolbar in Eclipse and you should get a context menu with the alternative Customize perspective.... Then go to the tab Menu visibility and disable the menu item you want to hide.

How to create Eclipse like Welcome page

I want to create my own Welcome page like eclipse.I have search for but it shows for RCP Application but i want to create it inside Eclipse IDE So that when i click on menu, it should open Intro(help) page.
eclipse.ui.intro extension point
All you need to do is to extend org.eclipse.ui.intro.configExtension and provide your implementation.
<extension point="org.eclipse.ui.intro.configExtension">
<configExtension configId="org.eclipse.ui.intro.universalConfig"
content="intro/eclipse-tips.xml" />
</extension>
You have the whole tutorial here
http://eclipse.dzone.com/articles/short-tutorial-introwelcome