Examples of IFormPage


Examples of org.eclipse.ui.forms.editor.IFormPage

        section.setClient(composite);

    }

    void doReload() {
        IFormPage page = (IFormPage) getManagedForm().getContainer();
        final IFile file = ResourceUtil.getFile(page.getEditorInput());
        if (file != null && file.exists()) {
            WorkspaceJob job = new WorkspaceJob("Reload Plugins") {
                @Override
                public IStatus runInWorkspace(IProgressMonitor monitor) throws CoreException {
                    file.touch(monitor);
View Full Code Here

Examples of org.eclipse.ui.forms.editor.IFormPage

        super.commit(onSave);
        model.setPlugins(data);
    }

    public void propertyChange(PropertyChangeEvent evt) {
        IFormPage page = (IFormPage) getManagedForm().getContainer();
        if (page.isActive()) {
            refresh();
        } else {
            markStale();
        }
    }
View Full Code Here

Examples of org.eclipse.ui.forms.editor.IFormPage

    }

    @Override
    public void propertyChange(PropertyChangeEvent evt) {
        if (editablePropertySet.contains(evt.getPropertyName())) {
            IFormPage page = (IFormPage) getManagedForm().getContainer();
            if (page.isActive()) {
                refresh();
            } else {
                markStale();
            }
        }
View Full Code Here

Examples of org.eclipse.ui.forms.editor.IFormPage

        if (this.model != null)
            this.model.removePropertyChangeListener(this);
    }

    IJavaProject getJavaProject() {
        IFormPage formPage = (IFormPage) getManagedForm().getContainer();
        IFile file = ResourceUtil.getFile(formPage.getEditorInput());
        return file != null ? JavaCore.create(file.getProject()) : null;
    }
View Full Code Here

Examples of org.eclipse.ui.forms.editor.IFormPage

        viewer.remove(selection.toArray());
        markDirty();
    }

    private IResource getInputResource() {
        IFormPage formPage = (IFormPage) getManagedForm().getContainer();
        IResource resource = ResourceUtil.getResource(formPage.getEditorInput());
        return resource;
    }
View Full Code Here

Examples of org.eclipse.ui.forms.editor.IFormPage

        model.setClassPath(strings);
    }

    public void propertyChange(PropertyChangeEvent evt) {
        if (Constants.CLASSPATH.equals(evt.getPropertyName())) {
            IFormPage page = (IFormPage) getManagedForm().getContainer();
            if (page.isActive()) {
                refresh();
            } else {
                markStale();
            }
        }
View Full Code Here

Examples of org.eclipse.ui.forms.editor.IFormPage

        this.model.addPropertyChangeListener(this);
    }

    public void propertyChange(PropertyChangeEvent evt) {
        if (editablePropertySet.contains(evt.getPropertyName())) {
            IFormPage page = (IFormPage) getManagedForm().getContainer();
            if (page.isActive()) {
                refresh();
            } else {
                markStale();
            }
        }
View Full Code Here

Examples of org.eclipse.ui.forms.editor.IFormPage

        if (this.model != null)
            this.model.removePropertyChangeListener(this);
    }

    IJavaProject getJavaProject() {
        IFormPage formPage = (IFormPage) getManagedForm().getContainer();
        IFile file = ResourceUtil.getFile(formPage.getEditorInput());
        return file != null ? JavaCore.create(file.getProject()) : null;
    }
View Full Code Here

Examples of org.eclipse.ui.forms.editor.IFormPage

        IPackageFilter filter = new IPackageFilter() {
            public boolean select(String packageName) {
                return !packageName.equals("java") && !packageName.startsWith("java.") && !packageNameSet.contains(packageName);
            }
        };
        IFormPage page = (IFormPage) getManagedForm().getContainer();
        IWorkbenchWindow window = page.getEditorSite().getWorkbenchWindow();

        // Prepare the package lister from the Java project
        IJavaProject javaProject = getJavaProject();
        if (javaProject == null) {
            MessageDialog.openError(getSection().getShell(), "Error", "Cannot add packages: unable to find a Java project associated with the editor input.");
View Full Code Here

Examples of org.eclipse.ui.forms.editor.IFormPage

        if (this.model != null)
            this.model.removePropertyChangeListener(this);
    }

    public void propertyChange(PropertyChangeEvent evt) {
        IFormPage page = (IFormPage) getManagedForm().getContainer();
        if (page.isActive()) {
            refresh();
        } else {
            markStale();
        }
    }
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.