Esempio n. 1
0
    def _finished_fired(self):
        """ Performs the folder resource creation if the wizard is
            finished successfully.
        """
        csp = self.pages[0]
        fwp = self.pages[1]

        path = join(csp.directory, fwp.folder_name)
        folder = File(path)
        folder.create_folder()

        # Refresh the workspace tree view
        view = self.window.get_view_by_id(RESOURCE_VIEW)
        if view is not None:
            # FIXME: Refresh the parent folder not the whole tree
            workspace = self.window.application.get_service(IWorkspace)
            workspace.path = path
            wtv = view.tree_viewer.refresh(workspace)