Examples of Platform


Examples of com.lightcrafts.platform.Platform

     * returns <code>null</code>.
     */
    public static File isFolder( File file ) {
        if ( file.isHidden() )
            return null;
        final Platform platform = Platform.getPlatform();
        file = platform.isSpecialFile( file );
        if ( file.isFile() )
            return null;
        if ( file instanceof SmartFolder ) {
            //
            // We must test for SmartFolders explicitly because they're not
            // considered "traversable" by Java.
            //
            return file;
        }
        return platform.getFileSystemView().isTraversable( file ) ? file : null;
    }
View Full Code Here

Examples of com.lightcrafts.platform.Platform

     *
     * @return Returns <code>true</code> only if this computer has an active
     * internet connection.
     */
    private static boolean hasInternetConnection() {
        final Platform platform = Platform.getPlatform();
        return platform.hasInternetConnectionTo( CHECK_HOST );
    }
View Full Code Here

Examples of com.lightcrafts.platform.Platform

    }

    public static void main(String[] args)
        throws UnsupportedLookAndFeelException
    {
        Platform platform = Platform.getPlatform();
        platform.loadLibraries();
        System.out.println(platform.getPhysicalMemoryInMB());

        UIManager.setLookAndFeel(platform.getLookAndFeel());
        platform.showHelpTopic("New_Features");
    }
View Full Code Here

Examples of com.m11n.android.model.Platform

  {
    Item item = null;
   
    if(Platform.ELEMENT_NAME.equals(parent.getNodeName()))
    {
      item = new Platform();
    }
    else if(AddOn.ELEMENT_NAME.equals(parent.getNodeName()))
    {
      item = new AddOn();
    }
View Full Code Here

Examples of com.sk89q.worldedit.extension.platform.Platform

            actor.printDebug(String.format("* %s (%s)", platform.getPlatformName(), platform.getPlatformVersion()));
        }

        actor.printDebug("----------- Capabilities -----------");
        for (Capability capability : Capability.values()) {
            Platform platform = pm.queryCapability(capability);
            actor.printDebug(String.format("%s: %s", capability.name(), platform != null ? platform.getPlatformName() : "NONE"));
        }
    }
View Full Code Here

Examples of com.sk89q.worldedit.extension.platform.Platform

        this.platformManager = platformManager;
    }

    @Override
    public List<String> getSuggestions(String arguments, CommandLocals locals) throws CommandException {
        Platform platform = platformManager.queryCapability(Capability.USER_COMMANDS);
        if (platform instanceof MultiUserPlatform) {
            List<String> suggestions = new ArrayList<String>();
            Collection<Actor> users = ((MultiUserPlatform) platform).getConnectedUsers();
            for (Actor user : users) {
                if (user.getName().toLowerCase().startsWith(arguments.toLowerCase().trim())) {
View Full Code Here

Examples of com.sk89q.worldedit.extension.platform.Platform

        }
        try {
            bukkitAdapter = adapterLoader.loadAdapter();
            log.log(Level.INFO, "Using " + bukkitAdapter.getClass().getCanonicalName() + " as the Bukkit adapter");
        } catch (AdapterLoadException e) {
            Platform platform = worldEdit.getPlatformManager().queryCapability(Capability.WORLD_EDITING);
            if (platform instanceof BukkitServerInterface) {
                log.log(Level.WARNING, e.getMessage());
            } else {
                log.log(Level.INFO, "WorldEdit could not find a Bukkit adapter for this MC version, " +
                        "but it seems that you have another implementation of WorldEdit installed (" + platform.getPlatformName() + ") " +
                        "that handles the world editing.");
            }
        }
    }
View Full Code Here

Examples of com.sk89q.worldedit.extension.platform.Platform

            } else {
                entities = editSession.getEntities();
            }
            visitors.add(new EntityVisitor(entities.iterator(), flags.createFunction(editSession.getWorld().getWorldData().getEntityRegistry())));
        } else {
            Platform platform = we.getPlatformManager().queryCapability(Capability.WORLD_EDITING);
            for (World world : platform.getWorlds()) {
                List<? extends Entity> entities = world.getEntities();
                visitors.add(new EntityVisitor(entities.iterator(), flags.createFunction(world.getWorldData().getEntityRegistry())));
            }
        }
View Full Code Here

Examples of com.sk89q.worldedit.extension.platform.Platform

            } else {
                entities = editSession.getEntities();
            }
            visitors.add(new EntityVisitor(entities.iterator(), remover.createFunction(editSession.getWorld().getWorldData().getEntityRegistry())));
        } else {
            Platform platform = we.getPlatformManager().queryCapability(Capability.WORLD_EDITING);
            for (World world : platform.getWorlds()) {
                List<? extends Entity> entities = world.getEntities();
                visitors.add(new EntityVisitor(entities.iterator(), remover.createFunction(world.getWorldData().getEntityRegistry())));
            }
        }
View Full Code Here

Examples of com.taobao.zeus.web.platform.client.widget.Platform

  @Override
  public void onModuleLoad() {
    RPCS.getUserService().getUser(new AsyncCallback<ZUser>() {
      @Override
      public void onSuccess(ZUser result) {
        Platform s=new Platform(result);
        final HomeApp home=new HomeApp(s.getPlatformContext());
        s.addApp(home);
        s.addApp(new DocumentApp(s.getPlatformContext()));
        s.addApp(new ScheduleApp(s.getPlatformContext()));
        s.addApp(new ReportApp(s.getPlatformContext()));
       
        RootPanel.get().add(s);
       
        s.getPlatformContext().getPlatformBus().fireEvent(new StartEvent());
       
        String id=GWTEnvironment.getNoticeTemplateId();
        RPCS.getFileManagerService().getFile(id, new AbstractAsyncCallback<FileModel>() {
          @Override
          public void onSuccess(FileModel result) {
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.