Examples of IWorkspace


Examples of com.sas.iom.SAS.IWorkspace

        ConnectionFactoryManager cxfManager =
                new ConnectionFactoryManager();

        ConnectionFactoryInterface cxf = cxfManager.getFactory(cxfConfig);
        ConnectionInterface cx = cxf.getConnection(userName, password);
        IWorkspace iWorkspace = IWorkspaceHelper.narrow(cx.getObject());
        ILanguageService sasLanguage = iWorkspace.LanguageService();

        sasLanguage.Submit(procedure);

        CarriageControlSeqHolder logCarriageControlHldr = new CarriageControlSeqHolder();
        LineTypeSeqHolder logLineTypeHldr = new LineTypeSeqHolder();
        StringSeqHolder logHldr = new StringSeqHolder();
        sasLanguage.FlushLogLines(Integer.MAX_VALUE, logCarriageControlHldr, logLineTypeHldr, logHldr);
        System.out.println("==> Log <==");
        for (String line: logHldr.value) {
            System.out.println(line);
        }

        CarriageControlSeqHolder holder = new CarriageControlSeqHolder();
        LineTypeSeqHolder listLineTypeHldr = new LineTypeSeqHolder();
        StringSeqHolder listHldr = new StringSeqHolder();
        sasLanguage.FlushListLines(Integer.MAX_VALUE, holder, listLineTypeHldr, listHldr);
       
        System.out.println("==> OUT <==");
        /*
        for (CarriageControl control: holder.value) {
            System.out.println("control -> [" + control.getClass() + ":" + control.value() + "] " + control.toString());
        }
        for (LineType type: listLineTypeHldr.value) {
            System.out.println("type -> [" + type.getClass() + ":" + type.value() + "]" + type.toString());
        }
        */
        for (String line: listHldr.value) {
            System.out.println(line);
        }

        iWorkspace.Close();
        cx.close();
    }
View Full Code Here

Examples of com.subgraph.vega.api.model.IWorkspace

  private void createDialogPanel(Composite parent) {
   
    final Composite panel = new Composite(parent, SWT.NONE);
    panel.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
    createLabel(panel);
    final IWorkspace workspace = Activator.getDefault().getModel().getCurrentWorkspace();
    ScopeSelector scopeSelector = new ScopeSelector(panel, workspace.getTargetScopeManager());
    scopeSelector.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
    Composite c1 = new BasePathWidget(panel, scopeSelector.getViewer());
    c1.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
    Composite c2 = new ExcludeWidget(panel, scopeSelector.getViewer());
    c2.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
View Full Code Here

Examples of org.apache.flex.compiler.workspaces.IWorkspace

     */
    public IStyleDefinition resolveStyle(IClassDefinition classDefinition, String styleName)
    {
        Iterator<IClassDefinition> classIterator = classDefinition.classIterator(this, true);

        IWorkspace w = getWorkspace();
        while (classIterator.hasNext())
        {
            IClassDefinition c = classIterator.next();
            IStyleDefinition styleDefinition = c.getStyleDefinition(w, styleName);
            if (styleDefinition != null)
View Full Code Here

Examples of org.eclipse.core.resources.IWorkspace

        setErrorMessage(null);
        setMessage(null);

        String name = fProjText.getText().trim();
        if (name.length() > 0) {
            IWorkspace workspace = ResourcesPlugin.getWorkspace();
            IStatus status = workspace.validateName(name, IResource.PROJECT);
            if (status.isOK()) {
                IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(name);
                if (!project.exists()) {
                    setErrorMessage(MessageFormat.format("Project {0} does not exist", new String[] { name}));
                    return false;
View Full Code Here

Examples of org.eclipse.core.resources.IWorkspace

        if(path == null){
            return dir;
        }

        IWorkspace workspace = ResourcesPlugin.getWorkspace();

        if (!project.getPath().equals(path)) {
            IFolder outputFolder = workspace.getRoot().getFolder(path);
            if (outputFolder != null) {
                // linked resources will be resolved here!
                IPath rawPath = outputFolder.getRawLocation();
                if (rawPath != null) {
                    path = rawPath;
                }
            }
        } else {
            path = project.getProject().getLocation();
        }

        // here we should resolve path variables,
        // probably existing at first place of path
        IPathVariableManager pathManager = workspace.getPathVariableManager();
        path = pathManager.resolvePath(path);

        if (path == null) {
            return dir;
        }
View Full Code Here

Examples of org.eclipse.core.resources.IWorkspace

            return null;
        }
        IPath rawLocation = underlyingResource.getRawLocation();
        // here we should resolve path variables,
        // probably existing at first place of "rawLocation" path
        IWorkspace workspace = ResourcesPlugin.getWorkspace();
        IPathVariableManager pathManager = workspace.getPathVariableManager();
        rawLocation = pathManager.resolvePath(rawLocation);
        try {
            return new FileInputStream(rawLocation.toOSString());
        } catch (FileNotFoundException e) {
            BytecodeOutlinePlugin.log(e, IStatus.ERROR);
View Full Code Here

Examples of org.eclipse.core.resources.IWorkspace

        if (path == null) {
            return null;
        }
        // here we should resolve path variables,
        // probably existing at first place of path
        IWorkspace workspace = ResourcesPlugin.getWorkspace();
        IPathVariableManager pathManager = workspace.getPathVariableManager();
        path = pathManager.resolvePath(path);

        JarFile jar = null;
        try {
            jar = new JarFile(path.toOSString());
View Full Code Here

Examples of org.eclipse.core.resources.IWorkspace

        // get a project descriptor
        IPath newPath = null;
        if (!mainPage.useDefaults())
            newPath = mainPage.getLocationPath();

        IWorkspace workspace = ResourcesPlugin.getWorkspace();
        final IProjectDescription description = workspace
                .newProjectDescription(newProjectHandle.getName());
        description.setLocation(newPath);
        addNatures(description);

        // create the new project operation
View Full Code Here

Examples of org.eclipse.core.resources.IWorkspace

   * @see ResourcesPlugin#getEncoding()
   * @since 3.0
   */
  public static String getEncoding() {
    // Verify that workspace is not shutting down (see bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=60687)
    IWorkspace workspace = ResourcesPlugin.getWorkspace();
    if (workspace != null) {
      try {
        return workspace.getRoot().getDefaultCharset();
      } catch (CoreException e) {
        // fails silently and return plugin global encoding if core exception occurs
      }
    }
    return ResourcesPlugin.getEncoding();
View Full Code Here

Examples of org.eclipse.core.resources.IWorkspace

   *    reporting and cancellation are not desired
   * @exception CoreException if the operation failed.
   * @since 3.0
   */
  public static void run(IWorkspaceRunnable action, ISchedulingRule rule, IProgressMonitor monitor) throws CoreException {
    IWorkspace workspace = ResourcesPlugin.getWorkspace();
    if (workspace.isTreeLocked()) {
      new BatchOperation(action).run(monitor);
    } else {
      // use IWorkspace.run(...) to ensure that a build will be done in autobuild mode
      workspace.run(new BatchOperation(action), rule, IWorkspace.AVOID_UPDATE, monitor);
    }
  }
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.