/** * @param toolbar * @return The ID of the dock panel associated with the passed toolbar or -1 */ private static int getViewId(ToolBarW toolbar) { return (toolbar.getDockPanel() != null ? toolbar.getDockPanel().getViewId() : -1); }
/** * @param toolbar * @return The ID of the dock panel associated with the passed toolbar or -1 */ private static int getViewId(ToolBarW toolbar) { return (toolbar.getDockPanel() != null ? toolbar.getDockPanel().getViewId() : -1); }