Web application UI look like eclipse UI - eclipse

I am trying to design UI in angular 6 that application intention is to provide complete eclipse interface and its functionality.
any plugins to integrate eclipse in web application(angular) to get all the functionalities and buttons etc or any suggestions?
FYI https://help.eclipse.org I have seen only this site look like eclipse UI.

Related

customise eclipse scout application look and feel

I am new to eclipse scout. My question is how do i customise the default application look and feel for an eclipse scout application. I want to be able to change the button colors and replace the default icons with my own. I was able to change some of the colors using the application.css file but i did not archieve much. Also, is there a way of getting the ids, or class names for the various components in the resulting web pages so that i can be more granular in styling them.
Thanks in advance.
How you can style an Eclipse Scout application depends on which front-end you use: RAP, Swing or SWT.
Swing
You can use the Scout Swing Spy to determine the class name of a component in your UI when you have it selected.
If you use the Rayo look and feel, you can use implement the interface ILookAndFeelConfigurator and register it for the extension point org.eclipse.scout.rt.ui.swing.lafconfigurator to change the theming by providing a custom XML. The Rayo concept wiki article explains this in more details.
If you do not use the Rayo LaF...
RAP
The default RAP theme is modelled after the Rayo theme mentioned above.
Changing it involves creating your own theme bundle and create the appropriate CSS file there. Given that it is a RAP theme, you'll have to refer to the RAP RWT Theming guide. See the Scout forum thread "Scout Web App + CSS".
For reference, this is the Rayo CSS file of the Eclipse Scout 5.0 in the eclipse scout git repository (org.eclipse.scout.rt.ui.rap.theme.rayo)
SWT
Given that the SWT UI is designed to be portable and uses the widgets provided by the operating system, the amount of customization is more limited.
You can use the extension point org.eclipse.scout.rt.ui.swt.lookAndFeel to adjust some values of the look and feel (see schema file). See also the Scout thread "Modifying SWT look and feel for disabled elements"
you can make your own button and you own icon by use photoshop first bro
then copy the file into res/drawable of your application project

Eclipse RCP: NullPointer on getSite().setSelectionProvider(...)

As I have done the following tutorials:
http://www.vogella.com/tutorials/EclipseRCP/article.html
http://www.vogella.com/tutorials/EclipseJFaceTable/article.html
http://www.vogella.com/tutorials/EclipseJFaceTableAdvanced/article.html
I wanted to combine the JFace table viewer (plugin from 2nd and 3rd tutorial) and the ToDo application from the first tutorial. In the JFace table example(s) there is a View extended from a ViewPart. In this the call:
getSite().setSelectionProvider(view)
inside the createPartControl method is fine and works.
But when I do the same in the other tutorial it does not work, I get a NullPointerException. The first article creates a plugin and then transform it using features and products into an Eclipse 4 application. So the classes in the application are not derived from a 'Part'. They are referenced using the application model and only use the annotation #PostConstruct.
Why is it that I get this NullPointerException?
And really, how can I get the SelectionProvider service linked to the Workbench?
I also tried to use PlatformUI.getWorkbench() but it says that the workbench does not yet exist.
Any help highly appreciated.
Thanks.
Eclipse 4 (e4) applications are completely different from traditional Eclipse 3.x style applications.
In an e4 application you cannot use a lot of things that are used in a Eclipse 3.x application - so you need to check which style the example you are using is based on. The e4 application has access to a lot of new features that are not available in a 3.x application.
In an e4 application you inject the ESelectionService to get and set the current selection.

Eclipse RCP - ApplicationWorkbenchWindowAdvisor - setShellStyle(SWT.MIN) not working

We have developed an eclipse rcp application using 3.5 and are trying to move it to 4.2.1.
It is a simple RCP application with a view. On doing the basics and launching it I found that the setShellStyle(SWT.MIN) is not working anymore. Since it was a single view application, it didnt require re-sizing, hence we had disabled re-sizing using this API.
But with the new Eclipse (Eclipse 4.2.1), the re-size/maximize button is enabled even when this method is called. I have verified that other APIs called from here work (other than this I used setShowStatusLine(false) and setShowCoolBar(false).
Is this a known problem with Eclipse 4 or whether there is a different API to get this functionality working with this.
I appreciate any kind of help I can get here.?

combine GWT application from several modules (JARs or OSGI bundles)

I need a web UI with pages like "Info", "Support", etc. That's easy.
In addition, I have some "plugins" with their own "editors", which need to be shown in the same web UI.
It's something similar to "Extensions" page shown in Google Chrome: every extension has an "Options" link, which can contain any editor the extension wants.
So, my main application does not know upfront how many "plugins" and editors it has. All it knows is how to call the plugin's "showEditor()" method.
(this is how it's currently implemented in my Eclipse-based desktop app, which I'm trying to port to web)
I'm wondering if GWT is applicable for this kind of applications. So far looks that GWT applications are "monolithic" and all pages / panels need to be referenced in the common "gwt.xml" file, which means I can't configure the distributive to include only "core plus plugin1 and plugin2" or only "core plus plugin 2 and plugin 3" - I have to always include everything since it's referenced in the common xml file.
there's no requirement to install/update additional plugins AFTER the application is built and installed - this should make the task easier.
Any ideas how to use "modularity" with GWT so that UI panels can come from several "modules/plugins"?

how to load a web start application into eclipse rcp

I have a Webstart Apps/jnlp in which I would like to add into an already made rcp client. Can I integrate the web start application into the RCP so it will appear under the menu toolbar so if it was clicked it will load ithe application.If so How will I go about doing that, would it need to be place into as a plug-in?
Thanks for any help!
Check out this tutorial by Lars Vogel to learn how to use commands in Eclipse RCP (and enable command execution from menus).
Then, in your command handler, write the code that opens the web browser with the url of your application passed as parameter:
//Assuming 'url' is the url of your application
PlatformUI.getWorkbench().getBrowserSupport().createBrowser(null).openURL(url);
Also, check out this link to learn more about Eclipse RCP browser support. Since you didn't specify whether you want this to be opened with an internal or an external browser, you might want to tweak the code I posted.