Package org.locationtech.udig.project.internal

Examples of org.locationtech.udig.project.internal.Folder


         *
         * @param msg
         */
        private void removeListeners(Notification msg) {
            if (msg.getOldValue() instanceof Folder) {
                final Folder folder = (Folder) msg.getOldValue();
                folder.eAdapters().remove(mapDeepListener);
            }
        }
View Full Code Here


            gridHandler.refresh(msg);
           
            // Refresh viewer
            final Object notifier = msg.getNotifier();
            if (notifier instanceof Folder) {
                final Folder folder = (Folder) msg.getNotifier();
                refreshViewer(folder);
            } else if (notifier instanceof Map) {
                refreshViewer();
            }
           
View Full Code Here

            }
        }
       
        private void setVisibilityState(ILegendItem item, boolean isChecked) {
            if (item instanceof Folder) {
                final Folder folder = (Folder) item;
                setVisibilityState(folder, isChecked);
            } else if (item instanceof LayerLegendItem) {
                final LayerLegendItem layerItem = (LayerLegendItem) item;
                setVisibilityState(layerItem, isChecked);
            }
View Full Code Here

     *
     * @param source
     */
    private void moveIn(Object source) {
        final ILegendItem sourceItem = (ILegendItem) source;
        final Folder folder = (Folder) target;
        folder.getItems().add(sourceItem);
    }
View Full Code Here

     * @param target
     * @return true if descendant, otherwise false
     */
    private boolean isDescendant(Object source, Object target) {
        if (source instanceof Folder) {
            final Folder folder = (Folder) source;
            for (ILegendItem folderItem : folder.getItems()) {
                if (folderItem == target) {
                    return true;
                } else if (folderItem instanceof Folder) {
                    if (isDescendant(folderItem, target)) {
                        return true;
View Full Code Here

TOP

Related Classes of org.locationtech.udig.project.internal.Folder

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.