Examples of open()


Examples of org.locationtech.udig.ui.FeatureTypeEditorDialog.open()

        // Open a dialog for user to create featuretype
        FeatureTypeEditorDialog dialog = new FeatureTypeEditorDialog(event.display.getActiveShell(), performOK);
        setDefaultGeomType(dialog);

        dialog.setBlockOnOpen(true);
        int code = dialog.open();

        if (code == Window.CANCEL)
            return;

        if (resource != null) {
View Full Code Here

Examples of org.locationtech.udig.ui.ZoomingDialog.open()

            propertiesAction = new Action(){
                @Override
                public void runWithEvent( Event event ) {
                    ZoomingDialog dialog = new ZoomingDialog(shell, tmp.createDialog(),
                            ZoomingDialog.calculateBounds(viewer.getTree().getSelection()[0], -1));
                    dialog.open();
                }
            };

            propertiesAction.setText(tmp.getText());
            propertiesAction.setActionDefinitionId(tmp.getActionDefinitionId());
View Full Code Here

Examples of org.mage.plugins.card.dl.DownloadJob.Destination.open()

                    progress.setValue(1);
                } else {
                    progress.setMaximum(src.length());
                    InputStream is = new BufferedInputStream(src.open());
                    try {
                        OutputStream os = new BufferedOutputStream(dst.open());
                        try {
                            byte[] buf = new byte[8 * 1024];
                            int total = 0;
                            for(int len; (len = is.read(buf)) != -1;) {
                                if(job.getState() == State.ABORTED) throw new IOException("Job was aborted");
View Full Code Here

Examples of org.mage.plugins.card.dl.DownloadJob.Source.open()

                if(dst.exists()) {
                    progress.setMaximum(1);
                    progress.setValue(1);
                } else {
                    progress.setMaximum(src.length());
                    InputStream is = new BufferedInputStream(src.open());
                    try {
                        OutputStream os = new BufferedOutputStream(dst.open());
                        try {
                            byte[] buf = new byte[8 * 1024];
                            int total = 0;
View Full Code Here

Examples of org.mortbay.jetty.Connector.open()

      while (true) {
        // jetty has a bug where you can't reopen a listener that previously
        // failed to open w/o issuing a close first, even if the port is changed
        try {
          listener.close();
          listener.open();
          LOG.info("Jetty bound to port " + listener.getLocalPort());
          break;
        } catch (BindException ex) {
          if (port == 0 || !findPort) {
            BindException be = new BindException("Port in use: "
View Full Code Here

Examples of org.mortbay.jetty.bio.SocketConnector.open()

        super.open();
        init = true;
      }
    };
    if (port != null) connector.setPort(port);
    connector.open();
    server.setConnectors(new Connector[] { connector });
   
    WebAppContext webappcontext = new WebAppContext();
    webappcontext.setContextPath("/");
    webappcontext.setMaxFormContentSize(0);
View Full Code Here

Examples of org.mortbay.jetty.nio.SelectChannelConnector.open()

                   (SelectChannelConnector)HttpServer.createDefaultChannelConnector();
    InetSocketAddress infoSocAddr = DataNode.getInfoAddr(conf);
    listener.setHost(infoSocAddr.getHostName());
    listener.setPort(infoSocAddr.getPort());
    // Open listener here in order to bind to port as root
    listener.open();
    if(listener.getPort() != infoSocAddr.getPort())
      throw new RuntimeException("Unable to bind on specified info port in secure " +
          "context. Needed " + socAddr.getPort() + ", got " + ss.getLocalPort());
    System.err.println("Successfully obtained privileged resources (streaming port = "
        + ss + " ) (http listener port = " + listener.getConnection() +")");
View Full Code Here

Examples of org.nasutekds.server.backends.ndb.OperationContainer.DN2IDSearchCursor.open()

      if (isSubtreeDelete) {
        AbstractTransaction cursorTxn =
          new AbstractTransaction(rootContainer);
        DN2IDSearchCursor cursor = dn2id.getSearchCursor(cursorTxn, entryDN);
        cursor.open();
        try {
          SearchCursorResult result = cursor.getNext();
          while (result != null) {
            // We have found a subordinate entry.
            // Enforce any subtree delete size limit.
View Full Code Here

Examples of org.neo4j.kernel.impl.nioneo.store.FileSystemAbstraction.open()

    {
        String fileName = "target/var/neostore.nodestore.db";
        deleteFileOrDirectory( fileName );
        FileSystemAbstraction offsettedFileSystem = new JumpingFileSystemAbstraction( 10 );
        IdGenerator idGenerator = new JumpingIdGeneratorFactory( 10 ).get( IdType.NODE );
        JumpingFileChannel channel = (JumpingFileChannel) offsettedFileSystem.open( fileName, "rw" );
       
        for ( int i = 0; i < 16; i++ )
        {
            writeSomethingLikeNodeRecord( channel, idGenerator.nextId(), i );
        }
View Full Code Here

Examples of org.neo4j.neoclipse.connection.dialogs.CreateAliasDialog.open()

    @Override
    public void run()
    {
        CreateAliasDialog dlg = new CreateAliasDialog( Display.getCurrent().getActiveShell(),
                CreateAliasDialog.Type.CREATE );
        dlg.open();
        Activator.getDefault().getAliasManager().notifyListners();
    }
}
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.