Package it.freedomotic.plugins

Examples of it.freedomotic.plugins.ObjectPluginPlaceholder


                }
            }
            EnvironmentPersistence.remove(oldenv);
            if (EnvObjectPersistence.getObjectList().isEmpty()) {
                // add a new object placeholder
                ObjectPluginPlaceholder objp = (ObjectPluginPlaceholder) master.getApi().getClients("object").toArray()[0];
                objp.startOnEnv(oldenv);
            }
            setWindowedMode();
            checkDeletableEnvironments();
        }
    }//GEN-LAST:event_mnuDeleteActionPerformed
View Full Code Here


                            client.showGui();
                            update();
                        }

                        if (client.getType().equalsIgnoreCase("object")) {
                            ObjectPluginPlaceholder objp = (ObjectPluginPlaceholder) client;

                            if (parent instanceof MainWindow) {
                                MainWindow mw = (MainWindow) parent;
                                objp.startOnEnv(mw.getDrawer().getCurrEnv()); //adds the object to the environment
                            }
                        }
                    }
                });
                menu.add(mnuConfigure);
View Full Code Here

                                + "-running.png", 64, 64);
                        imageStopped = ResourcesManager.getResource(addon.getClass().getSimpleName().toLowerCase()
                                + "-stopped.png", 64, 64);
                    } else {
                        if (addon.getType().equalsIgnoreCase("object")) {
                            ObjectPluginPlaceholder obj = (ObjectPluginPlaceholder) addon;
                            String icon = obj.getObject().getPojo().getRepresentations().get(0).getIcon();

                            if (icon != null) {
                                imageRunning = ResourcesManager.getResource(icon, 64, 64);
                                imageStopped = ResourcesManager.getResource(icon, 64, 64);
                            }
View Full Code Here

        return envLogic;
    }

    public EnvObjectLogic join(String clazz, String name, String protocol, String address) {
        EnvObjectLogic loaded = null;
        ObjectPluginPlaceholder objectPlugin = (ObjectPluginPlaceholder) clientStorage.get(clazz);

        if (objectPlugin == null) {
            LOG.warning("Doesn't exist an object class called " + clazz);

            return null;
        }

        File templateFile = objectPlugin.getTemplate();

        try {
            loaded = EnvObjectPersistence.loadObject(templateFile);
        } catch (DaoLayerException ex) {
            LOG.severe("Cannot join an object taken from template file " + templateFile);
View Full Code Here

TOP

Related Classes of it.freedomotic.plugins.ObjectPluginPlaceholder

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.