Package gov.nasa.arc.mct.canvas.view

Examples of gov.nasa.arc.mct.canvas.view.CanvasManifestation$CanvasPanel


   
    @Override
    public boolean isEnabled() {
//        return !selectedPanels.isEmpty();
        for (View viewManifestation : selectedManifestations) {
            CanvasManifestation canvas = (CanvasManifestation) SwingUtilities.getAncestorOfClass(CanvasManifestation.class, viewManifestation);
            if (canvas != null) {
                return !canvas.getSelectedManifestations().isEmpty();
            }
        }
        return false;
    }
View Full Code Here


    @Override
    public void actionPerformed(ActionEvent e) {
        for (View viewManifestation : context.getRootManifestations()) {
            if (viewManifestation instanceof CanvasManifestation) {
                CanvasManifestation canvas = (CanvasManifestation) viewManifestation;
                canvas.selectAll();
            }
        }
    }
View Full Code Here

       
        Assert.assertFalse(gridMenu.canHandle(actionContext));
        Assert.assertFalse(windowGridMenu.canHandle(actionContext));
       
        selectedManifestations = new ArrayList<View>();
        CanvasManifestation canvasManifestation = new CanvasManifestation(mockComponent, new ViewInfo(CanvasManifestation.class,"",ViewType.CENTER)) {
            @Override
            public ExtendedProperties getViewProperties() {
                return new ExtendedProperties();
            }
        };
View Full Code Here

TOP

Related Classes of gov.nasa.arc.mct.canvas.view.CanvasManifestation$CanvasPanel

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.