Search in sources :

Example 1 with DecoratingLabelProvider

use of com.cubrid.common.ui.common.navigator.DecoratingLabelProvider in project cubrid-manager by CUBRID.

the class CubridHostNavigatorView method createNavigator.

/**
	 * Create the navigator
	 */
protected void createNavigator() {
    tv.setSorter(new CMNavigatorViewSorter());
    tv.setContentProvider(new DeferredContentProvider());
    tv.setLabelProvider(new DecoratingLabelProvider(new NavigatorTreeLabelProvider()));
    tv.addDoubleClickListener(LayoutManager.getInstance());
    tv.addTreeListener(new ITreeViewerListener() {

        public void treeCollapsed(TreeExpansionEvent event) {
            CommonUITool.clearExpandedElements(tv);
        }

        public void treeExpanded(TreeExpansionEvent event) {
            CommonUITool.clearExpandedElements(tv);
        }
    });
    CubridActionBuilder.init();
    hookRetragetActions();
    addHostListener();
}
Also used : DeferredContentProvider(com.cubrid.common.ui.common.navigator.DeferredContentProvider) ITreeViewerListener(org.eclipse.jface.viewers.ITreeViewerListener) DecoratingLabelProvider(com.cubrid.common.ui.common.navigator.DecoratingLabelProvider) TreeExpansionEvent(org.eclipse.jface.viewers.TreeExpansionEvent)

Example 2 with DecoratingLabelProvider

use of com.cubrid.common.ui.common.navigator.DecoratingLabelProvider in project cubrid-manager by CUBRID.

the class CubridQueryNavigatorView method createNavigator.

/**
	 * Create the navigator
	 */
protected void createNavigator() {
    tv.setSorter(new CQBNavigatorViewSorter());
    tv.setContentProvider(new DeferredContentProvider());
    tv.setLabelProvider(new DecoratingLabelProvider(new NavigatorTreeLabelProvider()));
    tv.addDoubleClickListener(LayoutManager.getInstance());
    tv.addTreeListener(new ITreeViewerListener() {

        public void treeCollapsed(TreeExpansionEvent event) {
            CommonUITool.clearExpandedElements(tv);
        }

        public void treeExpanded(TreeExpansionEvent event) {
            CommonUITool.clearExpandedElements(tv);
        }
    });
    CubridActionBuilder.init();
    hookRetragetActions();
    addConnectionListener();
}
Also used : DeferredContentProvider(com.cubrid.common.ui.common.navigator.DeferredContentProvider) ITreeViewerListener(org.eclipse.jface.viewers.ITreeViewerListener) DecoratingLabelProvider(com.cubrid.common.ui.common.navigator.DecoratingLabelProvider) TreeExpansionEvent(org.eclipse.jface.viewers.TreeExpansionEvent)

Aggregations

DecoratingLabelProvider (com.cubrid.common.ui.common.navigator.DecoratingLabelProvider)2 DeferredContentProvider (com.cubrid.common.ui.common.navigator.DeferredContentProvider)2 ITreeViewerListener (org.eclipse.jface.viewers.ITreeViewerListener)2 TreeExpansionEvent (org.eclipse.jface.viewers.TreeExpansionEvent)2