Package org.openquark.gems.client.browser

Examples of org.openquark.gems.client.browser.BrowserTree$DragAndDropHandler


    private GemBrowser getGemBrowser() {
        if (gemBrowser == null) {
            gemBrowser = new GemBrowser();

            // Customize the browser tree for the gem cutter
            BrowserTree browserTree = gemBrowser.getBrowserTree();
            browserTree.setCellRenderer(new GemCutterBrowserTreeExtensions.CellRenderer(this));
            browserTree.setPopupMenuProvider(new GemCutterBrowserTreeExtensions.PopupMenuProvider(this));
            browserTree.addMouseMotionListener(new GemCutterBrowserTreeExtensions.MouseListener(this));
            browserTree.addLeafNodeTriggeredListener(new GemCutterBrowserTreeExtensions.LeafNodeListener(this));
        }
        return gemBrowser;
    }
View Full Code Here


       
        if (saveStatus.getSeverity() != Status.Severity.ERROR) {
            // Get the entity for the newly saved gem.
            GemEntity newGemEntity = getWorkspace().getGemEntity(gemName);
           
            BrowserTree browserTree = getGemBrowser().getBrowserTree();
            //BrowserTreeModel browserTreeModel = (BrowserTreeModel) browserTree.getModel();
           
            // Select the newly saved gem in the gem browser.
            browserTree.selectGemNode(newGemEntity);
           
            // Refresh the tree node associated with this gem entity
            //browserTreeModel.getTreeNode(newGemEntity).refreshNode();
           
            if (saveStatus.getSeverity() == Status.Severity.WARNING) {
View Full Code Here

TOP

Related Classes of org.openquark.gems.client.browser.BrowserTree$DragAndDropHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.