Examples of open()


Examples of org.apache.directory.studio.schemaeditor.view.dialogs.RenameObjectClassDialog.open()

                else if ( selectedElement instanceof ObjectClassWrapper )
                {
                    MutableObjectClass objectClass = ( ( ObjectClassWrapper ) selectedElement ).getObjectClass();

                    RenameObjectClassDialog dialog = new RenameObjectClassDialog( objectClass.getNames() );
                    if ( dialog.open() == RenameObjectClassDialog.OK )
                    {
                        ObjectClass modifiedObjectClass = PluginUtils.getClone( objectClass );
                        modifiedObjectClass.setNames( dialog.getAliases() );
                        Activator.getDefault().getSchemaHandler()
                            .modifyObjectClass( objectClass, modifiedObjectClass );
View Full Code Here

Examples of org.apache.directory.studio.schemaeditor.view.dialogs.RenameProjectDialog.open()

        StructuredSelection selection = ( StructuredSelection ) viewer.getSelection();
        if ( ( !selection.isEmpty() ) && ( selection.size() == 1 ) )
        {
            Project project = ( ( ProjectWrapper ) selection.getFirstElement() ).getProject();
            RenameProjectDialog dialog = new RenameProjectDialog( project.getName() );
            if ( dialog.open() == Dialog.OK )
            {
                projectsHandler.renameProject( project, dialog.getNewName() );
            }
        }
View Full Code Here

Examples of org.apache.directory.studio.schemaeditor.view.dialogs.RenameSchemaDialog.open()

                if ( selectedElement instanceof SchemaWrapper )
                {
                    Schema schema = ( ( SchemaWrapper ) selectedElement ).getSchema();

                    RenameSchemaDialog dialog = new RenameSchemaDialog( schema.getSchemaName() );
                    if ( dialog.open() == RenameSchemaDialog.OK )
                    {
                        Activator.getDefault().getSchemaHandler().renameSchema( schema, dialog.getNewName() );
                    }
                }
                // ATTRIBUTE TYPE
View Full Code Here

Examples of org.apache.directory.studio.schemaeditor.view.views.SchemaViewSortingDialog.open()

     */
    public void run()
    {
        SchemaViewSortingDialog svsd = new SchemaViewSortingDialog( PlatformUI.getWorkbench().getDisplay()
            .getActiveShell() );
        svsd.open();
    }


    /* (non-Javadoc)
     * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
View Full Code Here

Examples of org.apache.directory.studio.schemaeditor.view.views.SearchViewSortingDialog.open()

     */
    public void run()
    {
        SearchViewSortingDialog svsd = new SearchViewSortingDialog( PlatformUI.getWorkbench().getDisplay()
            .getActiveShell() );
        svsd.open();
    }


    /* (non-Javadoc)
     * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
View Full Code Here

Examples of org.apache.empire.db.CompanyDB.open()

    CompanyDB db = new CompanyDB();

    // Encoding issue occurs when prepared statement is disabled
    //db.setPreparedStatementsEnabled(true);

    db.open(driver, dbResource.getConnection());

    if(!databaseExists(conn, db)){
      DBSQLScript script = new DBSQLScript();
      db.getCreateDDLScript(db.getDriver(), script);
      System.out.println(script.toString());
View Full Code Here

Examples of org.apache.empire.db.DBReader.open()

    try
        {
      // Open Reader
      System.out.println("Running Query:");
      System.out.println(cmd.getSelect());
      reader.open(cmd, conn);
      // Print output
      System.out.println("---------------------------------");
      switch(queryType)
      {
          case Reader:
View Full Code Here

Examples of org.apache.empire.db.example.MyDB.open()

    MyDB db = MyDB.get();
    Employees EMP = db.EMPLOYEES;

    DBDatabaseDriver driver = new DBDatabaseDriverHSql();
    db.open(driver, conn);
    DBCommand cmd = db.createCommand();
    cmd.select(EMP.EMPLOYEE_ID, EMP.FIRSTNAME);

    int rowCount = 0;
    DBReader reader = new DBReader();
View Full Code Here

Examples of org.apache.felix.dm.tracker.ServiceTracker.open()

@RunWith(PaxExam.class)
public class ServiceTrackerTest extends TestBase {
    @Test
    public void testPlainServiceTracker() {
        ServiceTracker st = new ServiceTracker(context, ServiceInterface.class.getName(), null);
        st.open();
        ServiceRegistration sr = context.registerService(ServiceInterface.class.getName(), new ServiceProvider(), null);
        Assert.assertEquals("There should be one service that matches the tracker", 1, st.getServices().length);
        sr.unregister();
        Assert.assertNull("There should be no service that matches the tracker", st.getServices());
        st.close();
View Full Code Here

Examples of org.apache.flink.api.common.functions.RichFunction.open()

public class FunctionUtils {

  public static void openFunction (Function function, Configuration parameters) throws Exception{
    if (function instanceof RichFunction) {
      RichFunction richFunction = (RichFunction) function;
      richFunction.open (parameters);
    }
  }

  public static void closeFunction (Function function) throws Exception{
    if (function instanceof RichFunction) {
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.