Eclipse RCP Fast View in Horizontal Orientation - eclipse

I do know how to register a View in the Fast views bar within a RCP Eclipse application (using plugin.xml). It opens in Vertical orientation. Does anybody know how to tell this view to open in Horizontal orientation per default?
Thanks a lot for your help.

Not sure if it is available.
Already in 2004, it was mentioned in bug 55830:
We have no plans to expose the "horizontal/vertical" fastview option as API (since this concept might be removed in the future in favor of 2 resize sashes).
And the 2005 question about the same feature went unanswered!
I currently add a fast view to my perspective...
layout.addFastView(IConsoleConstants.ID_CONSOLE_VIEW, 0.35f);
How can I programmatically set this view to default to a horizontal orientation?
I assume this is not possible to do through the API?
THe current IPageLayout doesn't seem to have any parameter for the orientation.

Related

xcode 8 live preview not previewing properly

I have updated xcode to the last version (V8.0). In the previous stable version, the live preview sections shows the app exactly how it would be in the device. However, in the new version, the live preview sections shows the app exactly how it appears into interface builder.
how can I have the live preview as it was before?
Any idea will be appreciated.
Thanks in advance.
The Interface Builder of Xcode 8 has been thoroughly reengineered. It is not possible to set it back to the Interface Builder of Xcode 7.
You have two options.
Either you download Xcode 7.3.1 from the Apple developer center. But you'll lose the ability to use Swift 3. This option is absolutely not recommended since you'll also lose future updates and future new features.
Or you make yourself familiar with the new Interface Builder. That option is recommended. The Apple promotion tells you exactly why:
See a live preview of exactly how your app will appear on any Apple
device with full vibrancy. As you quickly switch between different
devices to customize your UI for size classes, you will always see the
same interface as your customers. Pan and zoom are incredibly fast,
and you can even edit your interfaces when fully zoomed out for a
bird's eye view of your storyboard.
A Beginner’s Guide to Auto Layout with Xcode 8
Also I can advise you to look at this thread. I had issues with the new Interface Builder as well. The key answer: Split big Storyboard into many small ones. And update the Constraints from Xcode 7 projects as suggested in the answer:
1) Remove only one of the "Height equals: xx" constraint from one of your views inside the cell.
2) Update all frames.
3) Select the view you removed constraint from.
4) Click to add new constraint button. Now it should be showing a new height, probably with a decimal value.
5) Add height constraint without changing the value inside the box.
But splitting my Storyboard into many smaller ones did the trick. Take a Storyboard for every scene of your App. Like Login. Tweets. Pictures. Settings.
In Xcode 8, preview is by default attached at bottom side of view editor,
Here is the screenshot of the bottom view, which gives you the preview,
Select Any of the size shown to preview it in respective size.

Swift Storyboard Auto Size Classes

i have a problem. I had a storyboard in Xcode 6 with the inferred size of the view controller and the "Use Auto layout" option checked. Today i wanted to use the new " Use Size Classes" option. I checked the option and then in the simulator the screen was all black!
EDIT
now that i resolved this issue i have another thing here ! I use "Add missing costraints" option to have a resize for all Apple Device, the Tab bar and navigation bar are good, but then all the buttons ( they have an image ) are in different position !
How i can resolve that ? Thanks in advance.
A black view.. if not always, is a good indicative that the view is not loaded. Size Classes introduces a new concept ...You can have several views that will be installed or not into your view depending of your view configuration. More details on images below:
This is what you will be looking for:
This is what I call view rendering configuration (sure Apple has another name for it). It is located at center bottom of your storyboard view.
This is always located at the end of Attributes Inspector tab:
Make sure it is enabled for the view that suits your testing device.
I found out that the ViewController wasn't set as Initial Controller.
You should avoid as possible the use of "add missing constrains". Is an automatic tool that almost always ends up adding unnecessary constrains or breaking others.
If you want something to look really good an stable, sadly there are no shortcuts... you will eventually end having to do it all by yourself.

is there a way to update size of button through interface builder?

I want my buttons twice as big when iPhone 5 launches on screen, is there a way to do this using the interface builder? Or do I have to do this pragmatically?
I don't think there is such a solution in Interface Builder. Pragmatically is the option for you.
But why do you need it?
EDIT:
You can manage spacing by View submenu in Show and Size Inspector (Option / Alt-Command-5). See Autosizing and example windows next to it.
Here are Apple's docs regarding this topic (point 8.f): Xcode Quick Start Guide - UI

iPad Side Bar Interface

I am trying to create an interface similar to the app Instapaper. The works just like a navigation bar except its on the left hand side.
I'm having an issue creating this interface. Any ideas on how to do this type of interface. I was thinking of a window with a view controller split up with two different views.
Any ideas, suggestions, or even a tutorial?
Mine (in Instapaper) is just one big view controller with a sidebar view that toggles the contents of the larger view manually. It's not too bad in my case, since it can only have two states -- grid or browser -- that simply switch which data is shown in the grid/browser.
If you can require iOS 5 as the minimum, you can use some of the new child-view-controller mechanics, but I couldn't yet.
You may want to start with and try this library out

Sliding UITabBarItems in UITabBarController

I have a UITabBarController as my rootController with 8 UITabBarItems. and I want to show just 4 UITabBarItems in my screen. By default all my other tab bar items appear in a small tabBarItem called "More" and you can select the other 4. But I have seen some apps that implement a sliding UITabBarItems with a slide icon instead of a "More" icon.
How can I show just 4 at a moment, and I slide the TabBarItems, and so that I can select the other tab bar items ?
~ Something like this ~
And then I can slide to the next 4 sets by dragging
It would be helpful if someone could point me in the right direction.
There is a nifty little github project that could help you... check it out: https://github.com/iosdeveloper/InfiniTabBar
This is not currently a built-in option for UITabBarContoller.
One way to approach the problem is to add a UIGestureRecognizer to the tabBar.view, and programmatically adjust which 4 options are available on the screen. You can add an animation to make it smooth or have a little bounce as it slides.
iPhone users are usually very picky and attached to Apple's UI Guidelines. Although you can pass the Apple verification, you probably wont be able to pass users' (meaning bad reviews and ratings). So I recommend you to re-consider your tabbar structure and use "..." More instead of sliding it... You can always override stuff in code, but then they wont work smooth with InterfaceBuilder and in the end you will have more trouble than you'd expect.
If you have similar tab items merge them and use maybe a segmented control or something to visually distinguish them. Or use a central navigation screen in which you can put 9 maybe more icons in a grid...
The first solution to your problem may not always be the best way. Well, it is very rare actually...
You have to write a custom control for this.
I wrote one for showing a horizontal menu. You can probably modify that to fit your needs.
http://blog.mugunthkumar.com/coding/ios-control-mkhorizmenu/