I want to try and build a UI using this GWT designer tool I read about. I have GWT tools installed, created a "Google -> Web Application Project" but I don't see any means to build a UI except via code.
I tried installing the plugin
http://dl.google.com/eclipse/inst/d2gwt/latest/3.7
but it fails ( Not sure if I need this or not )
This is the tutorial I was looking at ..... How do I get this UI design view?
https://developers.google.com/web-toolkit/tools/gwtdesigner/quick_start
Another alternative to using the GWT Designer, if you don't want to use UiBinder, is
In Eclipse, right-click view class in Package Explorer
Open With
GWT Designer
Select the Designer tab at the bottom of the class window.
First from new file dialogue ( Ctrl + N ) create a UiBinder file (xxx.ui.xml):
Then select "Design" from left bottom of opened file in eclipse.
Related
I'm implementing a navigator without using Common Navigator Platform but using pure java code. for know, i want to implement a context menu of this navigator. i want to add a actionset which has subactions, which like "New" action in "Java Package" view. i mean use pure java code. if that's impossiable, please show me the way of extension-point. thanks.
I havent yet found a way to view GWT designer mode. I have installed gwt sdk, gwt designer and window builder on eclipse 4.2. View my installation details:
I Can open a java file using window builder but cant see the source and design tabs at the bottom:
Somebody help me figure out how to access designer mode.
right click on the file and select open in designer
Right click on your uibinder file (ui.xml). Then select windowbuilder. You may need to click "other" and then select windowbuilder from the list.
Turns out its a bug and i was able to access designer mode by clicking switching between to a different layout under Google > Web Toolkit > Designer preferences
Thanks for providing answers guys :)
We can drag and drop UI components in Netbeans and swing code is auto
generated.
We can drag and drop UI components in Eclipse to do
Android development, and xml is auto generated.
We can drag and drop
UI components in Dreamwaver and html is auto generated.
We can drag and drop UI components in Eclipse BIRT plugin, and xml is auto generated.
If I want to create a IDE tool like the above to drag and drop some components and have some xml code auto generated. Is there any framework I can take advantage of?
I am thinking about eclipse plug-in development. I am wondering if there is any existing code/framework for this so that I don't have to code much to make the DND UI, properties setting and so on, but just put my business logic for xml generation into plugin.
My final work should be: an eclipse plug-in I can install into eclipse. I can drag and drop UI components and auto generate the xml according to the business logic I code into the plugin.
Take a look at the Graphical Editing Framework - GEF
I am using eclipse 3.6. I created one sample plugin application. It is neither a eclipse rcp nor workbench. Now when I run the eclipse I want that plugin also to be loaded. But I dont want to use IStartUp. Because what I have found out is
IStartup will be called after the workbench is loaded. I want to refresh some menu. So Is there any way to activate my plugin while the eclipse loaded?
I tried to use Bundle Activation policy. But that is also not activating my Activator class. I just put one System.out. println("Inside start()"). So that is not called. Now can I make it activate my activator?
EDIT:
what my exact requirement is, I have created one workbench application.It is not eclipse rcp application. Now I want to remove the following menu and menu items from the eclipse before the eclipe is loaded.
1. File Menu
2.) Search Menu
3.)Run Menu
4.)Help->search,Dynamic Help,Key assist,Tips and trick,Report Bug,Cheat Sheet.
These menus are inbuilt menu of eclipse. So that is the reason I have to do in this way.
So I already implemented by using startup extension point. But the early startup is called after the eclipse is started.So I need to do some refreshment on the workbench.Then only the menu item will get removed.So I thought I need startup extension point will not satisfy my requirement as it doesnot refresh the workbench.I need to activate the my plugin and refresh the workbench before it is loaded.
Thanks
Bhanu
You can set the needed start level for your plugin using touch point instruction.
You are just a plugin that expects to run in the Eclipse IDE?
Then the answer is, you cannot do what you want.
If you start before the workbench has finished initializing, most of the services that could be used won't work: The workbench itself, menu service, command service, etc.
For most plugins in eclipse, the plugin.xml should be used to add menus, views, editors, etc to eclipse. When necessary, the framework will instantiate them.
org.eclipse.ui.IStartup is available and as you mentioned it will be called after the workbench has been initialized, but before any windows have been shown. It's not to be used lightly, and not by plugins contributing to the UI as it allows all extension from that plugin to be loaded.
EDIT:
If you are an RCP app, you control the main menu. As an RCP app, you have access to the ActionBarAdvisor, WorkbenchAdvisor, WorkbenchWindowAdvisor, which all have lifecycle methods.
If you are an an eclipse plugin, you can add to the main menu ... you cannot easily remove from the main menu. This is by design. Start levels and org.eclipse.ui.startup are 2 mechanisms that won't do what you want.
You still need to answer these questions:
There might still be a way. The crux of your problem is: "I want to refresh some menu"
What kind of menu (popup, main menu,
compound list of menu items in a
menu, etc)?
Where is the menu contribution coming from?
Which specific menu item is it?
Please edit your question (do not comment) and include the information from the above 3 questions, please.
i am making an eclipse plugin which make a ui on right clicking a project in eclipse workspce . the ui contains text fields , package explorer for the current project and directory explorer for current project.
i have successfully made a ui which appears on clicking a menu item on right clicking the project but it seems i can't make any jface or swt ui since they are not visible when we are using eclipse command hadlers .so in order to overcome it i made dialog pages but they have limited dialog like directorty dialog and file dialog and that too for entire window directory..... but i want package explorer and directory explorer for the project i just chose like it happens when u try making a new class in a project the browse buttons just show packages and directory struture w.r.t to current selection
am i doin things wrong or is there a way out please suggest .....
It seems a bit unclear to me, what the 'UI' is about. If you plan to embed the package and directory views inside a dialog next to each other, then I think you have to build similar lists on your own, since they are views with their own event logic. But if you plan to use them via the browse buttons as describes, take a look at this page. It gives a good overview of the available selection dialogs in eclipse.
It is also always a good practice to search for code in eclipse that does nearly the same you want to do.
As an example, take a look at the new class wizard from the jdt.ui plug-in (This is the wizard you mentioned in your question): Press Cmd-Shift-T and begin typing 'newclass' and open NewClassWizardPage from org.eclipse.jdt.ui.wizards. This works as expected if you imported all jdt plug-ins as (binary) projects.
Take a look at the createControl method and dive into the createXXXControls methods via F3 and try to find out how JDT is doing the job.
As an alternative, open the desired selection dialog class (again with Cmd-Shift-T) and open the call hierarchy of that class...