Examples of WorkspaceModifyOperation


Examples of org.eclipse.ui.actions.WorkspaceModifyOperation

                .newProjectDescription(newProjectHandle.getName());
        description.setLocation(newPath);
        addNatures(description);

        // create the new project operation
        WorkspaceModifyOperation op = new WorkspaceModifyOperation() {
            protected void execute(IProgressMonitor monitor)
                    throws CoreException {
                createProject(description, newProjectHandle, monitor);
            }
        };
View Full Code Here

Examples of org.eclipse.ui.actions.WorkspaceModifyOperation

        executor.dispose();
      }
    }

    // create the new project operation
    WorkspaceModifyOperation op = new WorkspaceModifyOperation() {
      protected void execute(IProgressMonitor monitor)
        throws CoreException {
        createProject(description, newProjectHandle, monitor);
      }
    };
View Full Code Here

Examples of org.eclipse.ui.actions.WorkspaceModifyOperation

                    {
                        public void run()
                        {
                            if (!review || dialog.open() == Window.OK)
                            {
                                WorkspaceModifyOperation op = new WorkspaceModifyOperation()
                                {
                                    @Override
                                    protected void execute(IProgressMonitor monitor)
                                        throws CoreException
                                    {
View Full Code Here

Examples of org.eclipse.ui.actions.WorkspaceModifyOperation

                    {
                        public void run()
                        {
                            if (dialog.open() == Window.OK)
                            {
                                WorkspaceModifyOperation op = new WorkspaceModifyOperation()
                                {
                                    @Override
                                    protected void execute(IProgressMonitor monitor)
                                        throws CoreException
                                    {
View Full Code Here

Examples of org.eclipse.ui.actions.WorkspaceModifyOperation

                if (mod == null)
                {
                    throw new IllegalStateException(
                        "Attempt to modify binary package export");
                }
                WorkspaceModifyOperation op = new WorkspaceModifyOperation()
                {
                    @Override
                    protected void execute(IProgressMonitor monitor) throws CoreException
                    {
                        mod.getBundle().getBundleInfo().addExport(pe);
                        mod.save(monitor);
                    }
                };

                SigilUI.runWorkspaceOperation(op, null);
                e = pe;
            }
        }

        final IPackageImport i = ModelElementFactory.getInstance().newModelElement(
            IPackageImport.class);
        i.setPackageName(e.getPackageName());
        VersionRange selectedVersions = ModelHelper.getDefaultRange(e.getVersion());
        i.setVersions(selectedVersions);

        WorkspaceModifyOperation op = new WorkspaceModifyOperation()
        {
            @Override
            protected void execute(IProgressMonitor monitor) throws CoreException
            {
                project.getBundle().getBundleInfo().addImport(i);
View Full Code Here

Examples of org.eclipse.ui.actions.WorkspaceModifyOperation

            for (IResource res : resources)
            {
                IProject p = (IProject) res;
                final ISigilProjectModel model = SigilCore.create(p);

                WorkspaceModifyOperation op = new WorkspaceModifyOperation()
                {
                    @Override
                    protected void execute(IProgressMonitor monitor)
                        throws CoreException, InvocationTargetException,
                        InterruptedException
View Full Code Here

Examples of org.eclipse.ui.actions.WorkspaceModifyOperation

        for (IResource r : resources)
        {
            final IProject project = (IProject) r;
            if (project != null)
            {
                WorkspaceModifyOperation op = new WorkspaceModifyOperation()
                {
                    @Override
                    protected void execute(IProgressMonitor monitor) throws CoreException
                    {
                        SigilCore.makeSigilProject(project, monitor);
View Full Code Here

Examples of org.eclipse.ui.actions.WorkspaceModifyOperation

            {
                if (Boolean.TRUE == callable.call())
                {
                    if (result == IDialogConstants.YES_ID)
                    {
                        SigilUI.runWorkspaceOperation(new WorkspaceModifyOperation()
                        {
                            @Override
                            protected void execute(IProgressMonitor monitor)
                            {
                                SigilCore.rebuildAllBundleDependencies(monitor);
View Full Code Here

Examples of org.eclipse.ui.actions.WorkspaceModifyOperation

            sourceBundle = params[2];
            sourcePath = params[3];
            editorID = params[4];
        }

        WorkspaceModifyOperation op = new WorkspaceModifyOperation()
        {
            @Override
            protected void execute(IProgressMonitor monitor) throws CoreException
            {
                try
View Full Code Here

Examples of org.eclipse.ui.actions.WorkspaceModifyOperation

    public boolean performFinish() {

        try {
            // create projects
            final List<IProject> createdProjects = new ArrayList<IProject>();
            getContainer().run(false, true, new WorkspaceModifyOperation() {
                @Override
                protected void execute(IProgressMonitor monitor) throws CoreException, InvocationTargetException,
                        InterruptedException {
                    createdProjects.addAll(createProjects(monitor));
                }
            });

            // configure projects
            final Projects[] projects = new Projects[1];
            getContainer().run(false, true, new WorkspaceModifyOperation() {
                @Override
                protected void execute(IProgressMonitor monitor) throws CoreException, InvocationTargetException,
                        InterruptedException {
                    projects[0] = configureCreatedProjects(createdProjects, monitor);
                }
            });

            // deploy the projects on server
            getContainer().run(false, true, new WorkspaceModifyOperation() {
                @Override
                protected void execute(IProgressMonitor monitor) throws CoreException, InvocationTargetException,
                        InterruptedException {
                    deployProjectsOnServer(projects[0], 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.