def on_open_project_folder_action( self ):
		# Open the current project folder
		if os.path.dirname(self._project.filename):
			f=os.path.dirname(self._project.filename)
			if platform == 'linux':
				call(["xdg-open",f])
			else:
				os.startfile(f)
		else:
			if self._message: self._show_alert(
				"Can not open the project folder.\nReason: Path not found."
			)
	def on_open_files_folder_action( self ):
		# Open the current file folder
		if (self._window.get_active_document()):
			if(self._window.get_active_document().get_uri_for_display()):
				current_file = self._window.get_active_document().get_uri_for_display()
				if os.path.dirname(current_file):
					f=os.path.dirname(current_file)
					if platform == 'linux': # http://stackoverflow.com/questions/1679798/how-to-open-a-file-with-the-standard-application
						call(["xdg-open",f])
					else:
						os.startfile(f)
				else:
					if self._message: self._show_alert(
						"Can not open the project folder.\nReason: Path not found."
					)
		else:
			if self._message: self._show_alert(
				"There is no open file or the current file is untitled."
			)