Examples of open()


Examples of com.cxy.redisclient.presentation.list.NewListDialog.open()

    parseContainer(treeItem, cinfo);

    NewListDialog dialog = new NewListDialog(shell, iconImage,
        cinfo.getId(), cinfo.getServerName(), cinfo.getDb(),
        cinfo.getContainerStr());
    ListInfo info = (ListInfo) dialog.open();
    if (info != null) {
      service4.add(cinfo.getId(), cinfo.getDb(), info.getKey(),
          info.getValues(), info.isHeadTail(), info.isExist(),
          info.getTtl());
      treeItem.setData(ITEM_OPENED, false);
View Full Code Here

Examples of com.cxy.redisclient.presentation.server.AddServerDialog.open()

    return treeItem;
  }

  private void addServer() {
    AddServerDialog dialog = new AddServerDialog(shell, iconImage);
    Server server = (Server) dialog.open();

    if (server != null) {
      server.setId(service1.add(server.getName(), server.getHost(),
          server.getPort(), server.getPassword()));
      TreeItem item = addServerTreeItem(server);
View Full Code Here

Examples of com.cxy.redisclient.presentation.server.PropertiesDialog.open()

    Map<String, String[]> values = service1.listInfo(id);

    PropertiesDialog dialog = new PropertiesDialog(shell, iconImage, info,
        values);
    dialog.open();
  }

  private void deleteOneContainer() {
    DeleteContainerDialog dialog = new DeleteContainerDialog(shell,
        iconImage, questionImage, 1);
View Full Code Here

Examples of com.cxy.redisclient.presentation.server.UpdateServerDialog.open()

    int id = (Integer) itemsSelected[0].getData(NODE_ID);

    Server server = service1.listById(id);
    UpdateServerDialog dialog = new UpdateServerDialog(shell, iconImage,
        server);
    server = (Server) dialog.open();
    if (server != null) {
      service1.update(id, server.getName(), server.getHost(),
          server.getPort(), server.getPassword());
      TreeItem treeItem = null;
      if (itemsSelected[0] instanceof TableItem) {
View Full Code Here

Examples of com.cxy.redisclient.presentation.set.NewSetDialog.open()

    parseContainer(treeItem, cinfo);

    NewSetDialog dialog = new NewSetDialog(shell, iconImage, cinfo.getId(),
        cinfo.getServerName(), cinfo.getDb(), cinfo.getContainerStr());
    SetInfo info = (SetInfo) dialog.open();
    if (info != null) {
      service5.add(cinfo.getId(), cinfo.getDb(), info.getKey(),
          info.getValues(), info.getTtl());
      treeItem.setData(ITEM_OPENED, false);
      dbContainerTreeItemSelected(treeItem, false);
View Full Code Here

Examples of com.cxy.redisclient.presentation.string.NewStringDialog.open()

    parseContainer(treeItem, cinfo);

    NewStringDialog dialog = new NewStringDialog(shell, iconImage,
        cinfo.getId(), cinfo.getServerName(), cinfo.getDb(),
        cinfo.getContainerStr());
    StringInfo info = (StringInfo) dialog.open();
    if (info != null) {
      service2.addString(cinfo.getId(), cinfo.getDb(), info.getKey(),
          info.getValue(), info.getTtl());

      treeItem.setData(ITEM_OPENED, false);
View Full Code Here

Examples of com.cxy.redisclient.presentation.zset.NewZSetDialog.open()

    parseContainer(treeItem, cinfo);

    NewZSetDialog dialog = new NewZSetDialog(shell, iconImage,
        cinfo.getId(), cinfo.getServerName(), cinfo.getDb(),
        cinfo.getContainerStr());
    ZSetInfo info = (ZSetInfo) dialog.open();
    if (info != null) {
      service6.add(cinfo.getId(), cinfo.getDb(), info.getKey(),
          info.getValues(), info.getTtl());
      treeItem.setData(ITEM_OPENED, false);
      dbContainerTreeItemSelected(treeItem, false);
View Full Code Here

Examples of com.datasalt.pangool.io.Schema.Field.FieldDeserializer.open()

          inputBuffer.reset(buffer.array(),offset,length);
        } else {
          throw new PangoolRuntimeException("Can't convert to OBJECT from instance " + objRecord.getClass());
        }
        if (customDeser != null){
          customDeser.open(inputBuffer);
          tuple.set(pos,customDeser.deserialize(tuple.get(pos))); //TODO FIXME avro deserializer shouldn't reuse objects sometimes (UNION ?)
          customDeser.close(); //TODO is this ok ?
         
        } else {
            //no custom deser , then use Hadoop serializers registered in "io.serializations"
View Full Code Here

Examples of com.datasalt.pangool.io.Schema.Field.FieldSerializer.open()

      case OBJECT:
        FieldSerializer customSer = customSerializers[i];
        DataOutputBuffer buffer = buffers[i];
        buffer.reset();
        if (customSer != null){
          customSer.open(buffer);
          customSer.serialize(obj);
          customSer.close(); //TODO is this safe ?
        } else {
          hadoopSer.ser(obj, buffer);
        }
View Full Code Here

Examples of com.denimgroup.threadfix.plugin.eclipse.dialog.ApplicationDialog.open()

        ApplicationDialog appDialog = new ApplicationDialog(window.getShell(),
            threadFixApplicationMap, configuredApps);
       
        appDialog.create();
       
        if (appDialog.open() == Window.OK) {
          EclipsePropertiesManager.saveApplicationInfo(appDialog.getAppIds());
          System.out.println("Saved successfully.");
        } else {
          System.out.println("Cancel was pressed.");
        }
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.