Examples of Selection


Examples of com.forgeessentials.util.selections.Selection

    @Override
    public Selection getSelection(EntityPlayerMP player)
    {
        Point[] points = getPoints(player);
        if (points != null)
            return new Selection(points[0], points[1]);
        return null;
    }
View Full Code Here

Examples of com.google.code.mojo.license.util.Selection

        return properties;
    }

    protected final Document[] selectedDocuments()
    {
        Selection selection = newSelection(basedir, includes, buildExcludes(), useDefaultExcludes);
        debug("From: %s", basedir);
        debug("Including: %s", deepToString(selection.getIncluded()));
        debug("Excluding: %s", deepToString(selection.getExcluded()));
        Document[] documents = newDocumentFactory(basedir, buildMapping(), encoding).wrap(selection.getSelectedFiles());
        for(Document document : documents)
        {
            debug("Selected file: %s [type=%s]", document.getFile(), document.getDocumentType());
        }
        return documents;
View Full Code Here

Examples of com.googlecode.gwt.charts.client.Selection

            public void onSelect(SelectEvent event) {
                if (!displayerSettings.isFilterEnabled()) return;

                JsArray<Selection> selections = selectable.getSelection();
                for (int i = 0; i < selections.length(); i++) {
                    Selection selection = selections.get(i);
                    int row = selection.getRow();

                    String intervalSelected = getValueString(row, 0);
                    filterUpdate(googleTable.getColumnId(0), intervalSelected, googleTable.getNumberOfRows());
                }
                // Redraw the char in order to reflect the current selection
View Full Code Here

Examples of com.mathieucarbou.mojo.license.util.Selection

    }

    @Test
    public void test_selection() throws Exception
    {
        Selection sel = Selection.newSelection(new File("."), null, null, true);
        assertEquals(sel.getBasedir(), new File("."));
        assertEquals(sel.getExcluded(), new String[] {"**/*~", "**/#*#", "**/.#*", "**/%*%", "**/._*", "**/CVS", "**/CVS/**", "**/.cvsignore", "**/SCCS", "**/SCCS/**", "**/vssver.scc", "**/.svn", "**/.svn/**", "**/.arch-ids", "**/.arch-ids/**", "**/.bzr", "**/.bzr/**", "**/.MySCMServerInfo", "**/.DS_Store", "target/**", "test-output/**", "cobertura.ser", ".clover/**", ".classpath", ".project", ".settings/**", "*.iml", "*.ipr", "*.iws"});
        assertEquals(sel.getIncluded(), new String[] {"**"});
    }
View Full Code Here

Examples of com.sk89q.worldedit.bukkit.selections.Selection

    } else if (this.args.length > 2) {
      return false;
    } else if (this.args.length == 1) {
      if (War.war.getServer().getPluginManager().isPluginEnabled("WorldEdit")) {
        WorldEditPlugin worldEdit = (WorldEditPlugin) War.war.getServer().getPluginManager().getPlugin("WorldEdit");
        Selection selection = worldEdit.getSelection(player);
        if (selection != null && selection instanceof CuboidSelection) {
          Location min = selection.getMinimumPoint();
          Location max = selection.getMaximumPoint();
          ZoneSetter setter = new ZoneSetter(player, this.args[0]);
          setter.placeCorner1(min.getBlock());
          setter.placeCorner2(max.getBlock());
          return true;
        }
View Full Code Here

Examples of com.sun.star.awt.Selection

     */
    private void focus(Object textControl) {
        ((XWindow)UnoRuntime.queryInterface(XWindow.class,textControl)).setFocus();
        XTextComponent xTextComponent = (XTextComponent)UnoRuntime.queryInterface(XTextComponent.class,textControl);
        String text = xTextComponent.getText();
        xTextComponent.setSelection( new Selection(0, text.length()) );
        XControl xc = (XControl)UnoRuntime.queryInterface(XControl.class,textControl);
        focusGained(xc);
    }
View Full Code Here

Examples of com.sun.star.awt.Selection

    synchronized void rowDown(int guiRow, Object control ) {
        // only perform if this is not the last row.
        int actuallRow = guiRow + nscrollvalue;
        if ( actuallRow + 1 < scrollfields.size() ) {
            // get the current selection
            Selection selection = getSelection(control );
           
            // the last row should scroll...
            boolean scroll = guiRow == ( nblockincrement - 1 );
            if (scroll)
                setScrollValue( nscrollvalue + 1 );
View Full Code Here

Examples of com.sun.star.awt.Selection

    synchronized void rowUp(int guiRow, Object control ) {
        // only perform if this is not the first row
        int actuallRow = guiRow + nscrollvalue;
        if ( actuallRow > 0 ) {
            // get the current selection
            Selection selection = getSelection( control );
           
            // the last row should scroll...
            boolean scroll = (guiRow == 0);
            if (scroll)
                setScrollValue( nscrollvalue - 1 );
View Full Code Here

Examples of com.sun.star.awt.Selection

        String text = num ? "753" "iText" ;
        String itext = num ? "6" "insert" ;
        log.println("Setting text to : '" + text + "'") ;
        oObj.setText(text);
        log.println("Iserting text to (0,1) : '" + itext + "'") ;
        oObj.insertText(new Selection(0,1), itext);
        log.println("getText() returns: " + oObj.getText());
        tRes.tested("insertText()", oObj.getText().equals
            (num ? "653" : "insertText"));
    }
View Full Code Here

Examples of com.sun.star.awt.Selection

    * of text added before.
    */
    public void _getSelectedText() {
        String text = num ? "753" "txt" ;
        oObj.setText(text);
        oObj.setSelection(new Selection(0,3));
        boolean result = oObj.getSelectedText().equals(text);
       
        if (! result) {
            System.out.println("Getting '"+oObj.getSelectedText()+"'");
            System.out.println("Expected '"+text+"'");
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.