GWT Designer allows you to quickly create the modules, composites, panels, remote services and other elements that comprise Google Web Tookit applications.
Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg
by George » Wed Apr 06, 2011 4:46 am
Hello,
I want when I did a drag and drop for a custum component that i created,will automatically generate a method that the developer will modify.
For example:
when add my custom component called "MyComponent" in EntryPoint file it I will have after the method OnModuleLoad () a method that called mymethod will genrate like this.
mymethod () {
}
i hope that my goal to atend is clear.
Can you help me please
-
George
-
- Posts: 29
- Joined: Wed Apr 06, 2011 4:25 am
by Eric Clayberg » Wed Apr 06, 2011 5:28 am
Right now WindowBuilder does not provide such a feature out of the box.
But you can write a plugin which adds a org.eclipse.wb.core.model.broadcast.ObjectInfoChildAddAfter broadcast listener and then uses org.eclipse.wb.internal.core.utils.ast.AstEditor.addMethodDeclaration(String, List<String>, BodyDeclarationTarget) to add a new method.
There are many examples of using both of the above in the WindowBuilder source.
-
Eric Clayberg
- Moderator
-
- Posts: 4503
- Joined: Tue Sep 30, 2003 6:39 am
- Location: Boston, MA USA
-
Return to GWT Designer
Who is online
Users browsing this forum: No registered users and 2 guests