Annotation Type WorkbenchClientEditor


  • @Inherited
    @Retention(RUNTIME)
    @Target(TYPE)
    public @interface WorkbenchClientEditor
    This annotation works like @WorkbenchEditor, and should be used for client side only editors. Classes annotated with this are considered WorkbenchParts that perform some "editor" function for the specified file-type.

    At its simplest form the Class should implement com.google.gwt.user.client.ui.IsWidget (e.g. extend com.google.gwt.user.client.ui.Composite) and provide a method annotated with @WorkbenchPartTitle.

    Developers wishing to separate view from logic (perhaps by implementing the MVP pattern) can further provide a zero-argument method annotated with @WorkbenchPartView with return type com.google.gwt.user.client.ui.IsWidget.

    In this latter case the @WorkbenchEditor need not implement com.google.gwt.user.client.ui.IsWidget.

    WorkbechEditors can receive the following life-cycle calls:

    • @OnStartup(org.drools.guvnor.vfs.Path)
    • @OnOpen
    • @OnFocus
    • @OnLostFocus
    • @OnMayClose
    • @OnClose
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      String identifier
      Identifier that should be unique within application.
    • Element Detail

      • identifier

        String identifier
        Identifier that should be unique within application.