Package com.nomagic.magicdraw.ui.browser
Interface Browser.BrowserInitializer
-
- All Known Subinterfaces:
Browser.BrowserTabTreeFactory
- Enclosing class:
- Browser
@OpenApiAll public static interface Browser.BrowserInitializer
Browser initializer is an extension point for browser creation. It may be used for adding new trees of panels into the browser. It can be used for removing existing trees also. In such case initializer should return null as WindowComponentInfoRegistration.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Browser.BrowserInitializer.WindowComponentInfoRegistration
Info registration data.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Browser.BrowserInitializer.WindowComponentInfoRegistration
getInfo()
Provide info for a new browser tree.void
init(Browser browser, Project project)
Init the browser.
-
-
-
Method Detail
-
init
void init(Browser browser, Project project)
Init the browser. This method will be called during browser initialization. Implemented classes may add additional trees or panels into the browser using Browser.addTree() or Browser.addPanel(). Existing trees can be removed in this method also- Parameters:
browser
- the given browserproject
- current project
-
getInfo
@CheckForNull Browser.BrowserInitializer.WindowComponentInfoRegistration getInfo()
Provide info for a new browser tree. This method is called during application startup and supposes return the same info as used during tree creation in let's say init() method.- Returns:
- browser component info or null
-
-