I created a tab folder with one tabitem. When i execute this ui on mac it does not show me the title of tab item properly. If i create two or more tab item then its all titles are visible. I executed this code on windows there is not any problem with it.
I tried to search on google for the same but not have satisfied answer or solution.
If any body can solve this by giving proper justification.
Thanks.
Don't create a single-item tab folder or, if it really should look like a tab, try CTabFolder.
Related
In react project I have a select component (from antd) that can selects multiple options
I am trying to find a way that allows me to override the color of select field shadow (after displaying the dropdown) and the check icon next to checked options as indicated in the attached screenshot:
I tried to override some ant classes like .ant-select-item-option-content and .ant-select-selection-overflow-item .ant-select-selection-overflow-item-suffix but no affect happened
and idea or solution would be Appreciated, Thank you
I know that I can use EXTRA_APPLICATION_ID so as not to make chrome always open a new tab, but this has an undesired effect: it will open the URL in the last used tab, which I don't want to.
My intention is this: open the URL in a new tab only for the first time and then always use that tab, independently of whether the user has been navigating to other tabs.
Why I want this: Because I'm getting the copied to clipboard text and I want that text to be searched at a specific URL. So if the user is in some news website and copied a word he wants to be searched for, chrome will be opened at the same tab he was, which is undesired.
Is there a way to achieve this?
there's no way to do that (because never getting the index of the opened tab returned - and not being able to tell which tab one wants to remote; this does not work alike a Chrome extension).
but you could instead just use a WebView - which would provide the desired effect - despite never leaving the app; or even a WebView in an overlaid DialogFragment, instead of a new Activity.
I'm working on an app in JFace. So I have a CTabFolder with a number of CTabItems in it. What I would like is to be able to automatically switch to display an arbitrary CTabItem.
What I'm thinking is something like:
CTabFolder myFolder = FolderFactory.newFolder();
myFolder.showItem(myFolder.getItem((ARBITRARY_INT)));
/*These don't help!*/
//myFolder.update();
//myFolder.pack();
//myFolder.redraw();
The folder works just fine by itself. i.e. users may tab through with the mouse. The difference is that I would like to be able to show different tabs by default in different perspectives.
Any thoughts?
You need to use CTabFolder#setSelection(..). The show item only shows the item, like if there are a lot of items and some are hidden, this method will scroll to them.
I have developed a java gui that contains two jTextField views for displaying the source and destination file paths. And , the user selects more than one file path , i would like to display previous paths in a pop-up attached to the jTextField. This is a common feature in almost all app.
Does anyone knows how this is called, in order to google how to do it?
It is called editable JComboBox.
I have defined an Exit command to display on my File menu. However another plug-in is contributing a Open File item on the File menu and this is appearing AFTER my Exit command. I want my Exit command to appear last on the File menu.
I've tried specifying locationURI menu:file?after=org.eclipse.ui.openLocalFile but then my Exit menu item does not display at all. I think this might be because org.eclipse.ui.openLocalFile has not been loaded yet.
I've also tried specifying locationURI menu:file?after=additions but the Open File menu item still displays after mine.
How can I get the menu item order to be Open File and then my Exit command?
You need to put some of the proper group markers in your File menu when you create it. The order of operations is:
ActionBarAdvisor creates
MenuManagers programatically
org.eclipse.ui.menus are applied
legacy action extensions are applied
(like actionSets)
Open File says it has a menubarPath="file/new.ext". So however you create your File menu, you must add a group marker for new.ext. The group markers will allow you to control the contribution order.
See org.eclipse.ui.internal.ide.WorkbenchActionBuilder in org.eclipse.ui.ide for an example of the group markers the eclipse IDE includes.
I know that this question has been answered but I had similar problem and I solved it by specifing the ID for each command that I add to menu. Then I would use that ID in "after" or "before" query. I noticed that you tried something similar but you used the "commandId" instead of the actuall "id".