Examples of VariantTransfer


Examples of com.volantis.mcs.eclipse.builder.common.VariantTransfer

                                          final Widget widget,
                                          final Viewer viewer) {
        Action copyAction = new Action() {
            public void run() {
                Clipboard clipboard = new Clipboard(widget.getDisplay());
                VariantTransfer transfer = VariantTransfer.getInstance();
                IStructuredSelection selection = (IStructuredSelection) viewer.getSelection();
                Object[] selectionArray = selection.toArray();
                VariantBuilder[] modelArray = new VariantBuilder[selectionArray.length];
                for (int i = 0; i < selectionArray.length; i++) {
                    modelArray[i] = (VariantBuilder) ((Proxy) selectionArray[i]).getModelObject();
View Full Code Here

Examples of com.volantis.mcs.eclipse.builder.common.VariantTransfer

     */
    public Action createPasteVariantAction(final EditorContext context,
                                           final Widget widget) {
        Action pasteAction = new Action() {
            public void run() {
                VariantTransfer transfer = VariantTransfer.getInstance();
                Clipboard clipboard = new Clipboard(widget.getDisplay());

                try {
                    Object[] contents = (Object[]) clipboard.getContents(transfer);

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.