Examples of IDropHandlerListener


Examples of org.locationtech.udig.ui.IDropHandlerListener

    @Test
  public void testSingle() throws Throwable {
    Object data = getData();

        final Throwable[] failure=new Throwable[1];
        handler.addListener(new IDropHandlerListener(){

            public void done( IDropAction action, Throwable error ) {
                if( error!=null ){
                    failure[0]=error;
                }
View Full Code Here

Examples of org.locationtech.udig.ui.IDropHandlerListener

    @Test
  public void testMulti() throws Throwable {
    Object data = getDataMulti();

        final Throwable[] failure=new Throwable[1];
        handler.addListener(new IDropHandlerListener(){

            public void done( IDropAction action, Throwable error ) {
                if( error!=null ){
                    failure[0]=error;
                }
View Full Code Here

Examples of org.locationtech.udig.ui.IDropHandlerListener

       
        final int[] numberActionsRan=new int[1];
        numberActionsRan[0]=0;
       
        handler.setTarget(map);
        handler.addListener(new IDropHandlerListener(){

            public void done( IDropAction action, Throwable error ) {
                numberActionsRan[0]++;
            }
View Full Code Here

Examples of org.locationtech.udig.ui.IDropHandlerListener

       
        final int[] numberActionsRan=new int[1];
        numberActionsRan[0]=0;
       
        handler.setTarget(map);
        handler.addListener(new IDropHandlerListener(){

            public void done( IDropAction action, Throwable error ) {
                numberActionsRan[0]++;
            }
View Full Code Here

Examples of org.locationtech.udig.ui.IDropHandlerListener

                if( selectedLayer==null ){
                    finalDropHandler.setTarget(finalMap);
                }else{
                    finalDropHandler.setTarget(selectedLayer);
                }
                finalDropHandler.addListener(new IDropHandlerListener(){

                    public void done( IDropAction action, Throwable error ) {

                        if( finalActiveEditor==null && finalMap.getMapLayers().size()==0 ){
                            finalMap.getProjectInternal().getElementsInternal().remove(finalMap);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.