public Icon getIcon() { return _dboInfo.getDatabaseObjectType().getIcon(); }
/** * Return the tabbed pane for the passed object tree node type. * * @param dboType The database object type we are getting a tabbed * pane for. * * @return the <TT>ObjectTreeTabbedPane</TT> for the passed database object * type. */ private ObjectTreeTabbedPane getTabbedPane(DatabaseObjectType dboType) { return _tabbedPanes.get(dboType.getIdentifier()); }
public ObjectTypes(IResources resources) { _userParent = DatabaseObjectType.createNewDatabaseObjectType("Users", resources.getIcon(MysqlPlugin.IKeys.USERS_IMAGE)); }
if (url != null) { setText(simpleName); setIcon(new ImageIcon(url,oi.getDatabaseObjectType().toString())); return this;
/** * Return the tabbed pane for the passed object tree node type. * * @param dboType The database object type we are getting a tabbed * pane for. * * @return the <TT>ObjectTreeTabbedPane</TT> for the passed database object * type. */ private ObjectTreeTabbedPane getTabbedPane(DatabaseObjectType dboType) { return _tabbedPanes.get(dboType.getIdentifier()); }
public Icon getIcon() { return _dboInfo.getDatabaseObjectType().getIcon(); }
/** * Get the collection of expanders for the passed node type. If one * doesn't exist then create an empty one. * * @param dboType Database object type. */ private List<INodeExpander> getExpandersList(DatabaseObjectType dboType) { if (dboType == null) { throw new IllegalArgumentException("Null DatabaseObjectType passed"); } IIdentifier key = dboType.getIdentifier(); List<INodeExpander> list = _expanders.get(key); if (list == null) { list = new ArrayList<INodeExpander>(); _expanders.put(key, list); } return list; }
return true; String typeName = dbObj.getDatabaseObjectType().getName();
/** * Get the collection of expanders for the passed node type. If one * doesn't exist then create an empty one. * * @param dboType Database object type. */ private List<INodeExpander> getExpandersList(DatabaseObjectType dboType) { if (dboType == null) { throw new IllegalArgumentException("Null DatabaseObjectType passed"); } IIdentifier key = dboType.getIdentifier(); List<INodeExpander> list = _expanders.get(key); if (list == null) { list = new ArrayList<INodeExpander>(); _expanders.put(key, list); } return list; }
/** * Get the popup menu for the passed database object type. If one * doesn't exist then create one if requested to do so. * @param dboType Database Object Type. * @param create If <TT>true</TT> popup will eb created if it * doesn't exist. * * @throws IllegalArgumentException * Thrown if a <TT>null</TT> <TT>Action</TT> or * <TT>DatabaseObjectType</TT>thrown. */ private JPopupMenu getPopup(DatabaseObjectType dboType, boolean create) { if (dboType == null) { throw new IllegalArgumentException("Null DatabaseObjectType passed"); } IIdentifier key = dboType.getIdentifier(); JPopupMenu pop = _popups.get(key); if (pop == null && create) { pop = new JPopupMenu(); _popups.put(key, pop); for (Iterator<Action> it = _globalActions.iterator(); it.hasNext();) { pop.add(it.next()); } } return pop; }
/** * Get the popup menu for the passed database object type. If one * doesn't exist then create one if requested to do so. * @param dboType Database Object Type. * @param create If <TT>true</TT> popup will eb created if it * doesn't exist. * * @throws IllegalArgumentException * Thrown if a <TT>null</TT> <TT>Action</TT> or * <TT>DatabaseObjectType</TT>thrown. */ private JPopupMenu getPopup(DatabaseObjectType dboType, boolean create) { if (dboType == null) { throw new IllegalArgumentException("Null DatabaseObjectType passed"); } IIdentifier key = dboType.getIdentifier(); JPopupMenu pop = _popups.get(key); if (pop == null && create) { pop = new JPopupMenu(); _popups.put(key, pop); for (Iterator<Action> it = _globalActions.iterator(); it.hasNext();) { pop.add(it.next()); } } return pop; }
/** * Return the tabbed pane for the passed database object type. If one * doesn't exist then create it. * * @param dboType The database object type we are getting a tabbed * pane for. * * @return the <TT>List</TT> containing all the <TT>IObjectPanelTab</TT> * instances for the passed object tree node type. */ private ObjectTreeTabbedPane getOrCreateObjectPanelTabbedPane(DatabaseObjectType dboType) { if (dboType == null) { throw new IllegalArgumentException("Null DatabaseObjectType passed"); } final IIdentifier key = dboType.getIdentifier(); ObjectTreeTabbedPane tabPane = _tabbedPanes.get(key); if (tabPane == null) { tabPane = new ObjectTreeTabbedPane(_session); setupTabbedPane(tabPane); _tabbedPanes.put(key, tabPane); } return tabPane; }
/** * Return the tabbed pane for the passed database object type. If one * doesn't exist then create it. * * @param dboType The database object type we are getting a tabbed * pane for. * * @return the <TT>List</TT> containing all the <TT>IObjectPanelTab</TT> * instances for the passed object tree node type. */ private ObjectTreeTabbedPane getOrCreateObjectPanelTabbedPane(DatabaseObjectType dboType) { if (dboType == null) { throw new IllegalArgumentException("Null DatabaseObjectType passed"); } final IIdentifier key = dboType.getIdentifier(); ObjectTreeTabbedPane tabPane = _tabbedPanes.get(key); if (tabPane == null) { tabPane = new ObjectTreeTabbedPane(_session); setupTabbedPane(tabPane); _tabbedPanes.put(key, tabPane); } return tabPane; }